﻿/* ==========================================================================
   OPTIKA — Design System
   Persian RTL eyewear storefront. Vanilla HTML/CSS/JS (Razor-ready markup).
   ========================================================================== */


@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* لود سریع و بدون پرش متن */
}

/* وزن متوسط (Medium 500) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* وزن ضخیم (Bold 700) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    /* ---- Palette ---- */
    --ink: #12151B; /* deep bottle-green-black — primary text/surfaces */
    --ink-soft: #454B57;
    --paper: #F6F7F6; /* warm bone paper — page background */
    --paper-dim: #ECEEEC;
    --card: #FFFFFF;
    --line: #DADDE0; /* hairline borders */
    --line-soft: #E9EBEC;
    --copper: #FF5A36; /* lens-copper — primary accent */
    --copper-dark: #D6431F;
    --copper-tint: #FFE4DA;
    --sage: #2F5FE0; /* calm secondary accent */
    --sage-tint: #E3E9FC;
    --coral: #C7284B; /* discount / sale */
    --coral-tint: #FBE1E7;
    --gold-star: #E0A93A;
    /* ---- Type ---- */
    --f-display: 'Vazirmatn', sans-serif;
    --f-body: 'Vazirmatn', sans-serif;
    --f-tag: 'Space Grotesk', sans-serif; /* Latin eyebrow / editorial tags */
    /* ---- Radius / shadow ---- */
    --r-sm: 2px;
    --r-md: 4px;
    --r-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(27,36,32,.06);
    --shadow-md: 0 8px 24px rgba(27,36,32,.10);
    --shadow-lg: 0 20px 48px rgba(27,36,32,.16);
    --container: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

@media (max-width:640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 18px;
    }

    .topbar {
        overflow: hidden;
    }

    .topbar .container {
        height: auto;
        min-height: 36px;
        flex-wrap: wrap;
        gap: .5em 12px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .topbar-marquee,
    .topbar-links {
        flex: 1 1 100%;
        min-width: 0;
    }

    .topbar-marquee {
        text-align: center;
        font-size: 11px;
        line-height: 1.5;
    }

    .topbar-links {
        justify-content: center;
        gap: 12px;
        font-size: 11px;
    }

    .header-row {
        gap: 10px;
    }

    .header-row .logo {
        min-width: 0;
        font-size: 21px;
    }

    .header-actions {
        gap: 2px;
        min-width: 0;
        flex-shrink: 0;
    }

    .header-actions .icon-btn,
    .header-row .burger {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
}

/* ---- Eyebrow / editorial tag (Latin, tracked) ---- */
.eyebrow {
    font-family: var(--f-tag);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--copper);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

    .eyebrow::before {
        content: '';
        width: 22px;
        height: 1px;
        background: var(--copper);
    }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.01em;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

    .section-head h2 {
        font-size: clamp(24px,3vw,34px);
        margin-top: 8px;
    }

    .section-head .see-all {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--ink-soft);
        border-bottom: 1px solid var(--line);
        padding-bottom: 2px;
        white-space: nowrap;
    }

        .section-head .see-all:hover {
            color: var(--copper);
            border-color: var(--copper);
        }

.section {
    padding: 64px 0;
}

    .section.tight {
        padding: 40px 0;
    }

    .section.on-dim {
        background: var(--paper-dim);
    }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

    .btn:active {
        transform: scale(.97);
    }

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

    .btn-primary:hover {
        background: var(--copper);
    }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

    .btn-outline:hover {
        background: var(--ink);
        color: var(--paper);
    }

.btn-copper {
    background: var(--copper);
    color: #fff;
}

    .btn-copper:hover {
        background: var(--copper-dark);
    }

.btn-ghost {
    background: var(--paper-dim);
    color: var(--ink);
}

    .btn-ghost:hover {
        background: var(--line-soft);
    }

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

.btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
    background: var(--ink);
    color: var(--paper-dim);
    font-size: 12.5px;
}

    .topbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 36px;
    }

.topbar-links {
    display: flex;
    gap: 18px;
}

    .topbar-links a:hover {
        color: var(--copper);
    }

.topbar-marquee {
    font-family: var(--f-tag);
    letter-spacing: .04em;
    direction: rtl;
}

@media (max-width:640px) {
    .topbar .container {
        height: auto;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246,247,246,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 78px;
}

.logo {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .logo .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--copper);
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
}

    .main-nav > li {
        position: relative;
    }

        .main-nav > li > a {
            font-size: 14.5px;
            font-weight: 600;
            padding: 10px 2px;
            display: inline-block;
        }

            .main-nav > li > a:hover {
                color: var(--copper);
            }

.mega {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    display: none;
    gap: 32px;
    min-width: 520px;
    margin-top: 14px;
}

.main-nav > li:hover .mega {
    display: flex;
}

@media (min-width:981px) {
    .mega {
        top: 100%;
        margin-top: 0;
        z-index: 60;
    }

    .main-nav > li:focus-within .mega {
        display: flex;
    }

    .main-nav > li.menu-open .mega {
        display: flex;
    }
}

.mega-col h4 {
    font-size: 12px;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
    font-family: var(--f-tag);
    direction: ltr;
    text-align: right;
}

.mega-col li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ink-soft);
}

    .mega-col li a:hover {
        color: var(--copper);
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-menu {
    position: relative;
}

.account-menu-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    z-index: 60;
    display: none;
    transform: translateX(50%);
    min-width: 190px;
    padding: 7px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
}

.account-menu-dropdown.is-open {
    display: block !important;
}

.account-menu-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: calc(var(--r-md) - 4px);
    color: var(--ink-soft);
    font-size: 13px;
    white-space: nowrap;
}

.account-menu-dropdown a:hover {
    color: var(--ink);
    background: var(--paper-dim);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--ink);
    transition: background .15s;
}

    .icon-btn:hover {
        background: var(--paper-dim);
    }

    .icon-btn svg {
        width: 20px;
        height: 20px;
    }

.cart-count {
    position: absolute;
    top: -2px;
    left: -2px;
    background: var(--copper);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-inline {
    display: flex;
    align-items: center;
    background: var(--paper-dim);
    border-radius: 4px;
    padding: 0 8px 0 16px;
    height: 42px;
    width: 230px;
    transition: width .2s;
}

    .search-inline:focus-within {
        width: 290px;
    }

    .search-inline input {
        border: 0;
        background: transparent;
        flex: 1;
        padding: 0 8px;
        font-size: 13.5px;
        outline: none;
        color: var(--ink);
    }

    .search-inline .search-submit {
        border: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .search-inline svg {
        width: 17px;
        height: 17px;
        color: var(--ink-soft);
        flex-shrink: 0;
    }

.burger {
    display: none;
}

@media (max-width:980px) {
    .main-nav, .search-inline {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-row {
        height: 66px;
    }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.hero-empty {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--paper);
}

    .hero-empty h1 {
        margin-bottom: 14px;
        font-size: clamp(28px, 4vw, 48px);
    }

    .hero-empty p {
        color: #C7CDD6;
        margin: 0;
    }

.hero-track {
    display: flex;
    transition: transform .7s cubic-bezier(.65,0,.35,1);
}

.hero-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    min-height: 560px;
    position: relative;
}

    .hero-slide .hero-copy {
        position: relative;
        z-index: 2;
        padding: 0 0 0 40px;
    }

        .hero-slide .hero-copy .eyebrow {
            color: var(--copper-tint);
        }

            .hero-slide .hero-copy .eyebrow::before {
                background: var(--copper-tint);
            }

    .hero-slide h1 {
        color: var(--paper);
        font-size: clamp(38px,5.2vw,68px);
        line-height: 1.08;
        margin: 18px 0 22px;
        font-weight: 800;
    }

        .hero-slide h1 em {
            font-style: normal;
            color: var(--copper-tint);
        }

    .hero-slide p {
        color: #C7CDD6;
        font-size: 16px;
        max-width: 420px;
        margin-bottom: 30px;
    }

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-visual .hero-image {
        width: 100%;
        height: 100%;
        min-height: 560px;
        object-fit: cover;
        filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
    }

.hero-slide.tone-copper .hero-visual {
    background: radial-gradient(circle at 60% 50%, #FF8A5C 0%, #D6431F 70%, transparent 100%);
}

.hero-slide.tone-sage .hero-visual {
    background: radial-gradient(circle at 60% 50%, #4C7CE0 0%, #1E3FA6 70%, transparent 100%);
}

.hero-slide.tone-ink .hero-visual {
    background: radial-gradient(circle at 60% 50%, #2A3140 0%, #12151B 70%, transparent 100%);
}

.hero-dots {
    position: absolute;
    bottom: 26px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 9px;
    z-index: 3;
}

    .hero-dots button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(246,247,246,.35);
        border: 0;
        padding: 0;
        transition: .2s;
    }

        .hero-dots button.active {
            background: var(--copper);
            width: 22px;
            border-radius: 5px;
        }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(246,247,246,.14);
    border: 1px solid rgba(246,247,246,.3);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .hero-arrow:hover {
        background: var(--copper);
        border-color: var(--copper);
    }

    .hero-arrow.prev {
        right: 26px;
    }

    .hero-arrow.next {
        left: 26px;
    }

    .hero-arrow svg {
        width: 18px;
        height: 18px;
    }

.hero-strip {
    display: flex;
    border-top: 1px solid rgba(246,247,246,.14);
}

    .hero-strip > div {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 28px;
        color: var(--paper-dim);
        font-size: 13px;
        border-left: 1px solid rgba(246,247,246,.14);
    }

    .hero-strip svg {
        width: 20px;
        height: 20px;
        color: var(--copper-tint);
        flex-shrink: 0;
    }

    .hero-strip b {
        display: block;
        color: var(--paper);
        font-size: 13.5px;
    }

@media (max-width:860px) {
    .hero-empty {
        min-height: 360px;
        padding: 36px 20px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 36px;
    }

        .hero-slide .hero-copy {
            padding: 0 20px;
            order: 2;
            padding-bottom: 40px;
        }

    .hero-visual {
        order: 1;
        min-height: 280px;
    }

        .hero-visual .hero-image {
            min-height: 280px;
            max-height: 360px;
        }

    .hero-strip {
        flex-wrap: wrap;
    }

        .hero-strip > div {
            flex: 1 1 50%;
            padding: 14px;
        }
}

/* ==========================================================================
   FACE-SHAPE FINDER (signature element)
   ========================================================================== */
.face-finder {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 38px 34px;
    box-shadow: var(--shadow-sm);
}

.face-finder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

    .face-finder-head p {
        color: var(--ink-soft);
        font-size: 14.5px;
        max-width: 380px;
        margin-top: 10px;
    }

.face-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
    counter-reset: face-idx;
}

.face-grid > .section-title-block {
    grid-column: 1 / -1;
}

.face-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 10px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper);
    transition: .2s;
    text-align: center;
    counter-increment: face-idx;
}

    .face-card::before {
        content: "0" counter(face-idx);
        position: absolute;
        top: 10px;
        right: 12px;
        font-family: var(--f-tag);
        font-size: 11px;
        color: var(--ink-soft);
        letter-spacing: .05em;
    }

    .face-card::after {
        content: '';
        position: absolute;
        top: 6px;
        left: 6px;
        width: 9px;
        height: 9px;
        border-top: 1.5px solid var(--line);
        border-left: 1.5px solid var(--line);
    }

    .face-card:hover {
        border-color: var(--copper);
        box-shadow: none;
        background: var(--card);
    }

        .face-card:hover::after {
            border-color: var(--copper);
        }

    .face-card svg {
        width: 58px;
        height: 70px;
        color: var(--ink-soft);
    }

    .face-card:hover svg {
        color: var(--copper);
    }

    .face-card b {
        font-size: 14px;
        font-family: var(--f-tag);
        letter-spacing: .02em;
    }

    .face-card span {
        font-size: 12px;
        color: var(--ink-soft);
    }

    .face-card .face-card-recommendation {
        min-height: 20px;
    }

    .face-card .face-card-description {
        display: -webkit-box;
        max-width: 180px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.7;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

@media (max-width:760px) {
    .face-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:460px) {
    .face-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

/* ==========================================================================
   CATEGORY STRIP
   ========================================================================== */
.cat-strip {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 16px;
}

.cat-item {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 1/1.05;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #fff;
    isolation: isolate;
}

    .cat-item::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--ink);
        opacity: .42;
        z-index: -1;
        transition: .25s;
    }

    .cat-item:hover::before {
        opacity: .6;
    }

    .cat-item .catbg {
        position: absolute;
        inset: 0;
        z-index: -2;
        background-size: cover;
    }

    .cat-item span {
        font-weight: 700;
        font-size: 15px;
    }

    .cat-item small {
        display: block;
        font-size: 11.5px;
        opacity: .85;
        margin-top: 2px;
        font-family: var(--f-tag);
        letter-spacing: .05em;
        direction: ltr;
    }

@media (max-width:860px) {
    .cat-strip {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:460px) {
    .cat-strip {
        grid-template-columns: repeat(2,1fr);
    }
}

/* ==========================================================================
   PRODUCT CARDS + GRID
   ========================================================================== */
.tab-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .tab-row button {
        border: 1px solid var(--line);
        background: var(--card);
        padding: 9px 18px;
        border-radius: 4px;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--ink-soft);
    }

    .tab-row button.active {
            background: var(--ink);
            color: var(--paper);
            border-color: var(--ink);
        }

    .tab-row a {
        border: 1px solid var(--line);
        background: var(--card);
        padding: 13px 24px;
        border-radius: 4px;
        font-size: 15px;
        font-weight: 600;
        color: var(--ink-soft);
        text-decoration: none;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
    }

        .tab-row a:hover {
            border-color: var(--ink);
            color: var(--ink);
        }

        .tab-row a.active {
            background: var(--ink);
            color: var(--paper);
            border-color: var(--ink);
        }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 22px;
}

    .product-grid.cols-3 {
        grid-template-columns: repeat(3,1fr);
    }

@media (max-width:980px) {
    .product-grid, .product-grid.cols-3 {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:520px) {
    .product-grid, .product-grid.cols-3 {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}

    .product-card:hover {
        border-color: var(--ink);
        box-shadow: var(--shadow-sm);
    }

.pc-media {
    position: relative;
    aspect-ratio: 1/.86;
    background: var(--paper-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

    .pc-media svg {
        width: 76%;
        transition: transform .35s;
    }

.product-card:hover .pc-media svg {
    transform: scale(1.06) rotate(-2deg);
}

.pc-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 5px;
}

.badge.sale {
    background: var(--coral);
    color: #fff;
    font-size: 13px;
    padding: 6px 11px;
}

    .badge.new {
        background: var(--sage);
        color: #fff;
    }

    .badge.best {
        background: var(--copper);
        color: #fff;
    }

.pc-wish {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: .2s;
}

.product-card:hover .pc-wish {
    opacity: 1;
    transform: none;
}

.pc-wish svg {
    width: 16px;
    height: 16px;
}

.pc-quick {
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: -46px;
    z-index: 2;
    transition: .25s;
}

.product-card:hover .pc-quick {
    bottom: 10px;
}

.pc-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pc-brand {
    font-size: 11px;
    color: var(--copper);
    font-weight: 700;
    letter-spacing: .06em;
    font-family: var(--f-tag);
    text-transform: uppercase;
    direction: ltr;
}

.pc-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.pc-meta {
    font-size: 12px;
    color: var(--ink-soft);
}

.pc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ink-soft);
}

    .pc-rating svg {
        width: 13px;
        height: 13px;
        color: var(--gold-star);
    }

.pc-price-row {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pc-price {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--f-tag);
}

.pc-price-old {
    font-size: 12.5px;
    color: var(--coral);
    text-decoration: line-through;
}

.pc-off {
    font-size: 11.5px;
    color: var(--coral);
    font-weight: 700;
}

/* ==========================================================================
   PROMO BANNER STRIPS
   ========================================================================== */
.promo-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promo-card {
    border-radius: var(--r-lg);
    padding: 38px;
    position: relative;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .promo-card.a {
        background: linear-gradient(135deg,#1B2338,#12151B);
        color: var(--paper);
    }

    .promo-card.b {
        background: linear-gradient(135deg,#FF7A46,#D6431F);
        color: #fff;
    }

    .promo-card h3 {
        font-size: 26px;
        color: inherit;
        margin: 10px 0 16px;
        max-width: 280px;
    }

    .promo-card .btn {
        width: fit-content;
    }

.promo-deco {
    position: absolute;
    left: -20px;
    bottom: -20px;
    width: 180px;
    height: 180px;
    opacity: .16;
}

@media (max-width:760px) {
    .promo-duo {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MEMBER DISCOUNT MODAL
   ========================================================================== */
.member-discount-form {
    margin: 0;
}

.member-discount-trigger {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--copper-dark);
}

.member-discount-trigger:hover {
    background: #fff;
    color: var(--copper-dark);
}

.member-discount-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    direction: rtl;
}

.member-discount-modal[hidden] {
    display: none;
}

.member-discount-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 27, .68);
    backdrop-filter: blur(6px);
    animation: member-discount-fade-in .22s ease both;
}

.member-discount-modal-dialog {
    position: relative;
    width: min(100%, 470px);
    padding: 42px 34px 30px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .92), transparent 32%),
        linear-gradient(145deg, #fff 0%, #fff8f4 58%, #ffe5d9 100%);
    box-shadow: 0 28px 80px rgba(18, 21, 27, .3);
    text-align: center;
    overflow: hidden;
    animation: member-discount-dialog-in .3s cubic-bezier(.2, .85, .25, 1.15) both;
}

.member-discount-modal-dialog::before,
.member-discount-modal-dialog::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.member-discount-modal-dialog::before {
    top: -84px;
    left: -68px;
    width: 190px;
    height: 190px;
    background: rgba(255, 90, 54, .11);
}

.member-discount-modal-dialog::after {
    right: -92px;
    bottom: -110px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(214, 67, 31, .12);
}

.member-discount-modal-close {
    position: absolute;
    top: 13px;
    left: 15px;
    z-index: 1;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    color: var(--ink-soft);
    font-size: 25px;
    line-height: 29px;
    transition: .2s ease;
}

.member-discount-modal-close:hover {
    border-color: var(--copper);
    background: var(--copper);
    color: #fff;
    transform: rotate(90deg);
}

.member-discount-modal-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--copper), var(--copper-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(214, 67, 31, .25);
    transform: rotate(-6deg);
}

.member-discount-modal-icon svg {
    width: 36px;
    height: 36px;
    transform: rotate(6deg);
}

.member-discount-modal-dialog .eyebrow {
    position: relative;
    z-index: 1;
    color: var(--copper);
}

.member-discount-modal-dialog h2 {
    position: relative;
    z-index: 1;
    margin: 12px auto 10px;
    max-width: 360px;
    font-size: clamp(23px, 4vw, 29px);
    line-height: 1.55;
}

.member-discount-modal-description {
    position: relative;
    z-index: 1;
    margin: 0 auto 22px;
    max-width: 360px;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.member-discount-code-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px 12px 12px;
    border: 1px dashed rgba(214, 67, 31, .42);
    border-radius: 13px;
    background: rgba(255, 255, 255, .76);
    text-align: right;
}

.member-discount-code-box > span {
    display: block;
    flex: 1;
    min-width: 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.member-discount-code-box strong {
    color: var(--copper-dark);
    direction: ltr;
    font-family: var(--f-tag);
    font-size: 16px;
    letter-spacing: .08em;
    white-space: nowrap;
}

.member-discount-copy {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}

.member-discount-copy:hover {
    background: var(--copper-dark);
    transform: translateY(-1px);
}

.member-discount-copy.is-copied {
    background: #218838;
}

.member-discount-expiration {
    position: relative;
    z-index: 1;
    margin: 17px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.member-discount-expiration strong {
    color: var(--ink);
    font-weight: 800;
}

.member-discount-copy-status {
    position: relative;
    z-index: 1;
    min-height: 21px;
    margin: 8px 0 0;
    color: #218838;
    font-size: 12px;
}

body.member-discount-modal-open {
    overflow: hidden;
}

@keyframes member-discount-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes member-discount-dialog-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width:520px) {
    .member-discount-modal {
        padding: 16px;
    }

    .member-discount-modal-dialog {
        padding: 38px 18px 24px;
        border-radius: 18px;
    }

    .member-discount-code-box {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .member-discount-code-box > span {
        flex: 1 0 100%;
        text-align: center;
    }
}

/* ==========================================================================
   NEWSLETTER / TRUST
   ========================================================================== */
.trust-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

    .trust-item svg {
        width: 30px;
        height: 30px;
        color: var(--copper);
        margin-bottom: 10px;
    }

    .trust-item b {
        display: block;
        font-size: 14.5px;
        margin-bottom: 4px;
    }

    .trust-item span {
        font-size: 12.5px;
        color: var(--ink-soft);
    }

@media (max-width:760px) {
    .trust-row {
        grid-template-columns: repeat(2,1fr);
    }
}

.newsletter {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

    .newsletter h3 {
        color: var(--paper);
        font-size: 24px;
    }

    .newsletter p {
        color: #B7BEC7;
        font-size: 13.5px;
        margin-top: 6px;
    }

    .newsletter form {
        display: flex;
        gap: 0;
        background: rgba(246,247,246,.08);
        border: 1px solid rgba(246,247,246,.2);
        border-radius: 4px;
        padding: 5px;
        min-width: 360px;
    }

    .newsletter input {
        flex: 1;
        background: transparent;
        border: 0;
        padding: 0 16px;
        color: var(--paper);
        outline: none;
        font-size: 13.5px;
    }

    .newsletter input::placeholder {
            color: #8A9099;
        }

@media (max-width:760px) {
    .newsletter form {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .newsletter input {
        min-width: 0;
    }

    .newsletter form .btn {
        flex: 0 0 auto;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #14171C;
    color: #A9AFB8;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 56px 0 36px;
}

    .footer-top h4 {
        color: var(--paper);
        font-size: 13.5px;
        margin-bottom: 16px;
    }

    .footer-top li {
        margin-bottom: 9px;
        font-size: 13.5px;
    }

    .footer-top a:hover {
        color: var(--copper-tint);
    }

.footer-logo {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 22px;
    color: var(--paper);
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.8;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

    .footer-social a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #333A44;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-social svg {
        width: 15px;
        height: 15px;
    }

.footer-bottom {
    border-top: 1px solid #262B33;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.pay-icons {
    display: flex;
    gap: 8px;
}

    .pay-icons span {
        border: 1px solid #333A44;
        border-radius: 4px;
        padding: 3px 8px;
        font-size: 10.5px;
        font-family: var(--f-tag);
    }

/* ---- نقشه‌ی موقعیت فروشگاه (Google Maps) ---- */
.footer-map {
    padding-bottom: 40px;
}

.footer-map-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

    .footer-map-head h4 {
        color: var(--paper);
        font-size: 13.5px;
    }

    .footer-map-head a {
        font-size: 12.5px;
        color: #A9AFB8;
        border-bottom: 1px solid #333A44;
        padding-bottom: 2px;
        white-space: nowrap;
    }

        .footer-map-head a:hover {
            color: var(--copper-tint);
            border-color: var(--copper-tint);
        }

.footer-map-frame {
    width: 100%;
    height: clamp(240px, 26vw, 340px);
    border: 1px solid #262B33;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #1B1F26;
    line-height: 0;
}

    .footer-map-frame iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

@media (max-width:640px) {
    .footer-map {
        padding-bottom: 28px;
    }

    .footer-map-head {
        margin-bottom: 12px;
    }
}


@media (max-width:900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   CONTACT MODAL (تماس با ما)
   ========================================================================== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    direction: rtl;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 27, .68);
    backdrop-filter: blur(6px);
    animation: contact-modal-fade-in .22s ease both;
}

.contact-modal-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 38px 30px 28px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 255, 255, .92), transparent 32%),
        linear-gradient(145deg, #fff 0%, #fff8f4 58%, #ffe5d9 100%);
    box-shadow: 0 28px 80px rgba(18, 21, 27, .3);
    animation: contact-modal-dialog-in .28s cubic-bezier(.2, .85, .25, 1.15) both;
}

.contact-modal-close {
    position: absolute;
    top: 13px;
    left: 15px;
    z-index: 1;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    color: var(--ink-soft);
    font-size: 25px;
    line-height: 29px;
    transition: .2s ease;
}

.contact-modal-close:hover {
    border-color: var(--copper);
    background: var(--copper);
    color: #fff;
    transform: rotate(90deg);
}

.contact-modal-dialog .eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.contact-modal-dialog h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 22px;
}

.contact-modal-description {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.contact-modal-info {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

    .contact-modal-info li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 13px;
        border: 1px solid rgba(214, 67, 31, .18);
        border-radius: 13px;
        background: rgba(255, 255, 255, .78);
    }

.contact-modal-info-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--copper-tint);
    color: var(--copper-dark);
}

    .contact-modal-info-icon svg {
        width: 18px;
        height: 18px;
    }

.contact-modal-info-body {
    min-width: 0;
    font-size: 13px;
}

    .contact-modal-info-body b {
        display: block;
        margin-bottom: 3px;
        color: var(--ink);
        font-size: 13.5px;
    }

    .contact-modal-info-body p {
        margin: 0;
        color: var(--ink-soft);
        line-height: 1.9;
    }

    .contact-modal-info-body a {
        display: inline-block;
        direction: ltr;
        color: var(--copper-dark);
        font-weight: 700;
    }

.contact-modal-messengers {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.contact-modal-messengers-title {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.contact-modal-messengers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.contact-modal-messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

    .contact-modal-messenger svg {
        flex: 0 0 auto;
        width: 19px;
        height: 19px;
    }

    .contact-modal-messenger:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

    .contact-modal-messenger.is-whatsapp:hover {
        border-color: #25D366;
        background: #ECFBF2;
        color: #12803F;
    }

    .contact-modal-messenger.is-telegram:hover {
        border-color: #2AABEE;
        background: #ECF6FD;
        color: #1478AE;
    }

    .contact-modal-messenger.is-bale:hover {
        border-color: var(--copper);
        background: var(--copper-tint);
        color: var(--copper-dark);
    }

.contact-modal-route {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    color: var(--ink-soft);
    font-size: 12.5px;
}

    .contact-modal-route:hover {
        border-color: var(--copper);
        color: var(--copper);
    }

body.contact-modal-open {
    overflow: hidden;
}

@keyframes contact-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes contact-modal-dialog-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width:520px) {
    .contact-modal {
        padding: 14px;
    }

    .contact-modal-dialog {
        max-height: calc(100vh - 28px);
        padding: 34px 18px 22px;
        border-radius: 16px;
    }

    .contact-modal-messenger {
        flex-direction: column;
        gap: 6px;
        padding: 10px 6px;
        font-size: 11.5px;
    }
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-soft);
    padding: 20px 0;
    flex-wrap: wrap;
}

    .breadcrumb a:hover {
        color: var(--copper);
    }

    .breadcrumb svg {
        width: 11px;
        height: 11px;
        transform: scaleX(-1);
        opacity: .6;
    }

    .breadcrumb .current {
        color: var(--ink);
        font-weight: 600;
    }

/* ==========================================================================
   LISTING / FILTER PAGE
   ========================================================================== */
.listing-hero {
    background: var(--ink);
    padding: 34px 0;
}

    .listing-hero .eyebrow {
        color: var(--copper-tint);
    }

        .listing-hero .eyebrow::before {
            background: var(--copper-tint);
        }

    .listing-hero h1 {
        color: var(--paper);
        font-size: clamp(24px,3vw,34px);
        margin-top: 8px;
    }

    .listing-hero p {
        color: #B7BEC7;
        font-size: 13.5px;
        margin-top: 6px;
        max-width: 520px;
    }

.listing-body {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 32px;
    padding: 34px 0 70px;
    align-items: start;
}

.filters {
    position: sticky;
    top: 96px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
}

.filter-group {
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 0;
}

    .filter-group:first-child {
        padding-top: 0;
    }

    .filter-group:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .filter-group summary {
        font-weight: 700;
        font-size: 14.5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        list-style: none;
    }

        .filter-group summary::-webkit-details-marker {
            display: none;
        }

        .filter-group summary::after {
            content: '+';
            font-weight: 400;
            color: var(--ink-soft);
            font-size: 18px;
        }

    .filter-group[open] summary::after {
        content: '−';
    }

.filter-opts {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

    .filter-opts label {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 13.5px;
        color: var(--ink-soft);
        cursor: pointer;
    }

        .filter-opts label:hover {
            color: var(--ink);
        }

    .filter-opts input[type=checkbox] {
        width: 16px;
        height: 16px;
        accent-color: var(--copper);
    }

    .filter-opts .swatch {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 1px solid var(--line);
        display: inline-block;
    }

    .filter-opts .count {
        margin-right: auto;
        color: #9AA0A8;
        font-size: 12px;
    }

.price-filter {
    width: 100%;
}

.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    direction: rtl;
}

.price-input {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

    .price-input input {
        min-width: 0;
        width: 100%;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ink-soft);
        font-size: 17px;
        font-weight: 800;
        text-align: center;
        direction: ltr;
    }

        .price-input input:focus {
            color: var(--ink);
        }

.price-input-label,
.price-input-unit {
    flex: 0 0 auto;
    font-size: 11px;
    white-space: nowrap;
}

.price-slider {
    position: relative;
    height: 32px;
    margin: 18px 4px 0;
    direction: ltr;
}

.price-slider-track,
.price-slider-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.price-slider-track {
    right: 0;
    left: 0;
    background: var(--line);
}

.price-slider-fill {
    z-index: 1;
    background: var(--sage);
}

.price-slider input[type=range] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 32px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

    .price-slider input[type=range]::-webkit-slider-runnable-track {
        height: 4px;
        background: transparent;
    }

    .price-slider input[type=range]::-moz-range-track {
        height: 4px;
        background: transparent;
    }

    .price-slider input[type=range]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -10px;
        border: 0;
        border-radius: 50%;
        background: var(--sage);
        box-shadow: 0 1px 4px rgba(27,36,32,.2);
        pointer-events: auto;
        cursor: pointer;
        appearance: none;
    }

    .price-slider input[type=range]::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 50%;
        background: var(--sage);
        box-shadow: 0 1px 4px rgba(27,36,32,.2);
        pointer-events: auto;
        cursor: pointer;
    }

    .price-slider input[type=range]#MaxPriceRange {
        z-index: 4;
    }

.price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 12px;
    direction: ltr;
}

.clear-filters {
    font-size: 12.5px;
    color: var(--coral);
    text-decoration: underline;
    margin-top: 16px;
    display: inline-block;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 14px;
    flex-wrap: wrap;
}

.result-count {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

    .sort-select select {
        border: 1px solid var(--line);
        background: var(--card);
        border-radius: 4px;
        padding: 9px 16px;
        font-size: 13px;
    }

.active-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--copper-tint);
    color: var(--copper-dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
}

    .chip button {
        background: none;
        border: 0;
        color: inherit;
        font-size: 14px;
        line-height: 1;
    }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

    .pagination a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
    }

        .pagination a.active {
            background: var(--ink);
            color: var(--paper);
            border-color: var(--ink);
        }

.filters-mobile-toggle {
    display: none;
}

@media (max-width:900px) {
    .listing-body {
        grid-template-columns: 1fr;
    }

    .filters {
        position: fixed;
        inset: 0 0 0 auto;
        width: 88%;
        max-width: 340px;
        z-index: 80;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: .3s;
        top: 0;
    }

    body.filters-open .filters {
        transform: none;
    }

    .filters-mobile-toggle {
        display: inline-flex;
    }

    .filters-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(27,36,32,.5);
        z-index: 70;
        display: none;
    }

    body.filters-open .filters-backdrop {
        display: block;
    }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE
   ========================================================================== */
.product-details-page {
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.product-details-page .breadcrumb {
    min-width: 0;
}

.product-details-page .breadcrumb .current {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 12px 0 60px;
    align-items: flex-start;
    min-width: 0;
}

.pdp-gallery {
    position: sticky;
    top: 96px;
    min-width: 0;
}

.pdp-main-img {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    aspect-ratio: 1/.9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .pdp-main-img svg {
        width: 72%;
    }

    .pdp-main-img .badge {
        position: absolute;
        top: 16px;
        right: 16px;
    }

.pdp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

    .pdp-thumbs button {
        width: 74px;
        height: 64px;
        border-radius: var(--r-md);
        border: 1.5px solid var(--line);
        background: var(--card);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .pdp-thumbs button.active {
            border-color: var(--copper);
        }

    .pdp-thumbs svg {
        width: 70%;
    }

.pdp-info .pc-brand {
    font-size: 12.5px;
}

.pdp-info {
    min-width: 0;
}

.pdp-info h1 {
    font-size: clamp(24px,2.6vw,32px);
    margin: 8px 0 10px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pdp-info .pc-rating {
    font-size: 13px;
    margin-bottom: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pdp-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.pdp-price {
    font-size: 28px;
    font-weight: 800;
}

.pdp-price-old {
    font-size: 15px;
    color: var(--coral);
    text-decoration: line-through;
}

.pdp-off {
    background: var(--coral-tint);
    color: var(--coral);
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 5px;
}

.pdp-stock {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--sage);
    margin-inline-start: auto;
}

    .pdp-stock svg {
        width: 14px;
        height: 14px;
    }

.option-block {
    margin-bottom: 22px;
}

    .option-block > label {
        font-size: 13.5px;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        margin-bottom: 12px;
    }

        .option-block > label .val {
            font-weight: 400;
            color: var(--ink-soft);
        }

.color-opts {
    display: flex;
    gap: 10px;
}

    .color-opts button {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 2px solid transparent;
        padding: 2px;
        position: relative;
    }

        .color-opts button span {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 1px solid rgba(0,0,0,.1);
        }

        .color-opts button.active {
            border-color: var(--ink);
        }

.pill-opts {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

    .pill-opts button {
        border: 1px solid var(--line);
        background: var(--card);
        padding: 9px 17px;
        border-radius: 4px;
        font-size: 13.5px;
    }

        .pill-opts button.active {
            background: var(--ink);
            color: var(--paper);
            border-color: var(--ink);
        }

        .pill-opts button[disabled] {
            opacity: .35;
            text-decoration: line-through;
            cursor: not-allowed;
        }

.qty-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
}

    .qty-stepper button {
        width: 38px;
        height: 42px;
        background: none;
        border: 0;
        font-size: 16px;
    }

    .qty-stepper input {
        width: 38px;
        text-align: center;
        border: 0;
        background: none;
        font-size: 14px;
    }

.pdp-cta-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .pdp-cta-row .btn-primary {
        flex: 1;
    }

.pdp-low-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    max-width: 235px;
    padding: 8px 12px;
    border: 1px solid rgba(199, 40, 75, .24);
    border-radius: 6px;
    color: #b51f42;
    background: linear-gradient(135deg, #fff1f3 0%, #ffe3e8 100%);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    text-align: right;
}

.pdp-low-stock svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.icon-square {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .icon-square svg {
        width: 19px;
        height: 19px;
    }

.rx-box {
    margin-top: 26px;
    border: 1.5px dashed var(--copper);
    background: var(--copper-tint);
    border-radius: var(--r-md);
    padding: 18px 20px;
}

.rx-box summary {
    display: flex;
    align-items: center;
        gap: 10px;
        cursor: pointer;
        list-style: none;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--copper-dark);
    flex-wrap: wrap;
}

        .rx-box summary::-webkit-details-marker {
            display: none;
        }

        .rx-box summary svg {
            width: 20px;
            height: 20px;
        }

        .rx-box summary .toggle-ico {
            margin-inline-start: auto;
            font-size: 13px;
        }

.rx-form {
    margin-top: 18px;
}

.rx-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .rx-tabs button {
        flex: 1 1 180px;
        padding: 9px;
        border-radius: var(--r-sm);
        border: 1px solid var(--line);
        background: var(--card);
        font-size: 13px;
        font-weight: 600;
    }

        .rx-tabs button.active {
            background: var(--copper);
            color: #fff;
            border-color: var(--copper);
        }

.rx-grid {
    display: grid;
    grid-template-columns: 80px repeat(4,1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

    .rx-grid.head span {
        font-size: 11.5px;
        color: var(--ink-soft);
        text-align: center;
    }

    .rx-grid .eye-label {
        font-size: 12.5px;
        font-weight: 700;
    }

    .rx-grid select, .rx-grid input {
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        padding: 8px 4px;
        font-size: 12.5px;
        text-align: center;
        background: var(--card);
        width: 100%;
    }

.rx-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-top: 10px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
    table-layout: fixed;
}

    .spec-table tr {
        border-bottom: 1px solid var(--line-soft);
    }

        .spec-table tr:last-child {
            border-bottom: 0;
        }

    .spec-table td {
        padding: 12px 4px;
        font-size: 13.5px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

        .spec-table td:first-child {
            color: var(--ink-soft);
            width: 38%;
        }

        .spec-table td:last-child {
            font-weight: 600;
        }

.pdp-tabs {
    margin-top: 52px;
    min-width: 0;
}

.pdp-tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

    .pdp-tabs-nav button {
        background: none;
        border: 0;
        padding: 14px 2px;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--ink-soft);
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        flex: 0 0 auto;
        white-space: nowrap;
    }

        .pdp-tabs-nav button.active {
            color: var(--ink);
            border-color: var(--copper);
        }

.pdp-tab-panel {
    padding: 30px 0;
    display: none;
    min-width: 0;
}

    .pdp-tab-panel.active {
        display: block;
    }

    .pdp-tab-panel h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .pdp-tab-panel p {
        color: var(--ink-soft);
        font-size: 14.5px;
        max-width: 760px;
    }

.review-summary {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--paper-dim);
    border-radius: var(--r-lg);
    padding: 26px 30px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.review-score {
    text-align: center;
}

    .review-score .num {
        font-size: 42px;
        font-weight: 800;
        line-height: 1;
    }

    .review-score .stars {
        display: flex;
        gap: 3px;
        margin: 8px 0;
    }

    .review-score svg {
        width: 15px;
        height: 15px;
        color: var(--gold-star);
    }

    .review-score span {
        font-size: 12px;
        color: var(--ink-soft);
    }

.review-bars {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-soft);
}

    .review-bar-row .bar {
        flex: 1;
        height: 6px;
        background: var(--line-soft);
        border-radius: 3px;
        overflow: hidden;
    }

        .review-bar-row .bar span {
            display: block;
            height: 100%;
            background: var(--gold-star);
        }

.review-item {
    border-bottom: 1px solid var(--line-soft);
    padding: 22px 0;
}

    .review-item .r-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .review-item .avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--sage-tint);
        color: var(--sage);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 13px;
    }

    .review-item b {
        font-size: 13.5px;
    }

    .review-item .r-date {
        font-size: 11.5px;
        color: #9AA0A8;
        margin-inline-start: auto;
    }

    .review-item .stars {
        display: flex;
        gap: 2px;
        margin-bottom: 8px;
    }

        .review-item .stars svg {
            width: 13px;
            height: 13px;
            color: var(--gold-star);
        }

    .review-item p {
        font-size: 14px;
        color: var(--ink-soft);
    }

    .review-item .r-fit {
        display: inline-block;
        margin-top: 8px;
        font-size: 11.5px;
        background: var(--sage-tint);
        color: var(--sage);
        padding: 3px 10px;
        border-radius: 4px;
    }

.combo-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    flex-wrap: wrap;
}

.combo-item {
    width: 74px;
    height: 64px;
    background: var(--paper-dim);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .combo-item svg {
        width: 70%;
    }

.combo-plus {
    font-size: 20px;
    color: var(--ink-soft);
}

.combo-total {
    margin-inline-start: auto;
    text-align: left;
}

    .combo-total .old {
        font-size: 12px;
        text-decoration: line-through;
        color: var(--coral);
    }

    .combo-total .new {
        font-size: 19px;
        font-weight: 800;
    }

@media (max-width:900px) {
    .pdp {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pdp-gallery {
        position: static;
    }
}

@media (max-width:600px) {
    .product-details-page {
        overflow-x: hidden;
    }

    .pdp {
        padding-top: 4px;
        padding-bottom: 38px;
        gap: 24px;
    }

    .pdp-main-img {
        aspect-ratio: 1 / 1;
    }

    .pdp-thumbs {
        gap: 8px;
    }

    .pdp-thumbs button {
        width: 68px;
        height: 58px;
        flex: 0 0 auto;
    }

    .pdp-info h1 {
        font-size: 24px;
        line-height: 1.45;
    }

    .pdp-info .pc-rating {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px;
    }

    .pdp-price-block {
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .pdp-price {
        font-size: 24px;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .pdp-stock {
        width: 100%;
        margin-inline-start: 0;
    }

    .qty-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pdp-cta-row {
        flex-wrap: wrap;
    }

    .pdp-cta-row .btn-primary {
        min-width: 0;
        width: 100%;
        flex-basis: 100%;
    }

    .pdp-low-stock {
        width: 100%;
        max-width: none;
        justify-content: center;
        text-align: center;
    }

    .rx-box {
        padding: 14px;
    }

    .rx-box summary {
        align-items: flex-start;
        line-height: 1.8;
    }

    .rx-box summary .toggle-ico {
        width: calc(100% - 30px);
        margin-inline-start: 30px;
    }

    .rx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rx-grid .eye-label {
        grid-column: 1 / -1;
    }

    .rx-grid--pd {
        grid-template-columns: 1fr !important;
    }

    .rx-grid--pd .eye-label {
        grid-column: auto;
    }

    .pdp-tabs {
        margin-top: 30px;
    }

    .pdp-tabs-nav {
        gap: 18px;
        margin-inline: 0;
        padding-inline: 0;
    }

    .pdp-tab-panel {
        padding: 22px 0;
        overflow-x: hidden;
    }

    .spec-table td {
        padding: 11px 3px;
        font-size: 13px;
        line-height: 1.8;
        vertical-align: top;
    }

    .spec-table td:first-child {
        width: 35%;
    }
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 34px;
    align-items: flex-start;
    padding: 12px 0 70px;
}

.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

    .cart-steps .step {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12.5px;
        color: var(--ink-soft);
    }

        .cart-steps .step .n {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--paper-dim);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 12px;
        }

        .cart-steps .step.active {
            color: var(--ink);
            font-weight: 700;
        }

            .cart-steps .step.active .n {
                background: var(--ink);
                color: var(--paper);
            }

    .cart-steps .sep {
        width: 34px;
        height: 1px;
        background: var(--line);
    }

.cart-table-wrap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-soft);
}

    .cart-row-unavailable {
        background: rgba(214, 67, 31, .04);
    }

    .cart-row-removing {
        opacity: 0;
        transition: opacity .18s ease;
    }

    .cart-row:last-child {
        border-bottom: 0;
    }

.cart-thumb {
    width: 80px;
    height: 70px;
    background: var(--paper-dim);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-thumb svg {
        width: 72%;
    }

.cart-item-name {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--ink-soft);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .cart-item-meta .swatch-sm {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        display: inline-block;
        vertical-align: middle;
        margin-left: 4px;
    }

.cart-remove {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--coral);
    margin-top: 6px;
    display: inline-block;
}

.cart-item-unavailable {
    color: var(--coral);
    font-size: 11.5px;
    margin-top: 6px;
}

.cart-price {
    font-weight: 700;
    font-size: 14.5px;
    white-space: nowrap;
}

    .cart-price .old {
        display: block;
        font-size: 11.5px;
        color: var(--coral);
        font-weight: 400;
        text-decoration: line-through;
    }

    .cart-price-current {
        display: block;
    }

.cart-line-total {
    display: block;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 400;
    margin-top: 4px;
}

.cart-row[data-cart-busy="true"] {
    pointer-events: none;
    opacity: .72;
}

.cart-row .qty-stepper button {
    cursor: pointer;
    color: var(--ink);
}

.cart-row .qty-stepper button:hover {
    background: var(--paper-dim);
}

.cart-quantity-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cart-stock-limit {
    color: var(--ink-soft);
    font-size: 10.5px;
    white-space: nowrap;
}

.cart-form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-top: 22px;
}

.cart-form-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cart-form-card-heading h2 {
    font-size: 18px;
    margin-top: 5px;
}

.cart-section-eyebrow {
    color: var(--copper);
    font-size: 11.5px;
    font-weight: 700;
}

.cart-ui-note {
    color: var(--ink-soft);
    font-size: 11.5px;
}

.cart-guest-phone {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(360px, 1.65fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 20px 22px;
    overflow: hidden;
    border: 1px solid rgba(191, 145, 91, .24);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffdf9 0%, #f7f0e7 100%);
    box-shadow: 0 10px 24px rgba(42, 49, 64, .06);
}

.cart-guest-phone::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--copper), var(--copper-dark));
    content: "";
}

.cart-guest-phone-copy p {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.9;
}

.cart-guest-phone-notice {
    color: var(--ink) !important;
    font-size: 13px !important;
    font-weight: 800;
}

.cart-guest-phone-form {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 10px;
}

.cart-guest-phone-form input {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(42, 49, 64, .14);
    border-radius: 11px;
    padding: 11px 15px;
    color: var(--ink);
    background: rgba(255, 255, 255, .82);
    font-size: 13px;
    box-shadow: inset 0 1px 2px rgba(42, 49, 64, .03);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cart-guest-phone-form input:focus {
    outline: none;
    border-color: var(--copper);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(191, 145, 91, .14);
}

.cart-guest-phone-message {
    min-height: 18px;
    color: #218838;
    font-size: 11px;
}

.cart-guest-phone-message.is-error {
    color: var(--coral);
}

.cart-form-card .addr-list {
    margin: 0 0 14px;
}

.cart-form-card .addr-card {
    background: var(--paper-dim);
}

.cart-form-card .addr-card.active {
    background: var(--copper-tint);
}

.addr-delete-btn {
    grid-column: 1 / -1;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--coral);
    font-size: 11px;
    cursor: pointer;
}

.addr-delete-btn:hover {
    text-decoration: underline;
}

.addr-new-btn {
    cursor: pointer;
    background: transparent;
    width: 100%;
}

.addr-form .btn {
    justify-content: center;
    cursor: pointer;
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.delivery-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.delivery-card.active {
    border-color: var(--copper);
    background: var(--copper-tint);
}

.delivery-card-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.delivery-card-disabled input {
    cursor: not-allowed;
}

.delivery-card input {
    accent-color: var(--copper);
}

.delivery-card-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-dim);
    color: var(--copper-dark);
    font-size: 17px;
}

.delivery-card b,
.delivery-card small {
    display: block;
}

.delivery-card b {
    font-size: 13px;
}

.delivery-card small {
    color: var(--ink-soft);
    font-size: 11px;
    margin-top: 4px;
}

.delivery-card-content {
    min-width: 0;
}

.delivery-card-cost {
    display: block;
    color: var(--copper-dark);
    font-size: 11px;
    line-height: 1.7;
    margin-top: 3px;
}

.delivery-note {
    margin-top: 14px;
}

.cart-coupon-row {
    padding: 18px 0 0;
    border-top: 1px dashed var(--line);
    margin-top: 12px;
}

.cart-coupon-row .btn {
    cursor: pointer;
}

.cart-payment-button {
    cursor: pointer;
}

.payment-placeholder {
    max-width: 680px;
    margin: 48px auto 90px;
    padding: 42px 28px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.payment-placeholder h1 {
    font-size: 28px;
    margin: 8px 0 12px;
}

.payment-placeholder p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 24px;
}

.coupon-applied[hidden] {
    display: none;
}

.coupon-row {
    display: flex;
    gap: 10px;
    padding: 18px 20px;
    border-top: 1px dashed var(--line);
}

    .coupon-row input {
        flex: 1;
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 11px 18px;
        font-size: 13.5px;
        background: var(--paper-dim);
    }

.coupon-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-tint);
    color: var(--sage);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 4px;
    margin: 16px 20px 0;
}

    .coupon-applied svg {
        width: 16px;
        height: 16px;
    }

.summary-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    position: sticky;
    top: 96px;
}

    .summary-box h3 {
        font-size: 17px;
        margin-bottom: 18px;
    }

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--ink-soft);
    padding: 9px 0;
}

    .summary-line.discount {
        color: var(--coral);
    }

    .summary-line.total {
        border-top: 1px solid var(--line-soft);
        margin-top: 8px;
        padding-top: 16px;
        font-size: 16.5px;
        font-weight: 800;
        color: var(--ink);
    }

.addr-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 20px;
}

.addr-card {
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 13px 16px;
    font-size: 13px;
    cursor: pointer;
    position: relative;
}

    .addr-card.active {
        border-color: var(--copper);
        background: var(--copper-tint);
    }

    .addr-card b {
        display: block;
        font-size: 13.5px;
        margin-bottom: 4px;
    }

    .addr-card span {
        color: var(--ink-soft);
        display: block;
    }

    .addr-card input {
        position: absolute;
        top: 14px;
        left: 14px;
        accent-color: var(--copper);
    }

.addr-new-btn {
    font-size: 12.5px;
    color: var(--copper);
    font-weight: 700;
    border: 1px dashed var(--copper);
    border-radius: var(--r-md);
    padding: 11px;
    text-align: center;
}

.addr-form {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

    .addr-form.open {
        display: grid;
    }

    .addr-form input, .addr-form select, .addr-form textarea {
        grid-column: span 1;
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        padding: 10px 12px;
        font-size: 13px;
        background: var(--paper-dim);
    }

    .addr-form textarea {
        grid-column: span 2;
        resize: vertical;
        min-height: 64px;
    }

    .addr-form .full {
        grid-column: span 2;
    }

.trust-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-top: 16px;
}

    .trust-mini svg {
        width: 14px;
        height: 14px;
        color: var(--sage);
    }

.empty-cart {
    text-align: center;
    padding: 70px 20px;
}

    .empty-cart svg {
        width: 90px;
        height: 90px;
        color: var(--line);
        margin: 0 auto 20px;
    }

    .empty-cart h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .empty-cart p {
        color: var(--ink-soft);
        font-size: 13.5px;
        margin-bottom: 22px;
    }

@media (max-width:900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-row {
        grid-template-columns: 60px 1fr;
        grid-template-areas: "thumb name" "thumb price" "thumb qty";
        row-gap: 8px;
    }

    .cart-thumb {
        grid-area: thumb;
        width: 60px;
        height: 56px;
    }

    .cart-row > .cart-price {
        grid-area: price;
    }

    .cart-row > .cart-quantity-cell {
        grid-area: qty;
        justify-self: start;
        align-items: flex-start;
    }

    .cart-form-card {
        padding: 18px;
    }

    .cart-form-card-heading {
        flex-direction: column;
        gap: 6px;
    }

    .cart-guest-phone {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .cart-guest-phone-form {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .cart-guest-phone-message {
        grid-column: 1 / -1;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width:520px) {
    .cart-guest-phone-form {
        grid-template-columns: 1fr;
    }

    .cart-guest-phone-form .btn {
        justify-self: start;
    }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink);
    min-height: 380px;
}

.blog-hero-img {
    background: linear-gradient(135deg,#2A3140,#12151B);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .blog-hero-img svg {
        width: 60%;
        opacity: .85;
    }

.blog-hero-copy {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .blog-hero-copy .cat-tag {
        color: var(--copper-tint);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: .08em;
        margin-bottom: 14px;
        font-family: var(--f-tag);
        text-transform: uppercase;
        direction: ltr;
    }

    .blog-hero-copy h2 {
        color: var(--paper);
        font-size: clamp(20px,2.6vw,30px);
        line-height: 1.4;
        margin-bottom: 14px;
    }

    .blog-hero-copy p {
        color: #B7BEC7;
        font-size: 13.5px;
        margin-bottom: 18px;
    }

.post-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #8A9099;
}

    .post-byline .avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--copper);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 11px;
    }

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 44px 0 28px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 26px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .blog-card:hover {
        box-shadow: var(--shadow-md);
    }

.blog-card-img {
    aspect-ratio: 1.5/1;
    background: var(--paper-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .blog-card-img svg {
        width: 46%;
        color: var(--line);
    }

.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.blog-card .cat-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: var(--f-tag);
    direction: ltr;
}

.blog-card h3 {
    font-size: 16px;
    line-height: 1.5;
}

.blog-card p {
    font-size: 13px;
    color: var(--ink-soft);
    flex: 1;
}

.blog-card .post-byline {
    color: #9AA0A8;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

@media (max-width:980px) {
    .blog-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .blog-hero {
        grid-template-columns: 1fr;
    }

    .blog-hero-img {
        min-height: 200px;
    }
}

@media (max-width:600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    margin-bottom: 20px;
}

    .sidebar-box h4 {
        font-size: 14.5px;
        margin-bottom: 16px;
    }

.tag-cloud {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .tag-cloud a {
        font-size: 12px;
        border: 1px solid var(--line);
        padding: 7px 13px;
        border-radius: 4px;
        color: var(--ink-soft);
    }

        .tag-cloud a:hover {
            background: var(--ink);
            color: var(--paper);
            border-color: var(--ink);
        }

.mini-post {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

    .mini-post .mp-img {
        width: 60px;
        height: 52px;
        background: var(--paper-dim);
        border-radius: var(--r-sm);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .mini-post .mp-img svg {
            width: 60%;
            color: var(--line);
        }

    .mini-post b {
        font-size: 13px;
        line-height: 1.5;
        display: block;
    }

    .mini-post span {
        font-size: 11px;
        color: var(--ink-soft);
    }

/* ---- Article page ---- */
.article-head {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0 30px;
}

    .article-head .cat-tag {
        color: var(--copper);
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-family: var(--f-tag);
        direction: ltr;
    }

    .article-head h1 {
        font-size: clamp(26px,3.6vw,42px);
        line-height: 1.35;
        margin: 16px 0;
    }

    .article-head .post-byline {
        justify-content: center;
        color: var(--ink-soft);
    }

.article-cover {
    aspect-ratio: 2.2/1;
    background: linear-gradient(135deg,#ECEEEC,#DADDE0);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 44px;
}

    .article-cover svg {
        width: 24%;
        color: var(--copper);
        opacity: .5;
    }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 50px;
    padding-bottom: 70px;
}

.article-body {
    max-width: 700px;
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.95;
}

    .article-body h2 {
        font-size: 22px;
        color: var(--ink);
        margin: 36px 0 14px;
    }

    .article-body h3 {
        font-size: 17.5px;
        color: var(--ink);
        margin: 26px 0 10px;
    }

    .article-body p {
        margin-bottom: 18px;
    }

    .article-body ul {
        margin-bottom: 18px;
        padding-inline-start: 20px;
        list-style: disc;
    }

    .article-body li {
        margin-bottom: 8px;
    }

    .article-body blockquote {
        border-inline-start: 3px solid var(--copper);
        padding: 4px 22px;
        font-size: 17px;
        color: var(--ink);
        font-weight: 600;
        margin: 26px 0;
    }

    .article-body .pull-figure {
        background: var(--paper-dim);
        border-radius: var(--r-lg);
        padding: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 26px 0;
    }

        .article-body .pull-figure svg {
            width: 120px;
            color: var(--copper);
        }

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

    .article-share span {
        font-size: 12.5px;
        color: var(--ink-soft);
    }

    .article-share a {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .article-share svg {
        width: 15px;
        height: 15px;
    }

.author-box {
    display: flex;
    gap: 16px;
    background: var(--paper-dim);
    border-radius: var(--r-lg);
    padding: 24px;
    margin: 30px 0;
    align-items: flex-start;
}

    .author-box .avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--copper);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 18px;
        flex-shrink: 0;
    }

    .author-box b {
        font-size: 14.5px;
        display: block;
        margin-bottom: 6px;
    }

    .author-box p {
        font-size: 13px;
        margin: 0;
    }

.comments-box {
    margin-top: 40px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
}

.comment-form {
    background: var(--paper-dim);
    border-radius: var(--r-lg);
    padding: 22px;
    margin-top: 24px;
}

    .comment-form textarea {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        padding: 12px 14px;
        font-size: 13.5px;
        min-height: 90px;
        resize: vertical;
        background: var(--card);
        margin-bottom: 12px;
    }

    .comment-form input {
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        padding: 10px 14px;
        font-size: 13px;
        background: var(--card);
    }

    .comment-form .row2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

@media (max-width:900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MISC — toast, mobile drawer, badges reused
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .toast svg {
        width: 16px;
        height: 16px;
        color: var(--sage-tint);
    }

.mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: 82%;
    max-width: 320px;
    background: var(--paper);
    z-index: 120;
    transform: translateX(-100%);
    transition: .3s;
    padding: 24px;
    overflow-y: auto;
}

body.nav-open .mobile-drawer {
    transform: none;
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27,36,32,.5);
    z-index: 110;
    display: none;
}

body.nav-open .mobile-drawer-backdrop {
    display: block;
}

.mobile-drawer li {
    border-bottom: 1px solid var(--line-soft);
}

.mobile-drawer a {
    display: block;
    padding: 14px 2px;
    font-weight: 600;
    font-size: 15px;
}

.mobile-drawer .close-drawer {
    margin-bottom: 20px;
}

@media (max-width:980px) {
    .mobile-menu-item {
        display: flex;
        align-items: center;
    }

    .mobile-menu-item > a {
        flex: 1;
        min-width: 0;
    }

    .mobile-submenu-toggle {
        width: 34px;
        height: 48px;
        flex: 0 0 34px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--ink-soft);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-submenu-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform .2s ease;
    }

    .mobile-menu-parent.is-open > .mobile-menu-item .mobile-submenu-toggle svg {
        transform: rotate(-90deg);
    }

    .mobile-submenu {
        margin: 0 12px 8px;
        padding: 0 12px;
        border-right: 1px solid var(--line);
    }

    .mobile-submenu li {
        border-bottom: 0;
    }

    .mobile-submenu a {
        padding: 9px 2px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink-soft);
    }

    .mobile-submenu-heading {
        padding: 10px 2px 4px;
        color: var(--copper);
        font-family: var(--f-tag);
        font-size: 10px;
        letter-spacing: .08em;
        direction: ltr;
        text-align: right;
    }
}

.section-title-block {
    margin-bottom: 10px;
}

.product-load-sentinel {
    height: 1px;
}

.product-load-sentinel[hidden],
.product-load-indicator[hidden] {
    display: none !important;
}

.product-load-indicator {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
}

.product-load-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--line);
    border-top-color: var(--copper);
    border-radius: 50%;
    animation: product-load-spin .8s linear infinite;
}

@keyframes product-load-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-load-spinner {
        animation-duration: 1.5s;
    }
}
