/* ==========================================================================
   SEREIN — storefront design system
   Editorial, quiet-luxury DTC. Warm paper, sage, ink.
   ========================================================================== */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --paper: #f4efe5;
  --paper-2: #ece5d6;
  --paper-3: #e1d8c5;
  --ink: #1b1915;
  --ink-2: #524b3f;
  --ink-3: #7d7466;
  --sage: #6e7a5b;
  --sage-dark: #3f4a32;
  --sage-tint: #e3e6d8;
  --clay: #c6af94;
  --line: rgba(27, 25, 21, 0.13);
  --line-strong: rgba(27, 25, 21, 0.26);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1340px;
  --gutter: clamp(20px, 4.6vw, 72px);
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.62 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, blockquote, figure, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sage-dark); color: var(--paper); }

/* film grain — one fixed overlay, multiplied */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 8.5vw, 128px) 0; }
.section--tight { padding: clamp(44px, 6vw, 80px) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--line-strong); }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 0.98;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.display em { font-style: italic; color: var(--sage-dark); }
h1.display { font-size: clamp(2.9rem, 6.4vw, 5.4rem); }
h2.display { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.02; }
h3.display { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.2; }

.lede { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.66; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.8125rem; line-height: 1.55; }
.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-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; font-size: 0.8125rem; letter-spacing: 0.04em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--sage-dark); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--sage { background: var(--sage-dark); color: var(--paper); }
.btn--sage:hover { background: var(--ink); }
.btn--full { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 0.8125rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link:hover { background-size: 0 1px; }

/* ---------- announcement + header ---------- */
.announce {
  position: relative;
  background: var(--ink);
  color: #e9e1d2;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 52px;
}
.announce strong { font-weight: 500; color: #fff; }
.announce-close {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: inherit; opacity: 0.65; padding: 6px; line-height: 0;
}
.announce-close:hover { opacity: 1; }

.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(244, 239, 229, 0.86);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(244, 239, 229, 0.95); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.34em;
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px;
  transition: background 0.3s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.cart-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { background: var(--line-strong); }
.menu-btn { display: none; }

/* mobile nav sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  padding: 100px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  visibility: hidden;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav a {
  font-family: var(--serif); font-size: 2rem; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-nav__meta { margin-top: auto; color: var(--ink-3); font-size: 0.8125rem; }
.mobile-nav__close { position: absolute; top: 22px; right: var(--gutter); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: min(86vh, 840px);
  border-bottom: 1px solid var(--line);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(44px, 6vw, 92px) var(--gutter);
  padding-right: clamp(24px, 4vw, 64px);
}
.hero__copy > * + * { margin-top: 26px; }
.hero h1 { margin-top: 20px; }
.hero__sub { margin-top: 22px; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-3);
}
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__media { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%;
  transform: scale(1.001);
  animation: heroIn 1.6s var(--ease-out) both;
}
@keyframes heroIn { from { transform: scale(1.05); opacity: 0.6; } to { transform: scale(1.001); opacity: 1; } }
.hero__tag {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(244, 239, 229, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- marquee ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  background: var(--paper);
}
.marquee__track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 42px; padding-right: 42px; }
.marquee span {
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.marquee i { color: var(--sage); font-style: normal; font-size: 0.75rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section headers ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head__aside { justify-self: end; max-width: 40ch; }

/* ---------- detail triptych ---------- */
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 34px); }
.detail-card { display: flex; flex-direction: column; gap: 20px; }
.detail-card figure {
  margin: 0; overflow: hidden; background: var(--paper-2);
  aspect-ratio: 4 / 5;
}
.detail-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.detail-card:hover img { transform: scale(1.035); }
.detail-card__index {
  font-size: 0.6875rem; letter-spacing: 0.22em; color: var(--ink-3);
}
.detail-card h3 { margin: 8px 0 8px; }
.detail-card p { color: var(--ink-2); font-size: 0.9375rem; max-width: 34ch; }

/* ---------- statement ---------- */
.statement {
  background: var(--sage-dark);
  color: #eee8da;
  padding: clamp(64px, 9vw, 120px) 0;
}
.statement__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.statement blockquote {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.1vw, 2.75rem);
  line-height: 1.12; letter-spacing: -0.015em;
}
.statement blockquote em { font-style: italic; color: #cdd3bb; }
.statement__body p { color: #d6d0c1; font-size: 0.9375rem; max-width: 40ch; }
.statement__body p + p { margin-top: 18px; }
.statement .eyebrow { color: #b9bfa7; }
.statement .eyebrow::before { background: rgba(238, 232, 218, 0.4); }

/* ---------- featured product ---------- */
.feature {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 6vw, 96px); align-items: center;
}
.feature__media { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature__media:hover img { transform: scale(1.03); }
.feature__body h2 { margin: 18px 0 16px; }
.feature__price { font-size: 1.0625rem; margin: 18px 0; }
.feature__price s { color: var(--ink-3); margin-left: 10px; font-size: 0.875rem; }
.feature__list { margin: 24px 0 30px; display: grid; gap: 12px; }
.feature__list li { display: flex; gap: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.feature__list svg { flex: none; margin-top: 4px; color: var(--sage); }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.review { border-top: 1px solid var(--line-strong); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: var(--sage-dark); }
.review blockquote { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.42; letter-spacing: -0.01em; }
.review figcaption { font-size: 0.8125rem; color: var(--ink-3); letter-spacing: 0.02em; }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; text-align: left;
  font-family: var(--serif); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.35;
  transition: color 0.3s var(--ease);
}
.faq-item__trigger:hover { color: var(--sage-dark); }
.faq-item__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease);
}
.faq-item__panel > div { overflow: hidden; min-height: 0; }
.faq-item__panel p { color: var(--ink-2); font-size: 0.9375rem; padding: 0 60px 24px 0; max-width: 62ch; }
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }

/* ---------- newsletter ---------- */
.newsletter { border-top: 1px solid var(--line); background: var(--paper-2); }
.newsletter__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px);
  align-items: center; padding: clamp(52px, 7vw, 96px) 0;
}
.newsletter h2 { margin: 16px 0 12px; }
.newsletter p { color: var(--ink-2); font-size: 0.9375rem; max-width: 38ch; }
.field-inline { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.field-inline input {
  flex: 1 1 240px; min-width: 0; padding: 15px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper);
  transition: border-color 0.3s var(--ease);
}
.field-inline input::placeholder { color: var(--ink-3); }
.field-inline input:focus { border-color: var(--ink); outline: none; }
.form-note { font-size: 0.75rem; color: var(--ink-3); margin-top: 14px; }
.form-success { display: none; align-items: center; gap: 10px; margin-top: 18px; color: var(--sage-dark); font-size: 0.875rem; }
.form-success.is-visible { display: flex; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #ded6c6; padding: clamp(52px, 7vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 0.8fr); gap: clamp(28px, 5vw, 64px); }
.footer-brand .wordmark { color: #f2ece0; font-size: 1.25rem; }
.footer-brand p { margin-top: 18px; font-size: 0.875rem; color: #a49b8a; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #8d8371; margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 0.875rem; color: #d5ccbb; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(244, 239, 229, 0.14);
  font-size: 0.75rem; color: #948a79;
}
.footer-note { font-size: 0.6875rem; color: #7d7466; margin-top: 18px; letter-spacing: 0.02em; }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(27, 25, 21, 0.36);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: min(440px, 100vw);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.55s var(--ease-out);
  box-shadow: -20px 0 60px rgba(27, 25, 21, 0.12);
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: 0.02em; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px 24px; background: var(--paper); }
.ship-meter { margin-bottom: 18px; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-2); }
.ship-meter__bar { height: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.ship-meter__fill { height: 100%; background: var(--sage-dark); transition: width 0.6s var(--ease); width: 0; }
.line-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.line-item__top { display: flex; justify-content: space-between; gap: 12px; }
.line-item__name { font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.line-item__meta { font-size: 0.75rem; color: var(--ink-3); margin-top: 4px; }
.line-item__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 1rem; line-height: 1; color: var(--ink-2); }
.stepper button:hover { color: var(--ink); }
.stepper input, .stepper span {
  width: 30px; text-align: center; font-size: 0.8125rem; background: none; border: 0;
}
.link-remove { font-size: 0.75rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.link-remove:hover { color: var(--ink); }
.empty-state { padding: 64px 0; text-align: center; color: var(--ink-3); }
.empty-state h3 { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); margin-bottom: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: 13px 22px; border-radius: 999px;
  font-size: 0.8125rem; letter-spacing: 0.02em;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 18px 40px rgba(27, 25, 21, 0.22);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(44px, 6vw, 84px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.022em; font-weight: 400; }
.page-hero p { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(28px, 5.5vw, 80px); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 104px); }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.gallery__main { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main img.is-swapping { animation: fadeSwap 0.5s var(--ease); }
@keyframes fadeSwap { from { opacity: 0.2; } to { opacity: 1; } }
.gallery__badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(244, 239, 229, 0.92); padding: 8px 14px;
  font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { padding: 0; overflow: hidden; background: var(--paper-2); aspect-ratio: 1 / 1; border: 1px solid transparent; transition: border-color 0.3s var(--ease), opacity 0.3s; opacity: 0.72; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }

.product__info { align-self: start; }
.product__title { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 400; margin: 10px 0 14px; }
.rating-row { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--ink-3); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 18px; font-size: 1.25rem; }
.price-row .was { color: var(--ink-3); font-size: 0.9375rem; text-decoration: line-through; }
.product__desc { color: var(--ink-2); font-size: 0.9375rem; max-width: 46ch; }
.option-group { margin-top: 28px; }
.option-group__label { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: block; }
.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 15px 18px;
  border: 1px solid var(--line-strong); background: transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.option:hover { border-color: var(--ink); }
.option[aria-pressed="true"] { border-color: var(--ink); background: var(--sage-tint); }
.option__name { font-size: 0.9375rem; }
.option__name small { display: block; font-size: 0.75rem; color: var(--ink-3); margin-top: 3px; }
.option__price { font-size: 0.9375rem; }
.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.buy-row .stepper { border-radius: 0; border-color: var(--line-strong); }
.buy-row .stepper button { width: 44px; height: 52px; }
.buy-row .stepper input { width: 36px; height: 52px; font-size: 0.9375rem; border: 0; }
.buy-row .btn { flex: 1; height: 52px; border-radius: 0; }
.trust-list { display: grid; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust-list li { display: flex; gap: 10px; align-items: center; font-size: 0.8125rem; color: var(--ink-2); }
.trust-list svg { flex: none; color: var(--sage); }
.accordion { margin-top: 26px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 0; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: left; color: var(--ink);
}
.acc-trigger .plus { position: relative; width: 12px; height: 12px; flex: none; }
.acc-trigger .plus::before, .acc-trigger .plus::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.acc-trigger .plus::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .plus::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-panel__inner { padding-bottom: 20px; font-size: 0.875rem; color: var(--ink-2); max-width: 52ch; }
.acc-panel__inner p + p { margin-top: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink-2); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-3); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: rgba(244, 239, 229, 0.97);
  border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.sticky-buy__name { font-family: var(--serif); font-size: 0.9375rem; }
.sticky-buy__price { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.product-card { display: flex; flex-direction: column; gap: 18px; }
.product-card__media { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__flag {
  position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--paper);
  font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 12px;
}
.product-card__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.product-card__name { font-family: var(--serif); font-size: 1.1875rem; }
.product-card__price { font-size: 0.9375rem; }
.product-card__note { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 112px); align-items: start; }
.cart-list { border-top: 1px solid var(--line-strong); }
.cart-row { display: grid; grid-template-columns: 104px 1fr auto; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 104px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.cart-row__name { font-family: var(--serif); font-size: 1.125rem; }
.cart-row__meta { font-size: 0.8125rem; color: var(--ink-3); margin-top: 4px; }
.cart-row__controls { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.cart-row__price { text-align: right; font-size: 0.9375rem; }
.summary { border: 1px solid var(--line); background: var(--paper-2); padding: clamp(22px, 3vw, 32px); position: sticky; top: calc(var(--header-h) + 24px); }
.summary h2 { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; margin-bottom: 20px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.875rem; color: var(--ink-2); padding: 7px 0; }
.summary__row--total { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 1.0625rem; color: var(--ink); }
.summary__row--discount { color: var(--sage-dark); }
.summary .btn { margin-top: 22px; }
.promo { display: flex; gap: 8px; margin-top: 20px; }
.promo input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 0.8125rem; }
.promo input:focus { outline: none; border-color: var(--ink); }
.promo-msg { font-size: 0.75rem; margin-top: 8px; color: var(--sage-dark); min-height: 1.2em; }
.promo-msg.is-error { color: #8a3b2e; }
.summary__note { font-size: 0.75rem; color: var(--ink-3); margin-top: 16px; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); align-items: start; }
.checkout__form { display: grid; gap: 36px; }
.form-block h2 { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; margin-bottom: 6px; }
.form-block > p { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong);
  background: transparent; font-size: 0.9375rem; border-radius: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fbf8f1; }
.field input[aria-invalid="true"] { border-color: #9c4433; }
.field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong);
  background: transparent; font-size: 0.9375rem; border-radius: 0;
  resize: vertical; min-height: 130px; line-height: 1.55;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea:focus { outline: none; border-color: var(--ink); background: #fbf8f1; }
.field textarea[aria-invalid="true"] { border-color: #9c4433; }
.field__error { font-size: 0.6875rem; color: #9c4433; min-height: 1em; }
.pay-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px dashed var(--line-strong); padding: 16px 18px; font-size: 0.8125rem; color: var(--ink-2);
  background: rgba(244, 239, 229, 0.6);
}
.summary__items { display: grid; gap: 14px; margin-bottom: 18px; max-height: 40vh; overflow: auto; }
.summary__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 0.8125rem; }
.summary__item img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-3); }
.order-done { display: none; padding: clamp(48px, 8vw, 96px) 0; }
.order-done.is-visible { display: block; }
.order-done__panel { max-width: 640px; margin-inline: auto; text-align: center; }
.order-done h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.05; margin: 18px 0 14px; }
.order-done__id { display: inline-block; margin: 22px 0 8px; padding: 10px 18px; border: 1px solid var(--line-strong); font-size: 0.8125rem; letter-spacing: 0.14em; }
.order-done p { color: var(--ink-2); }
.order-done__note { margin-top: 26px; padding: 16px 20px; background: var(--paper-2); font-size: 0.8125rem; color: var(--ink-2); text-align: left; }

/* ---------- editorial pages ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.15; margin-top: 2em; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .muted { color: var(--ink-3); font-size: 0.875rem; }
.prose blockquote { font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; border-left: 2px solid var(--sage); padding-left: 22px; color: var(--ink); }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.about-split__media { overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 4; }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.value-card { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.value-card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin: 10px 0; }
.value-card p { font-size: 0.875rem; color: var(--ink-2); }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; font-size: 0.8125rem; }
.legal-nav a { color: var(--ink-3); }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); align-items: start; }
.contact-card { border: 1px solid var(--line); background: var(--paper-2); padding: 28px; }
.contact-card h3 { font-family: var(--serif); font-size: 1.125rem; font-weight: 400; margin-bottom: 8px; }
.contact-card p { font-size: 0.875rem; color: var(--ink-2); }
.contact-card + .contact-card { margin-top: 14px; }
.error-page { padding: clamp(72px, 12vw, 160px) 0; text-align: center; }
.error-page h1 { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; line-height: 1; }
.error-page p { margin: 18px auto 30px; color: var(--ink-2); max-width: 40ch; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: clamp(40px, 8vw, 64px) var(--gutter) 8px; }
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__media img { object-position: 50% 38%; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__aside { justify-self: start; }
  .statement__inner, .feature, .about-split, .newsletter__inner, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .product__info { position: static; }
  .cart-layout, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .details-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .details-grid::-webkit-scrollbar { display: none; }
  .detail-card { scroll-snap-align: start; }
  .reviews, .about-values { grid-template-columns: 1fr; }
  .detail-card figure { aspect-ratio: 4 / 5; }
  .feature__media { aspect-ratio: 4 / 5; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .sticky-buy { display: flex; }
  .product { padding-bottom: 96px; }
  .cart-row { grid-template-columns: 84px 1fr; }
  .cart-row img { width: 84px; }
  .cart-row__price { grid-column: 2; text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .announce { font-size: 0.625rem; letter-spacing: 0.12em; padding: 10px 44px; }
  .hero__cta .btn { width: 100%; }
  .gallery__thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .announce span { display: block; line-height: 1.5; }
}

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