/* ==========================================================================
   SnugMoss — design system
   Palette leans on the reference store's language: a warm off-white page, near
   black calls to action, clay and muted gold accents.  It deliberately avoids
   the blush / rose backgrounds used by the other two projects in this account.
     page bg  #F7F4ED   surface #FFFFFF   ink #1E1E1E   clay #B17E62
   Contrast (WCAG, computed in tools/preflight.py — do not hand-edit):
     --ink   13.2:1 on --bg   12.9:1 on --surface
     --ink-2 8.7:1 on --bg    8.5:1 on --surface
     --muted 5.1:1 on --bg    5.5:1 on --surface
     --gold  4.7:1 on --bg    5.1:1 on --surface
     --sale  5.3:1 on --bg    5.9:1 on --surface
   ========================================================================== */

:root {
  --bg: #F7F4ED;
  --bg-2: #F1ECE2;
  --bg-3: #EAE4D8;
  --surface: #FFFFFF;
  --ink: #1E1E1E;
  --ink-2: #4A453E;
  --muted: #6E675C;
  --line: #E2DCD1;
  --line-2: #D3CBBE;
  --clay: #B17E62;
  --clay-deep: #8E5F45;
  --gold: #8A6A12;
  --butter: #FFEDA5;
  --sale: #A8443A;
  --ok: #3F6B52;

  --header-h: 108px;
  --announce-h: 38px;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 40px);

  --r-pill: 999px;
  --r-btn: 999px;
  --r-input: 8px;
  --r-chip: 999px;

  --sp-1: 6px; --sp-2: 12px; --sp-3: 18px; --sp-4: 26px; --sp-5: 38px;
  --sp-6: 54px; --sp-7: 76px; --sp-8: 104px;

  --f-head: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;

  --shadow-1: 0 1px 2px rgba(30, 30, 30, .05), 0 6px 20px rgba(30, 30, 30, .05);
  --shadow-2: 0 18px 50px rgba(30, 30, 30, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body), var(--f-cjk);
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--f-head), var(--f-cjk); font-weight: 600; margin: 0; line-height: 1.1; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5.2vw, 62px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 2.5px solid var(--clay-deep); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 26px); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-input) 0;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

/* --------------------------------------------------------------- typography */
.eyebrow {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 10px;
}
.lede { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-2); max-width: 62ch; }
.small { font-size: 13px; color: var(--muted); }
.section { padding: var(--sp-7) 0; }
.section--tight { padding: var(--sp-6) 0; }
.section--alt { background: var(--bg-2); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.section__head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.linkmore { font-weight: 600; font-size: 14px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.linkmore:hover { text-decoration: none; color: var(--clay-deep); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 24px;
  border: 1.5px solid var(--ink); border-radius: var(--r-btn);
  background: var(--ink); color: #fff;
  font-family: var(--f-head), var(--f-cjk); font-weight: 600; font-size: 14.5px;
  cursor: pointer; text-decoration: none; transition: .22s var(--ease);
}
.btn:hover { text-decoration: none; background: #000; border-color: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--clay { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn--clay:hover { background: #7A5039; border-color: #7A5039; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* -------------------------------------------------------------- announcement */
.announce {
  background: var(--ink); color: #fff; overflow: hidden;
  height: var(--announce-h); display: flex; align-items: center;
  font-size: 12.6px; letter-spacing: .04em;
}
.announce__track {
  display: flex; gap: 46px; white-space: nowrap; padding-left: 46px;
  animation: announce 34s linear infinite;
}
.announce__track span { display: inline-flex; align-items: center; gap: 10px; }
.announce__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--butter); flex: none; }
@keyframes announce { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce__track { animation: none; } }

/* ------------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 244, 237, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--sp-3); min-height: 68px;
}
.header__brand {
  font-family: var(--f-head), var(--f-cjk); font-weight: 700;
  font-size: clamp(19px, 2vw, 23px); letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 9px; justify-self: center;
  grid-column: 2;
}
.header__brand:hover { text-decoration: none; }
.header__mark { width: 26px; height: 26px; flex: none; }
.header__nav { grid-column: 1; }
.header__utils { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav { display: flex; gap: 2px; }
.nav__link {
  display: inline-block; padding: 9px 12px; border-radius: var(--r-pill);
  font-family: var(--f-head), var(--f-cjk); font-weight: 500; font-size: 14.5px;
}
.nav__link:hover { text-decoration: none; background: var(--bg-3); }
.nav__link.is-current { background: var(--ink); color: #fff; }
.iconbtn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; position: relative;
}
.iconbtn:hover { background: var(--bg-3); }
.iconbtn svg { width: 20px; height: 20px; }
.cartdot {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--clay-deep); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body);
}
.cartdot[hidden] { display: none; }
.header__burger { display: none; grid-column: 1; }

/* ------------------------------------------------------------------- drawer */
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); z-index: 130;
  background: var(--surface); box-shadow: var(--shadow-2);
  transform: translateX(-102%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__body { padding: 14px 20px 34px; }
.mnav { display: flex; flex-direction: column; }
.mnav__link {
  padding: 14px 4px; font-family: var(--f-head), var(--f-cjk); font-weight: 600;
  font-size: 18px; border-bottom: 1px solid var(--line);
}
.mnav__link:hover { text-decoration: none; color: var(--clay-deep); }
.mnav__sub { display: flex; flex-direction: column; gap: 2px; margin: 16px 0 0; }
.mnav__sub a { padding: 8px 4px; font-size: 14.5px; color: var(--ink-2); }
.scrim {
  position: fixed; inset: 0; background: rgba(24, 22, 20, .45); z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  border: 0; padding: 0; width: 100%; cursor: pointer;
}
.scrim.is-on { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------- search */
.search {
  position: fixed; inset: 0; z-index: 140; background: rgba(247, 244, 237, .98);
  display: none; padding-top: 12vh;
}
.search.is-open { display: block; }
.search__inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gut); }
.search__field {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid var(--ink); padding: 10px 0;
}
.search__field input {
  flex: 1; border: 0; background: transparent; font-size: clamp(20px, 3vw, 30px);
  font-family: var(--f-head), var(--f-cjk); font-weight: 500; outline: none;
}
.search__field input::-webkit-search-cancel-button,
.search__field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search__results { margin-top: 26px; display: grid; gap: 8px; max-height: 54vh; overflow: auto; }
.search__hit { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; }
.search__hit:hover { background: var(--bg-2); text-decoration: none; }
.search__hit img { width: 54px; height: 77px; object-fit: cover; border-radius: 4px; flex: none; }
.search__hit b { display: block; font-family: var(--f-head), var(--f-cjk); font-weight: 600; }
.search__hit span { font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------------- products */
.grid { display: grid; gap: clamp(14px, 2vw, 26px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: clamp(14px, 2vw, 24px); overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
}
.rail > * { scroll-snap-align: start; }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 1024 / 1464; overflow: hidden;
  background: var(--bg-2); border-radius: 2px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.026); }
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--surface); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-chip);
}
.card__flag--sale { background: var(--sale); color: #fff; }
.card__flag--new { background: var(--ink); color: #fff; }
.card__quick {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  opacity: 0; transform: translateY(8px); transition: .24s var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
.card__body { padding: 14px 2px 0; }
.card__title { font-family: var(--f-head), var(--f-cjk); font-weight: 600; font-size: 15.5px; }
.card__blurb { font-size: 13px; color: var(--muted); margin: 3px 0 7px; }
.card__price { font-size: 14.5px; font-weight: 600; }
.card__was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 7px; font-size: 13.5px; }
.card__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dots { display: flex; gap: 6px; margin-top: 9px; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(30, 30, 30, .22); }
.dot--more { width: auto; height: auto; border: 0; font-size: 12px; color: var(--muted); align-self: center; }

/* -------------------------------------------------------------- collection */
.coll__hero { padding: var(--sp-6) 0 var(--sp-4); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: underline; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line-2); background: transparent; border-radius: var(--r-chip);
  padding: 7px 15px; font-size: 13.5px; cursor: pointer; transition: .18s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select {
  border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-input);
  padding: 9px 12px; font-size: 13.5px; min-width: 190px;
}
.empty { padding: var(--sp-7) 0; text-align: center; color: var(--muted); }

/* --------------------------------------------------------------------- hero */
.hero { position: relative; margin: 0; }
.hero__media { position: relative; height: clamp(420px, 74vh, 720px); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(16, 15, 14, .84) 0%, rgba(16, 15, 14, .78) 38%, rgba(16, 15, 14, .58) 58%, rgba(16, 15, 14, .16) 80%, transparent 100%);
}
.hero__copy {
  position: absolute; inset: 0; display: flex; align-items: center; z-index: 2;
}
.hero__copy > div { max-width: 620px; }
.hero__eyebrow { color: rgba(255, 255, 255, .88); }
.hero__title { color: #fff; margin: 0 0 14px; }
.hero__text { color: rgba(255, 255, 255, .92); font-size: clamp(15px, 1.3vw, 17.5px); margin-bottom: 24px; max-width: 46ch; }
.hero__note { color: rgba(255, 255, 255, .78); font-size: 12.5px; margin: 14px 0 0; }
/* Legibility insurance: a soft halo lifts the white copy off any bright patch,
   and the secondary CTA gets a near-opaque dark fill so contrast never depends
   on whatever the hero photo happens to show. */
.hero__eyebrow, .hero__title, .hero__text, .hero__note { text-shadow: 0 1px 22px rgba(0, 0, 0, .38); }
.hero .btn--ghost { background: rgba(18, 16, 14, .92); color: #fff; border-color: rgba(255, 255, 255, .72); }
.hero .btn--ghost:hover { background: rgba(18, 16, 14, 1); border-color: #fff; }

.banner2 { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; background: var(--bg-2); }
.banner2__media { aspect-ratio: 1536 / 960; min-height: 340px; }
.banner2__media img { width: 100%; height: 100%; object-fit: cover; }
.banner2__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 76px); }
.banner2__copy .btn-row { margin-top: 22px; }

/* ----------------------------------------------------------------- category */
.catcard { position: relative; overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.catcard__media { aspect-ratio: 1024 / 1464; }
.catcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.catcard:hover .catcard__media img { transform: scale(1.035); }
.catcard__copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 22px;
  background: linear-gradient(to top, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .82) 46%, rgba(255, 255, 255, 0) 100%);
  color: var(--ink);
}
.catcard__copy h3 { margin-bottom: 4px; }
.catcard__copy p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.catcard__cta { font-weight: 600; font-size: 13.5px; border-bottom: 1.5px solid currentColor; }

/* ------------------------------------------------------------------ promise */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
.promise { display: flex; flex-direction: column; gap: 10px; }
.promise svg { width: 26px; height: 26px; color: var(--clay-deep); }
.promise h3 { font-size: 16px; }
.promise p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------------- editorial */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 64px); align-items: center; }
.editorial--flip .editorial__media { order: 2; }
.editorial__media { aspect-ratio: 1024 / 1464; overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__copy h2 { margin-bottom: 16px; }
.editorial__list { list-style: none; padding: 0; margin: 20px 0 0; }
.editorial__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.editorial__list svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--ok); }

/* ------------------------------------------------------------------- quotes */
.usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 44px); }
.usp { border-top: 1px solid var(--line-2); padding-top: 20px; }
.usp h3 { font-size: 17px; margin-bottom: 8px; }
.usp p { font-size: 13.8px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery figure { margin: 0; position: relative; }
.gallery img { aspect-ratio: 1024 / 1464; object-fit: cover; width: 100%; border-radius: 2px; }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------------ signup */
.signup { background: var(--bg-2); border-radius: 2px; padding: clamp(26px, 4vw, 52px); }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.signup input[type="email"] {
  flex: 1 1 260px; min-height: 46px; padding: 11px 15px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-input);
  background: var(--surface); font: inherit; font-size: 14.5px;
}
.form-status { margin: 14px 0 0; font-size: 14px; }
.form-status[hidden] { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--sale); }
.pending-token { background: var(--butter); border: 1px dashed var(--gold); padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }

/* -------------------------------------------------------------------- pdp */
.pdp { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 66px); align-items: start; }
.pdp__media { border-radius: 2px; overflow: hidden; background: var(--bg-2); position: relative; }
.pdp__main { aspect-ratio: 1024 / 1464; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pdp__thumb {
  width: 74px; height: 106px; border: 1.5px solid var(--line-2); background: var(--surface);
  border-radius: 2px; overflow: hidden; padding: 0; cursor: pointer;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb.is-on { border-color: var(--ink); }
.pdp__info { position: sticky; top: calc(var(--header-h) + 16px); }
.pdp__title { margin: 6px 0 10px; }
.pdp__price { font-size: 22px; font-weight: 600; font-family: var(--f-head), var(--f-cjk); }
.pdp__price .card__was { font-size: 16px; }
.pdp__blurb { color: var(--ink-2); margin: 14px 0 0; }
.opt { margin-top: 22px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.opt__label b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13.5px; font-family: var(--f-body); font-weight: 500; }
.swatches { display: flex; gap: 11px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(30, 30, 30, .22); cursor: pointer; padding: 0; position: relative; }
.swatch.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.sizes { display: flex; gap: 9px; flex-wrap: wrap; }
.size {
  border: 1.5px solid var(--line-2); background: var(--surface); border-radius: var(--r-input);
  padding: 10px 15px; font-size: 13.5px; cursor: pointer;
}
.size.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pdp__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pdp__actions .btn { flex: 1 1 200px; }
.acc { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; padding: 16px 2px; font-family: var(--f-head), var(--f-cjk);
  font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 12px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 19px; line-height: 1; color: var(--muted); }
.acc details[open] summary::after { content: '–'; }
.acc__body { padding: 0 2px 18px; color: var(--ink-2); font-size: 14px; }
.acc__body ul { margin: 0; }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 4px 18px; font-size: 13.8px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }

/* -------------------------------------------------------------------- cart */
.cartpage { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 84px; height: 120px; object-fit: cover; border-radius: 2px; }
.line__name { font-family: var(--f-head), var(--f-cjk); font-weight: 600; }
.line__opt { font-size: 13px; color: var(--muted); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; font-size: 16px; }
.qty button:hover { background: var(--bg-2); }
.qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }
.remove { background: none; border: 0; padding: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { margin-bottom: 16px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 8px 0; }
.sumrow--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 600; font-size: 17px; font-family: var(--f-head), var(--f-cjk); }
.summary .note { font-size: 12.5px; }
.payrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }

/* ---------------------------------------------------------------- checkout */
.co__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(22px, 4vw, 56px); align-items: start; }
.co__grid[hidden] { display: none; }
.co-sec { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.co-sec h3 { margin-bottom: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; font-family: var(--f-head), var(--f-cjk); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 14.5px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-input); background: var(--surface);
}
.field textarea { min-height: 92px; resize: vertical; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-req { color: var(--sale); margin-left: 3px; }
.co-opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--sale); }
.field__err { display: none; font-size: 12.5px; color: var(--sale); margin-top: 5px; }
.field.is-invalid .field__err { display: block; }
.co-consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0; font-size: 13.8px; }
.co-consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.co-pay { display: grid; gap: 12px; margin-top: 18px; }
.co-pay__card { border: 1px solid var(--line); border-radius: 2px; padding: 16px; background: var(--surface); }
.co-pay__card h4 { margin: 0 0 6px; font-family: var(--f-head), var(--f-cjk); font-size: 15px; }
.co-pay__card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.co-secure { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); background: var(--bg-2); border-radius: 2px; padding: 14px 16px; margin-top: 18px; }
.co-secure[hidden] { display: none; }
.co-secure svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--ok); }

/* ------------------------------------------------------------------ policy */
.policy { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.policy__toc { position: sticky; top: calc(var(--header-h) + 16px); font-size: 13.5px; }
.policy__toc ol { list-style: none; padding: 0; margin: 0; }
.policy__toc li { margin-bottom: 2px; }
.policy__toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--ink-2); }
.policy__toc a:hover { text-decoration: none; border-left-color: var(--clay); color: var(--ink); }
.policy__body { max-width: 76ch; }
.policy__body h2 { margin: 44px 0 14px; font-size: clamp(21px, 2.1vw, 27px); }
.policy__body h2:first-child { margin-top: 0; }
.policy__body h3 { margin: 26px 0 10px; font-size: 17px; }
.policy__body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.8px; }
.policy__body th, .policy__body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy__body th { font-family: var(--f-head), var(--f-cjk); font-weight: 600; background: var(--bg-2); }
.callout { background: var(--bg-2); border-left: 3px solid var(--clay); padding: 18px 20px; margin: 22px 0; border-radius: 0 2px 2px 0; }
.callout p:last-child { margin-bottom: 0; }
.policy__body .cjk { font-family: var(--f-body), var(--f-cjk); }

/* ------------------------------------------------------------------- faqs */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 2px; font-family: var(--f-head), var(--f-cjk); font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq__body { padding: 0 2px 22px; max-width: 78ch; color: var(--ink-2); }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: var(--sp-7) 0 28px; margin-top: var(--sp-7); }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.25fr repeat(3, .78fr) 1.1fr; gap: clamp(22px, 3vw, 44px); }
.footer h4 { color: #fff; font-family: var(--f-head), var(--f-cjk); font-size: 13px; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; font-size: 14px; }
.footer__brandline { color: #fff; font-family: var(--f-head), var(--f-cjk); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.footer__desc { font-size: 13.5px; max-width: 34ch; }
.footer__entity { font-size: 12.8px; line-height: 1.7; margin-top: 22px; }
.footer__entity b { color: #fff; font-weight: 600; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .16); margin-top: var(--sp-6); padding-top: 22px;
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.footer__legal button {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 12.5px;
  color: rgba(255, 255, 255, .78); text-decoration: underline;
}
.footer__legal button:hover { color: #fff; }
.footer .payrow { margin-top: 0; }

/* ------------------------------------------------------------- pay marks */
.paymark {
  width: 46px; height: 29px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(0, 0, 0, .1); border-radius: 3px; overflow: hidden;
}
.paymark svg { width: 100%; height: 100%; display: block; }
.paymark__text {
  width: auto; min-width: 46px; padding: 0 7px; height: 29px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  font-family: var(--f-body); background: #fff; border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 3px; display: inline-flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------ cookie bar */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 34px rgba(30, 30, 30, .11);
  transform: translateY(102%); transition: transform .34s var(--ease);
}
.cookie.is-open { transform: none; }
.cookie__inner { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut); display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cookie__text { flex: 1 1 380px; font-size: 13.6px; }
.cookie__text b { font-family: var(--f-head), var(--f-cjk); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__prefs { border-top: 1px solid var(--line); padding: 0 0 4px; max-width: var(--wrap); margin: 0 auto; }
.cookie__prefs[hidden] { display: none; }
.cookie__prefs > div { padding: 12px var(--gut); }
.prefrow { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prefrow:last-child { border-bottom: 0; }
.prefrow input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.prefrow b { display: block; font-family: var(--f-head), var(--f-cjk); font-size: 14.5px; }
.prefrow span { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- notfound */
.nf { text-align: center; padding: var(--sp-8) 0; }
.nf h1 { margin-bottom: 14px; }
.nf .btn-row { justify-content: center; margin-top: 26px; }

/* -------------------------------------------------------------- devbar */
.devbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
  background: #2A2116; color: #FFE9A8; font-size: 12.5px; line-height: 1.5;
}
.devbar__inner { max-width: var(--wrap); margin: 0 auto; padding: 9px var(--gut); display: flex; gap: 16px; align-items: center; }
.devbar__btns { margin-left: auto; display: flex; gap: 16px; flex: none; }
.devbar button { background: none; border: 0; color: #FFE9A8; text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.devbar code { color: #fff; }

/* --------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pdp, .cartpage, .co__grid, .editorial, .banner2, .policy { grid-template-columns: 1fr; }
  .editorial--flip .editorial__media { order: 0; }
  .pdp__info, .summary, .policy__toc { position: static; }
  .co__summary { order: -1; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .usps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .header__burger { display: inline-flex; }
  .header__nav { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__brand { grid-column: 2; justify-self: center; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --sp-7: 48px; --sp-8: 64px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .dot { width: 11px; height: 11px; }
  .line { grid-template-columns: 68px 1fr; }
  .line img { width: 68px; height: 97px; }
  .line__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .devbar__inner { flex-wrap: wrap; }
  .devbar__btns { width: 100%; justify-content: space-between; }
}
