﻿/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0f0f0f;
    --bg-soft: #1a1a1a;
    --surface: #242424;
    --surface-2: #2e2e2e;
    --ivory: #f0ece6;
    --ivory-dim: #c8c2b8;
    --ivory-faint: #9a948a;
    --gold: #d4a574;
    --gold-bright: #e8c9a0;
    --gold-deep: #b8875a;
    --rose: #d48a7a;
    --sage: #8ab8a8;
    --line: rgba(180, 160, 140, 0.15);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.5);
    --glow: 0 0 50px rgba(212, 165, 116, 0.15);
    --radius: 24px;
    --radius-sm: 14px;
    --pill: 999px;
    --header-height: 72px;
    --green: #4CAF50;
    --red: #e74c6f;
}

[data-theme="light"] {
    --bg: #f5f2ed;
    --bg-soft: #ede8e0;
    --surface: #e5ddd5;
    --surface-2: #d5cdc5;
    --ivory: #2a2a2a;
    --ivory-dim: #4a4a4a;
    --ivory-faint: #7a7a7a;
    --gold: #c49a6a;
    --gold-bright: #dbb080;
    --gold-deep: #a87a50;
    --line: rgba(80, 70, 60, 0.12);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
    --glow: 0 0 50px rgba(196, 154, 106, 0.12);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ivory-dim);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
    padding-top: var(--header-height);
}

    body.locked {
        overflow: hidden;
    }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--gold-deep);
    color: var(--ivory);
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== UTILITY ===== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: background 0.4s ease;
    height: var(--header-height);
}

[data-theme="light"] header {
    background: rgba(245, 242, 237, 0.92);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 8px;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== BRAND ===== */
.brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

    .brand svg {
        height: 32px;
        width: auto;
        filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.15));
        display: block;
    }

@media (max-width: 520px) {
    .brand svg {
        height: 26px;
    }
}

/* ===== DESKTOP NAV ===== */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .desktop-nav a {
        position: relative;
        padding: 8px 14px;
        border-radius: var(--pill);
        transition: .3s;
        font-size: 13px;
        color: var(--ivory-dim);
        white-space: nowrap;
    }

        .desktop-nav a:hover {
            color: var(--ivory);
            background: rgba(212, 165, 116, 0.08);
        }

@media (max-width: 820px) {
    .desktop-nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 680px) {
    .desktop-nav {
        display: none !important;
    }
}

/* ===== HEADER ICONS ===== */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

    .nav-icons button {
        background: rgba(212, 165, 116, 0.04);
        border: 1px solid transparent;
        color: var(--ivory-dim);
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
        flex-shrink: 0;
        position: relative;
        font-size: 16px;
    }

        .nav-icons button:hover {
            color: var(--gold-bright);
            border-color: var(--gold);
            transform: translateY(-2px);
            box-shadow: var(--glow);
            background: rgba(212, 165, 116, 0.08);
        }

@media (max-width: 520px) {
    .nav-icons button {
        width: 36px;
        height: 36px;
        padding: 6px;
        font-size: 14px;
    }
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold-bright);
    color: #0f0f0f;
    font-size: 9px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--bg);
    transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

    .cart-count.bump {
        animation: bump .45s ease;
    }

@keyframes bump {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.5) rotate(10deg);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== BURGER ===== */
.burger {
    display: none;
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 24px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: .3s;
    flex-shrink: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

    .burger:hover {
        background: rgba(212, 165, 116, 0.08);
    }

@media (max-width: 680px) {
    .burger {
        display: flex;
    }
}

@media (max-width: 520px) {
    .burger {
        font-size: 20px;
        width: 36px;
        height: 36px;
        padding: 4px;
    }
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-soft);
    z-index: 2000;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.32, .9, .4, 1);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

    .mobile-drawer.open {
        transform: translateX(0);
    }

    .mobile-drawer .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 16px;
    }

        .mobile-drawer .drawer-header .brand svg {
            height: 28px;
        }

    .mobile-drawer .drawer-close {
        background: none;
        border: none;
        color: var(--ivory-faint);
        font-size: 22px;
        cursor: pointer;
        padding: 4px 8px;
        transition: .3s;
    }

        .mobile-drawer .drawer-close:hover {
            color: var(--gold-bright);
            transform: rotate(90deg);
        }

    .mobile-drawer a {
        padding: 14px 16px;
        font-size: 15px;
        color: var(--ivory-dim);
        border-radius: var(--radius-sm);
        transition: .3s;
        border-bottom: 1px solid var(--line);
    }

        .mobile-drawer a:last-of-type {
            border-bottom: none;
        }

        .mobile-drawer a:hover {
            color: var(--ivory);
            background: rgba(212, 165, 116, 0.08);
        }

    .mobile-drawer .drawer-footer {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid var(--line);
    }

    .mobile-drawer .theme-toggle-mobile {
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: transparent;
        color: var(--ivory-dim);
        cursor: pointer;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: .3s;
        width: 100%;
        justify-content: center;
    }

        .mobile-drawer .theme-toggle-mobile:hover {
            border-color: var(--gold);
            color: var(--gold-bright);
        }

/* ===== OVERLAY BACKDROP ===== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

    .drawer-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

/* ===== RESPONSIVE HEADER - EXTRA SAFE ===== */
@media (max-width: 680px) {
    .nav {
        padding: 0 12px;
    }

    .nav-icons button:not(.burger):not(#themeToggle):not(#cartBtn) {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 8px;
        gap: 4px;
    }

    .nav-icons button {
        width: 34px;
        height: 34px;
        padding: 4px;
    }

        .nav-icons button svg {
            width: 16px;
            height: 16px;
        }

    .brand svg {
        height: 22px;
    }
}

/* ============================================
                   BLOBS
                   ============================================ */
.blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .25;
    animation: drift 22s ease-in-out infinite;
}

.b1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--gold-deep), transparent 70%);
    top: -100px;
    right: -80px;
    animation-duration: 26s;
}

.b2 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, var(--rose), transparent 70%);
    top: 40%;
    left: -100px;
    animation-duration: 30s;
    animation-delay: -6s;
    opacity: .12;
}

.b3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--sage), transparent 70%);
    bottom: -60px;
    right: 20%;
    animation-duration: 24s;
    animation-delay: -3s;
    opacity: .10;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0,0) scale(1);
    }

    33% {
        transform: translate(30px,-40px) scale(1.08);
    }

    66% {
        transform: translate(-25px,20px) scale(0.95);
    }
}

.sparkle {
    position: absolute;
    color: var(--gold-bright);
    animation: twinkle 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% {
        opacity: .25;
        transform: scale(.7) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.15) rotate(20deg);
    }
}

.cursor-sparkle {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    color: var(--gold-bright);
    animation: sparkle-fade .9s ease-out forwards;
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(0.4) rotate(0deg) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.1) rotate(90deg) translateY(-24px);
    }
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .eyebrow::before {
        content: "✦";
        font-size: 11px;
    }

h1, h2, h3 {
    color: var(--ivory);
    font-weight: 700;
    margin: 0;
}

.vine {
    width: 100%;
    max-width: 280px;
    height: 26px;
    margin: 20px auto;
    opacity: .9;
}

    .vine path {
        stroke: var(--gold);
        fill: none;
        stroke-width: 1.4;
        stroke-linecap: round;
        stroke-dasharray: 300;
        stroke-dashoffset: 300;
        animation: draw 2s ease forwards .3s;
    }

    .vine circle {
        fill: var(--gold-bright);
        opacity: 0;
        animation: pop-in .5s ease forwards 1.6s;
    }

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pop-in {
    to {
        opacity: 1;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    overflow: hidden;
}

    .hero .eyebrow {
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(32px, 5vw, 64px);
        margin-top: 20px;
        letter-spacing: -.01em;
        opacity: 0;
        animation: rise 1s ease forwards .15s;
    }

        .hero h1 span {
            color: transparent;
            background: linear-gradient(100deg, var(--gold), var(--gold-bright), var(--rose), var(--gold-bright));
            background-size: 300% auto;
            -webkit-background-clip: text;
            background-clip: text;
            display: block;
            font-family: 'Cormorant Garamond', serif;
            font-style: italic;
            font-size: .55em;
            margin-top: 8px;
            animation: shimmer 5s linear infinite;
        }

@keyframes shimmer {
    to {
        background-position: 300% center;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero p {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 15px;
    color: var(--ivory-faint);
    opacity: 0;
    animation: rise 1s ease forwards .35s;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
    opacity: 0;
    animation: rise 1s ease forwards .55s;
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 16px 50px;
    }

        .hero h1 {
            font-size: clamp(26px, 8vw, 36px);
        }

    .hero-ctas .btn {
        padding: 12px 22px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--pill);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
        transform: translateX(-120%);
        transition: transform .6s;
    }

    .btn:hover::before {
        transform: translateX(120%);
    }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #0f0f0f;
    box-shadow: 0 10px 24px rgba(212, 165, 116, 0.25);
}

    .btn-gold:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 16px 34px rgba(212, 165, 116, 0.4);
    }

    .btn-gold:active {
        transform: translateY(-1px) scale(.98);
    }

.btn-ghost {
    border-color: var(--line);
    color: var(--ivory-dim);
    background: rgba(255,255,255,0.03);
}

    .btn-ghost:hover {
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-3px);
    }

.theme-toggle-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--ivory-dim);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    font-size: 18px;
}

    .theme-toggle-btn:hover {
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-2px);
        background: rgba(212, 165, 116, 0.06);
    }

section {
    padding: 70px 20px;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 44px;
}

    .section-head h2 {
        font-size: clamp(24px, 3vw, 38px);
        margin-top: 14px;
    }

    .section-head p {
        color: var(--ivory-faint);
        max-width: 480px;
        margin: 12px auto 0;
        font-size: 14px;
    }

/* ===== CATEGORIES - اصلاح شده ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cat-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s;
    min-height: 140px;
}

    .cat-card:hover {
        transform: translateY(-6px) rotate(-1deg) scale(1.02);
        box-shadow: 0 26px 50px rgba(0,0,0,0.4), var(--glow);
    }

    .cat-card .ph {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transition: transform .7s ease;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        width: 100%;
        height: 100%;
    }

        .cat-card .ph img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .cat-card:hover .ph {
        transform: scale(1.08);
    }

    .cat-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 35%, rgba(15,15,15,0.85));
    }

    .cat-card .label {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 16px;
        z-index: 2;
        text-align: center;
    }

        .cat-card .label span {
            font-size: 11px;
            letter-spacing: .2em;
            color: var(--gold-bright);
            text-transform: uppercase;
        }

        .cat-card .label h3 {
            margin-top: 4px;
            font-size: 18px;
        }

.ph-women {
    background-image: linear-gradient(150deg, #5a4a3a, #2a2218 40%, #8a7058, #1a1612);
}

.ph-men {
    background-image: linear-gradient(150deg, #3a3a3a, #1a1a1a 40%, #5a5a5a, #0f0f0f);
}

.ph-acc {
    background-image: linear-gradient(150deg, #6a5a4a, #2a2218 40%, #8a7a6a, #1a1612);
}

@media (max-width: 820px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cat-card {
        min-height: 100px;
        aspect-ratio: 4/3;
    }

        .cat-card .label {
            padding: 12px;
        }

            .cat-card .label h3 {
                font-size: 15px;
            }
}

/* ===== FILTER ===== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-right {
    margin-right: auto;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 18px;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    color: var(--ivory-faint);
    cursor: pointer;
    transition: .3s;
    background: rgba(255,255,255,0.02);
    white-space: nowrap;
}

    .chip.active {
        border-color: var(--gold);
        color: #0f0f0f;
        background: linear-gradient(135deg, var(--gold-bright), var(--gold));
        font-weight: 700;
    }

    .chip:hover {
        border-color: var(--gold);
        transform: translateY(-2px);
    }

.sort {
    font-size: 13px;
    color: var(--ivory-faint);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .sort select {
        background: var(--surface);
        color: var(--ivory-dim);
        border: 1px solid var(--line);
        padding: 8px 14px;
        border-radius: var(--pill);
        font-family: inherit;
        font-size: 13px;
    }

@media (max-width: 520px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-right {
        width: 100%;
        margin: 0;
        flex-direction: column;
    }

    .chips {
        justify-content: center;
        gap: 6px;
    }

    .chip {
        padding: 6px 14px;
        font-size: 12px;
    }

    .sort {
        justify-content: center;
        width: 100%;
    }

        .sort select {
            flex: 1;
        }
}

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--pill);
    overflow: hidden;
    min-width: 280px;
    transition: .3s;
}

    .search-box:focus-within {
        border-color: var(--gold);
        box-shadow: var(--glow);
    }

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ivory);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
}

    .search-input::placeholder {
        color: var(--ivory-faint);
    }

.search-btn {
    border: none;
    background: transparent;
    color: var(--gold);
    padding: 12px 16px;
    cursor: pointer;
    transition: .3s;
}

    .search-btn:hover {
        background: rgba(212,165,116,.08);
    }

@media (max-width: 768px) {
    .search-box {
        width: 100%;
        min-width: unset;
    }
}

/* ===== PRODUCT HEADER ===== */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-count {
    color: var(--ivory-faint);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .product-header {
        justify-content: center;
        text-align: center;
    }
}

/* ===== PRODUCT GRID - اصلاح شده ===== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .prod-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.prod-card {
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(.96);
    animation: card-in .6s cubic-bezier(.34,1.56,.64,1) forwards;
    cursor: pointer;
}

@keyframes card-in {
    to {
        opacity: 1;
        transform: none;
    }
}

.prod-img {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s;
    background-color: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .prod-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        padding: 4px;
    }

    .prod-img[style*="background-image"] {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

.prod-card:hover .prod-img {
    transform: translateY(-4px) rotate(-1.5deg);
    box-shadow: 0 22px 44px rgba(0,0,0,0.4), var(--glow);
}

.prod-img .quick {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
    text-align: center;
    background: rgba(15,15,15,0.9);
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--pill);
    opacity: 0;
    transform: translateY(10px);
    transition: .35s;
    border: 1px solid var(--line);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.prod-card:hover .quick {
    opacity: 1;
    transform: translateY(0);
}

.quick:hover {
    background: var(--gold-bright);
    color: #0f0f0f;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--rose);
    color: var(--ivory);
    font-size: 10px;
    padding: 4px 12px;
    border-radius: var(--pill);
    font-weight: 700;
    z-index: 2;
    animation: pop-badge .5s cubic-bezier(.34,1.56,.64,1) .3s backwards;
}

    .badge.out-of-stock {
        background: var(--ivory-faint);
        color: var(--bg);
    }

@keyframes pop-badge {
    from {
        transform: scale(0) rotate(-20deg);
    }

    to {
        transform: scale(1) rotate(0);
    }
}

.prod-info {
    padding-top: 14px;
    text-align: right;
}

    .prod-info .cat {
        font-size: 11px;
        color: var(--gold);
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .prod-info h4 {
        color: var(--ivory);
        font-size: 14px;
        margin-top: 4px;
        font-weight: 600;
        line-height: 1.4;
    }

    .prod-info .price {
        margin-top: 6px;
        font-size: 14px;
        color: var(--ivory-dim);
    }

        .prod-info .price s {
            color: var(--ivory-faint);
            margin-left: 6px;
            font-size: 12px;
        }

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--ivory-faint);
    grid-column: 1 / -1;
}

    .loading-spinner .spinner {
        width: 36px;
        height: 36px;
        border: 3px solid var(--line);
        border-top-color: var(--gold);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 14px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== PAGINATION ===== */
#paginationContainer {
    margin-top: 40px;
}

    #paginationContainer.visible {
        display: block;
    }

    #paginationContainer:not(.visible) {
        display: none;
    }

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--ivory-faint);
    font-size: 13px;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ivory);
    cursor: pointer;
    transition: .25s;
    font-family: inherit;
    padding: 0 14px;
}

    .page-btn:hover:not(:disabled) {
        border-color: var(--gold);
        color: var(--gold-bright);
        transform: translateY(-2px);
    }

    .page-btn.active {
        background: linear-gradient(135deg, var(--gold-bright), var(--gold));
        color: #111;
        border-color: var(--gold);
        font-weight: 700;
    }

    .page-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

.page-dots {
    color: var(--ivory-faint);
    padding: 0 4px;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* ===== TRUST ===== */
.trust-bar {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 40px 20px;
    border-radius: 32px;
    margin: 0 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    padding: 16px;
    border-radius: var(--radius-sm);
    transition: .35s;
}

    .trust-item:hover {
        background: rgba(255,255,255,0.03);
        transform: translateY(-4px);
    }

    .trust-item svg {
        width: 26px;
        height: 26px;
        color: var(--gold);
        margin-bottom: 12px;
        transition: .4s;
    }

    .trust-item:hover svg {
        transform: scale(1.15) rotate(-6deg);
        color: var(--gold-bright);
    }

    .trust-item h5 {
        color: var(--ivory);
        font-size: 14px;
        margin: 0 0 4px;
        font-weight: 600;
    }

    .trust-item p {
        font-size: 12px;
        color: var(--ivory-faint);
        margin: 0;
    }

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-bar {
        margin: 0 12px;
        padding: 28px 16px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .trust-item {
        padding: 12px 8px;
    }

        .trust-item svg {
            width: 22px;
            height: 22px;
        }

        .trust-item h5 {
            font-size: 12px;
        }

        .trust-item p {
            font-size: 11px;
        }
}

/* ===== REVIEWS ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: .4s cubic-bezier(.34,1.56,.64,1);
    box-shadow: var(--shadow-soft);
}

    .review-card:hover {
        transform: translateY(-6px) rotate(.6deg);
        box-shadow: 0 22px 44px rgba(0,0,0,0.35), var(--glow);
    }

.review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.review-name {
    color: var(--ivory);
    font-size: 13px;
    font-weight: 600;
}

.review-stars {
    color: var(--gold);
    font-size: 12px;
}

.review-card p {
    font-size: 13px;
    color: var(--ivory-faint);
    margin: 0;
}

@media (max-width: 820px) {
    .review-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .review-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 20px;
    }
}

/* ===== STORY ===== */
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-img {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background: linear-gradient(150deg, #5a4a3a, #2a2218 60%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background-size: 200% 200%;
    animation: silk 11s ease infinite;
}

.story-text p {
    font-size: 14px;
    color: var(--ivory-faint);
    margin-top: 16px;
}

@media (max-width: 768px) {
    .story {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== FAQ ===== */
.faq {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    color: var(--ivory);
    font-size: 15px;
    padding: 20px 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: .3s;
}

    .faq-q:hover {
        color: var(--gold-bright);
    }

    .faq-q .plus {
        color: var(--gold);
        font-size: 18px;
        transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    }

.faq-item.open .faq-q .plus {
    transform: rotate(135deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

    .faq-a p {
        padding: 0 4px 20px;
        font-size: 14px;
        color: var(--ivory-faint);
        margin: 0;
    }

/* ===== NEWSLETTER ===== */
.newsletter {
    text-align: center;
    background: linear-gradient(160deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 50px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

    .newsletter::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, rgba(212,165,116,0.15), transparent 70%);
        top: -50px;
        right: -30px;
        border-radius: 50%;
        animation: drift 14s ease-in-out infinite;
    }

.news-form {
    display: flex;
    max-width: 400px;
    margin: 22px auto 0;
    gap: 10px;
    position: relative;
    z-index: 2;
}

    .news-form input {
        flex: 1;
        padding: 14px 18px;
        background: var(--bg);
        border: 1px solid var(--line);
        color: var(--ivory);
        border-radius: var(--pill);
        font-family: inherit;
        font-size: 14px;
        min-width: 0;
    }

        .news-form input:focus {
            border-color: var(--gold);
            outline: none;
        }

        .news-form input::placeholder {
            color: var(--ivory-faint);
        }

@media (max-width: 520px) {
    .news-form {
        flex-direction: column;
        gap: 10px;
    }

        .news-form .btn {
            width: 100%;
            justify-content: center;
        }
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--line);
    padding: 60px 20px 28px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.foot-brand p {
    font-size: 13px;
    color: var(--ivory-faint);
    margin-top: 14px;
    max-width: 260px;
}

.foot-col h5 {
    color: var(--ivory);
    font-size: 14px;
    margin-bottom: 16px;
}

.foot-col a {
    display: block;
    font-size: 13px;
    color: var(--ivory-faint);
    margin-bottom: 10px;
    transition: .25s;
}

    .foot-col a:hover {
        color: var(--gold-bright);
        padding-right: 4px;
    }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ivory-faint);
    flex-wrap: wrap;
    gap: 14px;
}

.socials {
    display: flex;
    gap: 12px;
}

    .socials a {
        width: 36px;
        height: 36px;
        border: 1px solid var(--line);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .3s;
        font-size: 15px;
    }

        .socials a:hover {
            border-color: var(--gold);
            transform: translateY(-3px) rotate(8deg);
            color: var(--gold-bright);
        }

@media (max-width: 820px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .foot-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .foot-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.75);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .overlay.show {
        display: flex;
    }

/* ===== POPUP ===== */
.popup {
    background: var(--bg-soft);
    border: 1px solid var(--gold-deep);
    border-radius: 32px;
    max-width: 380px;
    width: 100%;
    padding: 38px 28px;
    text-align: center;
    position: relative;
    animation: pop-in-popup .45s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), var(--glow);
}

@keyframes pop-in-popup {
    from {
        opacity: 0;
        transform: scale(.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.popup .close {
    position: absolute;
    top: 14px;
    left: 16px;
    background: none;
    border: none;
    color: var(--ivory-faint);
    font-size: 18px;
    cursor: pointer;
    transition: .2s;
}

    .popup .close:hover {
        color: var(--gold-bright);
        transform: rotate(90deg);
    }

.popup h3 {
    font-size: 21px;
    margin-top: 12px;
}

.popup p {
    font-size: 13px;
    margin-top: 10px;
    color: var(--ivory-faint);
}

.popup .code {
    margin-top: 18px;
    padding: 12px;
    border: 1.5px dashed var(--gold);
    border-radius: var(--pill);
    color: var(--gold-bright);
    font-weight: 800;
    letter-spacing: .15em;
    font-size: 14px;
    animation: twinkle 2.4s ease-in-out infinite;
}

/* ===== PRODUCT MODAL ===== */
#productOverlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 50px 16px;
    z-index: 3000 !important;
}

.modal {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 28px;
    max-width: 880px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 40px 90px rgba(0,0,0,0.5), var(--glow);
    animation: pop-in-popup .4s cubic-bezier(.34,1.4,.64,1);
    margin: auto;
}

    .modal .close {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
        border: 1px solid var(--line);
        color: var(--ivory-dim);
        font-size: 16px;
        cursor: pointer;
        z-index: 3;
        transition: .25s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal .close:hover {
            color: var(--gold-bright);
            border-color: var(--gold);
            transform: rotate(90deg);
        }

.modal-grid {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.m-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: .3s;
    background-color: var(--surface-2);
    overflow: hidden;
}

    .m-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius-sm);
    }

    .m-thumb:hover {
        transform: scale(1.04);
    }

    .m-thumb.active {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
    }

.m-main {
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background-color: var(--surface-2);
    overflow: hidden;
}

    .m-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.m-info h2 {
    font-size: 24px;
}

.m-stars {
    color: var(--gold);
    font-size: 12px;
    margin-top: 8px;
}

    .m-stars span {
        color: var(--ivory-faint);
        margin-right: 6px;
    }

.m-price {
    font-size: 22px;
    color: var(--ivory);
    margin-top: 14px;
    font-weight: 700;
}

    .m-price s {
        font-size: 14px;
        color: var(--ivory-faint);
        margin-right: 8px;
        font-weight: 400;
    }

.m-desc {
    font-size: 13px;
    margin-top: 14px;
    color: var(--ivory-faint);
}

.m-size-row {
    margin-top: 18px;
}

    .m-size-row .label-row {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        margin-bottom: 8px;
    }

.m-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.m-size-box {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--ivory-dim);
    transition: .25s;
}

    .m-size-box.active {
        border-color: var(--gold);
        background: rgba(212, 165, 116, 0.14);
        color: var(--gold-bright);
        transform: scale(1.06);
    }

    .m-size-box:hover {
        border-color: var(--gold);
    }

    .m-size-box.out-of-stock {
        opacity: 0.3;
        cursor: not-allowed;
    }

.m-low-stock {
    margin-top: 12px;
    font-size: 12px;
    color: var(--rose);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 16px;
}

    .m-low-stock::before {
        content: "⚡";
        animation: twinkle 1.6s ease-in-out infinite;
    }

.m-add-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.m-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    overflow: hidden;
    flex-shrink: 0;
}

    .m-qty button {
        background: none;
        border: none;
        color: var(--ivory-dim);
        width: 34px;
        height: 44px;
        cursor: pointer;
        font-size: 16px;
    }

        .m-qty button:hover {
            color: var(--gold-bright);
            background: rgba(255,255,255,0.04);
        }

    .m-qty span {
        width: 26px;
        text-align: center;
        color: var(--ivory);
        font-size: 14px;
    }

.m-add-row .btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.m-trust-mini {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ivory-faint);
}

    .m-trust-mini div {
        display: flex;
        align-items: center;
        gap: 6px;
    }

@media (max-width: 820px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .m-thumbs {
        flex-direction: row;
        order: 2;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .m-thumb {
        min-width: 56px;
        max-width: 72px;
        aspect-ratio: 1;
    }

    .m-main {
        order: 1;
    }

    .modal {
        padding: 22px;
        max-width: 100%;
        margin: 0;
    }

    .m-info h2 {
        font-size: 20px;
    }

    .m-price {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    #productOverlay {
        padding: 30px 8px;
    }

    .modal {
        padding: 16px;
        border-radius: 20px;
    }

        .modal .close {
            top: 10px;
            left: 10px;
            width: 30px;
            height: 30px;
            font-size: 14px;
        }

    .m-thumb {
        min-width: 48px;
        max-width: 60px;
    }

    .m-sizes {
        gap: 6px;
    }

    .m-size-box {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }

    .m-add-row {
        flex-direction: column;
    }

        .m-add-row .btn {
            min-width: auto;
        }

    .m-trust-mini {
        gap: 10px;
        font-size: 11px;
    }
}

/* ===== CART DRAWER ===== */
#cartOverlay {
    justify-content: flex-end;
    padding: 0;
    align-items: stretch;
    z-index: 4000 !important;
}

.cart-drawer {
    background: var(--bg-soft);
    height: 100%;
    width: min(400px, 100vw);
    max-width: 100vw;
    border-left: 1px solid var(--line);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.32,.9,.4,1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}

#cartOverlay.show .cart-drawer {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

    .cart-head h3 {
        font-size: 18px;
    }

    .cart-head .close {
        background: none;
        border: none;
        color: var(--ivory-faint);
        font-size: 18px;
        cursor: pointer;
        transition: .2s;
        padding: 4px;
    }

        .cart-head .close:hover {
            color: var(--gold-bright);
            transform: rotate(90deg);
        }

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-top: 6px;
    padding-left: 2px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    animation: card-in .35s ease;
}

.ci-img {
    width: 56px;
    height: 70px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    flex-shrink: 0;
    background-color: var(--surface-2);
    overflow: hidden;
}

    .ci-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ci-info {
    flex: 1;
    min-width: 0;
}

    .ci-info h5 {
        color: var(--ivory);
        font-size: 13px;
        margin: 0 0 2px;
        font-weight: 600;
    }

.ci-meta {
    font-size: 11px;
    color: var(--ivory-faint);
    margin-bottom: 6px;
}

.ci-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.ci-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--pill);
}

    .ci-qty button {
        background: none;
        border: none;
        color: var(--ivory-dim);
        width: 24px;
        height: 28px;
        cursor: pointer;
        font-size: 13px;
    }

    .ci-qty span {
        width: 18px;
        text-align: center;
        font-size: 12px;
        color: var(--ivory);
    }

.ci-price {
    font-size: 13px;
    color: var(--gold-bright);
    font-weight: 700;
}

.ci-remove {
    background: none;
    border: none;
    color: var(--ivory-faint);
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
    padding: 4px;
}

    .ci-remove:hover {
        color: var(--rose);
        transform: scale(1.15);
    }

.cart-empty {
    text-align: center;
    padding: 50px 10px;
    color: var(--ivory-faint);
}

    .cart-empty .icon {
        font-size: 34px;
        margin-bottom: 12px;
        opacity: .6;
    }

    .cart-empty p {
        font-size: 13px;
    }

.cart-foot {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    margin-top: 6px;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-sub {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ivory-dim);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-bright);
    padding-top: 8px;
    border-top: 2px solid var(--gold);
    margin-top: 4px;
}

.cart-foot .btn {
    width: 100%;
    justify-content: center;
}

.cart-note {
    text-align: center;
    font-size: 11px;
    color: var(--ivory-faint);
    margin-top: 10px;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100vw;
        padding: 18px 14px;
    }

    .ci-img {
        width: 48px;
        height: 60px;
    }

    .ci-info h5 {
        font-size: 12px;
    }
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.34,1.2,.64,1), transform .7s cubic-bezier(.34,1.2,.64,1);
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 768px) {
    section {
        padding: 50px 14px;
    }

    .section-head {
        margin-bottom: 32px;
    }

        .section-head h2 {
            font-size: clamp(20px, 4vw, 28px);
        }
}

@media (max-width: 480px) {
    section {
        padding: 36px 10px;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .wrap {
        padding: 0 10px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* ===== NO HORIZONTAL SCROLL ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        padding-top: calc(var(--header-height) + env(safe-area-inset-top));
    }

    header {
        padding-top: env(safe-area-inset-top);
    }
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--gold-deep);
    color: var(--ivory);
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    font-weight: 500;
}

body {
    padding-top: calc(var(--header-height) + 40px);
}

@media (max-width: 680px) {
    .announcement-bar {
        font-size: 11px;
        padding: 6px 12px;
    }

    body {
        padding-top: calc(var(--header-height) + 34px);
    }
}

/* ===== CHECKOUT MODAL ===== */
#checkoutOverlay {
    z-index: 5000 !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 30px 16px !important;
    background: rgba(15, 15, 15, 0.85) !important;
}

    #checkoutOverlay .modal {
        max-height: 95vh !important;
        overflow-y: auto !important;
        margin: auto !important;
        position: relative !important;
        z-index: 5001 !important;
    }

    #checkoutOverlay .modal-foot {
        position: sticky !important;
        bottom: 0 !important;
        background: var(--bg-soft) !important;
        padding-top: 16px !important;
        border-top: 1px solid var(--line) !important;
        margin-top: 0 !important;
    }

.checkout-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-modal .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .checkout-modal .field label {
        font-size: 12.5px;
        color: var(--ivory-faint);
    }

    .checkout-modal .field input,
    .checkout-modal .field textarea {
        padding: 10px 14px;
        background: var(--surface);
        border: 1px solid var(--line);
        color: var(--ivory);
        border-radius: var(--radius-sm);
        font-size: 13.5px;
        font-family: inherit;
    }

        .checkout-modal .field input:focus,
        .checkout-modal .field textarea:focus {
            border-color: var(--gold);
            outline: none;
        }

.checkout-summary {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-top: 1px solid var(--line);
}

    .checkout-summary.total {
        font-size: 18px;
        font-weight: 700;
        color: var(--gold-bright);
        border-top: 2px solid var(--gold);
        padding-top: 12px;
        margin-top: 4px;
    }

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

    .checkout-item:last-child {
        border-bottom: none;
    }

    .checkout-item .thumb {
        width: 50px;
        height: 60px;
        border-radius: 8px;
        border: 1px solid var(--line);
        flex-shrink: 0;
        background-color: var(--surface-2);
        background-size: cover;
        background-position: center;
    }

        .checkout-item .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

    .checkout-item .info {
        flex: 1;
        min-width: 0;
    }

        .checkout-item .info .name {
            font-weight: 600;
            color: var(--ivory);
            font-size: 13px;
        }

        .checkout-item .info .meta {
            font-size: 12px;
            color: var(--ivory-faint);
        }

    .checkout-item .price {
        font-weight: 700;
        color: var(--ivory);
        font-size: 13px;
        white-space: nowrap;
    }

.coupon-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

    .coupon-row input {
        flex: 1;
        padding: 10px 14px;
        background: var(--surface);
        border: 1px solid var(--line);
        color: var(--ivory);
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-family: inherit;
    }

        .coupon-row input:focus {
            border-color: var(--gold);
            outline: none;
        }

.coupon-message {
    font-size: 12px;
    margin-top: 4px;
    min-height: 20px;
}

    .coupon-message.success {
        color: var(--green);
    }

    .coupon-message.error {
        color: var(--red);
    }

    .coupon-message.info {
        color: #f0a500;
    }

@media (max-width: 520px) {
    .checkout-modal .form-grid {
        grid-template-columns: 1fr;
    }

    .coupon-row {
        flex-direction: column;
    }

    .checkout-item {
        flex-wrap: wrap;
    }
}

/* ===== ORDER SUCCESS MODAL ===== */
#orderSuccessOverlay {
    z-index: 6000 !important;
    align-items: center !important;
}

    #orderSuccessOverlay .modal {
        z-index: 6001 !important;
    }

.order-success-items {
    text-align: right;
    margin: 16px 0;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
}

    .order-success-items .item-row {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        font-size: 13px;
        border-bottom: 1px solid var(--line);
    }

        .order-success-items .item-row:last-child {
            border-bottom: none;
        }

.order-success-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-bright);
    text-align: center;
    padding: 12px;
}

/* ===== NAV ICON LINK ===== */
.nav-icons .nav-icon-link {
    background: rgba(212, 165, 116, 0.04);
    border: 1px solid transparent;
    color: var(--ivory-dim);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    flex-shrink: 0;
    position: relative;
    text-decoration: none;
    font-size: 16px;
}

    .nav-icons .nav-icon-link:hover {
        color: var(--gold-bright);
        border-color: var(--gold);
        transform: translateY(-2px);
        box-shadow: var(--glow);
        background: rgba(212, 165, 116, 0.08);
    }

    .nav-icons .nav-icon-link svg {
        width: 18px;
        height: 18px;
        display: block;
    }

    .nav-icons .nav-icon-link .online-dot {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 10px;
        height: 10px;
        background: #4CAF50;
        border-radius: 50%;
        border: 2px solid var(--bg);
        transition: border-color 0.4s ease;
    }

[data-theme="light"] .nav-icons .nav-icon-link .online-dot {
    border-color: var(--bg-soft);
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    animation: fade-in .25s ease;
}

    .user-dropdown a:hover,
    .user-dropdown button:hover {
        background: rgba(212, 165, 116, 0.08);
        color: var(--ivory);
    }

    .user-dropdown form button:hover {
        background: rgba(231, 76, 111, 0.1);
    }

/* ===== ADDRESS LIST ===== */
.address-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    border: 2px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 8px !important;
    cursor: pointer !important;
    transition: .3s !important;
}

    .address-option:hover {
        border-color: var(--gold) !important;
    }

    .address-option.selected {
        border-color: var(--gold) !important;
        background: rgba(212, 165, 116, 0.08) !important;
    }

/* ===== TOAST ===== */
.toast {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: var(--surface) !important;
    color: var(--ivory) !important;
    padding: 14px 24px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-soft) !important;
    z-index: 99999 !important;
    font-size: 14px !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all .4s cubic-bezier(.34,1.56,.64,1) !important;
    max-width: 90vw !important;
    pointer-events: none !important;
}

    .toast.show {
        opacity: 1 !important;
        transform: none !important;
    }

@media (max-width: 520px) {
    .toast {
        bottom: 16px !important;
        right: 16px !important;
        left: 16px !important;
        max-width: calc(100vw - 32px) !important;
        font-size: 13px !important;
        padding: 12px 18px !important;
    }
}

/* ===== PAYMENT MODAL ===== */
#paymentOverlay {
    z-index: 7000 !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: 30px 16px !important;
    background: rgba(15, 15, 15, 0.85) !important;
}

    #paymentOverlay .modal {
        max-height: 95vh !important;
        overflow-y: auto !important;
        margin: auto !important;
        position: relative !important;
        z-index: 7001 !important;
        background: var(--bg-soft) !important;
        border: 1px solid var(--line) !important;
        border-radius: 28px !important;
        max-width: 550px !important;
        width: 100% !important;
        padding: 30px !important;
        box-shadow: 0 40px 90px rgba(0,0,0,0.5), var(--glow) !important;
        animation: pop-in-popup .4s cubic-bezier(.34,1.4,.64,1) !important;
    }

        #paymentOverlay .modal .close {
            position: absolute !important;
            top: 16px !important;
            left: 16px !important;
            width: 34px !important;
            height: 34px !important;
            border-radius: 50% !important;
            background: rgba(255,255,255,0.05) !important;
            border: 1px solid var(--line) !important;
            color: var(--ivory-dim) !important;
            font-size: 16px !important;
            cursor: pointer !important;
            z-index: 3 !important;
            transition: .25s !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

            #paymentOverlay .modal .close:hover {
                color: var(--gold-bright) !important;
                border-color: var(--gold) !important;
                transform: rotate(90deg) !important;
            }

        #paymentOverlay .modal .form-grid {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 16px !important;
        }

        #paymentOverlay .modal .field {
            display: flex !important;
            flex-direction: column !important;
            gap: 6px !important;
        }

            #paymentOverlay .modal .field label {
                font-size: 12.5px !important;
                color: var(--ivory-faint) !important;
            }

            #paymentOverlay .modal .field input,
            #paymentOverlay .modal .field textarea {
                padding: 10px 14px !important;
                background: var(--surface) !important;
                border: 1px solid var(--line) !important;
                color: var(--ivory) !important;
                border-radius: var(--radius-sm) !important;
                font-size: 13.5px !important;
                font-family: inherit !important;
                width: 100% !important;
            }

                #paymentOverlay .modal .field input:focus,
                #paymentOverlay .modal .field textarea:focus {
                    border-color: var(--gold) !important;
                    outline: none !important;
                }

            #paymentOverlay .modal .field textarea {
                resize: vertical !important;
                min-height: 60px !important;
            }

    /* ===== DROP ZONE ===== */
    #paymentOverlay .drop-zone {
        padding: 24px !important;
        border: 2px dashed var(--line) !important;
        border-radius: var(--radius-sm) !important;
        text-align: center !important;
        cursor: pointer !important;
        transition: .3s !important;
        color: var(--ivory-faint) !important;
        font-size: 13px !important;
    }

        #paymentOverlay .drop-zone:hover {
            border-color: var(--gold) !important;
            background: rgba(212, 165, 116, 0.06) !important;
        }

        #paymentOverlay .drop-zone.dragover {
            border-color: var(--gold) !important;
            background: rgba(212, 165, 116, 0.12) !important;
        }

    #paymentOverlay .img-preview-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-top: 8px !important;
    }

    #paymentOverlay .img-preview {
        position: relative !important;
        display: inline-block !important;
    }

        #paymentOverlay .img-preview img {
            max-height: 180px !important;
            border-radius: 8px !important;
            border: 1px solid var(--line) !important;
            object-fit: cover !important;
        }

        #paymentOverlay .img-preview .rm {
            position: absolute !important;
            top: -8px !important;
            right: -8px !important;
            background: var(--red) !important;
            color: #fff !important;
            border: none !important;
            border-radius: 50% !important;
            width: 24px !important;
            height: 24px !important;
            cursor: pointer !important;
            font-size: 14px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: .2s !important;
        }

            #paymentOverlay .img-preview .rm:hover {
                transform: scale(1.15) !important;
            }

/* ===== PAYMENT MODAL RESPONSIVE ===== */
@media (max-width: 520px) {
    #paymentOverlay .modal {
        padding: 20px 16px !important;
        border-radius: 20px !important;
    }

        #paymentOverlay .modal .form-grid {
            grid-template-columns: 1fr !important;
            gap: 12px !important;
        }

        #paymentOverlay .modal .close {
            top: 12px !important;
            left: 12px !important;
            width: 30px !important;
            height: 30px !important;
            font-size: 14px !important;
        }

    #paymentOverlay .drop-zone {
        padding: 18px !important;
        font-size: 12px !important;
    }

    #paymentOverlay .img-preview img {
        max-height: 140px !important;
    }

    #paymentOverlay .modal .modal-foot {
        flex-direction: column !important;
        gap: 8px !important;
    }

        #paymentOverlay .modal .modal-foot .btn {
            width: 100% !important;
            justify-content: center !important;
        }
}

/* ===== CART SUMMARY IMPROVEMENTS ===== */
.cart-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.cart-sub:last-of-type {
    border-top: 1px solid var(--line) !important;
    padding-top: 8px !important;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
}

    .empty-state h3 {
        margin-bottom: 10px;
        color: var(--ivory);
    }

    .empty-state p {
        color: var(--ivory-faint);
        margin-bottom: 24px;
    }

    .empty-state button {
        padding: 12px 26px;
        border: none;
        border-radius: var(--pill);
        background: linear-gradient(135deg, var(--gold-bright), var(--gold));
        color: #111;
        font-family: inherit;
        cursor: pointer;
    }

.no-products {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--ivory-faint);
}

    .no-products .icon {
        font-size: 42px;
        margin-bottom: 12px;
        opacity: .5;
    }

    .no-products h3 {
        color: var(--ivory);
        margin-bottom: 6px;
    }
