/* =========================================================
   HOMZMART — Light Commerce Theme
   Palette: Pure White + Charcoal + Rust Accent
   ========================================================= */

/* ---------- Tajawal (Arabic + Latin, hosted locally) ---------- */
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 300; font-display: swap;
    src: url('../fonts/tajawal/tajawal-arabic-300.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 300; font-display: swap;
    src: url('../fonts/tajawal/tajawal-latin-300.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/tajawal/tajawal-arabic-400.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/tajawal/tajawal-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/tajawal/tajawal-arabic-500.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/tajawal/tajawal-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/tajawal/tajawal-arabic-700.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../fonts/tajawal/tajawal-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/tajawal/tajawal-arabic-800.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
}
@font-face {
    font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../fonts/tajawal/tajawal-latin-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg:        #FFFFFF;
    --bg-2:      #F8F5EE;
    --bg-3:      #F2EEE3;
    --ink:       #1A1A1A;
    --ink-2:     #3D3D3D;
    --muted:     #6F6F6F;
    --line:      #E8E4D8;
    --line-2:    #D8D2BF;
    --rust:      #C2410C;
    --rust-2:    #DD5C1F;
    --rust-soft: #FCEFE6;
    --green:     #2D7A4F;
    --red:       #C03030;

    --sans:    "Inter", -apple-system, system-ui, "Segoe UI", Arial, sans-serif;
    --sans-ar: "Tajawal", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    --serif:   "Cormorant Garamond", "Times New Roman", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg) !important;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html[dir="rtl"] body { font-family: var(--sans-ar); }

img, svg { max-width: 100%; display: block; }
button { background: none; border: none; padding: 0; cursor: pointer; color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rust); }

/* ---------- Top Promo Bar ---------- */
.promo-strip {
    background: var(--ink);
    color: #fff;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 10px 0;
}
.promo-strip strong { color: var(--rust-2); margin: 0 6px; }
.promo-strip a { color: #fff; text-decoration: underline; margin-inline-start: 12px; }
.promo-strip-item { display: inline-flex; align-items: center; gap: 6px; }
.promo-strip-desc { opacity: 0.85; }
[x-cloak] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1020;
}
.header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}
.header-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-link { display: flex; flex-direction: column; text-decoration: none; align-items: flex-start; }
.brand-logo { display: block; max-height: 72px; width: auto; object-fit: contain; }
.mobile-menu-brand { display: inline-flex; align-items: center; text-decoration: none; }
.mobile-menu-brand .brand-logo { max-height: 56px; }
.mobile-menu-brand .brand { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.18em; color: var(--ink); }

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border-radius: 8px;
    transition: background .2s;
}
.menu-toggle:hover { background: var(--bg-2); }

.brand {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--ink);
    line-height: 1;
    text-indent: 0.18em;
}
.brand-tag {
    display: block;
    font-size: 9px;
    letter-spacing: 0.42em;
    color: var(--rust);
    text-transform: uppercase;
    margin-top: 4px;
}

.search-box { position: relative; max-width: 540px; flex: 1; }
.search-box input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 12px 18px;
    padding-inline-end: 50px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    border-radius: 999px;
    transition: border-color .2s, background .2s;
}
.search-box input:focus { border-color: var(--ink); background: #fff; }
.search-box input::placeholder { color: var(--muted); }
.search-box .search-btn {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: var(--ink);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.search-box .search-btn:hover { background: var(--rust); }

.actions { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    transition: all .2s;
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn .lang-current { letter-spacing: 0.06em; }
.lang-btn svg.rotated { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    min-width: 180px;
    padding: 6px;
    z-index: 1100;
}
.lang-menu button.lang-item {
    width: 100%;
    text-align: start;
    background: transparent;
    border: none;
    cursor: pointer;
}
.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    border-radius: 8px;
    transition: background .15s;
}
.lang-item:hover { background: var(--bg-2); }
.lang-item.is-active { color: var(--rust); font-weight: 700; }
.lang-item svg { color: var(--rust); }
@media (max-width: 768px) { .lang-btn { padding: 6px 10px; font-size: 11px; } }
.action {
    position: relative;
    color: var(--ink);
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color .2s;
}
.action:hover { color: var(--rust); }
.action .badge {
    position: absolute;
    top: 0; inset-inline-end: 0;
    background: var(--rust);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.action-text {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    margin-inline-start: 4px;
    line-height: 1.1;
}
.action-text small { color: var(--muted); font-size: 10px; }

/* Account dropdown (uses .lang-switch base + tweaks) */
.account-switch button.action-account {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.account-menu { min-width: 220px; padding: 8px; }
.account-menu-head {
    padding: 8px 14px 10px;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.account-menu .lang-item {
    justify-content: flex-start;
    gap: 10px;
}
.account-menu .lang-item svg { color: var(--ink); transition: color .15s; }
.account-menu .lang-item:hover svg { color: var(--rust); }

.actions { margin-inline-start: auto; }
.mobile-search-btn { display: none; }

/* Mobile top utility bar (lang + currency between promo and header) */
.mobile-top-bar { display: none; }

@media (max-width: 991px) {
    .header-row { height: 60px; gap: 12px; }
    .search-box { display: none; }
    .menu-toggle { display: inline-flex; }
    /* Hide desktop lang+currency on mobile (they live in mobile-top-bar instead) */
    .header-row .actions > .lang-switch:not(.account-switch) { display: none !important; }
    .account-switch { display: inline-flex !important; align-items: center; }
    .account-menu { inset-inline-end: 0; min-width: 200px; }
    .brand-tag { display: none; }
    .brand { font-size: 22px; }
    .actions { gap: 6px; }

    /* Mobile top bar */
    .mobile-top-bar {
        display: block;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }
    .mobile-top-inner {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        height: 36px;
    }
    .lang-switch-tiny .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
        border-color: transparent;
        background: transparent;
        font-weight: 600;
    }
    .lang-switch-tiny .lang-btn:hover {
        border-color: var(--line);
        background: var(--bg-2);
    }
    .lang-switch-tiny .lang-btn svg { width: 12px; height: 12px; }
}

@media (max-width: 480px) {
    .brand { font-size: 19px; letter-spacing: 0.14em; }
    .lang-switch-tiny .lang-btn { padding: 4px 8px; font-size: 11px; }
}

/* ---------- Nav (categories bar) ---------- */
.cat-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.cat-nav-row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav-row::-webkit-scrollbar { display: none; }

@media (max-width: 991px) {
    .cat-nav { display: none; }
}
.cat-link {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    border-radius: 999px;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-link:hover { background: var(--bg-3); color: var(--ink); }
.cat-link.is-active { background: var(--ink); color: #fff; }
.cat-link.is-sale { color: var(--rust); }
.cat-link.is-sale:hover { background: var(--rust-soft); color: var(--rust); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    transition: all .2s;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-rust { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-rust:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-tight { padding: 50px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } .section-tight { padding: 32px 0; } }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.section-head .h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
}
html[dir="rtl"] .section-head .h2 { font-family: var(--sans-ar); font-weight: 700; }
.section-head .sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}
.section-head .view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-head .view-all:hover { color: var(--rust); gap: 10px; }

/* ---------- HERO SLIDER ---------- */
.hero {
    position: relative;
    background: var(--bg-2);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding-bottom: 40px;
}
.hero-stage {
    position: relative;
    min-height: 580px;
}
@media (max-width: 991px) { .hero-stage { min-height: auto; } }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .35s ease, visibility 0s linear 0s;
    z-index: 1;
}
@media (max-width: 991px) { .hero-slide { position: relative; display: none; } .hero-slide.is-active { display: block; } }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 540px;
}
@media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; min-height: auto; } }

.hero-text {
    padding: 80px 60px;
}
@media (max-width: 991px) { .hero-text { padding: 56px 24px; text-align: center; } }
.hero-text .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rust-soft);
    color: var(--rust);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 18px;
    letter-spacing: -0.015em;
}
html[dir="rtl"] .hero-text h1 { font-family: var(--sans-ar); font-weight: 800; }
.hero-text h1 em { font-style: italic; color: var(--rust); }
.hero-text p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 480px;
}
@media (max-width: 991px) { .hero-text p { margin-left: auto; margin-right: auto; } }
.hero-text .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 991px) { .hero-text .hero-ctas { justify-content: center; } }
.hero-text .hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
@media (max-width: 991px) { .hero-text .hero-stats { justify-content: center; } }
.hero-text .hero-stats .stat strong {
    display: block;
    font-family: var(--serif);
    font-size: 26px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1;
}
.hero-text .hero-stats .stat span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 4px;
    display: block;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 540px;
    background: var(--bg-3);
}
@media (max-width: 991px) { .hero-image { min-height: 360px; } }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-floating-card {
    position: absolute;
    bottom: 24px;
    inset-inline-start: 24px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 280px;
}
.hero-floating-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.hero-floating-card .info { flex: 1; min-width: 0; }
.hero-floating-card .info small { font-size: 10px; color: var(--rust); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-floating-card .info strong { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); margin-top: 2px; }
.hero-floating-card .info .price { font-size: 13px; color: var(--ink); font-weight: 700; margin-top: 2px; }

/* Pill ink variant (for slide 2) */
.pill.pill-ink { background: var(--ink); color: #fff; }
.pill.pill-ink svg { color: var(--rust-2); }

/* Side arrows — vertically centered on hero */
.hero-arrow {
    position: absolute;
    top: calc(50% - 14px);
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: background .2s ease, color .2s ease, transform .2s ease;
    flex-shrink: 0;
}
.hero-arrow-prev { inset-inline-start: 18px; }
.hero-arrow-next { inset-inline-end: 18px; }
/* Mirror chevrons in RTL so arrows point outward */
html[dir="rtl"] .hero-arrow svg { transform: scaleX(-1); }
.hero-arrow:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-50%) scale(1.06);
}
@media (max-width: 768px) {
    .hero-arrow { width: 42px; height: 42px; }
    .hero-arrow-prev { inset-inline-start: 8px; }
    .hero-arrow-next { inset-inline-end: 8px; }
}

/* Bottom controls — dots + counter */
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 64px;
    padding: 0 8px;
    position: relative;
    z-index: 2;
}
@media (max-width: 991px) { .hero-controls { margin-top: 36px; gap: 16px; } }

.hero-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}
.hero-dot {
    position: relative;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-dot::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--line-2);
    transition: all .3s ease;
}
.hero-dot:hover::before { background: var(--ink); }
.hero-dot.is-active::before {
    width: 28px;
    background: var(--rust);
    border-radius: 999px;
}

.hero-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--serif);
    color: var(--ink);
    user-select: none;
}
.hero-counter-num {
    font-size: 22px;
    font-weight: 600;
    color: var(--rust);
    line-height: 1;
}
.hero-counter-sep { color: var(--line-2); font-size: 16px; }
.hero-counter-total { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .hero-counter { display: none; } }

/* ---------- Quick Categories (rounded image previews) ---------- */
.quick-cats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}
@media (max-width: 991px) { .quick-cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .quick-cats { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

.quick-cat {
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease;
    display: block;
}
.quick-cat:hover { transform: translateY(-3px); }

.quick-cat .img-wrap {
    display: block;
    width: 110px; height: 110px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: all .25s ease;
    position: relative;
}
.quick-cat:hover .img-wrap {
    border-color: var(--rust);
    box-shadow: 0 12px 28px rgba(194, 65, 12, 0.15);
}
.quick-cat .img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.quick-cat:hover .img-wrap img { transform: scale(1.08); }

.quick-cat .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: block;
    line-height: 1.3;
}
.quick-cat .count {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-top: 3px;
}

@media (max-width: 991px) {
    .quick-cat .img-wrap { width: 92px; height: 92px; margin-bottom: 10px; }
    .quick-cat .name { font-size: 12px; }
}
@media (max-width: 480px) {
    .quick-cat .img-wrap { width: 80px; height: 80px; margin-bottom: 8px; }
    .quick-cat .name { font-size: 11px; }
    .quick-cat .count { font-size: 10px; }
}

/* ---------- Product Card ---------- */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all .25s;
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--line);
    box-shadow: 0 20px 60px rgba(0,0,0,.06);
}
.product-card .image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--bg-2);
    overflow: hidden;
}
.product-card .image-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.product-card:hover .image-wrap img { transform: scale(1.05); }
.product-card .corner-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: var(--rust);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 4px;
}
.product-card .corner-badge.green { background: var(--green); }
.product-card .corner-badge.dark  { background: var(--ink); }
.product-card .image-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.product-card .wishlist-form {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    margin: 0;
}
.product-card .wishlist-form .wishlist-btn { position: static; }
.product-card .wishlist-btn.is-active { color: var(--rust); }
.pdp-cta-form { display: flex; align-items: center; gap: 12px; flex: 1; }
.pdp-wishlist.is-active { color: var(--rust); border-color: var(--rust); }

.coupon-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3ead4;
    border: 1px solid #e6d5a8;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 14px 0;
}
.coupon-active .coupon-code {
    background: var(--ink, #1f1d18);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 12px;
}
.coupon-active small { display: block; color: var(--ink-2, #5b554a); margin-top: 4px; font-size: 12px; }
.coupon-active .btn-link {
    background: transparent;
    border: 0;
    color: var(--rust, #b07e46);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}
.coupon-error {
    background: #ffeaea;
    border: 1px solid #f5b9b9;
    color: #9a1f1f;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 10px 0;
}
.coupon-success {
    background: #eafaf0;
    border: 1px solid #b9e9c9;
    color: #1a4d2e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 10px 0;
}

.secure-checkout-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #faf6ec;
    border: 1px solid var(--line, #ece6d6);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    color: var(--ink, #1f1d18);
    font-weight: 600;
    font-size: 13.5px;
}
.secure-checkout-strip svg { width: 18px; height: 18px; color: var(--green, #0a8a4a); }

/* Checkout page */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 991px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-section {
    background: #fff;
    border: 1px solid var(--line, #ece6d6);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 18px;
}
.checkout-section h3 {
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--ink, #1f1d18);
}
.checkout-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .checkout-grid-2 { grid-template-columns: 1fr; } }
.checkout-field { margin-bottom: 12px; }
.checkout-field label { display: block; font-size: 13px; color: var(--ink-2, #5b554a); margin-bottom: 4px; }
.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    border: 1px solid var(--line, #ece6d6);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
    color: var(--ink, #1f1d18);
}
.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--ink, #1f1d18);
}
.checkout-payment-options { display: grid; gap: 10px; }
.checkout-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line, #ece6d6);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.checkout-payment-option:has(input:checked) {
    border-color: var(--ink, #1f1d18);
    background: #faf6ec;
}
.checkout-payment-option input { margin: 0; }
.checkout-summary-mini {
    background: #fff;
    border: 1px solid var(--line, #ece6d6);
    border-radius: 12px;
    padding: 22px;
    position: sticky;
    top: 90px;
}
.checkout-summary-mini .summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.checkout-summary-mini .summary-row.total { border-top: 1px solid var(--line, #ece6d6); padding-top: 12px; margin-top: 8px; font-size: 16px; }
.checkout-summary-items { max-height: 220px; overflow-y: auto; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #ece6d6); }
.checkout-summary-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; }
.checkout-summary-item img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.checkout-summary-item .name { flex: 1; min-width: 0; }
.checkout-summary-item .name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.checkout-summary-item .name span { color: var(--muted, #8a7a55); font-size: 12px; }
.checkout-summary-item .qty-line { white-space: nowrap; font-weight: 600; }
.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 34px; height: 34px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: background .2s, color .2s;
    z-index: 3;
    cursor: pointer;
}
.product-card .wishlist-btn:hover { background: var(--rust); color: #fff; }

.product-card .meta {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .cat {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.product-card h4 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 4px 0 8px;
    line-height: 1.25;
}
html[dir="rtl"] .product-card h4 { font-family: var(--sans-ar); font-weight: 700; font-size: 14px; }
.product-card .stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}
.product-card .stars .s-rust { color: var(--rust); }

.product-colors {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 12px;
    flex-wrap: wrap;
}
.product-colors .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
    display: inline-block;
    padding: 0;
}
.product-colors .color-dot:hover {
    transform: scale(1.25);
}
.product-colors .color-dot.is-active {
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.5),
        0 0 0 2px var(--bg),
        0 0 0 4px var(--ink);
    transform: scale(1.1);
}
.product-colors .color-more {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    margin-inline-start: 2px;
}

.product-card .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.product-card .price {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
.product-card .old-price {
    font-size: 12px;
    color: var(--muted);
    text-decoration: line-through;
}
.product-card .add-cart-btn {
    margin-inline-start: auto;
    background: var(--bg-2);
    color: var(--ink);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.product-card .add-cart-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Promo Banner Strip ---------- */
.promo-banner {
    background: var(--ink);
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
}
@media (max-width: 768px) { .promo-banner { grid-template-columns: 1fr; } }
.promo-banner .text {
    padding: 56px;
}
@media (max-width: 768px) { .promo-banner .text { padding: 40px 24px; } }
.promo-banner .pill {
    display: inline-block;
    background: var(--rust);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.promo-banner h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.05;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
html[dir="rtl"] .promo-banner h2 { font-family: var(--sans-ar); font-weight: 800; }
.promo-banner h2 em { font-style: italic; color: var(--rust-2); }
.promo-banner p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin: 0 0 24px; max-width: 420px; }
.promo-banner .image {
    height: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

/* ---------- Big Category Cards ---------- */
.big-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .big-cat-grid { grid-template-columns: 1fr; } }
.big-cat {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 18px;
    overflow: hidden;
    display: block;
}
.big-cat img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.big-cat:hover img { transform: scale(1.04); }
.big-cat .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,26,26,.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #fff;
}
.big-cat h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1;
}
html[dir="rtl"] .big-cat h3 { font-family: var(--sans-ar); font-weight: 800; }
.big-cat .count { font-size: 12px; opacity: .85; margin-bottom: 14px; }
.big-cat .shop {
    align-self: flex-start;
    background: #fff;
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s;
}
.big-cat:hover .shop { background: var(--rust); color: #fff; }

/* ---------- Trust Strip ---------- */
.trust-strip {
    background: var(--bg-2);
    padding: 36px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.trust-item .ic-wrap {
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--rust);
    flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }
.trust-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-2);
    padding: 64px 0 24px;
    border-top: 1px solid var(--line);
}
.footer-row { margin-bottom: 48px; }
.footer-col h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.footer-col ul li a:hover { color: var(--rust); }
.footer-about p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 12px 0 16px; max-width: 320px; }
.social-line { display: flex; gap: 10px; }
.social-line a {
    width: 36px; height: 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink);
    transition: all .2s;
}
.social-line a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Drawers ---------- */
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(26,26,26,.45);
    backdrop-filter: blur(4px);
    z-index: 1098;
}
.drawer {
    position: fixed; top: 0; bottom: 0;
    inset-inline-end: 0;
    width: 100%; max-width: 440px;
    background: #fff;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 60px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }
.drawer-head {
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-head h5 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 28px; }
.drawer-foot { padding: 22px 28px; border-top: 1px solid var(--line); background: var(--bg-2); }

.line-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.line-item img { width: 80px; height: 96px; object-fit: cover; background: var(--bg-2); border-radius: 8px; }
.line-item h6 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.line-item .fabric { font-size: 11px; color: var(--muted); }
.line-item .row-bottom { display: flex; justify-content: space-between; margin-top: 12px; align-items: center; }
.line-item .qty-x { font-size: 12px; color: var(--muted); }
.line-item .total { font-size: 15px; color: var(--rust); font-weight: 700; }
.line-item .remove { color: var(--muted); align-self: start; }
.line-item .remove:hover { color: var(--red); }

.empty-state-light { text-align: center; padding: 56px 0; color: var(--muted); }
.empty-state-light svg { margin: 0 auto 16px; opacity: .35; display: block; }
.empty-state-light p { font-size: 13px; margin: 0; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,26,26,.65);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-box {
    background: #fff;
    width: 100%; max-width: 1000px;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
@media (max-width: 768px) { .modal-box { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; } }
.modal-close {
    position: absolute;
    top: 16px; inset-inline-end: 16px;
    width: 36px; height: 36px;
    background: var(--bg-2);
    color: var(--ink);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    transition: all .2s;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-img { background: var(--bg-2); min-height: 480px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; max-height: 92vh; }
@media (max-width: 768px) { .modal-img { min-height: 320px; } }
.modal-body { padding: 36px 32px; overflow-y: auto; }
.modal-body .cat { font-size: 11px; color: var(--rust); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.modal-body h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; margin: 8px 0 12px; line-height: 1.1; }
.modal-body .desc { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 12px 0 0; }
.modal-body .price-tag { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--rust); margin-top: 16px; }

.fabric-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fabric-pick .pick {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 12px;
    transition: all .2s;
}
.fabric-pick .pick:hover { border-color: var(--ink); }
.fabric-pick .pick.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.fabric-pick .pick .swatch {
    display: inline-block;
    width: 14px; height: 14px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 50%;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.qty-selector button { width: 40px; height: 44px; color: var(--ink); }
.qty-selector .num { width: 44px; text-align: center; font-size: 14px; font-weight: 600; }

.cta-row { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.cta-row .btn { flex: 1; }

/* ---------- Page Head (Cart / Wishlist / Subpages) ---------- */
.page-head {
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 36px 0 32px;
}
.page-breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.page-breadcrumb a:hover { color: var(--rust); }
.page-breadcrumb .sep { opacity: .5; }
.page-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
html[dir="rtl"] .page-title { font-family: var(--sans-ar); font-weight: 800; }
.page-title-count {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0;
}

/* ---------- Empty State (cart / wishlist pages) ---------- */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
}
.cart-empty svg {
    margin: 0 auto 24px;
    color: var(--line-2);
    display: block;
}
.cart-empty h2 {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--ink);
    margin: 0 0 10px;
}
html[dir="rtl"] .cart-empty h2 { font-family: var(--sans-ar); font-weight: 700; }
.cart-empty p {
    font-size: 14px;
    margin: 0 0 28px;
    max-width: 380px;
    margin-left: auto; margin-right: auto;
}

/* ---------- Cart Page ---------- */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 991px) { .cart-grid { grid-template-columns: 1fr; gap: 32px; } }

.cart-items { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }

.cart-row {
    display: grid;
    grid-template-columns: 1fr 180px 130px;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-row:last-child { border-bottom: none; }
@media (max-width: 768px) {
    .cart-row { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px; }
    .cart-row.cart-row-head { display: none; }
    .cart-row .cart-qty, .cart-row .cart-total { justify-self: start; }
}

.cart-row-head {
    background: var(--bg-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 28px;
}
.text-center { text-align: center; }
.text-end    { text-align: end; }

.cart-product { display: flex; gap: 18px; align-items: start; }
.cart-product img { width: 100px; height: 120px; object-fit: cover; border-radius: 10px; background: var(--bg-2); flex-shrink: 0; }
.cart-product h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
html[dir="rtl"] .cart-product h4 { font-family: var(--sans-ar); font-weight: 700; font-size: 16px; }
.cart-product .fabric { font-size: 12px; color: var(--muted); display: block; }
.cart-product-price { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cart-remove {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.cart-remove:hover { color: var(--red); }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.qty-stepper button {
    width: 38px; height: 42px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}
.qty-stepper button:hover:not(:disabled) { background: var(--bg-2); }
.qty-stepper button:disabled { color: var(--line-2); cursor: not-allowed; }
.qty-stepper span { width: 42px; text-align: center; font-weight: 600; }

.cart-total { font-size: 18px; font-weight: 700; color: var(--rust); text-align: end; }
@media (max-width: 768px) { .cart-total { text-align: start; } }

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 28px;
    background: var(--bg-2);
    flex-wrap: wrap;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 96px;
}
.cart-summary h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 22px;
    color: var(--ink);
}
html[dir="rtl"] .cart-summary h3 { font-family: var(--sans-ar); font-weight: 700; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.summary-row strong { color: var(--ink); font-weight: 700; }
.summary-row.total {
    border-top: 2px solid var(--ink);
    border-bottom: none;
    padding: 18px 0 4px;
    margin-top: 8px;
    font-size: 16px;
    color: var(--ink);
}
.summary-row.total strong { font-size: 22px; color: var(--rust); }

.promo-input {
    display: flex;
    gap: 8px;
    margin: 22px 0;
}
.promo-input input {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 12px 14px;
    border-radius: 999px;
    font-size: 13px;
    outline: none;
    color: var(--ink);
}
.promo-input input:focus { border-color: var(--ink); background: #fff; }

.checkout-btn { width: 100%; }

.trust-row {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}
.trust-row > div { display: flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--rust); }

/* ---------- Mobile Menu Drawer ---------- */
.mobile-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(26,26,26,.5);
    backdrop-filter: blur(4px);
    z-index: 1098;
}
.mobile-menu {
    position: fixed;
    top: 0; bottom: 0;
    inset-inline-start: 0;
    width: min(86vw, 380px);
    background: #fff;
    z-index: 1099;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0,0,0,.18);
}
.mm-anim { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.mm-from { transform: translateX(-100%); }
.mm-to   { transform: translateX(0); }
html[dir="rtl"] .mm-from { transform: translateX(100%); }

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}
.mobile-menu-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
}
html[dir="rtl"] .mobile-menu-title { font-family: var(--sans-ar); font-weight: 700; }
.mobile-menu-close {
    width: 36px; height: 36px;
    background: var(--bg-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background .2s;
}
.mobile-menu-close:hover { background: var(--ink); color: #fff; }

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 0;
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 18px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 6px 6px 16px;
}
.mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    color: var(--ink);
}
.mobile-search input::placeholder { color: var(--muted); }
.mobile-search button {
    width: 36px; height: 36px;
    background: var(--ink);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.mobile-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 24px 6px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}
.mobile-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    border-radius: 10px;
    transition: background .15s;
}
.mobile-menu-list li a:hover { background: var(--bg-2); color: var(--rust); }
.mobile-menu-list li a.is-sale { color: var(--rust); font-weight: 700; }
.mobile-menu-list li a.is-sale:hover { background: var(--rust-soft); }

.mobile-menu-list-sm li a { font-size: 14px; padding: 10px 16px; }

.mobile-prefs {
    padding: 4px 12px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mobile-pref-block .mobile-section-title { padding: 14px 12px 6px; }

.mobile-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px;
}
.mobile-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink);
    background: transparent;
    transition: all .15s;
    cursor: pointer;
}
.mobile-lang-link:hover { border-color: var(--ink); }
.mobile-lang-link.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.mobile-menu-foot {
    border-top: 1px solid var(--line);
    padding: 18px 24px;
    background: var(--bg-2);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-foot span { color: var(--muted); }
.mobile-menu-foot a { color: var(--rust); font-weight: 700; }

/* ---------- Product Detail Page (PDP) ---------- */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 991px) { .pdp-grid { grid-template-columns: 1fr; gap: 36px; } }

.pdp-gallery { position: sticky; top: 96px; }
@media (max-width: 991px) { .pdp-gallery { position: static; } }

.pdp-main-img {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--bg-2);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.pdp-badge { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; }

.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pdp-thumb {
    aspect-ratio: 1/1;
    background: var(--bg-2);
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: border-color .2s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--line-2); }
.pdp-thumb.is-active { border-color: var(--ink); }

/* Info panel */
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-cat {
    font-size: 11px;
    color: var(--rust);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}
.pdp-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.015em;
}
html[dir="rtl"] .pdp-title { font-family: var(--sans-ar); font-weight: 700; }

.pdp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.pdp-stars { color: var(--rust); letter-spacing: 2px; }
.pdp-rating { font-weight: 600; color: var(--ink); }
.pdp-sep { opacity: .5; }
.pdp-stock { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.pdp-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pdp-sku { font-family: monospace; font-size: 12px; }

.pdp-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.pdp-price-now {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--rust);
    line-height: 1;
}
.pdp-price-old {
    font-size: 18px;
    color: var(--muted);
    text-decoration: line-through;
}
.pdp-price-save {
    background: var(--rust-soft);
    color: var(--rust);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.pdp-desc {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.pdp-options { display: flex; flex-direction: column; gap: 18px; }
.pdp-option-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pdp-option-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.pdp-option-value {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

.pdp-color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-color-swatch {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line-2);
    cursor: pointer;
    padding: 0;
    transition: all .2s ease;
}
.pdp-color-swatch:hover { transform: scale(1.1); }
.pdp-color-swatch.is-active {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink);
    transform: scale(1.05);
}

.pdp-size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-size-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    text-align: start;
    transition: all .2s ease;
    min-width: 100px;
}
.pdp-size-btn:hover { border-color: var(--ink-2); }
.pdp-size-btn.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.pdp-size-label { display: block; font-size: 13px; font-weight: 700; }
.pdp-size-note { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }

.pdp-cta-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
}
.pdp-add-cart { flex: 1; padding: 16px 26px !important; }
.pdp-wishlist {
    width: 56px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pdp-wishlist:hover { background: var(--rust); color: #fff; border-color: var(--rust); }

.pdp-highlights {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 10px;
}
.pdp-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
}
.pdp-highlights svg { color: var(--rust); flex-shrink: 0; }

.pdp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.pdp-trust div { display: inline-flex; align-items: center; gap: 8px; }
.pdp-trust svg { color: var(--rust); }

/* PDP Tabs */
.pdp-tabs-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}
.pdp-tabs button {
    padding: 14px 22px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s ease;
}
.pdp-tabs button:hover { color: var(--ink); }
.pdp-tabs button.is-active { color: var(--ink); border-bottom-color: var(--rust); }

.pdp-tab-panel {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.8;
    max-width: 760px;
}
.pdp-tab-panel h4 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 16px 0 6px;
}
html[dir="rtl"] .pdp-tab-panel h4 { font-family: var(--sans-ar); font-weight: 700; }
.pdp-tab-panel p { margin: 0 0 14px; }

.pdp-specs-table {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
}
.pdp-specs-table tr { border-bottom: 1px solid var(--line); }
.pdp-specs-table th {
    text-align: start;
    padding: 14px 0;
    width: 40%;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pdp-specs-table td { padding: 14px 0; color: var(--ink-2); font-size: 14px; }

.pdp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 28px;
}
.pdp-rating-big {
    font-family: var(--serif);
    font-size: 56px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.pdp-rating-big span { font-size: 22px; color: var(--muted); }
.pdp-stars-lg { color: var(--rust); font-size: 18px; letter-spacing: 3px; margin-bottom: 4px; }
.pdp-rating-count { font-size: 13px; color: var(--muted); }

.pdp-review {
    background: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
}
.pdp-review strong { display: inline-block; font-size: 14px; color: var(--ink); margin-inline-end: 12px; }
.pdp-review-stars { color: var(--rust); font-size: 12px; letter-spacing: 2px; }
.pdp-review p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* ---------- Products Listing Page ---------- */
.products-grid-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 991px) { .products-grid-wrap { grid-template-columns: 1fr; gap: 0; } }

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 0;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
@media (max-width: 991px) {
    .filter-sidebar {
        position: fixed;
        top: 0; bottom: 0;
        inset-inline-start: 0;
        width: min(86vw, 360px);
        max-height: 100vh;
        z-index: 1099;
        border-radius: 0;
        border: none;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.16,1,.3,1);
        box-shadow: 0 0 50px rgba(0,0,0,.18);
        display: flex;
        flex-direction: column;
    }
    html[dir="rtl"] .filter-sidebar { transform: translateX(100%); }
    .filter-sidebar.is-open { transform: translateX(0); }
}

.filter-sidebar-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
@media (max-width: 991px) { .filter-sidebar-head { display: flex; } }
.filter-sidebar-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; color: var(--ink); }
html[dir="rtl"] .filter-sidebar-head h3 { font-family: var(--sans-ar); font-weight: 700; }
.filter-close {
    width: 36px; height: 36px;
    background: var(--bg-2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
}
.filter-close:hover { background: var(--ink); color: #fff; }

.filter-block {
    border-bottom: 1px solid var(--line);
    padding: 4px 20px;
}
.filter-block:last-of-type { border-bottom: none; }
.filter-block-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.filter-block-head svg { transition: transform .2s ease; color: var(--muted); }
.filter-block-head svg.rotated { transform: rotate(180deg); }
.filter-block-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 16px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-2);
}
.filter-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
}
.filter-check span { flex: 1; }
.filter-check em {
    font-style: normal;
    color: var(--muted);
    font-size: 11px;
    background: var(--bg-2);
    padding: 2px 8px;
    border-radius: 999px;
}
.filter-check:hover span { color: var(--ink); }
.filter-check input:checked + span { color: var(--ink); font-weight: 600; }

.filter-rating { display: inline-flex; align-items: center; gap: 4px; }
.filter-rating span { color: var(--line-2); font-size: 14px; }
.filter-rating span.on { color: var(--rust); }
.filter-rating em { font-style: normal; color: var(--muted); font-size: 12px; margin-inline-start: 6px; background: none; padding: 0; }

.price-range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}
.price-range-inputs {
    position: relative;
    height: 24px;
    margin: 6px 0;
}
.price-range-inputs input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--line);
    appearance: none;
    pointer-events: none;
    margin: 0;
}
.price-range-inputs input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    cursor: pointer;
    pointer-events: auto;
}
.price-range-inputs input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid #fff;
    cursor: pointer;
    pointer-events: auto;
}
.price-range-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.price-range-fields input {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    width: 100%;
}
.price-range-fields input:focus { border-color: var(--ink); background: #fff; }

.filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}
.filter-color {
    display: inline-block;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--line-2);
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}
.filter-color:hover { transform: scale(1.12); }
.filter-color.is-active,
.filter-color-wrap input:checked + .filter-color {
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink);
    transform: scale(1.05);
}
.filter-color-wrap {
    display: inline-block;
    cursor: pointer;
    margin: 0;
}
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.filter-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    margin-top: auto;
}
@media (min-width: 992px) { .filter-foot { background: transparent; border-top: 1px solid var(--line); } }

.filter-backdrop {
    display: none;
}
@media (max-width: 991px) {
    .filter-backdrop {
        display: block;
        position: fixed; inset: 0;
        background: rgba(26,26,26,.5);
        backdrop-filter: blur(4px);
        z-index: 1098;
    }
    .filter-backdrop[style*="display: none"] { display: none !important; }
}

/* Filter button on mobile */
.filter-btn-mobile {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.filter-btn-mobile:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 991px) { .filter-btn-mobile { display: inline-flex; } }

/* Sort select */
.sort-select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231A1A1A' stroke-width='2' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}
html[dir="rtl"] .sort-select {
    background-position: left 10px center;
    padding-right: 18px;
    padding-left: 32px;
}
.sort-select:focus { border-color: var(--ink); }

/* Active filters chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.active-filter button {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.active-filter button:hover { background: var(--rust); }
.active-clear {
    background: none;
    border: none;
    color: var(--rust);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-inline-start: 6px;
}
.active-clear:hover { text-decoration: underline; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.pg-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    transition: all .15s ease;
    padding: 0 12px;
}
.pg-btn:hover { border-color: var(--ink); color: var(--ink); }
.pg-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg-dots { color: var(--muted); padding: 0 4px; }

/* ---------- Client Dashboard ---------- */
.dash-wrap {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 991px) { .dash-wrap { grid-template-columns: 1fr; gap: 18px; } }

/* Sidebar */
.dash-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 96px;
}
@media (max-width: 991px) { .dash-sidebar { position: static; } }

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.dash-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-user strong { display: block; color: var(--ink); font-size: 14px; }
.dash-user small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    transition: all .15s ease;
    text-decoration: none;
}
.dash-link svg { color: var(--muted); flex-shrink: 0; }
.dash-link em { font-style: normal; font-size: 11px; color: var(--muted); margin-inline-start: auto; background: var(--bg-2); padding: 2px 8px; border-radius: 999px; }
.dash-link:hover { background: var(--bg-2); color: var(--ink); }
.dash-link:hover svg { color: var(--ink); }
.dash-link.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.dash-link.is-active svg { color: #fff; }
.dash-link.is-active em { background: rgba(255,255,255,.18); color: #fff; }
.dash-link-logout { color: var(--red); }
.dash-link-logout svg { color: var(--red); }
.dash-link-logout:hover { background: #FEE2E2; color: var(--red); }
.dash-nav-sep { border: none; border-top: 1px solid var(--line); margin: 12px 0; }

/* ----- Addresses page ----- */
.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.addr-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}
.addr-name { color: var(--ink); font-size: 1rem; }
.addr-lines { color: var(--muted); margin: 0; line-height: 1.85; font-size: 14px; }
.addr-lines small { font-size: 12px; }
.addr-meta { color: var(--muted); font-size: 12px; }
.addr-actions { margin-top: auto; }
.addr-delete {
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
}
.addr-delete:hover { text-decoration: underline; }

/* ----- Settings page ----- */
.settings-form { display: flex; flex-direction: column; gap: 18px; }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.settings-field { display: flex; flex-direction: column; gap: 6px; }
.settings-field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.settings-field input {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.settings-field input:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(176, 126, 70, 0.12);
}
.settings-err { color: var(--red); font-size: 12px; }

/* Reusable success pill (for flash messages) */
.alert-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.alert-pill-success { background: #DCFCE7; color: #166534; }

/* Orders bulk export bar */
.orders-export-bar {
    display: flex;
    justify-content: flex-end;
    padding: 14px 0 4px;
    border-top: 1px dashed #ece6d6;
    margin-top: 14px;
}
.orders-export-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Main */
.dash-main { display: flex; flex-direction: column; gap: 18px; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 768px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.dash-stat .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-stat .stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.dash-stat .stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.dash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    height: 100%;
}
.dash-card-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.dash-card-head h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}
html[dir="rtl"] .dash-card-head h3 { font-family: var(--sans-ar); font-weight: 700; }
.dash-card-head p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

.dash-table-wrap { overflow-x: auto; }
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 580px;
}
.dash-table th {
    text-align: start;
    padding: 12px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.dash-table td {
    padding: 14px 12px;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line);
}
.dash-table tr:last-child td { border-bottom: none; }

.dash-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-badge-green { background: #DCFCE7; color: #166534; }
.dash-badge-blue  { background: #DBEAFE; color: #1E40AF; }
.dash-badge-amber { background: #FEF3C7; color: #92400E; }
.dash-badge-red   { background: #FEE2E2; color: #991B1B; }

.dash-link-tiny { color: var(--rust); font-weight: 700; font-size: 12px; }
.dash-link-tiny:hover { text-decoration: underline; }

.dash-info-list { display: flex; flex-direction: column; gap: 10px; }
.dash-info-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}
.dash-info-list > div:last-child { border-bottom: none; }
.dash-info-list span { color: var(--muted); }
.dash-info-list strong { color: var(--ink); font-weight: 600; }

.dash-address {
    background: var(--bg-2);
    border-radius: 12px;
    padding: 18px;
}
.dash-address strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.dash-address p { color: var(--ink-2); font-size: 13px; line-height: 1.6; margin: 0 0 10px; }

/* ---------- Auth Pages (Login / Register / OTP) ---------- */
.auth-page {
    background: var(--bg-2);
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}
.auth-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}
.auth-grid-narrow { max-width: 920px; }
@media (max-width: 991px) {
    .auth-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Side promo */
.auth-side {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 991px) { .auth-side { padding: 0; text-align: center; } }
.auth-side-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
    margin: 16px 0 18px;
    letter-spacing: -0.015em;
}
html[dir="rtl"] .auth-side-title { font-family: var(--sans-ar); font-weight: 700; }
.auth-side-title em { font-style: italic; color: var(--rust); }
.auth-side-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 460px;
}
@media (max-width: 991px) { .auth-side-desc { margin-left: auto; margin-right: auto; } }
.auth-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (max-width: 991px) { .auth-perks { display: inline-flex; align-self: center; } }
.auth-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
}
.auth-perks svg {
    color: var(--rust);
    background: var(--rust-soft);
    width: 22px; height: 22px;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
}
.auth-side-illust {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

/* Card */
.auth-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,.06);
}
@media (max-width: 480px) { .auth-card { padding: 28px 22px; } }

.auth-card-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
html[dir="rtl"] .auth-card-title { font-family: var(--sans-ar); font-weight: 700; }
.auth-card-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 24px;
    line-height: 1.6;
}
.auth-card-sub strong { color: var(--ink); }

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-2);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.auth-tabs button:hover { color: var(--ink); }
.auth-tabs button.is-active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.auth-tabs svg { width: 14px; height: 14px; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.auth-label-row { display: flex; justify-content: space-between; align-items: center; }
.auth-forgot {
    font-size: 12px;
    font-weight: 600;
    color: var(--rust);
}
.auth-forgot:hover { text-decoration: underline; }

.auth-input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid transparent;
    padding: 13px 16px;
    font-size: 14px;
    color: var(--ink);
    border-radius: 10px;
    outline: none;
    transition: all .2s ease;
    font-family: inherit;
}
.auth-input:focus {
    background: #fff;
    border-color: var(--ink);
}
.auth-input::placeholder { color: var(--muted); }

.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) { .auth-row-2 { grid-template-columns: 1fr; } }

.auth-phone-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px;
}
.auth-phone-cc {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-2);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.auth-phone-cc:hover { background: #f3eedd; }
.auth-phone-cc .ic-sm { margin-inline-start: auto; transition: transform .15s; }
.auth-phone-cc .ic-sm.rotated { transform: rotate(180deg); }
.auth-phone-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.auth-phone-menu {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-start: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(20, 16, 8, 0.10);
    z-index: 50;
    padding: 0;
    overflow: hidden;
}
.auth-phone-search-wrap {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #faf6ec;
}
.auth-phone-search {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px 8px 34px;
    font-size: 13.5px;
    color: var(--ink);
    outline: none;
}
html[dir="rtl"] .auth-phone-search { padding: 8px 34px 8px 10px; }
.auth-phone-search:focus { border-color: var(--ink); }
.auth-phone-search-ic {
    position: absolute;
    inset-inline-start: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    color: var(--muted);
}
.auth-phone-list { max-height: 280px; overflow-y: auto; padding: 4px 0; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-2);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 14px;
}
.auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2, #5b554a);
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.auth-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(20, 16, 8, 0.06);
}
.auth-phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    text-align: start;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--ink);
    transition: background .12s;
}
.auth-phone-item:hover { background: #faf6ec; }
.auth-phone-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-phone-code { color: var(--muted); font-weight: 600; }

.auth-pwd-wrap { position: relative; }
.auth-pwd-toggle {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-pwd-toggle:hover { color: var(--ink); }
.auth-pwd-wrap .auth-input { padding-inline-end: 44px; }

.auth-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
.auth-flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-flash-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.auth-flash-ok    { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.auth-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    display: block;
}

.auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--ink);
    cursor: pointer;
}
.auth-check a { color: var(--ink); font-weight: 600; }
.auth-check a:hover { color: var(--rust); }

.auth-submit {
    width: 100%;
    padding: 14px 24px;
    margin-top: 6px;
}
.auth-submit.is-disabled,
.auth-submit:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 4px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.auth-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s;
}
.auth-social:hover { border-color: var(--ink); background: var(--bg-2); }
.auth-social svg { width: 18px; height: 18px; }

.auth-foot {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.auth-foot a { color: var(--rust); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

/* OTP Boxes */
.otp-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 6px 0 16px;
}
.otp-box {
    aspect-ratio: 1/1;
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--bg-2);
    text-align: center;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    outline: none;
    transition: all .2s ease;
    padding: 0;
}
.otp-box:focus {
    border-color: var(--ink);
    background: #fff;
    transform: scale(1.04);
}
.otp-box.is-filled {
    background: #fff;
    border-color: var(--ink);
    color: var(--rust);
}

.otp-resend {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}
.otp-resend strong { color: var(--ink); font-family: monospace; }
.otp-resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--rust);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}
.otp-resend-btn:hover { text-decoration: underline; }

.otp-alt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.otp-alt a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 600;
}
.otp-alt a:hover { color: var(--rust); }

/* ---------- Quick View Modal ---------- */
.qv-overlay {
    position: fixed; inset: 0;
    background: rgba(26,26,26,.65);
    backdrop-filter: blur(6px);
    z-index: 1100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.qv-overlay[style*="display: none"] { display: none !important; }
.qv-box {
    background: #fff;
    width: 100%; max-width: 980px;
    max-height: 92vh;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
@media (max-width: 768px) {
    .qv-box { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
}
.qv-close {
    position: absolute;
    top: 14px; inset-inline-end: 14px;
    width: 36px; height: 36px;
    background: var(--bg-2);
    color: var(--ink);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    transition: all .2s;
}
.qv-close:hover { background: var(--ink); color: #fff; }
.qv-img {
    background: var(--bg-2);
    min-height: 480px;
}
.qv-img img { width: 100%; height: 100%; object-fit: cover; max-height: 92vh; }
@media (max-width: 768px) { .qv-img { min-height: 320px; } }

.qv-body {
    padding: 36px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (max-width: 768px) { .qv-body { padding: 28px 22px; gap: 12px; } }

.qv-cat {
    font-size: 11px;
    color: var(--rust);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.qv-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
html[dir="rtl"] .qv-title { font-family: var(--sans-ar); font-weight: 700; }

.qv-rating { display: flex; align-items: center; gap: 8px; }
.qv-stars { color: var(--rust); font-size: 14px; letter-spacing: 2px; }
.qv-rating-count { font-size: 12px; color: var(--muted); }

.qv-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}
.qv-price { display: flex; align-items: baseline; gap: 12px; }
.qv-price-now {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--rust);
}
.qv-price-old {
    font-size: 16px;
    color: var(--muted);
    text-decoration: line-through;
}

.qv-section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.qv-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-pick-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 12px;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
}
.qv-pick-btn:hover { border-color: var(--ink); }
.qv-pick-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.qv-pick-swatch {
    display: inline-block;
    width: 14px; height: 14px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 50%;
}

.qv-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-2);
    align-self: flex-start;
}
.qv-trust svg { color: var(--rust); }

.qv-cta {
    display: flex;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}
.qv-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.qv-qty button {
    width: 40px; height: 46px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
}
.qv-qty button:hover { background: var(--bg-2); }
.qv-qty span { width: 44px; text-align: center; font-size: 14px; font-weight: 600; }
.qv-add { flex: 1; }

/* ---------- Toast ---------- */
.toast-stack {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 1200;
}
.toast {
    background: var(--ink);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.toast svg { color: var(--rust-2); }

/* ---------- Floating Alerts (flash + validation errors) ---------- */
.alert-stack {
    position: fixed;
    top: 24px;
    inset-inline-end: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
}
.alert-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    animation: alertSlideIn .35s ease-out;
}
.alert-toast > svg.ic { flex-shrink: 0; margin-top: 2px; }
.alert-toast > span,
.alert-toast > div { flex: 1; min-width: 0; word-wrap: break-word; }
.alert-toast strong { display: block; font-weight: 700; margin-bottom: 6px; }
.alert-list {
    list-style: disc;
    padding-inline-start: 18px;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.alert-list li { margin-bottom: 2px; }

.alert-success { border-inline-start: 4px solid #16a34a; }
.alert-success > svg.ic { color: #16a34a; }
.alert-error   { border-inline-start: 4px solid #dc2626; }
.alert-error > svg.ic   { color: #dc2626; }
.alert-info    { border-inline-start: 4px solid #2563eb; }
.alert-info > svg.ic    { color: #2563eb; }
.alert-warning { border-inline-start: 4px solid #d97706; }
.alert-warning > svg.ic { color: #d97706; }

.alert-close {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.alert-close:hover { color: var(--ink); background: var(--bg-2); }

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575px) {
    .alert-stack {
        top: 12px;
        inset-inline-end: 12px;
        inset-inline-start: 12px;
        width: auto;
        max-width: none;
    }
    .alert-toast { padding: 12px 14px; font-size: 13px; }
}

/* ---------- Helpers ---------- */
[x-cloak] { display: none !important; }
.ic    { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 22px; height: 22px; }
.ic-xl { width: 28px; height: 28px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rust); }

/* ============ Footer dynamic additions ============ */
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
    line-height: 0;
}
.footer-logo img {
    max-height: 80px;
    width: auto;
    display: block;
}

.footer-newsletter-desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.7;
    margin: 0 0 14px;
}
.footer-newsletter {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 420px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-newsletter:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(31, 29, 24, 0.06);
}
.footer-newsletter .footer-newsletter-input,
.footer-newsletter input.footer-newsletter-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0 16px;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    box-sizing: border-box;
    height: 44px;
    line-height: 1;
}
.footer-newsletter .footer-newsletter-input::placeholder {
    color: var(--ink-2);
}
.footer-newsletter .footer-newsletter-btn,
.footer-newsletter button.footer-newsletter-btn {
    flex: 0 0 auto;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 0 22px;
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.3px;
}
.footer-newsletter .footer-newsletter-btn:hover {
    background: var(--rust, #8a4a2c);
}

.footer-contact-mini {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-contact-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contact-row:hover {
    color: var(--ink);
}
.footer-contact-row svg {
    flex: 0 0 auto;
}

.footer-newsletter-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-newsletter-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.footer-newsletter-alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c2c0;
}

.footer-payments {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-payment-icon {
    height: 24px;
    width: auto;
    display: block;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 16, 8, 0.08);
}
