/* ============================================================
   LAGHJICHI HAIR PRODUCTS
   Design system · main.css
   Editorial. Minimal. Confident.
   ============================================================ */

/* Self-hosted brand fonts: no external requests, no fallback flash */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand accents (from tech pack) */
  --teal:   #DE5821; /* powder, packaging orange */
  --orange: #938E58; /* paste, packaging olive */
  --sage:   #DBA138; /* leave-in, packaging gold */
  --blue:   #4C73A8; /* spray, packaging blue */

  /* Deep shades for on-accent text/hovers */
  --teal-deep:   #96350F;
  --orange-deep: #55522F;
  --sage-deep:   #8A6116;
  --blue-deep:   #2B4467;

  /* Accent tints (backgrounds) */
  --teal-tint:   #F7E4DA;
  --orange-tint: #EFEDE0;
  --sage-tint:   #F8EEDB;
  --blue-tint:   #E4EBF4;

  /* Studio ground of the product photography, sampled from the shot */
  --photo-bg: #DBCBC5;

  /* Neutrals */
  --ink:    #111111;
  --paper:  #FAFAF8;
  --white:  #FFFFFF;
  --gray-1: #F2F2EF;
  --gray-2: #E5E5E1;
  --gray-3: #C9C9C4;
  --gray-4: #8A8A85;
  --gray-5: #55554F;

  /* Semantic */
  --bg:            var(--paper);
  --bg-raised:     var(--white);
  --bg-sunken:     var(--gray-1);
  --text:          var(--ink);
  --text-soft:     var(--gray-5);
  --text-faint:    var(--gray-4);
  --line:          var(--gray-2);
  --line-strong:   var(--ink);
  --btn-bg:        var(--ink);
  --btn-text:      var(--paper);
  --header-bg:     rgba(250, 250, 248, 0.86);
  --shadow:        0 24px 60px -24px rgba(17, 17, 17, 0.22);
  --shadow-soft:   0 12px 32px -16px rgba(17, 17, 17, 0.16);

  /* Type */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --text-xs:   0.6875rem;  /* 11px labels */
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   1.1875rem;
  --text-xl:   clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);

  --display-sm: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  --display-md: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);
  --display-lg: clamp(3.25rem, 1.8rem + 7.5vw, 8rem);
  --display-xl: clamp(4rem, 2rem + 11vw, 11.5rem);

  --track: 0.18em;

  /* Layout */
  --container: 1480px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 4rem + 6vw, 10.5rem);
  --section-sm: clamp(3rem, 2.5rem + 3vw, 6rem);
  --radius: 2px;
  --radius-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
  --dur-fast: 0.25s;

  --header-h: 4.25rem;
  --announce-h: 2.25rem;
}

[data-theme="dark"] {
  --bg:          #0C0C0B;
  --bg-raised:   #161615;
  --bg-sunken:   #131312;
  --text:        #F4F4F0;
  --text-soft:   #B9B9B2;
  --text-faint:  #83837D;
  --line:        #292926;
  --line-strong: #F4F4F0;
  --btn-bg:      #F4F4F0;
  --btn-text:    #0C0C0B;
  --header-bg:   rgba(12, 12, 11, 0.82);
  --shadow:      0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 12px 32px -16px rgba(0, 0, 0, 0.5);

  --teal-tint:   #38180A;
  --orange-tint: #23220F;
  --sage-tint:   #322408;
  --blue-tint:   #16233A;

  /* Photography keeps its own studio ground in dark mode, the shot's
     cream field is part of the image, so the frame must match it. */
  --photo-bg: #DBCBC5;
}

/* ------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
strong { font-weight: 600; }

::selection { background: var(--ink); color: var(--paper); }
[data-theme="dark"] ::selection { background: #F4F4F0; color: #0C0C0B; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--btn-bg); color: var(--btn-text);
  font-size: var(--text-sm); font-weight: 600;
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ------------------------------------------------------------
   3. TYPE UTILITIES
   ------------------------------------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display--xl { font-size: var(--display-xl); line-height: 0.93; }
.display--lg { font-size: var(--display-lg); line-height: 0.94; }
.display--md { font-size: var(--display-md); }
.display--sm { font-size: var(--display-sm); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before {
  content: "";
  width: 1.5rem; height: 2px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--bare::before { display: none; }

.lede {
  font-size: var(--text-xl);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  max-width: 34ch;
}
.body-soft { color: var(--text-soft); }
.measure { max-width: 62ch; }

.accent-teal   { color: var(--teal); }
.accent-orange { color: var(--orange); }
.accent-sage   { color: var(--sage); }
.accent-blue   { color: var(--blue); }

.num-index {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 60rem; }
.container--wide { max-width: 100%; }

.section { padding-block: var(--section); }
.section--sm { padding-block: var(--section-sm); }
.section--flush-top { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.section-head > .section-head__main { max-width: 62rem; }
.section-head .eyebrow { margin-bottom: 1.1rem; }

.rule { border: 0; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------
   5. BUTTONS & LINKS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.1rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--btn-bg);
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--ghost:hover { background: var(--btn-bg); color: var(--btn-text); }

.btn--on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--on-dark:hover { background: transparent; color: var(--paper); }
.btn--ghost-on-dark { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost-on-dark:hover { background: var(--paper); color: var(--ink); }

.btn--lg { padding: 1.3rem 2.75rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn .icon { width: 0.9em; height: 0.9em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
  transition: gap var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.text-link:hover { gap: 0.85rem; opacity: 0.7; }
.text-link .icon { width: 0.85em; height: 0.85em; }

/* ------------------------------------------------------------
   6. ICONS
   ------------------------------------------------------------ */
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }
.icon--lg { width: 2rem; height: 2rem; }

/* ------------------------------------------------------------
   7. ANNOUNCEMENT + HEADER
   ------------------------------------------------------------ */
.announce {
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-align: center;
  padding-inline: 1rem;
  position: relative;
  z-index: 60;
}
[data-theme="dark"] .announce { background: #F4F4F0; color: #0C0C0B; }
@media (max-width: 520px) {
  .announce { font-size: 0.5625rem; letter-spacing: 0.1em; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease,
              backdrop-filter 0.35s ease;
}
.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wordmark small {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--text-soft);
}

.nav {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}
.nav a {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  color: var(--text-soft);
  transition: color var(--dur-fast) ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.header__actions .nav ~ * { margin-left: 0; }

.icon-btn {
  width: 2.6rem; height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  position: relative;
}
.icon-btn:hover { background: var(--bg-sunken); transform: translateY(-1px); }
.icon-btn .icon { width: 1.15rem; height: 1.15rem; }

.cart-count {
  position: absolute;
  top: 0.15rem; right: 0.05rem;
  min-width: 1.05rem; height: 1.05rem;
  padding-inline: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.cart-count[data-empty="true"] { display: none; }

.quiz-cta {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-right: 0.5rem;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
  white-space: nowrap;
}
.quiz-cta:hover { background: var(--btn-bg); color: var(--btn-text); }

/* Mobile nav */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    padding: var(--gutter);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 9vw, 3.5rem);
    letter-spacing: 0.01em;
    color: var(--text);
    padding: 0.35rem 0;
  }
  .nav a::after { height: 3px; }
  .nav-toggle {
    display: inline-flex;
    z-index: 95;
  }
  .quiz-cta { display: none; }
}

/* ------------------------------------------------------------
   8. TICKER
   ------------------------------------------------------------ */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line-strong);
  padding-block: 0.9rem;
  background: var(--bg);
  white-space: nowrap;
}
.ticker--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ticker__track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: ticker 28s linear infinite;
  will-change: transform;
}
.ticker__track span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.ticker__track span i { font-style: normal; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   9. PRODUCT ART (SVG bottles injected by main.js)
   ------------------------------------------------------------ */
.product-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* A percentage height on the injected art only resolves if the grid row
   holding it is definite. Any grid that directly contains product art gets
   a single full-height row, so `height: 100%` never falls back to the
   SVG's intrinsic aspect ratio (which would render the bottle huge). */
:where(:has(> .product-art)) { grid-template-rows: minmax(0, 100%); }
.product-art svg {
  width: auto;
  height: 100%;
  max-height: 100%;
  overflow: visible;
}

/* --- Real product photography --------------------------------------
   Shot on a warm, slightly vignetted studio cream, so a photo can't be
   blended invisibly into a large colour field. Every photo is therefore
   presented as a deliberate product plate: rounded, softly shadowed,
   carrying its own ground. Individual contexts opt out below. */
/* The per-page hero styles were authored against the vector art (percentage
   heights, bottom anchoring, clipping stages). A photo must never be clipped
   by them, so containment here is declared authoritative. */
.product-art--photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  min-height: 0;
  align-self: center;
  background: var(--photo-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 56px -30px rgba(17, 17, 17, 0.5);
}
.product-art--photo picture {
  display: block;
  max-width: 100%;
  height: 100%;
}
.product-art--photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(60svh, 30rem);
  object-fit: contain;
  object-position: center;
}

/* The lineup runs wide rather than tall. */
.product-art--wide { width: 100% !important; }
.product-art--wide picture { height: auto; }
.product-art--wide img { width: 100%; max-height: none; }

/* Containers holding photography take the studio ground so the shot's own
   cream field is indistinguishable from the frame around it. These must
   out-specify the accent-tint modifiers (.product-card__media--teal etc.),
   so they are written as compound selectors, not wrapped in :where(). */
/* Cards, cart thumbs and quiz results frame the photo edge to edge instead
   of floating it, the media box itself becomes the plate. */
.product-card__media:has(.product-art--photo),
.cart-item__thumb:has(.product-art--photo),
.quiz-result__media:has(.product-art--photo) {
  background: var(--photo-bg);
  padding: 0;
}
.product-card__media .product-art--photo,
.cart-item__thumb .product-art--photo,
.quiz-result__media .product-art--photo {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  box-shadow: none;
}
.product-card__media .product-art--photo img,
.cart-item__thumb .product-art--photo img,
.quiz-result__media .product-art--photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-position: bottom center;
}
/* Overlay type sits on cream here, so it has to be ink, not white. */
.product-card__media:has(.product-art--photo) .product-card__index {
  color: rgba(17, 17, 17, 0.32);
}

/* PDP hero: the photo carries its own opaque studio ground, so it can't be
   blended into a large field (the shot is vignetted) and it would slice the
   giant index numeral drawn behind it. Present it as a deliberate product
   plate instead, centred, rounded, floating on the page's accent field. */
.pdp-hero__media:has(.product-art--photo) {
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.pdp-hero__media:has(.product-art--photo) .pdp-hero__watermark {
  z-index: 0;
  opacity: 0.5;
}
.pdp-hero__media:has(.product-art--photo) .product-art--photo {
  max-height: min(72svh, 38rem);
}
.product-card__media:has(.product-art--photo) .product-card__tag {
  background: rgba(17, 17, 17, 0.86);
}
.product-art .art-label {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.product-art .art-micro {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Grain overlay for color fields */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   10. PRODUCT CARDS
   ------------------------------------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card__media {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: end center;
  padding: 2.25rem 2rem 0;
  position: relative;
  overflow: hidden;
}
.product-card__media .product-art { height: 88%; transition: transform 0.6s var(--ease); }
.product-card:hover .product-card__media .product-art { transform: translateY(-4px) scale(1.02); }
.product-card__media--teal   { background: var(--teal-tint); }
.product-card__media--orange { background: var(--orange-tint); }
.product-card__media--sage   { background: var(--sage-tint); }
.product-card__media--blue   { background: var(--blue-tint); }

.product-card__index {
  position: absolute;
  top: 1.1rem; left: 1.25rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  color: var(--text-faint);
  z-index: 2;
}
.product-card__tag {
  position: absolute;
  top: 1.1rem; right: 1.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
}

.product-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Anton ships a single 400 weight, any UA-bold heading set in the display
   face renders synthetic (smeared) bold. Force the real weight everywhere
   the shared components use the display font; page style blocks must do the
   same for their own display-font headings. */
.type-cell h3,
.ingredient-card h3,
.cart-drawer__head h2,
.quiz-q { font-weight: 400; }
.product-card__meta {
  font-size: var(--text-sm);
  color: var(--text-soft);
}
.product-card__row {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.product-card__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.product-card__add {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  transition: opacity var(--dur-fast) ease;
}
.product-card__add:hover { opacity: 0.6; }

/* ------------------------------------------------------------
   11. HAIR TYPE SYSTEM
   ------------------------------------------------------------ */
.type-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .type-row { grid-template-columns: repeat(2, 1fr); } }

.type-cell {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--bg-raised);
  transition: background-color 0.35s ease;
}
.type-cell:hover { background: var(--bg-sunken); }
.type-cell .icon { width: 2.6rem; height: 2.6rem; }
.type-cell h3 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.6rem + 1.1vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.type-cell p { font-size: var(--text-sm); color: var(--text-soft); }

/* Compact chips used on product pages */
.type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.type-chip .icon { width: 1rem; height: 1rem; }
.type-chip[data-on="true"] {
  border-color: var(--line-strong);
  color: var(--text);
}
.type-chip[data-on="false"] { opacity: 0.35; }

/* ------------------------------------------------------------
   12. VALUE / FEATURE GRIDS
   ------------------------------------------------------------ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 1080px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .value-grid { grid-template-columns: repeat(2, 1fr); } }

.value-cell {
  background: var(--bg-raised);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
  transition: background-color 0.35s ease;
}
.value-cell:hover { background: var(--bg-sunken); }
.value-cell .icon { width: 1.6rem; height: 1.6rem; }
.value-cell h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Ingredient cards */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .ingredient-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ingredient-grid { grid-template-columns: 1fr; } }

.ingredient-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ingredient-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ingredient-card .icon { width: 2rem; height: 2rem; }
.ingredient-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ingredient-card p { font-size: var(--text-sm); color: var(--text-soft); }
.ingredient-card .ingredient-card__found {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ------------------------------------------------------------
   13. EDITORIAL BLOCKS
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.media-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 24rem;
}
.media-block--tall { min-height: clamp(26rem, 60vh, 40rem); }

.quote-block {
  border-left: 3px solid var(--text);
  padding-left: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: var(--display-sm);
  text-transform: uppercase;
  line-height: 1.05;
  text-wrap: balance;
}
.quote-block figcaption {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-soft);
}

/* Stat band */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  background: var(--bg);
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) 1.5rem;
  text-align: center;
}
.stat-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--display-sm);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-cell span {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ------------------------------------------------------------
   14. STEPS (HOW TO USE)
   ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--text-faint);
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.step p { font-size: var(--text-sm); color: var(--text-soft); max-width: 52ch; }
@media (max-width: 560px) { .step { grid-template-columns: 3rem 1fr; gap: 1rem; } }

/* ------------------------------------------------------------
   15. ACCORDION (FAQ)
   ------------------------------------------------------------ */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) ease;
}
.accordion__trigger:hover { color: var(--text-soft); }
.accordion__trigger .icon {
  width: 1rem; height: 1rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  padding-bottom: 1.5rem;
  color: var(--text-soft);
  max-width: 62ch;
}
.accordion__item[data-open="true"] .accordion__panel { grid-template-rows: 1fr; }

/* ------------------------------------------------------------
   16. REVIEWS
   ------------------------------------------------------------ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars {
  display: inline-flex;
  gap: 0.2rem;
  color: var(--text);
}
.stars .icon { width: 0.85rem; height: 0.85rem; }
.review-card blockquote {
  font-size: var(--text-lg);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.review-card figcaption {
  margin-top: auto;
  font-size: var(--text-sm);
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.review-card .verified {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: var(--text-faint);
}

/* ------------------------------------------------------------
   17. NEWSLETTER / FORMS
   ------------------------------------------------------------ */
.field-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 30rem;
}
.field-row input {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.25rem;
  border: 0;
  background: var(--bg-raised);
  color: var(--text);
  font-size: var(--text-sm);
}
.field-row input::placeholder { color: var(--text-faint); }
.field-row input:focus { outline: none; }
.field-row .btn { border-radius: 0; padding-inline: 1.75rem; }
.field-row:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }

.form-note { font-size: var(--text-xs); color: var(--text-faint); margin-top: 0.75rem; }

/* ------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: var(--section-sm);
  margin-top: var(--section-sm);
  overflow: hidden;
}
.footer--flush { margin-top: 0; }
[data-theme="dark"] .footer { background: #080807; border-top: 1px solid var(--line); }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h3 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.5);
  margin-bottom: 1.25rem;
}
.footer ul { display: grid; gap: 0.7rem; }
.footer ul a {
  font-size: var(--text-sm);
  color: rgba(250, 250, 248, 0.85);
  transition: color var(--dur-fast) ease;
}
.footer ul a:hover { color: #fff; }

.footer .field-row { border-color: rgba(250, 250, 248, 0.35); }
.footer .field-row input { background: transparent; color: var(--paper); }
.footer .field-row input::placeholder { color: rgba(250, 250, 248, 0.4); }
.footer .field-row .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer__tagline { font-size: var(--text-sm); color: rgba(250, 250, 248, 0.65); max-width: 30ch; margin-bottom: 1.75rem; }
.footer__tagline em { font-style: normal; color: var(--sage); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(250, 250, 248, 0.14);
  font-size: var(--text-xs);
  color: rgba(250, 250, 248, 0.45);
}
.footer__legal .dots { display: inline-flex; gap: 0.4rem; }
.footer__legal .dots i {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
}
.footer__legal .dots i:nth-child(1) { background: var(--teal); }
.footer__legal .dots i:nth-child(2) { background: var(--orange); }
.footer__legal .dots i:nth-child(3) { background: var(--sage); }
.footer__legal .dots i:nth-child(4) { background: var(--blue); }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 13rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.01em;
  color: rgba(250, 250, 248, 0.08);
  user-select: none;
  transform: translateY(0.18em);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   19. CART DRAWER (markup injected by main.js)
   ------------------------------------------------------------ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 12, 11, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 110;
  width: min(28rem, 100vw);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease);
  box-shadow: var(--shadow);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter) 1.2rem 1.75rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ship-meter { padding: 1.1rem 1.75rem 0; }
.ship-meter p { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.6rem; }
.ship-meter p strong { color: var(--text); }
.ship-meter__bar {
  height: 4px;
  background: var(--gray-2);
  border-radius: 999px;
  overflow: hidden;
}
[data-theme="dark"] .ship-meter__bar { background: #292926; }
.ship-meter__fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  gap: 1rem;
  align-items: center;
}
.cart-item__thumb {
  width: 4.25rem; height: 5rem;
  border-radius: var(--radius);
  display: grid;
  place-items: end center;
  padding: 0.5rem 0.6rem 0;
  overflow: hidden;
}
.cart-item__thumb .product-art { height: 92%; }
.cart-item__name { font-weight: 600; font-size: var(--text-sm); }
.cart-item__price { font-size: var(--text-sm); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-top: 0.35rem;
}
.cart-item__qty button {
  width: 1.2rem; height: 1.2rem;
  display: grid; place-items: center;
  font-weight: 600;
}
.cart-item__qty span { font-size: var(--text-sm); font-variant-numeric: tabular-nums; min-width: 1ch; text-align: center; }
.cart-item__remove {
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-decoration: underline;
  justify-self: end;
}
.cart-empty {
  text-align: center;
  padding-block: 3rem;
  color: var(--text-soft);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}
.cart-empty p { font-size: var(--text-sm); }

.cart-drawer__foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.75rem 1.75rem;
  display: grid;
  gap: 0.9rem;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.cart-subtotal small { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--text-faint); }
.cart-pay-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pay-pill {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--text-soft);
}

/* ------------------------------------------------------------
   20. QUIZ MODAL (markup injected by main.js)
   ------------------------------------------------------------ */
.quiz-modal[hidden],
.cart-drawer[hidden],
.drawer-backdrop[hidden] { display: none !important; }
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.quiz-modal.is-open { opacity: 1; visibility: visible; }
.quiz-modal .drawer-backdrop { z-index: 1; }
.quiz-modal__card {
  position: relative;
  z-index: 2;
  width: min(44rem, 100%);
  max-height: min(92vh, 46rem);
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  box-shadow: var(--shadow);
  transform: translateY(14px);
  transition: transform 0.4s var(--ease);
}
.quiz-modal.is-open .quiz-modal__card { transform: translateY(0); }
.quiz-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
}
.quiz-progress {
  display: flex;
  gap: 0.4rem;
  margin: 1.25rem 0 2rem;
}
.quiz-progress i {
  height: 3px; flex: 1;
  background: var(--gray-2);
  border-radius: 999px;
  transition: background-color 0.3s ease;
}
[data-theme="dark"] .quiz-progress i { background: #292926; }
.quiz-progress i.is-done { background: var(--text); }

.quiz-q {
  font-family: var(--font-display);
  font-size: var(--display-sm);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1.75rem;
}
.quiz-opts { display: grid; gap: 0.6rem; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.quiz-opt:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}
.quiz-opt .icon { width: 1.5rem; height: 1.5rem; }
.quiz-opt strong { display: block; font-size: var(--text-sm); }
.quiz-opt small { font-size: var(--text-xs); color: var(--text-soft); }

.quiz-result { text-align: center; display: grid; gap: 1.25rem; justify-items: center; }
.quiz-result__media {
  width: 11rem;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: end center;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
}
.quiz-result .display--sm { line-height: 1; }
.quiz-result p { color: var(--text-soft); max-width: 38ch; }
.quiz-result__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------
   21. TOAST
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 130;
  transform: translate(-50%, 150%);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease);
  max-width: min(92vw, 26rem);
  text-align: center;
}
.toast.is-shown { transform: translate(-50%, 0); }

/* ------------------------------------------------------------
   22. STICKY ADD-TO-CART (product pages)
   ------------------------------------------------------------ */
.sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-atc.is-shown { transform: translateY(0); }
.sticky-atc__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.8rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.sticky-atc__name { font-weight: 600; font-size: var(--text-sm); }
.sticky-atc__price { font-size: var(--text-sm); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.sticky-atc .btn { margin-left: auto; padding: 0.85rem 1.75rem; }

/* ------------------------------------------------------------
   23. PDP SHARED (product detail pages)
   ------------------------------------------------------------ */
.pdp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100svh - var(--header-h) - var(--announce-h));
}
@media (max-width: 900px) { .pdp-hero { grid-template-columns: 1fr; } }

.pdp-hero__media {
  position: relative;
  display: grid;
  place-items: end center;
  padding: clamp(2rem, 5vh, 4rem) 2rem 0;
  overflow: hidden;
  min-height: 24rem;
}
.pdp-hero__media .product-art { height: min(60svh, 34rem); z-index: 2; }
.pdp-hero__watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.pdp-hero__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) var(--gutter);
}
.pdp-hero__info .display--lg { max-width: 9ch; }
.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--text-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pdp-price small { font-size: var(--text-sm); font-weight: 400; color: var(--text-faint); }

.pdp-benefits { display: grid; gap: 0.6rem; }
.pdp-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-soft);
}
.pdp-benefits .icon { width: 1rem; height: 1rem; color: var(--text); }

.pdp-buy { display: grid; gap: 0.75rem; max-width: 26rem; }
.pdp-buy .btn { justify-content: space-between; }

.spec-list { border-top: 1px solid var(--line); }
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
@media (max-width: 640px) {
  .spec-list > div { grid-template-columns: 1fr; gap: 0.4rem; }
}
.spec-list dt {
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.15rem;
}
.spec-list dd { color: var(--text-soft); }

/* ------------------------------------------------------------
   24. BEFORE / AFTER SLIDER
   ------------------------------------------------------------ */
.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  isolation: isolate;
}
.ba__pane {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ba__pane--after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba__pane--before { clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0); }
.ba__label {
  position: absolute;
  top: 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  background: rgba(17,17,17,0.75);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.ba__pane--before .ba__label { left: 1rem; }
.ba__pane--after .ba__label { right: 1rem; }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
}
.ba__handle::after {
  content: "↔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

/* ------------------------------------------------------------
   25. REVEAL ANIMATIONS
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--left.in, .reveal--right.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   26. MISC UTILITIES
   ------------------------------------------------------------ */
.bg-teal   { background: var(--teal); }
.bg-orange { background: var(--orange); }
.bg-sage   { background: var(--sage); }
.bg-blue   { background: var(--blue); }
.bg-ink    { background: var(--ink); color: var(--paper); }
.bg-sunken { background: var(--bg-sunken); }
.bg-teal-tint   { background: var(--teal-tint); }
.bg-orange-tint { background: var(--orange-tint); }
.bg-sage-tint   { background: var(--sage-tint); }
.bg-blue-tint   { background: var(--blue-tint); }

.on-color { color: #fff; }
.on-color .eyebrow { color: rgba(255,255,255,0.8); }
.on-color .body-soft { color: rgba(255,255,255,0.82); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  color: var(--text-soft);
}

/* ------------------------------------------------------------
   27. CART CROSS-SELL
   ------------------------------------------------------------ */
.cart-upsell {
  border-top: 1px solid var(--line);
  padding: 1rem 1.75rem 0.25rem;
}
.cart-upsell__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}
.cart-upsell__row {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
}
.cart-upsell__thumb {
  width: 3.25rem; height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--photo-bg);
  display: grid;
  place-items: end center;
}
.cart-upsell__thumb .product-art--photo {
  width: 100% !important; height: 100% !important;
  border-radius: 0; box-shadow: none;
}
.cart-upsell__thumb .product-art--photo img {
  width: 100%; height: 100%; max-height: none;
  object-fit: cover; object-position: center 20%;
}
.cart-upsell__name { font-weight: 600; font-size: var(--text-sm); }
.cart-upsell__note { font-size: var(--text-xs); color: var(--text-soft); }
.cart-upsell__add { padding: 0.65rem 1rem; white-space: nowrap; }

/* ------------------------------------------------------------
   28. BUNDLE LINEUP STRIP
   The routine bundle renders as four real product plates in a
   row. Never a stitched image: seams and mismatched grounds
   read as a collage.
   ------------------------------------------------------------ */
.product-art--lineup {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.4rem, 1.2vw, 0.8rem);
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  align-items: end;
}
.lineup-strip__item {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--photo-bg);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.5);
}
.lineup-strip__item picture,
.lineup-strip__item img {
  width: 100%;
  height: 100%;
}
.lineup-strip__item img {
  object-fit: cover;
  object-position: center 40%;
  max-height: none;
}
/* tiny contexts: cart line + upsell thumbs drop the plate chrome */
.cart-item__thumb .product-art--lineup,
.cart-upsell__thumb .product-art--lineup { gap: 1px; align-self: center; }
.cart-item__thumb .lineup-strip__item,
.cart-upsell__thumb .lineup-strip__item { border-radius: 0; box-shadow: none; }


/* ------------------------------------------------------------
   29. QUIZ FUNNEL
   ------------------------------------------------------------ */
.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.quiz-back {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.quiz-back:hover { color: var(--text); }
.quiz-count {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.quiz-foot {
  margin-top: 1.25rem;
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-align: center;
}
.quiz-anim { animation: quiz-in 0.3s var(--ease); }
@keyframes quiz-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-anim { animation: none; }
}
.quiz-result__media {
  width: 11rem;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  display: block;
}
.quiz-result__pair {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  max-width: 30rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  text-align: left;
}
.quiz-result__pair-thumb {
  height: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.quiz-result__pair-thumb .product-art--photo {
  width: 100% !important; height: 100% !important;
  border-radius: 0; box-shadow: none;
}
.quiz-result__pair-thumb .product-art--photo img {
  width: 100%; height: 100%; max-height: none;
  object-fit: cover; object-position: center 25%;
}
.quiz-result__pair-copy strong { display: block; font-size: var(--text-sm); }
.quiz-result__pair-copy small { font-size: var(--text-xs); color: var(--text-soft); }
.quiz-result__pair-add { padding: 0.7rem 1.1rem; }
@media (max-width: 540px) {
  .quiz-result__pair { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}


/* ------------------------------------------------------------
   30. QUIZ EMAIL CAPTURE
   ------------------------------------------------------------ */
.quiz-capture {
  width: 100%;
  max-width: 30rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  margin-top: 0.25rem;
}
.quiz-capture__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--text-soft);
}
.quiz-capture .field-row { width: 100%; }
.quiz-capture__note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-align: center;
}
.quiz-capture__done {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 0;
}
