﻿/* ============================================
           DISCOUNT PAGE — تخفیفات ویژه ریحانو
           ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
           HEADER
           ============================================ */
.discount-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #003366, #0a4d8c);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 25px rgba(0, 51, 102, 0.2);
}

    .discount-header .header-icon {
        width: 70px;
        height: 70px;
        background: rgba(244, 180, 0, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #F4B400;
        font-size: 2rem;
        margin: 0 auto 16px;
        border: 2px solid rgba(244, 180, 0, 0.2);
    }

    .discount-header h1 {
        font-weight: 800;
        font-size: 2rem;
        color: #fff;
        margin-bottom: 4px;
    }

        .discount-header h1 span {
            color: #F4B400;
        }

    .discount-header p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .discount-header .discount-count {
        display: inline-block;
        margin-top: 12px;
        padding: 6px 24px;
        border-radius: 50px;
        background: rgba(244, 180, 0, 0.15);
        color: #F4B400;
        font-weight: 700;
        font-size: 0.9rem;
        border: 1px solid rgba(244, 180, 0, 0.2);
    }

/* ============================================
           PRODUCT GRID
           ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    transition: all 0.5s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
        border-color: #F4B400;
    }

    /* ============================================
           PRODUCT IMAGE
           ============================================ */
    .product-card .product-image {
        height: 220px;
        background: #fafafa;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        position: relative;
        overflow: hidden;
    }

        .product-card .product-image img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
        }

    .product-card:hover .product-image img {
        transform: scale(1.06);
    }

    /* ============================================
           DISCOUNT BADGE
           ============================================ */
    .product-card .discount-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #fff;
        padding: 6px 16px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.8rem;
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
        display: flex;
        align-items: center;
        gap: 4px;
        z-index: 2;
    }

        .product-card .discount-badge i {
            font-size: 0.7rem;
        }

    /* ============================================
           PRODUCT INFO
           ============================================ */
    .product-card .product-info {
        padding: 16px 18px 20px;
    }

        .product-card .product-info .product-name {
            font-weight: 700;
            font-size: 1rem;
            color: #003366;
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 28px;
        }

            .product-card .product-info .product-name a {
                color: #003366;
                text-decoration: none;
                transition: color 0.3s ease;
            }

                .product-card .product-info .product-name a:hover {
                    color: #F4B400;
                }

        .product-card .product-info .product-category {
            font-size: 0.75rem;
            color: #9ca3af;
            margin-bottom: 8px;
        }

            .product-card .product-info .product-category i {
                color: #F4B400;
                margin-left: 4px;
            }

        /* ============================================
           PRICE
           ============================================ */
        .product-card .product-info .price-section {
            margin: 8px 0 14px;
        }

        .product-card .product-info .price-old {
            font-size: 0.8rem;
            color: #9ca3af;
            text-decoration: line-through;
            display: inline-block;
        }

        .product-card .product-info .price-current {
            font-weight: 800;
            font-size: 1.1rem;
            color: #003366;
            display: block;
            margin-top: 2px;
        }

            .product-card .product-info .price-current .currency {
                font-weight: 400;
                font-size: 0.7rem;
                color: #9ca3af;
            }

    /* ============================================
           ADD TO CART BUTTON
           ============================================ */
    .product-card .btn-add-to-cart {
        width: 100%;
        padding: 12px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #003366, #0a4d8c);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
        font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
    }

        .product-card .btn-add-to-cart:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 51, 102, 0.25);
        }

        .product-card .btn-add-to-cart.added {
            background: linear-gradient(135deg, #24c06d, #1a9e58);
        }

    .product-card .btn-add-to-cart1 {
        width: 100%;
        padding: 12px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #003366, #0a4d8c);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
        font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
        text-decoration:none;
    }

        .product-card .btn-add-to-cart1:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(0, 51, 102, 0.25);
        }

        .product-card .btn-add-to-cart1.added {
            background: linear-gradient(135deg, #24c06d, #1a9e58);
        }

/* ============================================
           NO PRODUCTS
           ============================================ */
.empty-discounts {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

    .empty-discounts .empty-icon {
        font-size: 4rem;
        color: #e5e7eb;
        margin-bottom: 16px;
    }

    .empty-discounts h4 {
        font-weight: 700;
        color: #003366;
        margin-bottom: 6px;
    }

    .empty-discounts p {
        color: #9ca3af;
    }

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 768px) {
    .discount-header {
        padding: 30px 16px 24px;
    }

        .discount-header h1 {
            font-size: 1.5rem;
        }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .product-card .product-image {
        height: 170px;
    }

    .product-card .product-info {
        padding: 12px 14px 16px;
    }

        .product-card .product-info .product-name {
            font-size: 0.85rem;
            min-height: 24px;
        }

        .product-card .product-info .price-current {
            font-size: 0.95rem;
        }

    .product-card .btn-add-to-cart {
        font-size: 0.8rem;
        padding: 10px;
    }
    .product-card .btn-add-to-cart1 {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .discount-header h1 {
        font-size: 1.2rem;
    }

    .discount-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-card .product-image {
        height: 130px;
        padding: 10px;
    }

    .product-card .discount-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
        top: 8px;
        right: 8px;
    }

    .product-card .product-info {
        padding: 10px 10px 14px;
    }

        .product-card .product-info .product-name {
            font-size: 0.75rem;
            min-height: 20px;
        }

        .product-card .product-info .product-category {
            font-size: 0.65rem;
        }

        .product-card .product-info .price-old {
            font-size: 0.65rem;
        }

        .product-card .product-info .price-current {
            font-size: 0.8rem;
        }

    .product-card .btn-add-to-cart {
        font-size: 0.7rem;
        padding: 8px;
        border-radius: 8px;
    }
    .product-card .btn-add-to-cart1 {
        font-size: 0.7rem;
        padding: 8px;
        border-radius: 8px;
    }

    .empty-discounts .empty-icon {
        font-size: 2.5rem;
    }

    .empty-discounts h4 {
        font-size: 1rem;
    }
}

/* ============================================
           SCROLLBAR
           ============================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #F4B400;
    border-radius: 10px;
}
