/* ==========================================
   CLOTHIQ — design tokens (same theme as before)
   ========================================== */
:root {
    --color-primary: #2c2c2c;
    --color-secondary: #8b7355;
    --color-accent: #9b8578;
    --color-background: #faf9f7;
    --color-surface: #ffffff;
    --color-sand: #f2eee7;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-text-muted: #9b9b9b;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-error: #d32f2f;
    --color-success: #2e7d32;
    --color-sale: #a8452c;
    --color-overlay: rgba(44, 44, 44, 0.5);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --container-max: 1320px;
    --header-height: 68px;
    --announce-height: 40px;
    --radius: 2px;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.14);
    --t-fast: 150ms ease;
    --t-base: 250ms ease;
    --t-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 56px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); line-height: 1.5; color: var(--color-text); background: var(--color-background); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-md) var(--space-xl); font-size: 1rem; font-weight: 500; line-height: 1; border: 1px solid transparent; border-radius: var(--radius); transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base); white-space: nowrap; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary); }
.btn-secondary { border-color: var(--color-primary); color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-light:hover { background: var(--color-sand); }
.btn-small { padding: var(--space-sm) var(--space-lg); font-size: 0.875rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary:disabled:hover { background: var(--color-primary); }
.btn-text { color: var(--color-text-light); text-decoration: underline; text-underline-offset: 4px; font-size: 0.875rem; }
.btn-text:hover { color: var(--color-primary); }

/* Announcement + header */
.header { position: sticky; top: 0; z-index: 200; background: var(--color-background); border-bottom: 1px solid var(--color-border-light); transition: box-shadow var(--t-base); }
.header.scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06); }
.header-inner { display: flex; align-items: center; gap: var(--space-lg); height: var(--header-height); }
.logo { font-family: var(--font-display); font-size: 1.625rem; font-weight: 600; letter-spacing: 0.14em; color: var(--color-primary); }
.header .menu-btn { display: none; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: background-color var(--t-fast); }
.icon-btn:hover { background: var(--color-sand); }
.icon-btn.round { border: 1px solid var(--color-border); background: var(--color-surface); }
.icon-btn.round:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 600; line-height: 1; background: var(--color-secondary); color: #fff; border-radius: 9px; }
.header-actions { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }
.search-toggle { display: none; }
.search { position: relative; flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 42px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; transition: border-color var(--t-fast); color: var(--color-text-muted); }
.search:focus-within { border-color: var(--color-primary); color: var(--color-primary); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 0.9375rem; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: 60vh; overflow-y: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 5; color: var(--color-text); }
.search-results button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--color-border-light); }
.search-results button:hover { background: var(--color-sand); }
.sr-thumb { width: 36px; height: 44px; flex: none; background: var(--bg, #efeae0); border-radius: var(--radius); padding: 3px; }
.search-results small { display: block; font-size: 0.8125rem; color: var(--color-text-light); }
.search-results .grow { flex: 1; min-width: 0; }
.search-none { padding: 14px; font-size: 0.9375rem; color: var(--color-text-light); }
.search-all { display: block; width: 100%; padding: 12px; text-align: center; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.search-panel { display: none; }

.nav { border-top: 1px solid var(--color-border-light); }
.nav-head { display: none; }
.nav-list { display: flex; justify-content: center; gap: var(--space-xl); }
.nav-link { position: relative; display: inline-block; padding: 12px 0; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base); }
.nav-link:hover::after, .nav-link[aria-current="true"]::after { transform: scaleX(1); }
.nav-overlay { position: fixed; inset: 0; z-index: 290; background: var(--color-overlay); opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility 0s linear var(--t-base); }
.nav-overlay.on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Type */
.eyebrow { display: inline-block; margin-bottom: var(--space-md); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary); }
.section-title { font-family: var(--font-display); font-size: clamp(2.1rem, 4.2vw, 3.25rem); font-weight: 500; line-height: 1.12; color: var(--color-primary); }
.section-title em { color: var(--color-secondary); }
.section-desc { margin-top: var(--space-md); font-size: 1.0625rem; line-height: 1.75; color: var(--color-text-light); }
.section { padding: var(--space-4xl) 0; }
.section-alt { background: var(--color-sand); }
.section-head { max-width: 640px; margin-bottom: var(--space-2xl); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-xl); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero slider */
.hero { position: relative; background: #ebe5d9; overflow: hidden; }
.hero-track { position: relative; min-height: min(70vh, 600px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; background: var(--sbg, #ebe5d9); }
.slide.on { opacity: 1; visibility: visible; transition-delay: 0s; position: relative; min-height: min(70vh, 600px); }
.slide-inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--space-2xl); min-height: min(70vh, 600px); padding-top: var(--space-xl); padding-bottom: 5rem; }
.slide-copy .eyebrow { transition: all 0.6s ease 0.1s; }
.slide-title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: var(--space-md); }
.slide-title em { display: block; color: var(--color-secondary); }
.slide-copy p { max-width: 28rem; margin-bottom: var(--space-xl); font-size: 1.0625rem; line-height: 1.7; color: var(--color-text-light); }
.slide-cta { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.slide-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.slide.on .slide-copy > * { opacity: 1; transform: none; }
.slide.on .slide-copy > :nth-child(2) { transition-delay: 0.1s; }
.slide.on .slide-copy > :nth-child(3) { transition-delay: 0.2s; }
.slide.on .slide-copy > :nth-child(4) { transition-delay: 0.3s; }
.hero-ui { position: absolute; left: 0; right: 0; bottom: var(--space-lg); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; background: rgba(44, 44, 44, 0.25); transition: width var(--t-base), background-color var(--t-base); }
.hero-dots button.on { width: 30px; background: var(--color-primary); }
.hero-arrows { display: flex; gap: 8px; }

.trust { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: var(--space-lg); display: flex; flex-direction: column; gap: 2px; }
.trust-grid > div + div { border-left: 1px solid var(--color-border-light); }
.trust strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.trust span { font-size: 0.875rem; color: var(--color-text-light); }

.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl) var(--space-lg); }
.card { display: flex; flex-direction: column; min-width: 0; animation: fadeIn 0.45s ease; }
.card-fig { position: relative; aspect-ratio: 4 / 5; background: var(--bg, #efeae0); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 2; }
.tag { padding: 3px 8px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border-radius: var(--radius); background: #fff; color: var(--color-primary); }
.tag-sale { background: var(--color-sale); color: #fff; }
.tag-sold { background: var(--color-primary); color: #fff; }
.tag-new { background: #fff; }
.card-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tool { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--color-primary); transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-base), transform var(--t-base); }
.tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover { background: var(--color-primary); color: #fff; }
.tool.on { background: var(--color-primary); color: #fff; }
.tool.on svg.fill { fill: currentColor; }
.card-tools .tool:not(.keep) { opacity: 0; transform: translateX(8px); }
.card-fig:hover .tool:not(.keep), .tool:focus-visible { opacity: 1; transform: none; }
.card-cta { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; padding: 11px; font-size: 0.875rem; font-weight: 500; background: #fff; border-radius: var(--radius); opacity: 0; transform: translateY(8px); transition: opacity var(--t-base), transform var(--t-base), background-color var(--t-fast), color var(--t-fast); }
.card-fig:hover .card-cta, .card-cta:focus-visible { opacity: 1; transform: none; }
.card-cta:hover { background: var(--color-primary); color: #fff; }
.card-body { padding-top: var(--space-md); }
.card-meta { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.card-title { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; line-height: 1.2; text-align: left; }
.card-title:hover { color: var(--color-secondary); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-top: var(--space-sm); flex-wrap: wrap; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.price-now { font-weight: 600; }
.price-now.sale { color: var(--color-sale); }
.price-was { font-size: 0.875rem; color: var(--color-text-muted); text-decoration: line-through; }

/* Offer banner */
.offer { background: var(--color-primary); color: #fff; }
.offer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.offer .eyebrow { color: #c9b79c; }
.offer h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.1; margin-bottom: var(--space-md); }
.offer h2 em { color: #c9b79c; }
.offer p { max-width: 32rem; color: rgba(255, 255, 255, 0.75); line-height: 1.7; }

/* Best seller rail */
.rail { display: flex; gap: var(--space-lg); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-sm); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 calc((100% - 3 * var(--space-lg)) / 4); scroll-snap-align: start; }

/* Catalog controls */
.tabs-row { margin-bottom: var(--space-md); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); transition: all var(--t-fast); }
.chip:hover { border-color: var(--color-primary); }
.chip.on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.chip small { opacity: 0.6; margin-left: 4px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; cursor: pointer; }
.check input { accent-color: var(--color-primary); width: 16px; height: 16px; }
.range { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--color-text-light); }
.range strong { color: var(--color-primary); font-weight: 600; }
.range input { width: 160px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-md); }
.select { padding: 9px 32px 9px 12px; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232c2c2c' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 18px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--color-border); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--color-border); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--color-primary); border: 3px solid var(--color-background); box-shadow: 0 0 0 1px var(--color-primary); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--color-primary); border: 3px solid var(--color-background); box-shadow: 0 0 0 1px var(--color-primary); }
.active-q { margin-top: var(--space-md); }
.count { margin: var(--space-md) 0 var(--space-lg); font-size: 0.875rem; color: var(--color-text-light); }
.empty { padding: var(--space-3xl) 0; text-align: center; color: var(--color-text-light); }
.empty .btn { margin-top: var(--space-md); }
.more { margin-top: var(--space-2xl); text-align: center; }


/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-border); }
.features article { padding: var(--space-xl) var(--space-lg) var(--space-xl) 0; }
.features article + article { padding-left: var(--space-lg); border-left: 1px solid var(--color-border); }
.num { display: block; margin-bottom: var(--space-md); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--color-text-muted); }
.features h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-sm); }
.features p { font-size: 0.9375rem; line-height: 1.7; color: var(--color-text-light); }

/* Reviews */
.reviews-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: var(--space-3xl); align-items: start; }
.rating-box { position: sticky; top: calc(var(--header-height) + 80px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-xl); }
.rating-big { display: flex; align-items: baseline; gap: var(--space-sm); }
.rating-big strong { font-family: var(--font-display); font-size: 4rem; font-weight: 500; line-height: 1; }
.rating-big span { color: var(--color-text-light); }
.stars { display: inline-flex; gap: 2px; color: var(--color-secondary); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.stars .off { color: var(--color-border); }
.bar-row { display: grid; grid-template-columns: 1.6rem 1fr 2rem; gap: var(--space-sm); align-items: center; margin-top: 8px; font-size: 0.8125rem; color: var(--color-text-light); }
.bar { height: 6px; background: var(--color-border); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: var(--color-secondary); transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.review-list { margin: var(--space-lg) 0; }
.review { padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-border); animation: fadeIn 0.4s ease; }
.review:first-child { padding-top: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-bottom: var(--space-sm); font-size: 0.8125rem; color: var(--color-text-muted); }
.review h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; margin-bottom: 6px; }
.review p { color: var(--color-text-light); line-height: 1.7; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: var(--space-md); font-size: 0.8125rem; color: var(--color-text-muted); }
.review-meta b { color: var(--color-primary); font-weight: 500; }
.verified { color: var(--color-success); }
.review-form { margin-top: var(--space-lg); padding: var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.stars-input { border: 0; margin-bottom: var(--space-md); }
.stars-input legend { margin-bottom: 4px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-light); }
.stars-input button { padding: 2px; color: var(--color-border); }
.stars-input button.on { color: var(--color-secondary); }
.stars-input svg { width: 24px; height: 24px; fill: currentColor; }

/* Forms */
.field { display: block; margin-bottom: var(--space-md); }
.field span { display: block; margin-bottom: 6px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-light); }
.field input, .field textarea, .field .select { width: 100%; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); font-size: 1rem; transition: border-color var(--t-fast); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); }
.field.bad input, .field.bad textarea, .field.bad .select { border-color: var(--color-error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-msg { min-height: 1.4em; margin-bottom: var(--space-sm); font-size: 0.875rem; color: var(--color-error); }
.form-msg.ok { color: var(--color-success); }
.faq-wrap { max-width: 820px; }
.bulk-form { margin-top: var(--space-xl); }

/* Accordion */
.acc { margin-top: var(--space-xl); border-top: 1px solid var(--color-border); }
.acc-btn { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); width: 100%; padding: var(--space-lg) 0; text-align: left; font-weight: 500; }
.acc-btn::after { content: '+'; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform var(--t-base); }
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-item { border-bottom: 1px solid var(--color-border); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow); }
.acc-btn[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: var(--space-lg); color: var(--color-text-light); line-height: 1.75; }

/* Footer */
.footer { background: var(--color-primary); color: rgba(255, 255, 255, 0.75); padding: var(--space-3xl) 0 var(--space-lg); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-2xl); padding-bottom: var(--space-2xl); }
.footer .logo { color: #fff; display: inline-block; margin-bottom: var(--space-md); }
.footer-brand p { max-width: 22rem; font-size: 0.9375rem; line-height: 1.7; }
.footer h4 { margin-bottom: var(--space-md); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer li { padding: 4px 0; font-size: 0.9375rem; }
.footer li a:hover, .footer li button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer li button { color: inherit; font-size: 0.9375rem; text-align: left; }
.news { display: flex; gap: 8px; margin-top: var(--space-lg); max-width: 24rem; }
.news input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); background: transparent; color: #fff; font-size: 0.875rem; }
.news input::placeholder { color: rgba(255, 255, 255, 0.5); }
.news input:focus { outline: none; border-color: #fff; }
.news-msg { min-height: 1.4em; margin-top: var(--space-sm); font-size: 0.8125rem !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; padding-top: var(--space-lg); border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8125rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #25a35a; color: #fff; box-shadow: var(--shadow-lg); transition: transform var(--t-base); }
.wa-float:hover { transform: scale(1.08); }
body.has-compare .wa-float { bottom: 88px; }

.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 180; background: var(--color-primary); color: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.compare-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-top: 10px; padding-bottom: 10px; }
.compare-items { display: flex; gap: 10px; align-items: center; min-width: 0; overflow-x: auto; }
.cmp-chip { position: relative; width: 44px; height: 54px; flex: none; background: var(--bg, #efeae0); border-radius: var(--radius); padding: 3px; }
.cmp-chip button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--color-primary); font-size: 12px; line-height: 1; }
.compare-actions { display: flex; align-items: center; gap: var(--space-md); flex: none; }
.compare-actions .btn-text { color: rgba(255, 255, 255, 0.75); }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 900; background: var(--color-overlay); opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility 0s linear var(--t-base); }
.scrim.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000; width: 100%; max-width: 440px; display: flex; flex-direction: column; background: var(--color-background); transform: translateX(100%); visibility: hidden; transition: transform var(--t-slow), visibility 0s linear 0.4s; }
.drawer.on { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-border); }
.tabs { display: flex; gap: var(--space-lg); }
.tabs button { padding: 8px 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-text-muted); border-bottom: 1px solid transparent; }
.tabs button span { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 400; }
.tabs button[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-lg); }
.drawer-foot { padding: var(--space-lg); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.drawer-foot:empty { display: none; }
.drawer-empty { padding: var(--space-3xl) 0; text-align: center; color: var(--color-text-light); }
.drawer-empty .btn { margin-top: var(--space-lg); }
.line { display: grid; grid-template-columns: 78px 1fr; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border-light); }
.line:first-child { padding-top: 0; }
.line-fig { height: 98px; background: var(--bg, #efeae0); border-radius: var(--radius); padding: 6px; }
.line h4 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }
.line p { font-size: 0.8125rem; color: var(--color-text-light); }
.line-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius); }
.qty button { width: 30px; height: 30px; font-size: 1.0625rem; }
.qty button:hover { background: var(--color-sand); }
.qty span { min-width: 26px; text-align: center; font-size: 0.875rem; }
.line-actions { display: flex; gap: var(--space-md); margin-top: 6px; }
.line-actions button { font-size: 0.8125rem; color: var(--color-text-light); text-decoration: underline; text-underline-offset: 3px; }
.line-actions button:hover { color: var(--color-primary); }
.ship-note { margin-bottom: var(--space-md); font-size: 0.875rem; color: var(--color-text-light); }
.ship-bar { height: 4px; margin-top: 6px; background: var(--color-border); border-radius: 2px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--color-secondary); transition: width 0.5s ease; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.9375rem; }
.sum-row.disc { color: var(--color-success); }
.sum-row.total { margin: 10px 0 var(--space-md); padding-top: 10px; border-top: 1px solid var(--color-border); font-weight: 600; font-size: 1.0625rem; }
.foot-btns { display: grid; gap: 8px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: var(--space-md); background: var(--color-overlay); opacity: 0; visibility: hidden; transition: opacity var(--t-base), visibility 0s linear var(--t-base); }
.modal.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-box { position: relative; width: 100%; max-width: 960px; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; background: var(--color-background); border-radius: var(--radius); box-shadow: var(--shadow-xl); transform: translateY(14px) scale(0.98); transition: transform var(--t-slow); }
.modal-box.narrow { max-width: 560px; }
.modal-box.mid { max-width: 760px; }
.modal.on .modal-box { transform: none; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--color-surface); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); }
.m-pad { padding: var(--space-2xl) var(--space-xl) var(--space-xl); }
.m-pad h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.1; margin-bottom: var(--space-sm); }
.m-pad > p { color: var(--color-text-light); line-height: 1.7; margin-bottom: var(--space-lg); }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; }
.m-fig { background: var(--bg, #efeae0); padding: var(--space-xl); display: flex; flex-direction: column; min-width: 0; }
.m-info { padding: var(--space-2xl) var(--space-xl) var(--space-xl); min-width: 0; }
.m-info h2 { font-family: var(--font-display); font-size: 2.125rem; font-weight: 500; line-height: 1.1; margin-bottom: var(--space-sm); }
.m-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--space-md); font-size: 1.25rem; }
.m-desc { color: var(--color-text-light); line-height: 1.7; margin-bottom: var(--space-md); font-size: 0.9375rem; }
.opt-group { padding: var(--space-md) 0; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-sm); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.opt-label span, .opt-label button { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--color-text-light); }
.opt-label button { text-decoration: underline; text-underline-offset: 3px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn { padding: 10px 16px; min-width: 48px; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); transition: all var(--t-fast); }
.opt-btn:hover { border-color: var(--color-primary); }
.opt-btn.on { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.m-actions { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.m-actions .btn { flex: 1; }
.m-actions .tool-sq { flex: 0 0 48px; border: 1px solid var(--color-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.m-actions .tool-sq svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.m-actions .tool-sq.on svg { fill: var(--color-secondary); stroke: var(--color-secondary); }
.m-wa { display: block; margin-top: var(--space-sm); text-align: center; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; color: var(--color-text-light); }
.m-specs { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-border); font-size: 0.875rem; color: var(--color-text-light); }
.m-specs div { display: flex; justify-content: space-between; gap: var(--space-md); padding: 4px 0; }
.m-specs dd { color: var(--color-primary); text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: var(--space-md); background: var(--color-surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px var(--space-md); text-align: left; border-bottom: 1px solid var(--color-border-light); vertical-align: top; }
.tbl th { font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-light); background: var(--color-background); }
.tbl tr.hit { background: #f3ece0; font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.cmp-fig { width: 90px; height: 110px; background: var(--bg, #efeae0); border-radius: var(--radius); padding: 6px; }
.seg { display: flex; gap: 6px; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.seg button { padding: 8px 16px; font-size: 0.875rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.seg button.on { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.size-tool { margin-top: var(--space-lg); padding: var(--space-lg); background: var(--color-sand); border-radius: var(--radius); }
.size-tool h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; margin-bottom: var(--space-sm); }
.size-out { margin-top: 4px; font-size: 0.9375rem; color: var(--color-text-light); }
.size-out strong { color: var(--color-primary); }
.co-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; }
.co-form { padding: var(--space-2xl) var(--space-xl) var(--space-xl); }
.co-form h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin-bottom: var(--space-md); }
.co-sum { padding: var(--space-2xl) var(--space-xl) var(--space-xl); background: var(--color-sand); }
.co-sum h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; margin-bottom: var(--space-md); }
.co-item { display: flex; justify-content: space-between; gap: var(--space-md); padding: 6px 0; font-size: 0.875rem; }
.co-item small { display: block; color: var(--color-text-light); }
.pay { display: grid; gap: 8px; margin-bottom: var(--space-md); border: 0; }
.pay legend { margin-bottom: 6px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-light); }
.pay label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); cursor: pointer; font-size: 0.9375rem; }
.pay label small { display: block; color: var(--color-text-light); }
.pay input { margin-top: 4px; accent-color: var(--color-primary); }
.pay label:has(input:checked) { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.done { text-align: center; padding: var(--space-3xl) var(--space-xl); }
.done h2 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 500; margin-bottom: var(--space-sm); }
.done p { color: var(--color-text-light); line-height: 1.7; margin-bottom: var(--space-lg); }
.done .tick { width: 56px; height: 56px; margin: 0 auto var(--space-lg); border-radius: 50%; border: 1px solid var(--color-success); color: var(--color-success); display: flex; align-items: center; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; max-width: calc(100% - 32px); padding: 12px 20px; font-size: 0.875rem; background: var(--color-primary); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity var(--t-base), transform var(--t-base); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Min-width fixes so rows scroll instead of widening the page */
.slide-inner > *, .reviews-layout > *, .two-col > *, .m-grid > *, .co-grid > * { min-width: 0; }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .rail .card { flex-basis: calc((100% - 2 * var(--space-lg)) / 3); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .features article:nth-child(3) { border-left: 0; padding-left: 0; }
    .features article:nth-child(n+3) { border-top: 1px solid var(--color-border); }
}

@media (max-width: 1023px) {
    .header .menu-btn { display: inline-flex; }
    .search { display: none; }
    .search-toggle { display: inline-flex; }
    .header-inner { gap: var(--space-sm); }
    .logo { margin-right: auto; }
    .header-actions { margin-left: 0; }
    .search.open { display: flex; position: absolute; left: var(--space-md); right: var(--space-md); top: calc(var(--header-height) + 6px); max-width: none; z-index: 6; box-shadow: var(--shadow-lg); }
    .nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; width: 100%; max-width: min(360px, 86vw); height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--color-background); border: 0; overflow: hidden; overscroll-behavior: contain; transform: translateX(-100%); visibility: hidden; transition: transform var(--t-slow), visibility 0s linear 0.4s; }
    .nav.on { transform: none; visibility: visible; transition-delay: 0s; }
    .nav-head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-border); }
    .nav-list { flex-direction: column; justify-content: flex-start; gap: 0; width: 100%; flex: 1; padding: var(--space-md) var(--space-lg) calc(var(--space-xl) + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .nav-list li { border-bottom: 1px solid var(--color-border-light); }
    .nav-link { display: block; padding: var(--space-lg) 0; font-size: 1rem; -webkit-tap-highlight-color: transparent; }
    .nav-link::after { display: none; }
    .slide-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-bottom: 4.5rem; }
    .hero-ui { bottom: var(--space-lg); }
    .reviews-layout, .two-col, .m-grid, .co-grid { grid-template-columns: minmax(0, 1fr); }
    .reviews-layout, .two-col { gap: var(--space-2xl); }
    .rating-box { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid > div:nth-child(3) { border-left: 0; }
    .trust-grid > div:nth-child(n+3) { border-top: 1px solid var(--color-border-light); }
    .offer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
    .container { padding: 0 var(--space-md); }
    .section { padding: var(--space-3xl) 0; }
    .hero-track, .slide.on, .slide-inner { min-height: 0; }
    .slide-title { font-size: 2.6rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-sm); }
    .rail .card { flex-basis: 62%; }
    .card-title { font-size: 1.0625rem; }
    .card-foot { flex-direction: column; align-items: flex-start; }
    .card-tools .tool:not(.keep), .card-cta { opacity: 1; transform: none; }
    .card-cta { display: none; }
    .tool { width: 30px; height: 30px; }
    .card-tools .tool:not(.keep) { display: none; }
    .toolbar { gap: var(--space-md); }
    .toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
    .range { width: 100%; }
    .range input { flex: 1; width: auto; }
    .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2rem); max-width: calc(100% + 2rem); margin: 0 -1rem; padding: 0 1rem 4px; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
    .features { grid-template-columns: 1fr; }
    .features article, .features article + article { padding: var(--space-lg) 0; border-left: 0; }
    .features article + article { border-top: 1px solid var(--color-border); }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .m-pad, .co-form, .co-sum { padding: var(--space-xl) var(--space-md); }
    .m-info { padding: var(--space-lg) var(--space-md); }
    .m-fig { padding: var(--space-lg) var(--space-md) var(--space-md); }
    .m-info h2 { font-size: 1.75rem; }
    .footer-top { grid-template-columns: 1fr; }
    .trust-grid > div { padding: var(--space-md); }
    .compare-inner { flex-wrap: wrap; }
    .toast { bottom: 16px; }
    .slide-cta .btn { flex: 1 1 auto; }
    .offer-inner { gap: var(--space-lg); padding: var(--space-2xl) var(--space-md); }
    .offer-inner .btn { width: 100%; }
    .offer h2 br { display: none; }
}

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



/* ==========================================
   Photos (Unsplash)
   ========================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.pimg.broken, .slide-photo img.broken, .look-photo img.broken { visibility: hidden; }
.card-fig .pimg { position: absolute; inset: 0; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.card-fig:hover .pimg { transform: scale(1.06); }
.card-color { font-size: 0.8125rem; color: var(--color-text-muted); }

.slide-photo { position: relative; height: min(56vh, 500px); border-radius: var(--radius); overflow: hidden; background: rgba(44, 44, 44, 0.06); opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease 0.2s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.slide.on .slide-photo { opacity: 1; transform: none; }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.tile-cta { font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.sr-thumb { overflow: hidden; }
.sr-thumb img, .cmp-chip img, .line-fig img, .cmp-fig img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cmp-chip { overflow: visible; padding: 0; }
.cmp-chip img { border-radius: var(--radius); }
.line-fig, .cmp-fig { padding: 0; overflow: hidden; }
.m-fig { padding: 0; }
.m-photo { position: relative; flex: 1; min-height: 520px; background: var(--bg, #efeae0); }
.m-photo .pimg { position: absolute; inset: 0; }

@media (max-width: 1100px) {
}
@media (max-width: 1023px) {
    .slide-photo { order: -1; height: 300px; }
    .m-photo { min-height: 340px; }
}
@media (max-width: 767px) {
    .slide-photo { height: 260px; }
    .m-photo { min-height: 320px; }
}

.review-actions { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }

/* Product photo gallery in the popup */
.m-photo.tall { flex: none; aspect-ratio: 2 / 3; min-height: 0; max-height: calc(100dvh - 9rem); }
.m-thumbs { display: flex; gap: 8px; padding: 10px; background: var(--color-surface); }
.m-thumbs button { width: 56px; height: 70px; padding: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius); opacity: 0.7; }
.m-thumbs button.on { border-color: var(--color-primary); opacity: 1; }
.m-thumbs button:has(img.broken) { display: none; }
.m-thumbs img { width: 100%; height: 100%; object-fit: cover; }
