/* ==========================================================================
   Maison Elbick — site styles
   Edit the tokens in :root to re-theme the whole site.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #f7f3ee;
  --surface: #fbf9f6;
  --card: #f0e9df;
  --ink: #1e1b18;
  --ink-soft: #3b352f;
  --muted: #6e665e;
  --line: #e2dad0;
  --line-strong: #cbbfb1;
  --accent: #8c6d46;
  --accent-ink: #5e4628;
  --accent-soft: #e9dfd1;
  --band: #3a322b;          /* the one darker band used sparingly */
  --band-ink: #f4eee6;
  --ok: #4f6b4a;
  --warn: #9a4b3c;

  /* Note-tier colours (pyramid) */
  --tier-top: #c9a96b;
  --tier-heart: #b58290;
  --tier-base: #7a6450;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.serif { font-family: var(--font-display); }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 52ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 420px)  { .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--bg);
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--light { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.btn--light:hover { background: transparent; color: var(--band-ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .7rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
}
.link:hover { color: var(--accent-ink); }

/* ---------- Announcement + header ---------- */
.announcement {
  background: var(--band); color: var(--band-ink);
  text-align: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 243, 238, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
}
.brand {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; line-height: 1;
  text-align: center;
}
.brand small {
  display: block; font-family: var(--font-body); font-size: .56rem; letter-spacing: .42em;
  color: var(--muted); margin-top: 6px;
}
.nav-primary { display: flex; gap: 26px; }
.nav-primary a {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; text-decoration: none;
}
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.icon-btn .count {
  position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--accent-ink); color: #fff; font-size: .62rem; line-height: 17px; text-align: center;
}
.icon-btn .count:empty { display: none; }
.menu-toggle { display: none; }

.nav-secondary {
  display: flex; justify-content: center; gap: 30px; padding: 0 0 14px;
}
.nav-secondary a {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  border-bottom: 1px solid transparent; padding-bottom: 3px;
}
.nav-secondary a:hover, .nav-secondary a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-secondary a.feature { color: var(--accent-ink); }

.search-bar { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input { flex: 1; }

.mobile-nav { display: none; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { font-size: 1.55rem; }
  .nav-primary, .nav-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 60; background: var(--bg);
    padding: 20px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .35s var(--ease);
    display: block; visibility: hidden;
  }
  .mobile-nav.open { transform: none; visibility: visible; }
  .mobile-nav ul { list-style: none; margin: 32px 0 0; padding: 0; }
  .mobile-nav li { border-bottom: 1px solid var(--line); }
  .mobile-nav a { display: block; padding: 16px 0; font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; }
  .mobile-nav .mobile-nav-head { display: flex; justify-content: space-between; align-items: center; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft);
}
.field .hint { font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e1b18' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-status { margin-top: 14px; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }

/* Chips (filters, seasons, sizes) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 18px; background: transparent;
  font-size: .8rem; cursor: pointer; transition: all .2s var(--ease); text-decoration: none;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink-soft);
}

/* Size selector (radio-style) */
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-option { position: relative; }
.size-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-option span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 88px; min-height: 58px;
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .88rem; line-height: 1.3;
}
.size-option span small { color: var(--muted); font-size: .78rem; }
.size-option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: min(78vh, 720px); padding: 48px 0; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative; aspect-ratio: 4 / 5; background: var(--card);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .bottle-trio { display: flex; align-items: flex-end; gap: 6%; width: 78%; }
.hero-visual .bottle-trio > * { flex: 1; }
.hero-visual .caption {
  position: absolute; left: 20px; bottom: 18px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 36px 0 48px; }
  .hero-visual { aspect-ratio: 5 / 4; order: -1; }
}

/* ---------- Category tiles ---------- */
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; padding: 22px; background: var(--card); text-decoration: none; overflow: hidden;
}
.cat-tile .tile-art { position: absolute; inset: 14% 22% 32%; display: flex; align-items: flex-end; justify-content: center; transition: transform .6s var(--ease); }
.cat-tile:hover .tile-art { transform: translateY(-6px); }
.cat-tile h3 { margin: 0 0 4px; }
.cat-tile p { margin: 0; font-size: .9rem; color: var(--muted); }
.cat-tile .arrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 10px; }

/* ---------- Product card ---------- */
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card .media {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; background: var(--card); overflow: hidden;
}
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .media svg { width: 46%; height: auto; transition: transform .6s var(--ease); }
.product-card:hover .media svg { transform: translateY(-5px); }
.product-card .badge {
  position: absolute; top: 12px; left: 12px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--surface); padding: 4px 9px;
}
.product-card .compare-toggle {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid transparent; padding: 5px 9px; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.product-card .compare-toggle[aria-pressed="true"] { border-color: var(--ink); }
.product-card .info { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.product-card .brand-name { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.product-card .name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; text-decoration: none; }
.product-card .name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .compare-toggle, .product-card .quick { z-index: 2; }
.product-card .meta { font-size: .85rem; color: var(--muted); }
.product-card .price { font-size: .95rem; margin-top: 4px; }

/* ---------- Shop toolbar ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 22px 0; }
.toolbar .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar select { min-height: 40px; width: auto; padding-top: 6px; padding-bottom: 6px; }
.toolbar input[type="search"] { min-height: 40px; width: 220px; }
.result-count { font-size: .85rem; color: var(--muted); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Product page ---------- */
.breadcrumb { font-size: .78rem; color: var(--muted); padding: 22px 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: 72px; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 50px); align-self: start; aspect-ratio: 1 / 1.1; background: var(--card); display: flex; align-items: center; justify-content: center; }
.pdp-media svg { width: 42%; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin-bottom: 6px; }
.pdp .brand-name { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pdp .price-big { font-size: 1.4rem; margin: 14px 0 24px; }
.pdp .buy { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.pdp .buy-row { display: flex; gap: 12px; }
.pdp .buy-row .btn:first-child { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); }
.qty button { width: 42px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 44px; border: 0; text-align: center; background: transparent; min-height: 46px; padding: 0; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-media { position: relative; top: 0; aspect-ratio: 5 / 4; } }

.spec-list { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; margin: 0; font-size: .95rem; }
.spec-list dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec-list dd { margin: 0; }

/* Meter (longevity / projection) */
.meter { display: flex; align-items: center; gap: 12px; }
.meter .bars { display: flex; gap: 4px; }
.meter .bars i { display: block; width: 22px; height: 6px; background: var(--line); }
.meter .bars i.on { background: var(--accent); }
.meter .val { font-size: .88rem; color: var(--muted); }

/* Note pyramid */
.pyramid { display: flex; flex-direction: column; gap: 14px; }
.pyramid .tier { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pyramid .tier:last-child { border-bottom: 0; }
.pyramid .tier-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.pyramid .tier-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); }
.pyramid .tier[data-tier="top"] { --dot: var(--tier-top); }
.pyramid .tier[data-tier="heart"] { --dot: var(--tier-heart); }
.pyramid .tier[data-tier="base"] { --dot: var(--tier-base); }
.pyramid .notes { display: flex; flex-wrap: wrap; gap: 6px; }
.note-pill { font-size: .86rem; padding: 4px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.note-pill.shared { border-color: var(--accent); background: var(--accent-soft); }
.tier-explain { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- Editorial split / band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: #cdb592; }
.band .lede, .band p { color: #ddd3c6; }
.feature-art { aspect-ratio: 1 / 1; background: var(--card); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.band .feature-art { background: #463d35; }
.steps-list { list-style: none; padding: 0; margin: 28px 0; counter-reset: s; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.section:not(.band) .steps-list li { border-top-color: var(--line); }
.steps-list li::before { content: "0" counter(s); font-family: var(--font-display); font-size: 1.3rem; color: var(--accent); }
.band .steps-list li::before { color: #cdb592; }

.value-props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-props div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.value-props h4 { margin-bottom: 6px; }
.value-props p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .value-props { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .value-props { grid-template-columns: 1fr; } }

/* ---------- Minis ---------- */
.mini-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-size { padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.mini-size .ml { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.mini-size p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) { .mini-sizes { grid-template-columns: 1fr; } }
.mini-row {
  display: grid; grid-template-columns: 64px 1.4fr 2fr; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mini-row .thumb { width: 64px; height: 64px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.mini-row .thumb svg { width: 50%; }
.mini-row .who a { text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; }
.mini-row .who .brand-name { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mini-row .buys { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mini-buy {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 6px 12px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: .82rem; line-height: 1.3;
}
.mini-buy:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.mini-buy strong { font-weight: 500; }
@media (max-width: 720px) {
  .mini-row { grid-template-columns: 56px 1fr; }
  .mini-row .buys { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Compare ---------- */
.compare-pickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .compare-pickers { grid-template-columns: 1fr; } }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare-table th[scope="row"] {
  width: 150px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.compare-table thead td { text-align: center; }
.compare-table .c-media { aspect-ratio: 1; background: var(--card); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.compare-table .c-media svg { width: 40%; }
.compare-table .c-name { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; display: block; }
.compare-table .c-brand { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.compare-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 45;
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px;
  background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px rgba(30, 27, 24, .18);
  transition: transform .35s var(--ease), visibility .35s; max-width: calc(100% - 32px); visibility: hidden;
}
.compare-bar.show { transform: translate(-50%, 0); visibility: visible; }
@media (max-width: 520px) { .compare-bar { gap: 10px; padding: 8px 10px 8px 14px; font-size: .82rem; white-space: nowrap; } }
.compare-bar .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); min-height: 38px; }
.compare-bar button.clear { background: none; border: 0; color: #cfc6bb; cursor: pointer; font-size: .8rem; text-decoration: underline; }

/* ---------- Atelier (make your own) ---------- */
.atelier { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: 80px; }
@media (max-width: 1040px) { .atelier { grid-template-columns: 1fr; } }
.stepper { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.stepper button {
  flex: 1 0 auto; padding: 14px 16px 12px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap;
}
.stepper button .n { font-family: var(--font-display); font-size: 1.05rem; margin-right: 8px; letter-spacing: 0; }
.stepper button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--ink); }
.stepper button.done { color: var(--ink-soft); }
.step-intro { margin-bottom: 22px; }
.step-intro h2 { margin-bottom: 6px; }
.suggest-box { padding: 18px 20px; background: var(--accent-soft); margin-bottom: 22px; }
.suggest-box .label { display: block; margin-bottom: 10px; color: var(--accent-ink); }
.atelier > * { min-width: 0; }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.ing-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px 16px 14px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.ing-card:hover { border-color: var(--line-strong); }
.ing-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ing-card.suggested { border-color: var(--accent); }
.ing-card .ing-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ing-card .ing-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.ing-card .ing-fam { display: flex; align-items: center; gap: 6px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ing-card .ing-fam i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ing-card .ing-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.ing-card .ing-foot { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ing-card .check {
  width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.ing-card[aria-pressed="true"] .check { background: var(--ink); border-color: var(--ink); }
.ing-card[aria-pressed="true"] .check::after { content: ""; width: 9px; height: 5px; border: 1.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.dots i.on { background: var(--ink-soft); }
.tier-tag { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 10px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

.summary {
  position: sticky; top: calc(var(--header-h) + 54px);
  background: var(--surface); border: 1px solid var(--line); padding: 24px;
}
@media (max-width: 1040px) { .summary { position: relative; top: 0; } }
.summary h3 { margin-bottom: 4px; }
.summary .character { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--accent-ink); margin-bottom: 16px; min-height: 1.4em; }
.summary .sum-tier { padding: 12px 0; border-top: 1px solid var(--line); }
.summary .sum-tier .label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.summary .sum-tier .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.summary .sum-tier[data-tier="top"] { --dot: var(--tier-top); }
.summary .sum-tier[data-tier="heart"] { --dot: var(--tier-heart); }
.summary .sum-tier[data-tier="base"] { --dot: var(--tier-base); }
.summary .picked { display: flex; flex-wrap: wrap; gap: 6px; }
.summary .picked .note-pill { display: inline-flex; align-items: center; gap: 6px; }
.summary .picked .note-pill button { border: 0; background: none; cursor: pointer; padding: 0; line-height: 1; color: var(--muted); font-size: 1rem; }
.summary .placeholder { font-size: .85rem; color: var(--muted); }
.summary .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.summary .stats .meter .bars i { width: 16px; }
.summary .similar { padding: 14px 0; border-top: 1px solid var(--line); }
.summary .similar a { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 5px 0; text-decoration: none; }
.summary .similar a:hover span:first-child { text-decoration: underline; }
.summary .similar .pct { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.summary .total strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.blend-bar { display: flex; height: 8px; overflow: hidden; margin: 6px 0 4px; background: var(--line); }
.blend-bar span { display: block; height: 100%; transition: width .4s var(--ease); }

.balance-list { display: flex; flex-direction: column; }
.balance-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.balance-row .nm { font-family: var(--font-display); font-size: 1.2rem; }
.balance-row .nm small { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-size: .78rem; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.strength-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 720px) { .strength-cards { grid-template-columns: 1fr; } }
.strength-card { text-align: left; padding: 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.strength-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.strength-card .s-name { font-family: var(--font-display); font-size: 1.3rem; }
.strength-card .s-oil { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 2px 0 8px; }
.strength-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.start-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
@media (max-width: 720px) { .start-choice { grid-template-columns: 1fr; } }
.start-choice .opt { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.start-choice .opt h4 { margin-bottom: 6px; }
.start-choice .opt p { color: var(--muted); font-size: .92rem; }
.start-choice select { min-width: 0; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .thumb { width: 90px; height: 108px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.cart-line .thumb svg { width: 46%; }
.cart-line .title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.cart-line .sub { font-size: .85rem; color: var(--muted); }
.cart-line .remove { background: none; border: 0; padding: 0; font-size: .78rem; text-decoration: underline; cursor: pointer; color: var(--muted); margin-top: 8px; }
.cart-summary { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; font-family: var(--font-display); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; font-size: .92rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 360px; }
.newsletter input { min-height: 44px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 20px; top: calc(var(--header-h) + 20px); z-index: 70;
  background: var(--ink); color: var(--bg); padding: 14px 18px; font-size: .9rem; max-width: 340px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease);
}
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast a { color: #e7d6bd; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Loading */
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-size: .9rem; letter-spacing: .1em; }

/* ---------- The oils page ---------- */
.oil-group { padding-top: 28px; }
.oil-group + .oil-group { margin-top: 28px; border-top: 1px solid var(--line); }
.oil-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.oil-group-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.oil-card { cursor: default; }
.oil-card .ing-name { margin: 0; font-weight: 400; }
.oil-card p { margin: 0; }
.oil-card .ing-foot a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.buy .dispatch { margin: 12px 0 0; }

/* ---------- Legal page ---------- */
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 96px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 40px 0 12px; scroll-margin-top: 120px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal ul { padding-left: 1.2em; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
