/* ==========================================================================
   ZAITUNI — Atelier 2.0
   Palette benchmarked from SKIMS (stone/nude neutral), Bluebella (ivory/black
   editorial), Charlotte Tilbury (rose-gold warmth), ThirdLove (blush trust),
   Aesop (olive/amber apothecary). Original tokens, not a copy.
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-normal-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-normal-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --paper: #fbf7f0;
  --surface: #fffdf8;
  --shell: #f4ecdf;
  --sand: #e9ddcb;
  --linen: #d8c8b2;
  --stone: #b8a890;
  --ink: #1d1915;
  --ink-soft: #3a332b;
  --muted: #6d6254;
  --faint: #8c8172;
  --olive: #4b573c;
  --olive-deep: #343d2a;
  --olive-soft: #71805b;
  --olive-wash: #e8ebdd;
  --rose: #b77f77;
  --rose-deep: #8c5b55;
  --rose-wash: #f6e7e2;
  --brass: #b08a4f;
  --brass-deep: #7c5c2e;
  --brass-light: #dcc08c;
  --danger: #9b3d33;
  --success: #3f6b4f;
  --warning: #8a5a1f;

  /* semantic roles */
  --bg: var(--paper);
  --bg-alt: var(--shell);
  --bg-inverse: var(--ink);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-muted: var(--muted);
  --text-inverse: var(--paper);
  --accent: var(--olive);
  --accent-strong: var(--olive-deep);
  --accent-wash: var(--olive-wash);
  --secondary: var(--rose-deep);
  --secondary-wash: var(--rose-wash);
  --metal: var(--brass);
  --line: rgba(29, 25, 21, .14);
  --line-soft: rgba(29, 25, 21, .08);
  --line-strong: rgba(29, 25, 21, .28);
  --line-inverse: rgba(251, 247, 240, .2);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(18px, 4.6vw, 56px);
  --section: clamp(64px, 8vw, 118px);
  --head-h: 66px;
  --ease: cubic-bezier(.22, .61, .24, 1);
  --shadow: 0 20px 60px -38px rgba(29, 25, 21, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brass-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.028em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin: .3em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
small { font-size: .82rem; }
sup { font-size: .65em; }
.mono { font-family: 'Cascadia Code', Consolas, monospace; font-size: .84em; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: -80px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 2px;
}
.skip:focus { top: 12px; color: var(--paper); }

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .62) 0; }
.section--shell { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--olive { background: var(--olive-deep); color: var(--paper); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(24px, 4vw, 46px);
}
.section-head h2 { margin: 0; }
.section-head p { max-width: 44ch; margin: 0; color: var(--text-muted); }
.section--ink .section-head p, .section--olive .section-head p { color: rgba(251, 247, 240, .72); }
.text-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--brass); padding-bottom: .25rem; white-space: nowrap;
}
.text-link::after { content: '→'; font-size: .9rem; }
.text-link:hover { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .7rem 1.45rem;
  border: 1px solid var(--accent); background: var(--accent); color: var(--paper);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
.btn--rose { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn--rose:hover { background: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--text); border-radius: 2px;
}
.icon-btn:hover { background: var(--shell); }
.icon-btn svg { width: 19px; height: 19px; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 30px; padding: .2rem .65rem; border: 1px solid var(--line);
  border-radius: 99px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
}

/* announce + header */
.announce {
  background: var(--olive-deep); color: var(--paper);
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: .55rem 1rem;
}
.announce b { color: var(--brass-light); font-weight: 700; }
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 240, .95); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--head-h); display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1.2rem;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.logo svg { width: 24px; height: 28px; }
.nav { display: flex; justify-content: center; gap: clamp(.8rem, 1.8vw, 1.7rem); }
.nav a {
  font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  padding: .65rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: .1rem; }
.bag-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .45rem; background: transparent; border: 0; }
.bag-btn svg { width: 19px; height: 19px; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 .25rem;
  background: var(--rose-deep); color: var(--paper); border-radius: 99px; font-size: .62rem; font-weight: 700;
}
.bag-count[data-empty="true"] { display: none; }
.menu-btn { display: none; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  transform: translateX(-102%); transition: transform .28s var(--ease); overflow-y: auto; padding: 20px var(--gutter) 40px;
}
.mobile-nav.open { transform: none; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav nav { display: grid; gap: 0; }
.mobile-nav nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.55rem;
}
.mobile-nav nav a span { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mobile-nav__foot { margin-top: 2rem; display: grid; gap: .7rem; font-size: .85rem; color: var(--muted); }
.mobile-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(29,25,21,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* hero */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; min-height: min(78vh, 760px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 7vw, 86px) clamp(24px, 5vw, 66px) clamp(42px, 7vw, 70px); }
.hero h1 { max-width: 10ch; margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--rose-deep); }
.hero-sub { max-width: 39ch; font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.15rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .55rem 1.1rem; margin-top: 1.35rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof svg { width: 14px; height: 14px; color: var(--olive); }
.hero-media { position: relative; min-height: 360px; overflow: hidden; background: var(--sand); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-note {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end;
  color: var(--paper); text-shadow: 0 1px 18px rgba(0,0,0,.45);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero-note strong { display: block; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(29,25,21,.55));
  pointer-events: none;
}

/* trust strip */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { display: flex; gap: .65rem; align-items: flex-start; padding: 1.05rem 1rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 18px; height: 18px; flex: none; color: var(--olive); margin-top: .15rem; }
.trust-item b { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.trust-item span { display: block; font-size: .68rem; color: var(--muted); line-height: 1.4; }

/* categories */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: 2px; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.category-card:hover img { transform: scale(1.035); }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(29,25,21,.52)); }
.category-card__body { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; color: var(--paper); display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.category-card__body h3 { margin: 0; font-size: 1.55rem; }
.category-card__body span { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,247,240,.8); }
.category-card__body .arrow { width: 30px; height: 30px; border: 1px solid rgba(251,247,240,.5); display: grid; place-items: center; border-radius: 50%; }

/* product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 22px); }
.product-card { position: relative; min-width: 0; }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--shell); border-radius: 2px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-badge { position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--paper); color: var(--ink); padding: .28rem .5rem; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.product-badge--rose { background: var(--rose-deep); color: var(--paper); }
.product-badge--outline { background: transparent; border: 1px solid var(--paper); color: var(--paper); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.quick-add {
  position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px;
  min-height: 44px; border: 1px solid var(--paper); background: var(--paper); color: var(--ink);
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, background .2s;
}
.product-card:hover .quick-add, .product-card:focus-within .quick-add { opacity: 1; transform: none; }
.quick-add:hover { background: var(--brass-light); border-color: var(--brass-light); }
.product-info { padding: .8rem 0 0; }
.product-cat { font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.product-name { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; margin: 0 0 .28rem; }
.product-name a:hover { color: var(--accent); }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.price { font-size: .86rem; font-weight: 700; letter-spacing: .01em; }
.price s { color: var(--muted); font-weight: 400; margin-left: .35rem; }
.product-sizes { font-size: .64rem; color: var(--muted); }
.swatch-row { display: flex; gap: .3rem; margin-top: .45rem; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.product-card--sold .product-media { opacity: .55; }

/* fit band */
.fit-band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--olive-deep); color: var(--paper); }
.fit-band__media { min-height: 420px; overflow: hidden; }
.fit-band__media img { width: 100%; height: 100%; object-fit: cover; }
.fit-band__copy { padding: clamp(30px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.fit-band h2 { color: var(--paper); max-width: 14ch; }
.fit-band p { color: rgba(251,247,240,.76); max-width: 42ch; }
.fit-steps { display: grid; gap: .75rem; margin: 1.1rem 0 1.4rem; }
.fit-step { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; font-size: .82rem; color: rgba(251,247,240,.82); }
.fit-step b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(251,247,240,.35); border-radius: 50%; font-size: .62rem; color: var(--brass-light); }

/* quiz */
.quiz-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); border-radius: 2px; }
.quiz-progress { display: flex; gap: 5px; margin-bottom: 1.2rem; }
.quiz-progress i { height: 3px; flex: 1; background: var(--sand); }
.quiz-progress i.on { background: var(--rose-deep); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { margin-bottom: .4rem; }
.quiz-step p { color: var(--text-muted); font-size: .86rem; }
.quiz-options { display: grid; gap: .5rem; margin: 1rem 0; }
.quiz-option {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; padding: .6rem .75rem; border: 1px solid var(--line);
  background: var(--paper); text-align: left; font-size: .82rem;
}
.quiz-option:hover { border-color: var(--rose); }
.quiz-option[aria-pressed="true"] { border-color: var(--rose-deep); background: var(--rose-wash); }
.quiz-nav { display: flex; gap: .5rem; margin-top: 1rem; }
.quiz-result { display: none; }
.quiz-result.show { display: block; }
.size-result { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--rose-deep); line-height: 1; }
.size-sister { font-size: .82rem; color: var(--muted); margin: .45rem 0 1rem; }
.quiz-field { display: grid; gap: .35rem; margin: .8rem 0; }
.quiz-field label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quiz-field input, .quiz-field select { min-height: 48px; padding: .55rem .65rem; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 2px; }

/* editorial / reviews / journal */
.editorial { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.editorial-media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--shell); }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.18; max-width: 22ch; }
.editorial-cite { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-card { border: 1px solid var(--line); background: var(--surface); padding: 1.2rem; }
.stars { color: var(--brass-deep); font-size: .8rem; letter-spacing: .12em; }
.review-card blockquote { font-family: var(--font-display); font-size: 1.13rem; line-height: 1.35; margin: .7rem 0 1rem; }
.review-meta { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.journal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.article-card { display: grid; grid-template-columns: 44% 1fr; border: 1px solid var(--line); background: var(--surface); min-height: 210px; }
.article-card img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.article-card h3 { font-size: 1.35rem; }

/* newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.newsletter h2 { color: var(--paper); max-width: 16ch; }
.newsletter p { color: rgba(251,247,240,.72); max-width: 38ch; }
.newsletter form { display: flex; gap: .45rem; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 240px; min-height: 52px; padding: .65rem .8rem; background: transparent; border: 1px solid rgba(251,247,240,.5); color: var(--paper); border-radius: 2px; }
.newsletter input::placeholder { color: rgba(251,247,240,.55); }
.newsletter .consent { flex-basis: 100%; font-size: .66rem; color: rgba(251,247,240,.55); margin-top: .4rem; }
.form-note { font-size: .72rem; color: var(--muted); }
.form-status { font-size: .78rem; margin-top: .6rem; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* footer */
.site-footer { background: var(--ink); color: rgba(251,247,240,.78); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 28px; }
.footer-brand .logo { color: var(--paper); font-size: 1.35rem; }
.footer-brand p { max-width: 30ch; font-size: .78rem; margin-top: 1rem; color: rgba(251,247,240,.58); }
.footer-col h3 { font-family: var(--font-sans); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 .8rem; }
.footer-col a { display: block; padding: .22rem 0; font-size: .78rem; color: rgba(251,247,240,.78); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(251,247,240,.14); margin-top: 2.4rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .66rem; color: rgba(251,247,240,.45); }
.footer-bottom a { color: rgba(251,247,240,.6); }

/* page hero / breadcrumbs */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(34px, 6vw, 70px) 0 clamp(26px, 4vw, 46px); }
.page-hero h1 { margin: 0 0 .35em; max-width: 18ch; }
.page-hero p { max-width: 60ch; color: var(--text-muted); margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a:hover { color: var(--accent); }

/* shop layout */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(22px, 3.4vw, 44px); align-items: start; }
.filters { position: sticky; top: calc(var(--head-h) + 18px); border-top: 1px solid var(--line); }
.filter-group { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.filter-group h3 { font-family: var(--font-sans); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .6rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  min-height: 34px; padding: .25rem .55rem; border: 1px solid var(--line); background: transparent;
  font-size: .7rem; border-radius: 2px;
}
.chip:hover { border-color: var(--olive); }
.chip.on { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.shop-count { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.select { min-height: 44px; border: 1px solid var(--line-strong); background: var(--paper); padding: .4rem .7rem; border-radius: 2px; }
.filter-toggle { display: none; }
.empty-state { border: 1px dashed var(--line-strong); padding: 3rem 1.5rem; text-align: center; }
.empty-state h3 { margin-bottom: .4rem; }

/* product page */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 58px); align-items: start; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.gallery-thumbs { display: grid; gap: 8px; align-content: start; }
.gallery-thumb { border: 1px solid var(--line); padding: 0; background: var(--shell); aspect-ratio: 1; overflow: hidden; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--ink); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--shell); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail { position: sticky; top: calc(var(--head-h) + 22px); }
.product-detail h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .2em; }
.product-detail .price { font-size: 1.1rem; }
.rating-line { display: flex; align-items: center; gap: .6rem; font-size: .74rem; color: var(--muted); margin: .5rem 0 1rem; }
.option-block { margin: 1.1rem 0; }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .45rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.option-head a { color: var(--accent); border-bottom: 1px solid var(--brass); letter-spacing: 0; text-transform: none; font-size: .76rem; }
.size-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-btn { min-width: 48px; min-height: 44px; border: 1px solid var(--line); background: var(--paper); font-size: .76rem; }
.size-btn:hover { border-color: var(--olive); }
.size-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size-btn[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.color-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.color-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .3rem .6rem; border: 1px solid var(--line); background: var(--paper); font-size: .72rem; }
.color-btn[aria-pressed="true"] { border-color: var(--ink); }
.color-btn i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); }
.buy-row { display: grid; grid-template-columns: 120px 1fr; gap: .5rem; margin: 1.1rem 0 .6rem; }
.qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid var(--line-strong); min-height: 50px; text-align: center; }
.qty button { height: 100%; border: 0; background: transparent; font-size: 1rem; }
.qty span { font-size: .85rem; }
.trust-lines { display: grid; gap: .5rem; margin: 1rem 0; font-size: .78rem; color: var(--text-soft); }
.trust-lines span { display: flex; gap: .5rem; align-items: flex-start; }
.trust-lines svg { width: 15px; height: 15px; color: var(--olive); flex: none; margin-top: .2rem; }
.delivery-note { background: var(--shell); padding: .8rem .9rem; font-size: .78rem; border-left: 2px solid var(--brass); margin: 1rem 0; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; color: var(--brass-deep); }
.accordion details[open] summary::after { content: '−'; }
.accordion .body { padding: 0 0 .9rem; font-size: .84rem; color: var(--text-soft); }
.complete-set { margin-top: var(--section); }

/* sticky buy */
.sticky-buy {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--paper); border-top: 1px solid var(--line); padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 30px -24px rgba(0,0,0,.4);
}
.sticky-buy__inner { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: center; }
.sticky-buy b { display: block; font-size: .82rem; }
.sticky-buy span { font-size: .7rem; color: var(--muted); }
.sticky-buy .btn { min-height: 46px; }

/* docs */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding: var(--section) 0; }
.docs-toc { position: sticky; top: calc(var(--head-h) + 20px); border-top: 1px solid var(--line); padding-top: .8rem; }
.docs-toc h2 { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.docs-toc a { display: block; padding: .3rem 0; font-size: .76rem; color: var(--text-soft); }
.docs-toc a:hover { color: var(--accent); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose p, .prose li { color: var(--text-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .84rem; margin: 1.2rem 0; }
.prose th, .prose td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--shell); }
.prose .callout { border: 1px solid var(--line); background: var(--surface); padding: .9rem 1rem; margin: 1.2rem 0; border-left: 2px solid var(--brass); }
.prose .callout p:last-child { margin-bottom: 0; }
.doc-meta { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem; }

/* drawers / search */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(29,25,21,.42); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.bag-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: min(430px, 100%);
  background: var(--paper); transform: translateX(102%); transition: transform .28s var(--ease);
  display: flex; flex-direction: column; border-left: 1px solid var(--line);
}
.bag-drawer.open { transform: none; }
.bag-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.bag-drawer__head h2 { font-size: 1.5rem; margin: 0; }
.bag-items { flex: 1; overflow-y: auto; padding: 0 1.1rem; }
.bag-item { display: grid; grid-template-columns: 76px 1fr auto; gap: .7rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 76px; height: 95px; object-fit: cover; background: var(--shell); }
.bag-item h3 { font-family: var(--font-display); font-size: .98rem; margin: 0 0 .2rem; }
.bag-item p { font-size: .7rem; color: var(--muted); margin: 0 0 .35rem; }
.bag-item .row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.bag-item .qty { min-height: 36px; grid-template-columns: 32px 1fr 32px; width: 108px; }
.bag-item button.remove { border: 0; background: transparent; font-size: .66rem; color: var(--muted); text-decoration: underline; padding: 0; }
.bag-drawer__foot { border-top: 1px solid var(--line); padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); }
.shipping-meter { margin-bottom: .8rem; font-size: .72rem; color: var(--muted); }
.shipping-meter .bar { height: 3px; background: var(--sand); margin-top: .35rem; }
.shipping-meter .bar i { display: block; height: 100%; background: var(--olive); width: 0; transition: width .3s; }
.bag-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .8rem; }
.search-modal {
  position: fixed; inset: 0; z-index: 95; background: var(--paper);
  transform: translateY(-102%); transition: transform .3s var(--ease); overflow-y: auto;
}
.search-modal.open { transform: none; }
.search-head { display: flex; gap: 1rem; align-items: center; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
.search-head input { flex: 1; min-height: 54px; border: 0; background: transparent; font-family: var(--font-display); font-size: 1.5rem; outline: 0; }
.search-results { padding: 1.4rem var(--gutter) 3rem; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.search-empty { color: var(--muted); padding: 2rem 0; }

/* bottom nav */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(251,247,240,.97); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.bottom-nav a, .bottom-nav button {
  display: grid; place-items: center; gap: .15rem; min-height: 54px; border: 0; background: transparent;
  font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft);
}
.bottom-nav svg { width: 18px; height: 18px; }
.bottom-nav .bag-count { position: absolute; transform: translate(12px, -10px); }

/* toast */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; font-size: .78rem;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--brass-light); text-decoration: underline; margin-left: .5rem; }

/* tables */
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; text-align: left; }
.data-table th { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* responsive */
@media (max-width: 1100px) {
  .nav { gap: .8rem; }
  .nav a { font-size: .6rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .header-actions .desktop-only { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { order: 2; padding: 34px var(--gutter) 42px; }
  .hero-media { order: 1; min-height: 52vh; }
  .hero h1 { max-width: 13ch; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-bottom: 1px solid var(--line); }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .fit-band { grid-template-columns: 1fr; }
  .fit-band__media { min-height: 300px; max-height: 44vh; }
  .editorial { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 86; background: var(--paper); padding: 20px var(--gutter); overflow-y: auto; transform: translateX(-102%); transition: transform .25s; border: 0; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; }
  .product-detail { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { display: flex; order: 2; }
  .gallery-thumb { width: 64px; }
  .gallery-main { order: 1; }
  .sticky-buy { display: block; }
  .bottom-nav { display: block; }
  body { padding-bottom: 54px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; display: none; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .logo { font-size: 1.05rem; letter-spacing: .22em; }
  .logo svg { width: 20px; height: 24px; }
  .category-grid { gap: 8px; }
  .category-card__body h3 { font-size: 1.2rem; }
  .product-grid { gap: 10px; }
  .product-name { font-size: .98rem; }
  .quick-add { opacity: 1; transform: none; left: 6px; right: 6px; bottom: 6px; font-size: .58rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 46vh; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .section-head { display: block; }
  .section-head .text-link { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { aspect-ratio: 16 / 10; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .product-detail h1 { font-size: 2.1rem; }
  .buy-row { grid-template-columns: 1fr; }
  .sticky-buy__inner { grid-template-columns: 1fr auto; }
  .sticky-buy .btn { padding-inline: 1rem; }
  .newsletter form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .announce, .site-header, .mobile-nav, .bottom-nav, .bag-drawer, .search-modal, .overlay, .sticky-buy, .toast, .newsletter { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  .page-hero { background: #fff; padding: 0 0 12pt; border-bottom: 1px solid #999; }
  .docs-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  a { color: #111; text-decoration: underline; }
}

/* review polish: hero note contrast + mobile clearance */
.hero-note { left: 0; right: 0; bottom: 0; padding: 14px 18px; background: rgba(29,25,21,.78); align-items: center; }
.hero-note strong { color: var(--paper); }
.hero-note .text-link { color: var(--paper) !important; border-color: rgba(251,247,240,.6) !important; }
.hero-media::after { background: linear-gradient(180deg, transparent 55%, rgba(29,25,21,.35)); }
@media (max-width: 900px) { .hero-copy { padding-bottom: 92px; } .hero-media { min-height: 28vh; max-height: 28vh; } }

/* touch + accordion polish */
@media (max-width: 820px) {
  .chip, .color-btn, .filter-details summary, .accordion summary { min-height: 44px; }
  .bag-item .qty { grid-template-columns: 44px 1fr 44px; }
  .bag-item .qty button { min-width: 44px; }
  .accordion summary { align-items: center; }
}
.search-results { min-height: 40vh; }

/* touch-target completion */
.bag-btn { min-width: 44px; }
@media (max-width: 820px) {
  .chip { min-width: 44px; }
  .bag-item .qty button, .qty button, .bag-item__remove, .bag-item button { min-width: 44px; min-height: 44px; }
  .bag-item .qty { grid-template-columns: 44px 1fr 44px; }
  .product-detail .qty { grid-template-columns: 44px 1fr 44px; }
  .product-detail .qty button { min-width: 44px; }
  .gallery-thumb { min-width: 56px; min-height: 56px; }
}
