/* ============================================
   LUXURY COSMETICS - OPTIMIZED CSS
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #F9F4EE;
    --warm-white: #FDF9F5;
    --blush: #E8C4B8;
    --rose: #C97D6E;
    --deep-rose: #8B4A3F;
    --bark: #3A2420;
    --gold: #C9A96E;
    --muted: #9A8880;
    --border: rgba(58, 36, 32, 0.1);
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Jost', sans-serif;
}

/*html {
    scroll-behavior: smooth;
}*/

body {

    background-image: url('../images/bg/public_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    
    /*background: var(--warm-white);
    color: var(--bark);
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;*/
}
/* فقط بک‌گراند رو کمرنگ میکنه، محتوا دست نمیخوره */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.96); /* ← این عدد رو کم و زیاد کن */
    z-index: 0;
    pointer-events: n
}
/* محتوا بالای اوورلی قرار میگیره */
body > * {
    position: relative;
    z-index: 1;
}
/* ============================================
   TYPOGRAPHY & UTILITIES
   ============================================ */

.section-label {
    font-family: 'Vazirmatn', 'IRANSans', 'Shabnam', sans-serif !important;
    color: #A67C2E !important;
    font-size: 1rem !important;  /* از 0.7rem به 0.9rem */
    font-weight: 500 !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A96E;
    background: rgba(201, 169, 110, 0.1);
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    width: fit-content;
    direction: rtl;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--bark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-title em {
    font-style: italic;
    color: var(--rose);
}

.btn-primary {
    background: linear-gradient(135deg, #C9A96E, #B8925A);
    color: #FFFFFF;
    padding: 0.85rem 2rem;
    font-family: 'Sahel', 'Tahoma', sans-serif !important;
    /*font-family: 'Estedad', 'Segoe UI', Tahoma, sans-serif !important;*/
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4AF37, #C9A96E);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s, gap 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-ghost:hover {
    opacity: 1;
    gap: 0.8rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    background: rgba(253, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--bark);
    text-decoration: none;
}

.nav-logo span {
    color: var(--rose);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bark);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions a {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bark);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-actions a:hover {
    opacity: 1;
}

.btn-cart {
    background: var(--bark);
    color: var(--warm-white) !important;
    opacity: 1 !important;
    padding: 0.6rem 1.4rem;
    border-radius: 0;
    letter-spacing: 0.2em;
    font-size: 0.7rem !important;
}

.btn-cart:hover {
    background: var(--deep-rose) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0; /* تغییر از -30px به 0 */
    /* یا اگر می‌خواهید کمی پایین‌تر باشد: */
    margin-top: 0px; /* مقدار مثبت برای پایین آوردن */
}

.hero-left {
    padding: 6rem 4rem 6rem 6rem;
    z-index: 2;
}

.hero-right {
    position: relative;
    background: var(--cream);
    overflow: hidden;
    
}


.hero-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bg/hero-bg.jpg');
    background-size: auto 80%;  /* ارتفاع 80% کادر، پهنای خودکار */
    background-position: center;
    background-repeat: no-repeat;
    
    background-color: var(--cream);
}

.hero-product-visual {
    position: relative;
    z-index: 1;
}

.hero-stat-1 {
    position: absolute;
    top: 15%;
    right: 8%;
    z-index: 20;
}

.hero-stat-2 {
    position: absolute;
    bottom: 15%;
    left: 8%;
    z-index: 20;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-left: 3px solid #D4AF37;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--bark);
}

.hero-title em {
    font-style: italic;
    color: var(--rose);
}

.hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--muted);
    max-width: 380px;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}





.hero-circles {
    position: relative;
    width: 400px;
    height: 400px;
}

.circle-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(201, 125, 110, 0.2);
    animation: spin-slow 20s linear infinite;
}

.circle-mid {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border: 1px solid rgba(201, 125, 110, 0.3);
    animation: spin-slow 15s linear infinite reverse;
}

.circle-inner {
    position: absolute;
    inset: 100px;
    border-radius: 50%;
    background: rgba(232, 196, 184, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    font-family: var(--serif);
    font-size: 5rem;
    color: var(--rose);
    font-style: italic;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



.stat-num {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--bark);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee-bar {
    background: var(--bark);
    padding: 0.85rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-inner span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(249, 244, 238, 0.6);
    margin: 0 2.5rem;
}

.marquee-inner span.dot {
    color: var(--gold);
    margin: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   PRODUCT GRID (بهینه شده بدون تداخل)
   ============================================ */


/* ========================================
           گرید محصولات
           ======================================== */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 25px;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* ========================================
           کارت محصول - لوکس روشن
           ======================================== */
        .product-card {
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(212, 175, 55, 0.1);
            transition: all 0.4s ease;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-6px);
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.1),
                0 0 0 2px rgba(212, 175, 55, 0.2);
        }

        /* ========================================
           لینک محصول
           ======================================== */
        .product-link {
            display: block;
            text-decoration: none;
        }

        /* ========================================
           تصویر محصول
           ======================================== */
        .product-image {
            position: relative;
            overflow: hidden;
            aspect-ratio: 1 / 1;
            background: #f8f5f2;
        }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .product-card:hover .product-image img {
            transform: scale(1.05);
        }

        /* ========================================
           حاشیه طلایی زیر تصویر
           ======================================== */
        .product-image::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #d4af37, transparent);
            opacity: 0.3;
        }

        /* ========================================
           نشان Exclusive روی تصویر
           ======================================== */
        .product-badge {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            padding: 4px 12px;
            border-radius: 50px;
            border: 1px solid rgba(212, 175, 55, 0.2);
            font-family: 'Montserrat', sans-serif;
            font-size: 9px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #b8962f;
        }

        .product-badge-icon {
            font-size: 7px;
            opacity: 0.6;
        }

        /* ========================================
           اطلاعات محصول
           ======================================== */
        .product-info {
            padding: 20px 24px 16px;
            text-align: right;
            direction: rtl;
        }

        /* ========================================
           نام محصول
           ======================================== */
        .product-name {
            font-family: 'Playfair Display', serif;
            font-size: 18px;
            font-weight: 600;
            color: #2c241c;
            margin: 0 0 10px 0;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: color 0.3s ease;
        }

        .product-card:hover .product-name {
            color: #b8962f;
        }

        /* ========================================
           قیمت
           ======================================== */
        .final-price {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            direction: rtl;
        }

        .currency {
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 300;
            color: #999;
            letter-spacing: 1px;
        }

        .price-val {
            font-family: 'Montserrat', sans-serif;
            font-size: 20px;
            font-weight: 600;
            color: #b8962f;
            letter-spacing: 1px;
        }

        /* ========================================
           دکمه اقدامات
           ======================================== */
        .product-actions {
            padding: 0 24px 20px;
        }

        .btn-primary {
            width: 100%;
            padding: 12px 20px;
            background: transparent;
            border: 1px solid rgba(184, 150, 47, 0.2);
            border-radius: 12px;
            color: #2c241c;
            font-family: 'Montserrat', sans-serif;
            font-size: 12px;
            font-weight: 400;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            background: #d4af37;
            border-color: #d4af37;
            color: #ffffff;
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
        }

        .btn-primary:active {
            transform: scale(0.97);
        }

        /* ========================================
           گوشه‌های طلایی (تزئینی)
           ======================================== */
        .product-corner {
            position: absolute;
            width: 20px;
            height: 20px;
            z-index: 3;
            pointer-events: none;
            opacity: 0.2;
            transition: all 0.4s ease;
        }

        .product-card:hover .product-corner {
            opacity: 0.6;
        }

        .product-corner-tl {
            top: 12px;
            left: 12px;
            border-top: 1.5px solid #d4af37;
            border-left: 1.5px solid #d4af37;
        }

        .product-corner-tr {
            top: 12px;
            right: 12px;
            border-top: 1.5px solid #d4af37;
            border-right: 1.5px solid #d4af37;
        }

        .product-corner-bl {
            bottom: 12px;
            left: 12px;
            border-bottom: 1.5px solid #d4af37;
            border-left: 1.5px solid #d4af37;
        }

        .product-corner-br {
            bottom: 12px;
            right: 12px;
            border-bottom: 1.5px solid #d4af37;
            border-right: 1.5px solid #d4af37;
        }

        /* ========================================
           ریسپانسیو
           ======================================== */
        @media (max-width: 1200px) {
            .product-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
                padding: 10px;
            }

            .product-name {
                font-size: 15px;
            }

            .price-val {
                font-size: 17px;
            }

            .product-info {
                padding: 14px 16px 10px;
            }

            .product-actions {
                padding: 0 16px 16px;
            }

            .btn-primary {
                font-size: 10px;
                padding: 10px 16px;
            }

            .product-badge {
                font-size: 7px;
                padding: 3px 8px;
                top: 10px;
                right: 10px;
            }
        }

        @media (max-width: 480px) {
            .product-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                padding: 5px;
            }

            .product-name {
                font-size: 13px;
            }

            .price-val {
                font-size: 15px;
            }

            .product-info {
                padding: 10px 12px 8px;
            }

            .product-actions {
                padding: 0 12px 12px;
            }

            .btn-primary {
                font-size: 9px;
                padding: 8px 10px;
                border-radius: 8px;
            }

            .product-corner {
                width: 14px;
                height: 14px;
            }

            .product-corner-tl,
            .product-corner-tr,
            .product-corner-bl,
            .product-corner-br {
                border-width: 1px;
            }
        }
/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px auto 60px;
    padding: 0 20px;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
}

.page-btn {
    padding: 8px 14px;
    min-width: 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--bark);
    font-size: 0.85rem;
    transition: all 0.2s;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: var(--cream);
    border-color: var(--rose);
}

.page-btn.active {
    background: var(--bark);
    color: #fff;
    border-color: var(--bark);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-dots {
    padding: 8px 5px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */

.philosophy {
    background: var(--bark);
    color: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding: 8rem 6rem;
}

.philosophy .section-label {
    color: var(--gold);
}

.philosophy .section-title {
    color: var(--cream);
}

.philosophy .section-title em {
    color: var(--blush);
}

.philosophy-text {
    font-size: 1rem;
    line-height: 2;
    color: rgba(249, 244, 238, 0.65);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.philosophy-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.philosophy-link:hover {
    gap: 0.8rem;
}

.philosophy-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.pillar {
    background: rgba(249, 244, 238, 0.04);
    padding: 2rem;
    border-top: 1px solid rgba(249, 244, 238, 0.08);
}

.pillar-icon {
    font-family: var(--serif);
    font-size: 2rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.pillar-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.pillar-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(249, 244, 238, 0.5);
}

/* ============================================
   COLLECTIONS
   ============================================ */

        /* ========================================
           ریست اولیه
           ======================================== */
        /** {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #0a0808;
            font-family: 'Montserrat', sans-serif;
            padding: 20px;
        }*/

        /* ========================================
           گرید ۴ ستونه
           ======================================== */
        .collections-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 2rem 2rem;
            max-width: 1500px;
            margin: 0 auto;
        }

        /* ========================================
           آیتم کلکسیون (همان collection-item)
           ======================================== */
        .collection-item {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            display: block;
            text-decoration: none;
            aspect-ratio: 1 / 1;
            border-radius: 20px;
            background: #0a0808;
            box-shadow: 
                0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(212, 175, 55, 0.1),
                inset 0 0 60px rgba(212, 175, 55, 0.03);
            transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .collection-item:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 
                0 50px 120px rgba(0, 0, 0, 0.9),
                0 0 0 2px rgba(212, 175, 55, 0.3),
                0 0 80px rgba(212, 175, 55, 0.06);
            z-index: 10;
        }

        /* ========================================
           تصویر پس‌زمینه (collection-bg)
           ======================================== */
        .collection-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
        }

        .collection-item:hover .collection-bg {
            transform: scale(1.12);
        }

        /* ========================================
           لایه دودی لوکس
           ======================================== */
        .collection-overlay {
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(ellipse at 30% 80%, rgba(0,0,0,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(0,0,0,0.1) 0%, transparent 50%),
                linear-gradient(180deg, 
                    rgba(10, 8, 8, 0.2) 55%,
                    rgba(10, 8, 8, 0.5) 70%,
                    rgba(10, 8, 8, 0.85) 85%,
                    rgba(10, 8, 8, 0.95) 100%
                );
            z-index: 1;
        }

        /* ========================================
           افکت براقیت
           ======================================== */
        .luxury-shimmer {
            position: absolute;
            inset: 0;
            z-index: 2;
            background: linear-gradient(
                105deg,
                transparent 40%,
                rgba(212, 175, 55, 0.04) 45%,
                rgba(255, 215, 0, 0.08) 50%,
                rgba(212, 175, 55, 0.04) 55%,
                transparent 60%
            );
            background-size: 300% 100%;
            animation: luxuryShimmer 8s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes luxuryShimmer {
            0% { background-position: 300% center; }
            100% { background-position: -300% center; }
        }

        /* ========================================
           قاب طلایی دور کارت
           ======================================== */
        .luxury-frame {
            position: absolute;
            inset: 12px;
            border: 1px solid rgba(212, 175, 55, 0.08);
            border-radius: 14px;
            z-index: 3;
            pointer-events: none;
            transition: all 0.6s ease;
        }

        .collection-item:hover .luxury-frame {
            border-color: rgba(212, 175, 55, 0.3);
            inset: 8px;
        }

        /* ========================================
           گوشه‌های طلایی
           ======================================== */
        .luxury-corner {
            position: absolute;
            width: 30px;
            height: 30px;
            z-index: 4;
            pointer-events: none;
            opacity: 0.5;
            transition: all 0.6s ease;
        }

        .luxury-corner::before {
            content: '';
            position: absolute;
            background: #d4af37;
        }

        .collection-item:hover .luxury-corner {
            opacity: 1;
        }

        /* گوشه بالا-چپ */
        .luxury-corner-tl {
            top: 16px;
            left: 16px;
            border-top: 2px solid #d4af37;
            border-left: 2px solid #d4af37;
        }
        .luxury-corner-tl::before {
            top: -2px;
            left: -2px;
            width: 8px;
            height: 8px;
            background: radial-gradient(circle, #d4af37, transparent);
            border-radius: 50%;
        }

        /* گوشه بالا-راست */
        .luxury-corner-tr {
            top: 16px;
            right: 16px;
            border-top: 2px solid #d4af37;
            border-right: 2px solid #d4af37;
        }
        .luxury-corner-tr::before {
            top: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            background: radial-gradient(circle, #d4af37, transparent);
            border-radius: 50%;
        }

        /* گوشه پایین-چپ */
        .luxury-corner-bl {
            bottom: 16px;
            left: 16px;
            border-bottom: 2px solid #d4af37;
            border-left: 2px solid #d4af37;
        }
        .luxury-corner-bl::before {
            bottom: -2px;
            left: -2px;
            width: 8px;
            height: 8px;
            background: radial-gradient(circle, #d4af37, transparent);
            border-radius: 50%;
        }

        /* گوشه پایین-راست */
        .luxury-corner-br {
            bottom: 16px;
            right: 16px;
            border-bottom: 2px solid #d4af37;
            border-right: 2px solid #d4af37;
        }
        .luxury-corner-br::before {
            bottom: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            background: radial-gradient(circle, #d4af37, transparent);
            border-radius: 50%;
        }

        /* ========================================
           نشان اختصاصی
           ======================================== */
        .luxury-badge {
            position: absolute;
            top: 24px;
            right: 24px;
            z-index: 5;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(10, 8, 8, 0.6);
            backdrop-filter: blur(12px);
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid rgba(212, 175, 55, 0.2);
            font-family: 'Montserrat', sans-serif;
            font-size: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #d4af37;
            transition: all 0.4s ease;
        }

        .collection-item:hover .luxury-badge {
            background: rgba(212, 175, 55, 0.15);
            border-color: rgba(212, 175, 55, 0.4);
            box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
        }

        .luxury-badge-icon {
            font-size: 8px;
            opacity: 0.6;
        }

        /* ========================================
           محتوای پایین
           ======================================== */
        .collection-label {
            position: absolute;
            bottom: 10px;
            right: 32px;
            left: 32px;
            z-index: 5;
            text-align: right;
            direction: rtl;
        }

        /* ========================================
           خط جداکننده با الماس
           ======================================== */
        .luxury-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            opacity: 0.6;
        }

        .luxury-divider-line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
        }

        .luxury-divider-diamond {
            color: #d4af37;
            font-size: 14px;
            animation: luxuryDiamondPulse 3s ease-in-out infinite;
        }

        @keyframes luxuryDiamondPulse {
            0%, 100% { opacity: 0.4; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.3); }
        }

        /* ========================================
           دسته‌بندی (collection-cat)
           ======================================== */
        .collection-cat {
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 300;
            letter-spacing: 5px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.3);
            margin: 0 0 4px 0;
        }

        /* ========================================
           عنوان اصلی (collection-name)
           ======================================== */
        .collection-name {
            font-size: 20px;
    font-family: 'Playfair Display', serif;
    
    color: #ffffff;
    margin: 30px 0 0 0;        /* ← margin-top: 30px */
    padding: 0 15px;
    line-height: 1.3;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    
    font-size: clamp(20px, 2.5vw, 28px);
    margin-top: auto;
}

        .collection-name::after {
            content: '';
            position: absolute;
            bottom: -4px;
            right: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, #d4af37);
            transition: width 0.6s ease;
        }

        .collection-item:hover .collection-name::after {
            width: 100%;
        }

        .collection-item:hover .collection-name {
            color: #d4af37;
            transform: translateX(-6px);
        }

        /* ========================================
           توضیحات زیر عنوان (اختیاری)
           ======================================== */
        .collection-sub {
            font-family: 'Montserrat', sans-serif;
            font-size: 13px;
            font-weight: 200;
            color: rgba(255, 255, 255, 0.3);
            letter-spacing: 2px;
            margin: 6px 0 0 0;
            font-style: italic;
        }

        /* ========================================
           دکمه CTA (اختیاری داخل label)
           ======================================== */
        .luxury-cta {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 400;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.3);
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.4s ease;
            cursor: pointer;
            margin-top: 12px;
        }

        .collection-item:hover .luxury-cta {
            color: #d4af37;
            border-bottom-color: rgba(212, 175, 55, 0.3);
            gap: 16px;
        }

        .luxury-cta-arrow {
            display: inline-block;
            transition: transform 0.4s ease;
            font-size: 14px;
        }

        .collection-item:hover .luxury-cta-arrow {
            transform: translateX(-6px);
        }

        /* ========================================
           ریسپانسیو
           ======================================== */
        @media (max-width: 1200px) {
            .collections-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
                padding: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .collections-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                padding: 1rem;
            }
            
            .collection-name {
                font-size: 28px;
            }
            
            .collection-label {
                bottom: 24px;
                right: 20px;
                left: 20px;
            }
            
            .luxury-corner {
                width: 20px;
                height: 20px;
            }
            
            .luxury-corner-tl,
            .luxury-corner-tr,
            .luxury-corner-bl,
            .luxury-corner-br {
                border-width: 1.5px;
            }

            .luxury-badge {
                top: 16px;
                right: 16px;
                font-size: 8px;
                padding: 4px 10px;
            }
        }

        @media (max-width: 480px) {
            .collections-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0.5rem;
            }
            
            .collection-name {
                font-size: 36px;
            }
        }

/* ============================================
   REVIEWS SECTION
   ============================================ */

.bestsellers {
    background: var(--cream);
    padding: 8rem 6rem;
}

.bestsellers-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    padding: 2.5rem;
    background: var(--warm-white);
    border-bottom: 2px solid var(--blush);
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.star {
    width: 12px;
    height: 12px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.review-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--bark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.review-author {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============================================
   EMAIL SECTION
   ============================================ */

.email-section {
    background: var(--blush);
    padding: 6rem;
    text-align: center;
}

.email-section .section-title {
    color: var(--bark);
}

.email-sub {
    font-size: 0.95rem;
    color: var(--deep-rose);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.email-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--deep-rose);
    border-right: none;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--bark);
    outline: none;
    letter-spacing: 0.02em;
}

.email-input::placeholder {
    color: var(--rose);
    opacity: 0.6;
}

.email-btn {
    background: var(--bark);
    color: var(--warm-white);
    border: 1px solid var(--bark);
    padding: 1rem 2rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.email-btn:hover {
    background: var(--deep-rose);
    border-color: var(--deep-rose);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bark);
    color: var(--cream);
    padding: 5rem 6rem 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(249, 244, 238, 0.1);
}

.footer-brand-name {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    color: var(--cream);
}

.footer-brand-name span {
    color: var(--gold);
    font-style: italic;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(249, 244, 238, 0.45);
    max-width: 260px;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(249, 244, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(249, 244, 238, 0.5);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-col-title {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(249, 244, 238, 0.4);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(249, 244, 238, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cream);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(249, 244, 238, 0.3);
    letter-spacing: 0.05em;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-size: 0.7rem;
    color: rgba(249, 244, 238, 0.3);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: rgba(249, 244, 238, 0.7);
}

/* ============================================
   PRODUCT DETAILS - لاکچری فارسی
   ============================================ */

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FDFBF9 0%, #F9F5F0 100%);
    
}

.product-features {
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', 'IRANSans', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #F5EFE6 100%);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 15px 0;
    border-right: 4px solid #c9a96e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
    color: #2c3e50;
    font-size: 14px;
    width: 100% !important;
    max-width: 1000px !important; /* افزایش عرض */
    display: block !important;
    box-sizing: border-box !important;
}
/* ========== گالری تصویر ========== */
.product-gallery {
    position: relative;
    background: linear-gradient(145deg, #F5EDE5, #EDE3D8);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-gallery:hover img {
    transform: scale(1.03);
}

/* ========== محتوای محصول ========== */
.product-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 1rem 0;
    direction: rtl;
    width: 100%;
    max-width: 1200px; /* افزایش حداکثر عرض */
    margin: 0 auto;
}

/* دسته‌بندی */
.section-label {
    font-family: 'Vazirmatn', 'IRANSans', 'Shabnam', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A96E;
    background: rgba(201, 169, 110, 0.1);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    width: fit-content;
    direction: rtl;
}

/* عنوان محصول */
.section-title {
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #3D2B1F;
    line-height: 1.3;
    margin: 0.5rem 0;
    direction: rtl;
}

/* قیمت */
.product-price-large {
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #C9A96E;
    background: linear-gradient(135deg, #C9A96E, #B8925A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(201, 169, 110, 0.2);
    display: inline-block;
    direction: ltr;
}

/* توضیحات */
.product-description {
    font-family: 'Vazirmatn', 'IRANSans', 'Shabnam', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
    color: #5C4B3A;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 20px;
    border-right: 3px solid #C9A96E;
    margin: 1rem 0;
    direction: rtl;
    text-align: justify;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 2rem;
    }
    
    .product-content {
        text-align: center;
        align-items: center;
    }
    
    .section-label {
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .product-description {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .product-details {
        padding: 1.5rem;
        gap: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-price-large {
        font-size: 1.4rem;
    }
    
    .product-description {
        font-size: 0.85rem;
        padding: 1rem;
    }
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding: 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FDFBF9 0%, #F9F5F0 100%);
    
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    text-decoration: none;
    color: #888;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    margin: 0;
    font-size: 28px;
}

.category-header p {
    color: #777;
}

/* ============================================
   SEARCH MODAL
   ============================================ */

#search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

#search-modal > div {
    background: white;
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 600px;
}

#search-modal form {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 5px 15px;
    transition: box-shadow 0.2s;
}

#search-modal input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    font-size: 16px;
    outline: none;
    font-family: var(--sans);
}

#close-search {
    color: #70757a;
    font-size: 22px;
    cursor: pointer;
    padding: 0 10px;
    user-select: none;
}

#search-modal button[type="submit"] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #4285f4;
    font-weight: bold;
}
/* ============================================
   CART
   ============================================ */
/* ========== استایل‌های صفحه سبد خرید (cart.php) ========== */

.cart-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    direction: rtl;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cart-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cart-table thead {
    background: linear-gradient(135deg, #c9a96e, #b8945a);
    color: white;
}

.cart-table th {
    padding: 15px;
    font-weight: 500;
    font-size: 1rem;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-name {
    font-weight: 500;
    color: #2c3e50;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    border-color: #c9a96e;
}

.price {
    color: #c9a96e;
    font-weight: 600;
    font-size: 1.1rem;
}

.subtotal {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.cart-summary {
    margin-top: 30px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.1rem;
}

.cart-summary-row.total {
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #c9a96e;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.btn-continue {
    background: none;
    border: 2px solid #c9a96e;
    color: #c9a96e;
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-continue:hover {
    background: #c9a96e;
    color: white;
}

.btn-checkout {
    background: #c9a96e;
    border: none;
    color: white;
    padding: 12px 40px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: #b8945a;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.empty-cart h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.btn-shop {
    background: #c9a96e;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
}

/* ======================================================
   CART
   ===================================================== */
/* ========== استایل صفحه جستجو (search.php) ========== */

        /* استایل مخصوص جستجو */
        .search-header {
            text-align: center;
            margin: 40px 0;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 12px;
        }
        
        .search-term {
            font-size: 24px;
            font-weight: 500;
            color: #2c2c2c;
            margin: 10px 0;
        }
        
        .search-term-highlight {
            direction: rtl;
            background: #fff3cd;
            padding: 5px 12px;
            border-radius: 20px;
            display: inline-block;
        }
        
        .search-form-container {
            max-width: 600px;
            margin: 20px auto 0;
        }
        
        .search-form {
            display: flex;
            align-items: center;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            padding: 5px 15px;
            background: white;
            transition: all 0.3s ease;
        }
        
        .search-form:focus-within {
            border-color: #8b7355;
            box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
        }
        
        .search-form input {
            flex: 1;
            border: none;
            padding: 12px;
            font-size: 16px;
            outline: none;
            font-family: 'Jost', sans-serif;
            background: transparent;
        }
        
        .search-form button {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 8px 15px;
            color: #8b7355;
            font-weight: 500;
            font-family: 'Jost', sans-serif;
            font-size: 16px;
        }
        
        .search-form button:hover {
            color: #5c4b3a;
        }
        
        .clear-search {
            color: #999;
            cursor: pointer;
            font-size: 24px;
            padding: 0 10px;
            transition: color 0.2s;
        }
        
        .clear-search:hover {
            color: #333;
        }
        
        .no-results {
            text-align: center;
            padding: 60px 20px;
            background: #fafafa;
            border-radius: 12px;
            margin: 40px 0;
        }
        
        .no-results-icon {
            font-size: 64px;
            margin-bottom: 20px;
        }
        
        .suggestion-text {
            margin-top: 15px;
            color: #666;
        }
        
        .result-count-badge {
            background: #8b7355;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 14px;
            display: inline-block;
            margin-right: 10px;
            direction: rtl;
        }
/* ========== ریسپانسیو برای موبایل ========== */
/* ============================================= */
@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 15px;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #2c3e50;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-continue, .btn-checkout {
        text-align: center;
    }
}
/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 40px 4rem;
    }
    
    .collections-grid {
        padding: 4rem;
    }
}

@media (max-width: 992px) {
    nav {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-left {
        padding: 4rem 2rem;
    }
    
    .philosophy {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 3rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 2rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 4rem 2rem;
    }
    
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-input {
        border-right: 1px solid var(--deep-rose);
        margin-bottom: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* ============================================
   NEW RESPONSIVE FIXES (اضافه شده بدون تغییر استایل)
   ============================================ */

/* ============================================
   EMAIL SECTION - ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .email-section {
        padding: 4rem 2rem;
    }

    .email-form {
        flex-direction: column;
        max-width: 100%;
        padding: 0 1rem;
    }

    .email-input {
        border-right: 1px solid var(--deep-rose);
        border-bottom: none;
        margin-bottom: 0;
        border-radius: 8px 8px 0 0;
        width: 100%;
        padding: 1rem 1.5rem;
        padding-left: 45px;
        background-position: 12px center !important;
    }

    .email-btn {
        border-radius: 0 0 8px 8px;
        width: 100%;
        padding: 1rem;
        font-size: 0.8rem;
    }

    .email-sub {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .email-section {
        padding: 3rem 1rem;
    }

    .email-section .section-title {
        font-size: 1.8rem;
    }

    .email-input {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
        padding-left: 40px;
        background-size: 18px !important;
        background-position: 10px center !important;
    }

    .email-btn {
        font-size: 0.7rem;
        padding: 0.8rem;
    }
}

/* ============================================
   HERO SECTION - ریسپانسیو کامل
   ============================================ */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .hero-left {
        padding: 3rem 2rem;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-right {
        min-height: 400px;
    }

    .hero-bg-shape {
        background-size: cover;
        background-position: center;
    }

    .hero-stat-1 {
        top: 10%;
        right: 5%;
    }

    .hero-stat-2 {
        bottom: 10%;
        left: 5%;
    }

    .hero-stat {
        padding: 0.6rem 1.2rem;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .hero-circles {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .circle-inner .product-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .hero-left {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-right {
        min-height: 300px;
    }

    .hero-stat-1 {
        top: 5%;
        right: 3%;
    }

    .hero-stat-2 {
        bottom: 5%;
        left: 3%;
    }

    .hero-stat {
        padding: 0.4rem 0.8rem;
    }

    .stat-num {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .hero-circles {
        width: 200px;
        height: 200px;
    }

    .circle-mid {
        inset: 20px;
    }

    .circle-inner {
        inset: 50px;
    }

    .circle-inner .product-icon {
        font-size: 2.5rem;
    }
}

/* ============================================
   PHILOSOPHY SECTION - ریسپانسیو بهتر
   ============================================ */
@media (max-width: 768px) {
    .philosophy {
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .philosophy-text {
        font-size: 0.9rem;
    }

    .philosophy-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }

    .pillar {
        padding: 1.5rem;
    }

    .pillar-icon {
        font-size: 1.5rem;
    }

    .pillar-title {
        font-size: 0.6rem;
    }

    .pillar-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .philosophy {
        padding: 2rem 1rem;
    }

    .philosophy-pillars {
        grid-template-columns: 1fr;
    }

    .pillar {
        padding: 1.2rem;
    }
}

/* ============================================
   CATEGORY DETAILS - ریسپانسیو
   ============================================ */
@media (max-width: 992px) {
    .category-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 3rem 2rem;
    }
}

@media (max-width: 576px) {
    .category-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 2rem 1rem;
    }
}

/* ============================================
   SEARCH HEADER & FORM - ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .search-header {
        margin: 20px 0;
        padding: 15px;
    }

    .search-term {
        font-size: 20px;
    }

    .search-form-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .search-form {
        border-radius: 30px;
        padding: 3px 10px;
    }

    .search-form input {
        font-size: 14px;
        padding: 10px;
    }

    .search-form button {
        font-size: 14px;
        padding: 5px 10px;
    }

    .clear-search {
        font-size: 20px;
    }

    .result-count-badge {
        font-size: 12px;
        padding: 3px 10px;
    }

    .no-results {
        padding: 40px 15px;
    }

    .no-results-icon {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .search-header {
        margin: 10px 0;
        padding: 10px;
    }

    .search-term {
        font-size: 17px;
    }

    .search-form {
        border-radius: 25px;
        padding: 2px 8px;
    }

    .search-form input {
        font-size: 13px;
        padding: 8px;
    }

    .search-form button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .clear-search {
        font-size: 18px;
    }
}

/* ============================================
   NAVIGATION - بهبود ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-actions a {
        font-size: 0.65rem;
    }

    .btn-cart {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem !important;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0.8rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions a {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .btn-cart {
        padding: 0.3rem 0.6rem;
        font-size: 0.5rem !important;
    }
}

/* ========================================
   ریست و بک‌گراند
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {
    background-image: url('../images/bg/public_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px;
    position: relative;
}*/

/* اوورلی کمرنگ */
/*body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 248, 242, 0.75);
    z-index: 0;
    pointer-events: none;
}*/

body > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   کانتینر اصلی checkout
   ======================================== */
.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.08);
}

/* ========================================
   هدر فرم
   ======================================== */
.checkout-header {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 10px;
}

.checkout-header .step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.step-item .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0ebe6;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active .step-num {
    background: #d4af37;
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.step-item.active {
    color: #2c241c;
}

.step-item .step-line {
    width: 40px;
    height: 1px;
    background: #e0d6cc;
}

.checkout-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #2c241c;
    font-weight: 700;
}

.checkout-header p {
    color: #999;
    font-size: 14px;
    margin-top: 8px;
}

/* ========================================
   فرم سمت راست
   ======================================== */
.checkout-form {
    padding-left: 10px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #2c241c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title .icon {
    color: #d4af37;
    font-size: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a3f36;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #d4af37;
    margin-right: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e8e0d8;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #2c241c;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

.form-control::placeholder {
    color: #bbb;
}

.form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08);
}

.form-control.success {
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.08);
}

.form-hint {
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   سبد خرید - سمت چپ
   ======================================== */
.checkout-summary {
    background: #faf8f6;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.06);
    height: fit-content;
    position: sticky;
    top: 40px;
}

.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #2c241c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-title span {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #999;
    font-weight: 300;
}

.summary-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f0ebe6;
    flex-shrink: 0;
    overflow: hidden;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c241c;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary-item-meta {
    font-size: 12px;
    color: #999;
}

.summary-item-price {
    font-weight: 600;
    color: #d4af37;
    font-size: 15px;
    text-align: left;
}

.summary-item .item-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.summary-item .item-qty button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e0d6cc;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.summary-item .item-qty button:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}

/* ========================================
   جمع کل
   ======================================== */
.summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #666;
}

.total-row.total {
    font-size: 18px;
    font-weight: 600;
    color: #2c241c;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.total-row.total .price {
    color: #d4af37;
    font-size: 22px;
}

/* ========================================
   دکمه‌ها
   ======================================== */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: #d4af37;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #b8962f;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-back {
    display: inline-block;
    padding: 12px 25px;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    margin-top: 10px;
}

.btn-back:hover {
    color: #d4af37;
}

/* ========================================
   پرداخت
   ======================================== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.payment-method {
    padding: 14px 10px;
    border: 2px solid #e8e0d8;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    color: #666;
}

.payment-method:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.04);
}

.payment-method.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    color: #2c241c;
}

.payment-method .pm-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

/* ========================================
   ریسپانسیو
   ======================================== */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-form {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .checkout-container {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .checkout-header h1 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-item .step-line {
        width: 20px;
    }

    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }

    .summary-item-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 16px 12px;
    }

    .checkout-header .step-indicator {
        gap: 8px;
    }

    .step-item {
        font-size: 10px;
    }

    .step-item .step-num {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE OPTIMIZED FOR MOBILE & TABLET
   ============================================ */

/* ===== TABLET (768px - 992px) ===== */
@media (max-width: 992px) {
    /* Navigation */
    nav {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-left {
        padding: 4rem 2rem;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-right {
        min-height: 400px;
    }

    .hero-bg-shape {
        background-size: cover;
        background-position: center;
    }

    .hero-stat-1 {
        top: 10%;
        right: 5%;
    }

    .hero-stat-2 {
        bottom: 10%;
        left: 5%;
    }

    .hero-stat {
        padding: 0.6rem 1.2rem;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .hero-circles {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .circle-inner .product-icon {
        font-size: 3.5rem;
    }

    /* Philosophy */
    .philosophy {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 3rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 2rem;
    }

    /* Collections */
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Sections */
    section {
        padding: 4rem 2rem;
    }

    /* Product Details */
    .product-details {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 2rem;
    }

    /* Category */
    .category-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 3rem 2rem;
    }

    /* Checkout */
    .checkout-container {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-form {
        padding-left: 0;
    }
}

/* ===== MOBILE LARGE (576px - 768px) ===== */
@media (max-width: 768px) {
    /* --- Navigation --- */
    nav {
        padding: 0.8rem 1.2rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-actions a {
        font-size: 0.65rem;
    }

    .btn-cart {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem !important;
    }

    /* --- Hero --- */
    .hero-left {
        padding: 3rem 1.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-right {
        min-height: 350px;
    }

    .hero-stat {
        padding: 0.5rem 1rem;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    /* --- Product Grid --- */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }

    .product-name {
        font-size: 15px;
    }

    .price-val {
        font-size: 17px;
    }

    .product-info {
        padding: 14px 16px 10px;
    }

    .product-actions {
        padding: 0 16px 16px;
    }

    .btn-primary {
        font-size: 10px;
        padding: 10px 16px;
    }

    .product-badge {
        font-size: 7px;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }

    /* --- Collections --- */
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 1rem;
    }

    .collection-name {
        font-size: 18px !important;
        margin-top: 20px !important;
    }

    .collection-label {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .collection-cat {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .luxury-corner {
        width: 20px;
        height: 20px;
    }

    .luxury-corner-tl,
    .luxury-corner-tr,
    .luxury-corner-bl,
    .luxury-corner-br {
        border-width: 1.5px;
    }

    .luxury-badge {
        top: 14px;
        right: 14px;
        font-size: 8px;
        padding: 4px 10px;
    }

    /* --- Philosophy --- */
    .philosophy {
        padding: 3rem 1.5rem;
        gap: 2rem;
    }

    .philosophy-text {
        font-size: 0.9rem;
    }

    .philosophy-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }

    .pillar {
        padding: 1.5rem;
    }

    .pillar-icon {
        font-size: 1.5rem;
    }

    .pillar-title {
        font-size: 0.6rem;
    }

    .pillar-text {
        font-size: 0.75rem;
    }

    /* --- Cart --- */
    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 15px;
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #2c3e50;
    }

    .cart-actions {
        flex-direction: column;
    }

    .btn-continue,
    .btn-checkout {
        text-align: center;
        width: 100%;
    }

    /* --- Email Section --- */
    .email-section {
        padding: 4rem 2rem;
    }

    .email-form {
        flex-direction: column;
        max-width: 100%;
        padding: 0 1rem;
    }

    .email-input {
        border-right: 1px solid var(--deep-rose);
        border-bottom: none;
        margin-bottom: 0;
        border-radius: 8px 8px 0 0;
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .email-btn {
        border-radius: 0 0 8px 8px;
        width: 100%;
        padding: 1rem;
        font-size: 0.8rem;
    }

    .email-sub {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

    /* --- Pagination --- */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 10px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 35px;
    }

    /* --- Footer --- */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* --- Search --- */
    .search-header {
        margin: 20px 0;
        padding: 15px;
    }

    .search-term {
        font-size: 20px;
    }

    .search-form-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .search-form {
        border-radius: 30px;
        padding: 3px 10px;
    }

    .search-form input {
        font-size: 14px;
        padding: 10px;
    }

    .search-form button {
        font-size: 14px;
        padding: 5px 10px;
    }

    .clear-search {
        font-size: 20px;
    }

    .result-count-badge {
        font-size: 12px;
        padding: 3px 10px;
    }

    .no-results {
        padding: 40px 15px;
    }

    .no-results-icon {
        font-size: 48px;
    }

    /* --- Checkout --- */
    .checkout-container {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .checkout-header h1 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-item .step-line {
        width: 20px;
    }

    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }

    .summary-item-image {
        width: 50px;
        height: 50px;
    }
}

/* ===== MOBILE SMALL (320px - 576px) ===== */
@media (max-width: 576px) {
    /* --- General --- */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 10px;
    }

    .product-name {
        font-size: 13px;
    }

    .price-val {
        font-size: 15px;
    }

    .product-info {
        padding: 10px 12px 8px;
    }

    .product-actions {
        padding: 0 12px 12px;
    }

    .btn-primary {
        font-size: 9px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .product-corner {
        width: 14px;
        height: 14px;
    }

    .product-corner-tl,
    .product-corner-tr,
    .product-corner-bl,
    .product-corner-br {
        border-width: 1px;
    }

    /* --- Hero --- */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .hero-stat-1,
    .hero-stat-2 {
        display: none;
    }

    /* --- Collections --- */
    .collections-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0.5rem;
    }

    .collection-name {
        font-size: 15px !important;
        margin-top: 15px !important;
        padding: 0 8px;
    }

    .collection-label {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .collection-cat {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .luxury-badge {
        top: 10px;
        right: 10px;
        font-size: 7px;
        padding: 3px 8px;
    }

    .luxury-corner {
        width: 14px;
        height: 14px;
    }

    .luxury-corner-tl,
    .luxury-corner-tr,
    .luxury-corner-bl,
    .luxury-corner-br {
        border-width: 1px;
    }

    .luxury-frame {
        inset: 8px;
        border-width: 0.5px;
    }

    /* --- Product Details --- */
    .product-details {
        padding: 1.5rem;
        gap: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-price-large {
        font-size: 1.4rem;
    }

    .product-description {
        font-size: 0.85rem;
        padding: 1rem;
    }

    /* --- Category --- */
    .category-details {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 2rem 1rem;
    }

    /* --- Cart --- */
    .cart-container {
        padding: 0 10px;
        margin: 20px auto;
    }

    .cart-header h1 {
        font-size: 1.8rem;
    }

    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cart-product-image {
        width: 50px;
        height: 50px;
    }

    .quantity-input {
        width: 50px;
        padding: 6px;
    }

    /* --- Email --- */
    .email-section {
        padding: 3rem 1rem;
    }

    .email-section .section-title {
        font-size: 1.8rem;
    }

    .email-input {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .email-btn {
        font-size: 0.7rem;
        padding: 0.8rem;
    }

    /* --- Footer --- */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .footer-copy {
        font-size: 0.6rem;
    }

    /* --- Navigation --- */
    nav {
        padding: 0.5rem 0.8rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions a {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }

    .btn-cart {
        padding: 0.3rem 0.6rem;
        font-size: 0.5rem !important;
    }

    /* --- Philosophy --- */
    .philosophy-pillars {
        grid-template-columns: 1fr;
    }

    .pillar {
        padding: 1.2rem;
    }

    /* --- Pagination --- */
    .page-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
        min-width: 30px;
    }

    /* --- Search --- */
    .search-header {
        margin: 10px 0;
        padding: 10px;
    }

    .search-term {
        font-size: 17px;
    }

    .search-form {
        border-radius: 25px;
        padding: 2px 8px;
    }

    .search-form input {
        font-size: 13px;
        padding: 8px;
    }

    .search-form button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .clear-search {
        font-size: 18px;
    }

    /* --- Checkout --- */
    .checkout-container {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .checkout-header .step-indicator {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .step-item {
        font-size: 9px;
        gap: 4px;
    }

    .step-item .step-num {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }

    .step-item .step-line {
        width: 15px;
    }

    .payment-methods {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .payment-method {
        padding: 10px 8px;
        font-size: 11px;
    }

    .payment-method .pm-icon {
        font-size: 18px;
    }

    .btn-submit {
        padding: 14px;
        font-size: 14px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 13px;
    }

    .summary-item-image {
        width: 50px;
        height: 50px;
    }

    .summary-item-name {
        font-size: 13px;
    }

    .total-row.total {
        font-size: 16px;
    }

    .total-row.total .price {
        font-size: 18px;
    }

    /* --- Philosophy Section (اصلاح‌شده) --- */
    .philosophy {
        padding: 2rem 1rem;
    }

    .philosophy-pillars {
        grid-template-columns: 1fr;
    }

    .pillar {
        padding: 1.2rem;
    }
}

/* ===== VERY SMALL (320px - 480px) ===== */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px 6px;
    }

    .product-name {
        font-size: 12px;
    }

    .price-val {
        font-size: 14px;
    }

    .product-info {
        padding: 8px 10px 6px;
    }

    .product-actions {
        padding: 0 10px 10px;
    }

    .btn-primary {
        font-size: 8px;
        padding: 6px 8px;
        border-radius: 6px;
    }

    .product-badge {
        font-size: 6px;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }

    .collections-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 0.3rem;
    }

    .collection-name {
        font-size: 13px !important;
        margin-top: 10px !important;
    }

    .collection-label {
        bottom: 8px;
        right: 8px;
        left: 8px;
    }

    .luxury-badge {
        top: 6px;
        right: 6px;
        font-size: 6px;
        padding: 2px 6px;
    }

    .luxury-corner {
        width: 10px;
        height: 10px;
    }

    .luxury-frame {
        inset: 4px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}