/* =================================================================
   ShiriWool — Storefront Stylesheet
   Palette: warm cream / ivory / dark chocolate / muted gold / gray
   ================================================================= */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --cream: #F7F1E6;
    --cream-2: #EFE6D5;
    --ivory: #FDFBF6;
    --brown: #2B1D14;
    --brown-2: #3A2A1E;
    --brown-3: #4A382A;
    --gold: #B08D57;
    --gold-2: #C9A96E;
    --gold-soft: #E8DCC6;
    --gray: #6B5B4A;
    --gray-2: #8C7C6B;
    --line: #E3D8C4;
    --line-2: #D5C7AD;
    --white: #FFFFFF;
    --danger: #A63A2E;
    --success: #2F6B4F;
    --shadow-sm: 0 1px 2px rgba(43, 29, 20, .05);
    --shadow: 0 6px 24px -10px rgba(43, 29, 20, .16);
    --shadow-lg: 0 18px 50px -20px rgba(43, 29, 20, .28);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --header-h: 74px;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--brown);
    background: var(--cream);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- Utilities ---------- */
.container {
    width: min(1280px, 100% - 40px);
    margin-inline: auto;
}
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.section-head h2 {
    font-size: clamp(21px, 3vw, 28px);
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}
.section-head h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}
.section-head .link-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-head .link-more:hover { color: var(--brown); }

.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 12px;
}
.lead { color: var(--gray); font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--brown);
    color: var(--ivory);
}
.btn-primary:hover { background: var(--brown-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold {
    background: var(--gold);
    color: var(--white);
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
    background: transparent;
    border-color: var(--line-2);
    color: var(--brown);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-light {
    background: var(--ivory);
    color: var(--brown);
    border-color: var(--line);
}
.btn-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--ivory);
    color: var(--brown);
    transition: var(--transition);
    position: relative;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-badge {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--gold);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}
.badge-gold { background: var(--gold); color: var(--white); }
.badge-success { background: #E8F2EC; color: var(--success); }
.badge-danger { background: #F8E9E6; color: var(--danger); }
.badge-brown { background: var(--brown); color: var(--ivory); }

/* =================================================================
   Header
   ================================================================= */
.topbar {
    background: var(--brown);
    color: rgba(253, 251, 246, .82);
    font-size: 13px;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-2); }
.topbar .topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .sep { opacity: .3; margin: 0 10px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 700; font-size: 12.5px;
    background: rgba(201, 169, 110, .16); border: 1px solid rgba(201, 169, 110, .4);
    padding: 2px 10px; border-radius: 99px; color: var(--gold-2) !important;
}
.lang-switch:hover { background: var(--gold) !important; color: #fff !important; border-color: var(--gold); }
.site-footer .lang-switch { background: rgba(253,251,246,.08); border-color: rgba(253,251,246,.2); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(253, 251, 246, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-main .container {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: var(--header-h);
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--brown); }
.brand-tag { font-size: 11.5px; color: var(--gold); font-weight: 600; }

.header-search {
    flex: 1;
    max-width: 520px;
    margin-inline: auto;
}
.header-search form {
    display: flex;
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 4px 6px 4px 18px;
    transition: var(--transition);
}
.header-search form:focus-within { border-color: var(--gold); background: var(--ivory); box-shadow: 0 0 0 3px rgba(176, 141, 87, .12); }
.header-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 10px;
    font-size: 14.5px;
    color: var(--brown);
    outline: none;
}
.header-search button {
    border: 0;
    background: var(--brown);
    color: var(--ivory);
    width: 38px;
    height: 38px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.header-search button:hover { background: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .icon-btn { width: 44px; height: 44px; border-radius: 12px; }
.header-actions .label { display: none; }

/* Nav */
.main-nav { border-top: 1px solid var(--line); background: var(--ivory); }
.main-nav .container { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 15px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.nav-list a:hover, .nav-list a.active { color: var(--brown); border-bottom-color: var(--gold); }
.nav-list a.nav-virtual { color: var(--gold); }
.nav-list a.nav-virtual:hover { color: var(--brown); }

.nav-toggle { display: none; }

/* Mobile search row */
.mobile-search { display: none; padding: 10px 0; border-top: 1px solid var(--line); background: var(--ivory); }
.mobile-search .header-search { max-width: none; margin: 0; }

/* =================================================================
   Hero
   ================================================================= */
.hero {
    position: relative;
    background: var(--brown);
    color: var(--ivory);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(43, 29, 20, .92) 0%, rgba(43, 29, 20, .55) 55%, rgba(43, 29, 20, .25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 620px; padding: 64px 0; }
.hero h1 {
    font-size: clamp(30px, 5.4vw, 54px);
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 800;
}
.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(253, 251, 246, .85);
    margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-outline { border-color: rgba(253, 251, 246, .4); color: var(--ivory); }
.hero .btn-outline:hover { border-color: var(--ivory); color: var(--ivory); background: rgba(253,251,246,.08); }

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid rgba(253, 251, 246, .18);
}
.hero-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--gold-2); }
.hero-stat span { font-size: 13px; color: rgba(253, 251, 246, .72); }

/* =================================================================
   Virtual shop entry
   ================================================================= */
.virtual-entry {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--brown);
    color: var(--ivory);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 340px;
    box-shadow: var(--shadow);
}
.virtual-entry-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}
.virtual-entry::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(43, 29, 20, .95) 10%, rgba(43, 29, 20, .6) 60%, rgba(43, 29, 20, .35) 100%);
}
.virtual-entry-body {
    position: relative;
    z-index: 2;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
}
.virtual-entry-body h2 { font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 12px; }
.virtual-entry-body p { color: rgba(253, 251, 246, .82); margin-bottom: 24px; }
.virtual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: rgba(176, 141, 87, .22);
    border: 1px solid rgba(201, 169, 110, .5);
    color: var(--gold-2);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}
.virtual-entry-art {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.virtual-ring {
    width: min(100%, 260px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(201, 169, 110, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: spin-slow 26s linear infinite;
}
.virtual-ring::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, .35);
}
.virtual-ring-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin-slow-reverse 26s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-reverse { to { transform: rotate(-360deg); } }

/* =================================================================
   Category showcase
   ================================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ivory);
    border: 1px solid var(--line);
    transition: var(--transition);
    display: block;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.category-card-img {
    aspect-ratio: 4 / 3;
    background: var(--cream-2);
    overflow: hidden;
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.category-card:hover .category-card-img img { transform: scale(1.06); }
.category-card-body { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-card-body h3 { margin: 0; font-size: 17px; }
.category-card-body p { margin: 2px 0 0; font-size: 13px; color: var(--gray); }
.category-card-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    background: var(--gold-soft);
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* =================================================================
   Product cards
   ================================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.product-card {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cream-2);
    overflow: hidden;
    display: block;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-card-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    z-index: 2;
}
.product-card-quick {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
}
.product-card:hover .product-card-quick { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card-cat { font-size: 11.5px; color: var(--gold); font-weight: 700; }
.product-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}
.product-card-title a:hover { color: var(--gold); }
.product-card-code {
    font-family: Consolas, Menlo, monospace; font-size: 11.5px;
    color: var(--gray-2); letter-spacing: .4px; direction: ltr; display: inline-block;
}
.product-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); }
.product-card-price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { display: flex; flex-direction: column; line-height: 1.4; }
.price-final { font-size: 16.5px; font-weight: 800; color: var(--brown); }
.price-old { font-size: 12.5px; color: var(--gray-2); text-decoration: line-through; }
.price-discount { font-size: 12px; font-weight: 700; color: var(--danger); }
.add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--brown);
    background: transparent;
    color: var(--brown);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}
.add-cart-btn:hover { background: var(--brown); color: var(--ivory); }
.add-cart-btn.added { background: var(--success); border-color: var(--success); color: var(--white); }
.add-cart-btn:disabled { opacity: .5; cursor: not-allowed; }

.stock-out { color: var(--danger); font-size: 12.5px; font-weight: 700; }
.stock-low { color: #9A6B1F; font-size: 12.5px; font-weight: 700; }

/* =================================================================
   Brand / about
   ================================================================= */
.brand-section { background: var(--ivory); border-block: 1px solid var(--line); }
.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.brand-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--cream-2); }
.brand-media img { width: 100%; height: 100%; object-fit: cover; }
.brand-content h2 { font-size: clamp(22px, 3.2vw, 30px); }
.brand-content p { color: var(--gray); }
.brand-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.brand-feature { display: flex; gap: 12px; align-items: flex-start; }
.brand-feature .icon-wrap {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    background: var(--gold-soft); color: var(--gold);
    display: flex; align-items: center; justify-content: center;
}
.brand-feature strong { display: block; font-size: 14.5px; }
.brand-feature span { font-size: 13px; color: var(--gray); }

/* =================================================================
   Testimonials
   ================================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.testimonial-stars { color: var(--gold); display: flex; gap: 2px; }
.testimonial-content { color: var(--gray); font-size: 14.5px; margin: 0; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 11px; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--brown); color: var(--gold-2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--gray-2); }

/* =================================================================
   Features strip
   ================================================================= */
.features-strip { background: var(--brown); color: var(--ivory); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .icon-wrap {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: rgba(176, 141, 87, .2); color: var(--gold-2);
    display: flex; align-items: center; justify-content: center;
}
.feature-item strong { display: block; font-size: 15px; margin-bottom: 2px; }
.feature-item span { font-size: 13px; color: rgba(253, 251, 246, .7); line-height: 1.7; }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--brown); color: rgba(253, 251, 246, .75); margin-top: 56px; }
.footer-main { padding: 52px 0 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { color: var(--ivory); font-size: 18px; }
.footer-about { font-size: 13.5px; line-height: 1.9; }
.footer-col h4 { color: var(--ivory); font-size: 15.5px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 13.5px; transition: var(--transition); }
.footer-col ul a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 11px; }
.footer-contact svg { flex-shrink: 0; margin-top: 4px; color: var(--gold-2); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(253, 251, 246, .08);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--white); }
.enamad { margin-top: 18px; }
.enamad img { width: 100px; height: 100px; background: #FDFBF6; border-radius: 10px; padding: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(253, 251, 246, .12);
    padding: 18px 0;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-bottom a { color: var(--gold-2); }

/* =================================================================
   Page header / breadcrumb
   ================================================================= */
.page-header {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 34px 0;
}
.page-header h1 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 6px; }
.page-header p { color: var(--gray); margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .45; }

/* =================================================================
   Product listing
   ================================================================= */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.filter-card {
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.filter-card h3 { font-size: 15.5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--gray); display: block; margin-bottom: 8px; }
.filter-list li { margin-bottom: 7px; }
.filter-list a { font-size: 13.5px; color: var(--gray); display: flex; justify-content: space-between; }
.filter-list a:hover, .filter-list a.active { color: var(--gold); font-weight: 700; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line);
    border-radius: 8px; font-size: 13.5px; background: var(--white); color: var(--brown);
}
.color-dot {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px;
    color: var(--gray); padding: 5px 0; width: 100%;
}
.color-dot:hover { color: var(--brown); }
.color-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.shop-toolbar .result-count { font-size: 13.5px; color: var(--gray); }
.shop-toolbar .toolbar-actions { display: flex; align-items: center; gap: 10px; }
.sort-select, .filter-toggle {
    border: 1px solid var(--line); background: var(--ivory); color: var(--brown);
    border-radius: 9px; padding: 9px 13px; font-size: 13.5px;
}
.filter-toggle { display: none; align-items: center; gap: 7px; font-weight: 700; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 9px;
    background: var(--ivory); color: var(--gray); font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--brown); border-color: var(--brown); color: var(--ivory); }
.pagination .disabled { opacity: .45; pointer-events: none; }

.empty-state {
    text-align: center; padding: 60px 20px; background: var(--ivory);
    border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty-state .icon-wrap {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
    background: var(--cream-2); color: var(--gold); display: flex; align-items: center; justify-content: center;
}
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--gray); font-size: 14px; }

/* =================================================================
   Product detail
   ================================================================= */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--cream-2); aspect-ratio: 1 / 1; border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.gallery-swipe { touch-action: pan-y; cursor: grab; }
.gallery-swipe:active { cursor: grabbing; }
.gallery-track { display: flex; height: 100%; width: 100%; transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
.gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-dots {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 3;
}
.gallery-dot {
    width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
    background: rgba(253, 251, 246, .55); transition: var(--transition);
}
.gallery-dot.active { background: var(--gold); width: 22px; border-radius: 99px; }

.price-unit { font-size: 13px; color: var(--gray); margin-top: 4px; }

.barcode-box {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; margin-bottom: 20px;
}
.barcode-title { font-size: 12.5px; color: var(--gray); font-weight: 700; }
.barcode-box svg { max-width: 100%; height: auto; }
.barcode-code { font-family: Consolas, Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--brown); }

.order-contact {
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 20px;
}
.order-contact > div { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.order-contact > div svg { color: var(--gold); }
.order-contact p { margin: 8px 0 0; font-size: 13.5px; color: var(--gray); }
.gallery-zoom-hint {
    position: absolute; bottom: 14px; left: 14px;
    background: rgba(43, 29, 20, .72); color: var(--ivory);
    font-size: 12px; padding: 6px 12px; border-radius: 99px;
    display: inline-flex; align-items: center; gap: 6px;
    pointer-events: none;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
    border: 2px solid transparent; background: var(--cream-2); padding: 0; flex-shrink: 0;
    transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold); }

.product-info .product-code { font-size: 12.5px; color: var(--gray-2); }
.product-info h1 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 12px; }
.product-rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.product-rating .stars { color: var(--gold); display: flex; gap: 2px; }
.product-price-box {
    background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 20px; margin-bottom: 20px;
}
.product-price-box .price-final { font-size: 28px; font-weight: 800; }
.product-price-box .price-old { font-size: 15px; }
.product-short { color: var(--gray); font-size: 14.5px; margin-bottom: 18px; }
.product-option-label { font-size: 14px; font-weight: 700; margin-bottom: 9px; display: flex; gap: 8px; }
.product-option-label .selected-value { color: var(--gold); font-weight: 600; }
.variant-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.variant-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--line); background: var(--ivory);
    border-radius: 10px; padding: 9px 15px; font-size: 13.5px; font-weight: 600;
    color: var(--brown); transition: var(--transition);
}
.variant-btn:hover { border-color: var(--gold); }
.variant-btn.active { border-color: var(--gold); background: var(--gold-soft); }
.variant-btn .color-swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-2); }

.quantity-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.quantity-selector {
    display: inline-flex; align-items: center; border: 1px solid var(--line);
    border-radius: 10px; overflow: hidden; background: var(--ivory);
}
.quantity-selector button {
    width: 42px; height: 44px; border: 0; background: transparent;
    font-size: 18px; color: var(--brown); display: flex; align-items: center; justify-content: center;
}
.quantity-selector button:hover { background: var(--cream); }
.quantity-selector input {
    width: 54px; height: 44px; border: 0; border-inline: 1px solid var(--line);
    text-align: center; font-size: 15px; font-weight: 700; color: var(--brown); background: var(--white);
}
.stock-status { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.stock-status.in { color: var(--success); }
.stock-status.out { color: var(--danger); }
.stock-status.low { color: #9A6B1F; }

.product-actions { display: flex; gap: 12px; margin-bottom: 20px; }
.product-actions .btn { flex: 1; }
.product-meta-list { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.product-meta-list div { display: flex; gap: 10px; font-size: 13.5px; align-items: center; color: var(--gray); }
.product-meta-list svg { color: var(--gold); flex-shrink: 0; }

.product-tabs { margin-top: 48px; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs-nav button {
    border: 0; background: transparent; padding: 12px 20px; font-size: 15px; font-weight: 700;
    color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs-nav button.active { color: var(--brown); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in .3s ease; }
.tab-panel .description { color: var(--gray); line-height: 2.1; white-space: pre-line; }
.attributes-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.attributes-table th, .attributes-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; }
.attributes-table th { color: var(--gray); font-weight: 600; width: 180px; background: var(--ivory); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(30, 21, 15, .94);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox-close {
    position: absolute; top: 20px; left: 20px; width: 46px; height: 46px;
    border-radius: 50%; border: 1px solid rgba(253,251,246,.3); background: transparent;
    color: var(--ivory); display: flex; align-items: center; justify-content: center;
}

/* =================================================================
   Cart
   ================================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-items { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-item {
    display: grid; grid-template-columns: 92px 1fr auto; gap: 16px;
    padding: 18px; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-media { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.cart-item-variant { font-size: 12.5px; color: var(--gray); margin-bottom: 6px; }
.cart-item-price { font-size: 14px; color: var(--gray); }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-line { font-size: 16px; font-weight: 800; }
.cart-remove-btn { background: none; border: 0; color: var(--gray-2); display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 0; }
.cart-remove-btn:hover { color: var(--danger); }

.summary-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card h2 { font-size: 17px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; color: var(--gray); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 800; color: var(--brown); }
.summary-note { font-size: 12.5px; color: var(--gray-2); margin-top: 10px; }
.free-shipping-progress { background: var(--cream); border-radius: 9px; padding: 12px; font-size: 12.5px; margin-bottom: 14px; }
.free-shipping-progress .bar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.free-shipping-progress .bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

/* =================================================================
   Checkout
   ================================================================= */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout-form { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.form-group label .req { color: var(--danger); }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--white); font-size: 14.5px; color: var(--brown);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.12); }
.form-control.is-invalid { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 12px; color: var(--gray-2); margin-top: 5px; }

/* =================================================================
   Virtual tour
   ================================================================= */
.tour-page { position: relative; height: calc(100vh - 0px); min-height: 560px; background: var(--brown); overflow: hidden; }
.tour-wrap { position: absolute; inset: 0; }
#panorama { width: 100%; height: 100%; }
.tour-topbar {
    position: absolute; top: 0; right: 0; left: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; pointer-events: none;
}
.tour-topbar > * { pointer-events: auto; }
.tour-brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); background: rgba(43,29,20,.72); border: 1px solid rgba(253,251,246,.15); border-radius: 99px; padding: 8px 16px 8px 8px; backdrop-filter: blur(8px); }
.tour-brand img { width: 34px; height: 34px; }
.tour-brand strong { font-size: 14px; display: block; line-height: 1.3; }
.tour-brand span { font-size: 11px; color: var(--gold-2); }
.tour-controls { display: flex; gap: 8px; }
.tour-control-btn {
    width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(253,251,246,.18);
    background: rgba(43,29,20,.72); color: var(--ivory); display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); transition: var(--transition);
}
.tour-control-btn:hover { background: var(--gold); border-color: var(--gold); }

.tour-locations {
    position: absolute; bottom: 18px; right: 50%; transform: translateX(50%);
    z-index: 20; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
    max-width: min(860px, calc(100% - 40px));
}
.tour-location-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(43,29,20,.72); border: 1px solid rgba(253,251,246,.16);
    color: rgba(253,251,246,.85); border-radius: 99px; padding: 8px 15px;
    font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); transition: var(--transition);
}
.tour-location-chip:hover { border-color: var(--gold); color: var(--gold-2); }
.tour-location-chip.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

.tour-hint {
    position: absolute; bottom: 74px; right: 50%; transform: translateX(50%);
    z-index: 19; color: rgba(253,251,246,.8); font-size: 13px;
    background: rgba(43,29,20,.55); border-radius: 99px; padding: 6px 16px;
    backdrop-filter: blur(6px); pointer-events: none; transition: opacity .6s ease;
}
.tour-hint.hidden { opacity: 0; }

.tour-loading {
    position: absolute; inset: 0; z-index: 30; background: var(--brown);
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
    color: var(--ivory);
}
.tour-loading .spinner {
    width: 46px; height: 46px; border-radius: 50%;
    border: 3px solid rgba(253,251,246,.18); border-top-color: var(--gold);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pannellum custom hotspots */
.custom-hotspot {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(176, 141, 87, .92);
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
    position: relative;
}
.custom-hotspot::after {
    content: ''; position: absolute; inset: 10px;
    border-radius: 50%; background: #fff;
}
.custom-hotspot.hotspot-nav { background: rgba(43, 29, 20, .92); }
.custom-hotspot.hotspot-nav::after { content: none; }
.custom-hotspot.hotspot-nav::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E") center/17px no-repeat;
}
.custom-hotspot.hotspot-product { background: rgba(176, 141, 87, .95); }
.custom-hotspot.hotspot-product::after {
    content: none;
}
.custom-hotspot.hotspot-product::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.6'/%3E%3Ccircle cx='19' cy='21' r='1.6'/%3E%3Cpath d='M2.5 3h2l2.6 12.4a2 2 0 0 0 2 1.6h8.8a2 2 0 0 0 2-1.6L21.5 7H6'/%3E%3C/svg%3E") center/16px no-repeat;
}
.custom-hotspot.hotspot-info { background: rgba(253, 251, 246, .95); }
.custom-hotspot.hotspot-info::after { background: var(--brown); }
.pnlm-tooltip-box { max-width: 220px; }
.pnlm-tooltip span { font-family: 'Vazirmatn', Tahoma, sans-serif !important; }

/* Product modal */
.tour-product-modal {
    position: fixed; inset: 0; z-index: 120; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(30, 21, 15, .72); backdrop-filter: blur(4px);
}
.tour-product-modal.open { display: flex; }
.tour-product-card {
    background: var(--ivory); border-radius: var(--radius-lg); overflow: hidden;
    max-width: 760px; width: 100%; display: grid; grid-template-columns: 300px 1fr;
    box-shadow: var(--shadow-lg); animation: modal-in .28s cubic-bezier(.4,0,.2,1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.tour-product-media { background: var(--cream-2); }
.tour-product-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-product-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tour-product-body h3 { font-size: 19px; margin: 0; }
.tour-product-price { font-size: 20px; font-weight: 800; }
.tour-product-body .stock-status { font-size: 13px; }
.tour-product-actions { display: flex; gap: 10px; margin-top: auto; }
.tour-product-close {
    position: absolute; top: 16px; left: 16px; width: 42px; height: 42px;
    border-radius: 50%; border: 0; background: var(--brown); color: var(--ivory);
    display: flex; align-items: center; justify-content: center;
}

/* Minimap */
.tour-minimap {
    position: absolute; top: 78px; left: 18px; z-index: 20;
    width: 168px; background: rgba(43,29,20,.72); border: 1px solid rgba(253,251,246,.15);
    border-radius: 12px; padding: 10px; backdrop-filter: blur(8px);
}
.tour-minimap svg { width: 100%; height: auto; display: block; }
.tour-minimap .map-dot { fill: rgba(253,251,246,.55); }
.tour-minimap .map-dot.active { fill: var(--gold-2); }

/* =================================================================
   About / contact
   ================================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-content h1 { font-size: clamp(24px, 3.6vw, 34px); }
.about-content p { color: var(--gray); line-height: 2.1; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--cream-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.contact-info-card { background: var(--brown); color: var(--ivory); border-radius: var(--radius); padding: 26px; }
.contact-info-card h2 { font-size: 19px; }
.contact-info-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(253,251,246,.12); align-items: flex-start; }
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-item svg { color: var(--gold-2); flex-shrink: 0; margin-top: 4px; }
.contact-info-item strong { display: block; font-size: 13.5px; color: var(--gold-2); margin-bottom: 2px; }
.contact-info-item span { font-size: 14.5px; }

/* =================================================================
   Alerts / toast
   ================================================================= */
.alert {
    border-radius: 11px; padding: 14px 18px; font-size: 14.5px;
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert svg { flex-shrink: 0; }
.alert-success { background: #E8F2EC; border-color: #C4DECF; color: var(--success); }
.alert-error { background: #F8E9E6; border-color: #E7C4BD; color: var(--danger); }
.alert-info { background: var(--gold-soft); border-color: var(--line-2); color: var(--brown-3); }

.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
    background: var(--brown); color: var(--ivory); border-radius: 11px;
    padding: 13px 16px; font-size: 14px; display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-lg); animation: toast-in .3s cubic-bezier(.4,0,.2,1);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: .3s; }

/* =================================================================
   Animations
   ================================================================= */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
    .virtual-entry { grid-template-columns: 1fr; }
    .virtual-entry-art { display: none; }
}

@media (max-width: 900px) {
    .section { padding: 42px 0; }
    .header-search { display: none; }
    .mobile-search { display: block; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav .container { flex-direction: column; align-items: stretch; padding-block: 8px; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-list a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
    .nav-list a:hover, .nav-list a.active { border-bottom-color: var(--line); color: var(--gold); }
    .nav-toggle { display: inline-flex; }
    .header-actions .label { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; display: none; }
    .shop-sidebar.open { display: block; }
    .filter-toggle { display: inline-flex; }
    .product-layout { grid-template-columns: 1fr; gap: 28px; }
    .product-gallery { position: static; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .about-grid, .contact-grid, .brand-grid { grid-template-columns: 1fr; gap: 28px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr 1fr; }
    .tour-product-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .tour-product-media { aspect-ratio: 16/10; }
    .tour-minimap { display: none; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }
    .product-grid, .product-grid.cols-3, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .topbar .topbar-right { display: none; }
    .hero-stats { gap: 20px; }
    .hero-stat strong { font-size: 20px; }
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item-media { width: 72px; height: 72px; }
    .cart-item-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .product-card-title { font-size: 13.5px; min-height: 40px; }
    .price-final { font-size: 15px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .virtual-entry-body { padding: 28px 22px; }
    .tour-locations { bottom: 12px; }
    .tour-location-chip { font-size: 12px; padding: 7px 12px; }
    .tour-hint { display: none; }
}

@media (max-width: 400px) {
    .product-grid, .product-grid.cols-3, .product-grid.cols-5 { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
