/* ==========================================================================
   BILORAUX — pages.css
   Page-specific section styles. Grows per phase. Phase 1 holds only the
   foundation showcase used on _styleguide.html.
   ========================================================================== */

/* ---- Style-guide / token showcase (Phase 1 review page only) ------------- */
.sg-hero { padding-block: var(--s-5); }
.sg-hero .eyebrow { display: block; margin-bottom: var(--s-2); }

.sg-block { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.sg-block > h2 { margin-bottom: var(--s-4); }
.sg-note { color: var(--ink-soft); font-size: var(--step--1); margin-top: var(--s-2); }

/* Color swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s-3);
}
.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.swatch__chip { height: 72px; }
.swatch__meta { padding: 0.6rem 0.75rem; font-size: var(--step--1); }
.swatch__meta b { display: block; font-weight: 600; }
.swatch__meta span { color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* Type specimen */
.specimen { display: flex; flex-direction: column; gap: var(--s-3); }
.specimen__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4); }
.specimen__row > .specimen__tag {
  flex: 0 0 6rem;
  font-size: var(--step--1);
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

/* Button gallery */
.btn-gallery { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Small demo product cards used by the cart empty state */
.mini-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: var(--surface);
}
.mini-card__thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.mini-card__name { font-size: var(--step-0); font-weight: 500; }
.mini-card__price { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   HOME PAGE
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.02fr 1fr; } }
.hero__eyebrow { display: block; margin-bottom: var(--s-3); }
.hero h1 { margin-bottom: var(--s-3); }
.hero__sub { font-size: var(--step-1); color: var(--ink-soft); max-width: 42ch; margin-bottom: var(--s-4); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__rating { margin-top: var(--s-4); font-size: var(--step--1); color: var(--ink-mute); }

/* Gold keyline frame around the hero shot */
.hero__frame {
  position: relative;
  padding: clamp(0.6rem, 1.5vw, 1rem);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(160deg, var(--gold-soft), var(--line-gold)) border-box;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: clamp(0.6rem, 1.5vw, 1rem);
  border: 1px solid var(--line-gold);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
  opacity: 0.5;
}
.hero__frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---- Ticker marquee ------------------------------------------------------ */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  padding-block: 0.85rem;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  padding-inline: 1.75rem;
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--ink-soft);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
}

/* ---- Product duo --------------------------------------------------------- */
.duo { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .duo { grid-template-columns: 1fr 1fr; } }

.pcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pcard--light { background: var(--surface); }
.pcard--dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pcard--dark h3 { color: var(--on-ink); }

.pcard__media {
  display: grid;
  place-items: center;
  padding: var(--s-4);
  aspect-ratio: 16 / 11;
  /* Product shots are framed on white, so the media well is white for a
     seamless blend; the hairline separates it from the card body. */
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pcard--dark .pcard__media { border-bottom-color: rgb(255 255 255 / 0.12); }
.pcard__media img { width: auto; height: 100%; max-height: 260px; object-fit: contain; }

.pcard__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); flex: 1; }
.pcard__benefit { color: var(--ink-soft); }

/* Product cards respond to the pointer: a quiet lift, a gold keyline, and a
   slow zoom on the shot (clipped by the card's overflow). Hover-capable
   pointers only, so touch devices don't get a stuck hover state. */
.pcard { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.pcard__media img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-gold); }
  .pcard--dark:hover { border-color: var(--gold); }
  .pcard:hover .pcard__media img { transform: scale(1.03); }
}
.pcard--dark .pcard__benefit { color: var(--on-ink-soft); }

.pcard__specs {
  display: flex;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-block: 1px solid var(--line);
  margin-top: auto;
}
.pcard--dark .pcard__specs { border-block-color: rgb(255 255 255 / 0.14); }
.pcard__spec { flex: 1; }
.pcard__spec b { display: block; font-size: var(--step-1); font-family: var(--font-display); font-weight: 600; }
.pcard--dark .pcard__spec b { color: var(--on-ink); }
.pcard__spec span { font-size: var(--step--1); color: var(--ink-mute); }
.pcard--dark .pcard__spec span { color: var(--on-ink-soft); }

.pcard__buy { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.pcard__price { font-size: var(--step-2); font-family: var(--font-display); font-weight: 600; }
.pcard--dark .pcard__price { color: var(--on-ink); }
.pcard__actions { display: flex; gap: 0.5rem; }
/* On the dark card the ink primary button would sit black-on-black, so give it
   a gold keyline border to lift it off the panel (ink bg + white text unchanged, AA). */
.pcard--dark .btn--primary { --_bd: var(--line-gold); }
/* Secondary button: white outline + white text on the dark card */
.pcard--dark .btn--secondary { --_fg: var(--on-ink); --_bd: var(--on-ink); }
.pcard--dark .btn--secondary:hover { --_bg: var(--on-ink); --_fg: var(--ink); }

/* ---- The Biloraux Standard (comparison) ---------------------------------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--step-0);
}
.compare caption { text-align: left; color: var(--ink-mute); font-size: var(--step--1); padding-bottom: var(--s-3); }
.compare th, .compare td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 600; }
.compare tbody th[scope="row"] { font-weight: 500; color: var(--ink); width: 32%; }
.compare .col-us { background: var(--gold-wash); }
.compare thead .col-us { color: var(--gold-deep); }
.compare .col-us td, .compare td.col-us { color: var(--ink); }
.compare .mark { display: inline-flex; align-items: center; gap: 0.5rem; }
.compare .mark svg { width: 18px; height: 18px; flex: 0 0 auto; }
.compare .mark--yes svg { color: var(--gold-deep); }
.compare .mark--no svg { color: var(--ink-mute); }
.compare td.col-them { color: var(--ink-soft); }

/* ---- How it's made (3 steps) --------------------------------------------- */
.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; flex-direction: column; gap: var(--s-2); }
.step__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  color: var(--gold-deep);
  margin-bottom: var(--s-2);
}
.step__icon svg { width: 26px; height: 26px; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); font-size: var(--step-0); }

/* ---- Education teaser ---------------------------------------------------- */
.edu { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu__card {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.edu__card h3 { font-size: var(--step-2); }
.edu__card p { color: var(--ink-soft); }
.edu__card a { margin-top: auto; align-self: flex-start; }

/* ---- FAQ accordions ------------------------------------------------------ */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px; height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item__body { padding-bottom: var(--s-3); color: var(--ink-soft); max-width: var(--measure); }

/* ---- Section intro ------------------------------------------------------- */
.section-head { margin-bottom: var(--s-4); }
.section-head .eyebrow { display: block; margin-bottom: var(--s-2); }
.section-head p { color: var(--ink-soft); margin-top: var(--s-2); }
.section-foot { margin-top: var(--s-4); }

/* ---- Email CTA band ------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--on-ink); margin-bottom: var(--s-2); }
.cta-band p { color: var(--on-ink-soft); margin: 0 auto var(--s-4); }
.cta-band form { max-width: 460px; margin-inline: auto; }
.cta-band .email-capture__row { justify-content: center; }
.cta-band label { color: var(--on-ink-soft); }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb { padding-block: var(--s-3); font-size: var(--step--1); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-mute); }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--line-2); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 0.15em; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ==========================================================================
   PRODUCT PAGE (PDP)
   ========================================================================== */
.pdp__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .pdp__grid { grid-template-columns: 1.05fr 1fr; } }

/* Gallery */
.gallery { display: flex; flex-direction: column; gap: var(--s-3); }
.gallery__main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.gallery__thumbs::-webkit-scrollbar { height: 6px; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.gallery__thumb { flex: 0 0 72px; scroll-snap-align: start; }
.gallery__thumb {
  padding: 0;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb[aria-current="true"] { border-color: var(--gold-deep); }
.gallery__thumb:hover { border-color: var(--line-2); }

/* Buy column */
.buy { display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 900px) { .buy { position: sticky; top: 96px; } }
.buy__eyebrow { display: block; }
.buy h1 { font-size: var(--step-3); }
.buy__benefit { font-size: var(--step-1); color: var(--ink-soft); }
.buy__pricerow { display: flex; align-items: baseline; gap: var(--s-3); }
.buy__price { font-size: var(--step-2); font-family: var(--font-display); font-weight: 600; }
.buy__rating { font-size: var(--step--1); color: var(--ink-mute); }
.buy__form { display: flex; flex-direction: column; gap: var(--s-3); }
.buy__qtyrow { display: flex; align-items: center; gap: var(--s-3); }
.buy__qtyrow > span { font-size: var(--step--1); color: var(--ink-soft); }
.buy__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: var(--step--1);
  color: var(--ink-mute);
}
.buy__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.buy__trust svg { width: 16px; height: 16px; color: var(--gold-deep); }

/* Accordion (Ingredients / Suggested Use / Shipping) — reuses faq visual */
.accordion { border-top: 1px solid var(--line); margin-top: var(--s-2); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) 0; cursor: pointer; list-style: none; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 10px; height: 10px; flex: 0 0 auto;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg); transition: transform var(--transition);
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion__body { padding-bottom: var(--s-3); color: var(--ink-soft); font-size: var(--step-0); }

/* Answer block (extraction-optimized) */
.answer-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--s-4);
  max-width: var(--measure);
}
.answer-block h2 { font-size: var(--step-2); margin-bottom: var(--s-2); }

/* Benefits grid — 2-up on mobile, 3-up on desktop */
.benefits { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { display: flex; flex-direction: column; gap: var(--s-2); }
.benefit__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-gold); border-radius: var(--radius); color: var(--gold-deep);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: var(--step-1); }
.benefit p { color: var(--ink-soft); font-size: var(--step-0); }

/* Supplement Facts panel (FDA-style) */
.sfacts {
  max-width: 420px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: var(--s-3);
  font-family: var(--font-body);
}
.sfacts__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; border-bottom: 6px solid var(--ink); padding-bottom: 0.25rem; }
.sfacts__serv { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: var(--step--1); }
.sfacts table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.sfacts thead th { text-align: right; font-weight: 700; border-bottom: 1px solid var(--ink); padding: 0.3rem 0; }
.sfacts thead th:first-child { text-align: left; }
.sfacts th[scope="row"] { text-align: left; font-weight: 400; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.sfacts td { text-align: right; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sfacts .sfacts__rule-thick th, .sfacts .sfacts__rule-thick td { border-bottom-width: 3px; border-bottom-color: var(--ink); }
.sfacts__foot { font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.5rem; line-height: 1.4; }
.sfacts__other { font-size: var(--step--1); color: var(--ink-soft); margin-top: var(--s-3); max-width: 420px; }

/* Ingredient breakdown (NMN "why the stack") */
.stack-list { display: grid; gap: var(--s-3); }
.stack-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.stack-item b { font-family: var(--font-display); font-size: var(--step-1); white-space: nowrap; }
.stack-item span { color: var(--ink-soft); }

/* Feature (individually wrapped) split */
.feature { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature__media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature__media img { width: 100%; height: auto; display: block; }
.feature__body h2 { margin-bottom: var(--s-3); }
.feature__body p { color: var(--ink-soft); }
.feature__list { list-style: none; padding: 0; margin-top: var(--s-3); display: flex; flex-direction: column; gap: 0.6rem; }
.feature__list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.feature__list svg { width: 20px; height: 20px; color: var(--gold-deep); flex: 0 0 auto; margin-top: 2px; }

/* Cross-sell single card */
.crosssell { max-width: 560px; }

/* ==========================================================================
   SHOP PAGE
   ========================================================================== */
.shop-intro { max-width: var(--measure); }
.why-two {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.why-two h2 { margin-bottom: var(--s-3); }
.why-two p { color: var(--ink-soft); max-width: var(--measure); }

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cartpage__grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cartpage__grid { grid-template-columns: 1.6fr 1fr; } }
.cartpage__items .line-item { grid-template-columns: 84px 1fr auto; padding-block: var(--s-4); }
.cartpage__items .line-item__thumb { width: 84px; height: 84px; }

/* Order summary card (shared by cart + checkout) */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 900px) { .cartpage__summary .summary-card { position: sticky; top: 96px; } }
.summary-card h2 { font-size: var(--step-2); }
.osum { display: flex; flex-direction: column; gap: 0.5rem; }
.osum__row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--step-0); color: var(--ink-soft); }
.summary-lines { display: flex; flex-direction: column; gap: 0.5rem; padding-block: var(--s-3); border-block: 1px solid var(--line); }
.summary-line { display: flex; justify-content: space-between; }
.summary-line--total { font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.summary-line span:last-child { font-variant-numeric: tabular-nums; }
.summary-note { font-size: var(--step--1); color: var(--ink-mute); }
.summary-note svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--success); flex: none; }
.summary-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: var(--step--1); color: var(--ink-mute); }
.summary-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.summary-trust svg { width: 16px; height: 16px; color: var(--gold-deep); }

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
/* Minimal checkout chrome */
.checkout-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.checkout-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.checkout-header__secure { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.checkout-header__secure svg { width: 16px; height: 16px; color: var(--success); }
.checkout-foot {
  border-top: 1px solid var(--line);
  margin-top: var(--s-6);
  padding-block: var(--s-4);
}
.checkout-foot__inner { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; font-size: var(--step--1); color: var(--ink-mute); }
.checkout-foot__links { display: flex; gap: var(--s-4); }
.checkout-foot a { color: var(--ink-soft); text-decoration: none; }
.checkout-foot a:hover { color: var(--gold-deep); text-decoration: underline; }

.checkout__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .checkout__grid { grid-template-columns: 1.4fr 1fr; } }

/* Mobile order summary is a collapsible details at top; desktop is sticky right */
.checkout__summary-mobile { display: block; }
.checkout__summary-desktop { display: none; }
@media (min-width: 900px) {
  .checkout__summary-mobile { display: none; }
  .checkout__summary-desktop { display: block; }
  .checkout__summary-desktop .summary-card { position: sticky; top: 24px; }
}
.summary-collapse { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--s-4); }
.summary-collapse > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); cursor: pointer; list-style: none; font-weight: 500;
}
.summary-collapse > summary::-webkit-details-marker { display: none; }
.summary-collapse > summary b { font-variant-numeric: tabular-nums; }
.summary-collapse__body { padding: 0 var(--s-4) var(--s-4); }

/* Express pay */
.express-pay { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .express-pay { grid-template-columns: repeat(3, 1fr); } }
.express-btn {
  min-height: 48px; display: grid; place-items: center;
  border-radius: var(--radius); border: 1.5px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: var(--step--1);
  cursor: pointer;
}
.express-btn:hover { border-color: var(--ink); }
.pay-divider { display: flex; align-items: center; gap: var(--s-3); color: var(--ink-mute); font-size: var(--step--1); margin-block: var(--s-4); }
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Checkout form sections */
.co-section { padding-block: var(--s-4); border-top: 1px solid var(--line); }
.co-section:first-of-type { border-top: 0; }
.co-section__head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: var(--s-3); }
.co-section__num {
  width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%; font-size: 0.8rem; font-weight: 600;
}
.co-section h2 { font-size: var(--step-1); }
.field-row { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--zip { grid-template-columns: 2fr 1fr 1fr; } }

/* Shipping method radio cards */
.radio-card {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3); border: 1.5px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; margin-bottom: 0.6rem;
}
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--ink); }
.radio-card__main { flex: 1; }
.radio-card__name { font-weight: 500; }
.radio-card__eta { font-size: var(--step--1); color: var(--ink-mute); }
.radio-card__price { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Card fields (Stripe-style) */
.card-box { border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.card-box .field { margin: 0; }
.card-box .field input { border: 0; border-radius: 0; }
.card-box__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--line-2); }
.card-box__row .field:first-child { border-right: 1.5px solid var(--line-2); }
.card-box .field > label { padding: 0.4rem 0.85rem 0; font-size: 0.72rem; }

/* Discount toggle */
.discount summary { cursor: pointer; font-size: var(--step--1); color: var(--ink-soft); list-style: none; padding: 0.5rem 0; }
.discount summary::-webkit-details-marker { display: none; }
.discount__row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.discount__row input { flex: 1; min-height: 44px; padding: 0.6rem 0.85rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); }

/* Place order (sticky above fold on mobile) */
.place-order-wrap { margin-top: var(--s-4); }
@media (max-width: 899px) {
  .place-order-wrap {
    position: sticky; bottom: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(6px);
    padding: var(--s-3) 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    border-top: 1px solid var(--line);
  }
}
.co-secure-line { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; width: 100%; margin-top: var(--s-3); font-size: var(--step--1); color: var(--ink-mute); }
.co-secure-line svg { width: 16px; height: 16px; color: var(--success); }

/* ==========================================================================
   ORDER CONFIRMATION
   ========================================================================== */
.confirm { text-align: center; max-width: 640px; margin-inline: auto; padding-block: var(--s-6); }
.confirm__check {
  position: relative;
  width: 72px; height: 72px; margin: 0 auto var(--s-4);
  border-radius: 50%; background: var(--success); display: grid; place-items: center;
  animation: confirmPop 520ms var(--ease-out) both;
}
/* a single soft ring blooms out once, so the confirmation lands as a moment */
.confirm__check::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--success);
  animation: confirmRing 1100ms var(--ease-out) 260ms both;
}
.confirm__check svg { width: 38px; height: 38px; color: #fff; }
.confirm__check svg path {
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: checkdraw 500ms var(--ease-out) 220ms forwards;
}
@keyframes checkdraw { to { stroke-dashoffset: 0; } }
@keyframes confirmPop { from { transform: scale(0.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes confirmRing { from { transform: scale(0.92); opacity: 0.45; } to { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .confirm__check { animation: none; transform: none; opacity: 1; }
  .confirm__check::before { display: none; }
  .confirm__check svg path { animation: none; stroke-dashoffset: 0; }
}
.confirm__order { display: inline-block; margin-top: var(--s-2); padding: 0.4rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }
.confirm .summary-card { text-align: left; margin-top: var(--s-5); }
.confirm__next { text-align: left; margin-top: var(--s-5); }
.confirm__steps { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); margin-top: var(--s-3); }
@media (min-width: 640px) { .confirm__steps { grid-template-columns: repeat(3, 1fr); } }
.confirm__step { display: flex; flex-direction: column; gap: 0.4rem; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.confirm__step b { display: flex; align-items: center; gap: 0.5rem; }
.confirm__step svg { width: 20px; height: 20px; color: var(--gold-deep); }
.confirm__step p { font-size: var(--step--1); color: var(--ink-soft); }

/* ==========================================================================
   TRUST-CLUSTER PAGES (quality, lab-results, about, wholesale)
   ========================================================================== */
.page-head { padding-block: var(--s-5) var(--s-4); }
.page-head .eyebrow { display: block; margin-bottom: var(--s-2); }
.page-head p { color: var(--ink-soft); max-width: var(--measure); margin-top: var(--s-3); font-size: var(--step-1); }
.updated { font-size: var(--step--1); color: var(--ink-mute); margin-top: var(--s-3); }

/* Readable prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-3); }
.prose h2 { margin-top: var(--s-5); }
.prose h3 { margin-top: var(--s-4); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose strong { color: var(--ink); }

/* What-we-test grid (reuses benefit visuals but neutral) */
.test-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .test-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .test-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lab Results — COA cards */
.coa-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .coa-grid { grid-template-columns: 1fr 1fr; } }
.coa-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius-lg); padding: var(--s-4);
}
.coa-card__head { display: flex; align-items: center; gap: var(--s-3); }
.coa-card__thumb { width: 56px; height: 56px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); object-fit: contain; padding: 4px; }
.coa-card__head h3 { font-size: var(--step-1); }
.coa-meta { display: flex; flex-direction: column; gap: 0.5rem; padding-block: var(--s-3); border-block: 1px solid var(--line); }
.coa-meta__row { display: flex; justify-content: space-between; font-size: var(--step-0); }
.coa-meta__row span:first-child { color: var(--ink-mute); }
.coa-meta__row b { font-variant-numeric: tabular-nums; }
.coa-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.coa-note { font-size: var(--step--1); color: var(--ink-mute); }

/* Numbered how-to steps */
.howto { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); counter-reset: step; }
@media (min-width: 720px) { .howto { grid-template-columns: repeat(4, 1fr); } }
.howto__item { position: relative; padding-top: var(--s-4); border-top: 2px solid var(--line-gold); }
.howto__item::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: calc(var(--s-4) * -1 + 2px); left: 0;
  transform: translateY(-50%); background: var(--bg); padding-right: 0.5rem;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--gold-deep);
}
.howto__item h3 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.howto__item p { font-size: var(--step--1); color: var(--ink-soft); }

/* About — founder + entity */
.founder { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 700px) { .founder { grid-template-columns: 260px 1fr; } }
.founder__photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-mute);
}
.founder__photo svg { width: 40%; height: 40%; opacity: 0.4; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem var(--s-4); margin: 0; }
.info-card dt { color: var(--ink-mute); font-size: var(--step--1); }
.info-card dd { margin: 0; font-size: var(--step-0); }

/* Wholesale split (pitch + form) */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.form-card h2 { margin-bottom: var(--s-3); }
.form-success {
  display: none; align-items: center; gap: 0.6rem;
  padding: var(--s-3); border-radius: var(--radius);
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  color: var(--success); font-weight: 500; margin-bottom: var(--s-3);
}
.form-success svg { width: 20px; height: 20px; }
.form-success.is-shown { display: flex; }

/* ==========================================================================
   FAQ PAGE (grouped + search)
   ========================================================================== */
.faq-search { max-width: 480px; margin-bottom: var(--s-5); position: relative; }
.faq-search input {
  width: 100%; min-height: 48px; padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
}
.faq-search input:focus-visible { border-color: var(--gold-deep); }
.faq-search svg { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-mute); }
.faq-group { margin-bottom: var(--s-5); }
.faq-group > h2 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.faq-noresults { color: var(--ink-mute); padding: var(--s-4) 0; }
.faq-item[hidden] { display: none; }

/* ==========================================================================
   LEARN HUB + ARTICLES
   ========================================================================== */
.learn-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .learn-grid { grid-template-columns: repeat(3, 1fr); } }
.learn-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); text-decoration: none; color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
.learn-card:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.learn-card .eyebrow { display: block; }
.learn-card h2, .learn-card h3 { font-size: var(--step-1); }
.learn-card p { color: var(--ink-soft); font-size: var(--step-0); flex: 1; }
.learn-card__more { color: var(--gold-deep); font-weight: 500; font-size: var(--step--1); }

/* Article */
.article { max-width: 720px; margin-inline: auto; }
.article__header { padding-block: var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.article__header .eyebrow { display: block; margin-bottom: var(--s-2); }
.article__header h1 { font-size: var(--step-3); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem var(--s-3); margin-top: var(--s-3); font-size: var(--step--1); color: var(--ink-mute); }
.byline__author { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); }
.byline__author svg { width: 22px; height: 22px; color: var(--gold-deep); }
.article .prose { max-width: none; }
.article .prose h2 { font-size: var(--step-2); scroll-margin-top: 6rem; }
.article .prose h3 { font-size: var(--step-1); }
.article .prose p, .article .prose li { color: var(--ink-soft); font-size: var(--step-0); line-height: 1.7; }

/* Key-takeaway / answer callout inside articles */
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: var(--s-4); margin-block: var(--s-4);
}
.callout p { margin: 0; }

/* Neutral data comparison table (orotate vs prescription) */
.data-table-wrap { overflow-x: auto; margin-block: var(--s-4); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--step-0); }
.data-table caption { text-align: left; color: var(--ink-mute); font-size: var(--step--1); padding-bottom: var(--s-3); }
.data-table th, .data-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.data-table tbody th[scope="row"] { font-weight: 500; width: 24%; color: var(--ink); }
.data-table td { color: var(--ink-soft); }

/* Sources / references */
.sources { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.sources h2 { font-size: var(--step-1); margin-bottom: var(--s-3); }
.sources ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; }
.sources li { font-size: var(--step--1); color: var(--ink-soft); }
.sources a { word-break: break-word; }
.medical-note { font-size: var(--step--1); color: var(--ink-mute); font-style: italic; margin-top: var(--s-4); }

/* ==========================================================================
   SOCIAL PROOF CAROUSEL (influencer videos + reviews) — infinite, smooth
   ========================================================================== */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: var(--s-4);
  will-change: transform;
  touch-action: pan-y;
}
.carousel__slide { flex: 0 0 auto; }
.carousel__controls { display: flex; gap: 0.5rem; }
.carousel__btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.carousel__btn:hover { border-color: var(--ink); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }

/* Video card — vertical 9:16, poster + play overlay */
.video-card {
  position: relative;
  width: clamp(200px, 62vw, 260px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #2b2720, var(--ink));
  border: 1px solid var(--line);
  display: block;
  color: var(--on-ink);
  cursor: pointer;
}
.video-card img, .video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.55)); }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgb(255 255 255 / 0.92); display: grid; place-items: center;
  transition: transform var(--transition);
}
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); }
.video-card__play svg { width: 22px; height: 22px; color: var(--ink); margin-left: 3px; }
.video-card__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-3); }
.video-card__name { font-weight: 600; font-size: var(--step-0); }
.video-card__tag { font-size: var(--step--1); color: var(--on-ink-soft); }

/* Review card */
.review-card {
  width: clamp(260px, 82vw, 340px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.review-card__stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 3px; line-height: 1; }
.review-card__stars svg { width: 18px; height: 18px; }
.review-card__text { color: var(--ink-soft); flex: 1; }
.review-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--step--1); }
.review-card__name { font-weight: 600; color: var(--ink); }
.review-card__verified { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--success); }
.review-card__verified svg { width: 14px; height: 14px; }
.review-card__src { color: var(--ink-mute); }

/* ==========================================================================
   MOTION — scroll reveal (only active when JS adds .js-anim; safe without JS)
   ========================================================================== */
html.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
html.js-anim .reveal.is-in { opacity: 1; transform: none; }
/* stagger children when a container is revealed */
html.js-anim .reveal--stagger.is-in > * { animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) backwards; }
html.js-anim .reveal--stagger.is-in > *:nth-child(2) { animation-delay: 0.08s; }
html.js-anim .reveal--stagger.is-in > *:nth-child(3) { animation-delay: 0.16s; }
html.js-anim .reveal--stagger.is-in > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal, html.js-anim .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none; }
  html.js-anim .reveal--stagger.is-in > * { animation: none; }
}

/* ==========================================================================
   REVIEWS (real Amazon reviews) + carousel center-focus
   ========================================================================== */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-bottom: var(--s-4); }
.reviews-score { display: flex; align-items: center; gap: var(--s-3); }
.reviews-score__num { font-family: var(--font-display); font-size: var(--step-4); font-weight: 600; line-height: 1; }
.reviews-score__stars { color: var(--gold); display: inline-flex; gap: 2px; }
.reviews-score__stars svg { width: 20px; height: 20px; }
.reviews-score__meta { font-size: var(--step--1); color: var(--ink-mute); }
.reviews-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); }
.reviews-badge svg { width: 18px; height: 18px; color: var(--success); }

/* Center-focus carousel: side cards recede, the middle one is emphasised */
.carousel--focus .carousel__slide { transition: opacity 0.5s var(--ease-out); }
.carousel--focus .video-card { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); transform: scale(0.86); }
.carousel--focus .carousel__slide.is-center .video-card { transform: scale(1); box-shadow: var(--shadow-lg); }
.carousel--focus .carousel__slide:not(.is-center) { opacity: 0.62; }
@media (prefers-reduced-motion: reduce) {
  .carousel--focus .video-card, .carousel--focus .carousel__slide { transition: none; }
}

/* ==========================================================================
   TIMELINE — "how every batch is made": single row on desktop (connected
   nodes on a gold line), vertical timeline on mobile.
   ========================================================================== */
.timeline { --node: 68px; display: grid; grid-template-columns: 1fr; gap: 0; }

.timeline__step {
  position: relative;
  display: grid; grid-template-columns: var(--node) 1fr; gap: var(--s-3);
  align-items: start; padding-bottom: var(--s-5);
}
/* mobile: vertical connector down the node column */
.timeline__step::before {
  content: ""; position: absolute; z-index: 0;
  left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: -2px; width: 2px;
  background: var(--line-gold);
}
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step:last-child::before { display: none; }

.timeline__node {
  position: relative; z-index: 1;
  width: var(--node); height: var(--node);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-gold); color: var(--gold-deep);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.timeline__node svg { width: 30px; height: 30px; }
.timeline__step:hover .timeline__node { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); transform: translateY(-3px); }

.timeline__body { align-self: center; }
.timeline__num {
  display: block; font-size: var(--step--1); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.35rem;
}
.timeline__step h3 { font-size: var(--step-1); }
.timeline__step p { color: var(--ink-soft); font-size: var(--step-0); margin-top: 0.4rem; }

/* Desktop: one row, nodes on a horizontal gold line */
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .timeline__step { display: block; text-align: center; padding-bottom: 0; }
  .timeline__node { margin: 0 auto var(--s-4); }
  .timeline__step::before {
    top: calc(var(--node) / 2 - 1px); left: 0; right: 0; bottom: auto;
    width: auto; height: 2px;
  }
  .timeline__step:first-child::before { left: 50%; }
  .timeline__step:last-child::before { display: block; left: 0; right: 50%; }
  .timeline__body { align-self: initial; }
  .timeline__step p { max-width: 30ch; margin-inline: auto; }
}

/* Staggered reveal of the row */
html.js-anim .timeline__step:nth-child(1) { transition-delay: 0s; }
html.js-anim .timeline__step:nth-child(2) { transition-delay: 0.09s; }
html.js-anim .timeline__step:nth-child(3) { transition-delay: 0.18s; }
html.js-anim .timeline__step:nth-child(4) { transition-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .timeline__step { transition-delay: 0s !important; }
}

/* ==========================================================================
   HERO BANNER SLIDER — full-bleed, art-directed (desktop + mobile images)
   ========================================================================== */
.banner-section { padding: 0; }
.banner { position: relative; overflow: hidden; background: var(--ink); }
.banner__track { gap: 0; }
.banner__viewport { aspect-ratio: 2048 / 768; }   /* matches banner art (2.667:1) -> always shows full, no crop */
.banner__slide { flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%; }
.banner__slide a, .banner__slide picture { display: block; width: 100%; height: 100%; }
.banner__slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Arrows overlaid */
.banner .carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(6px); border-color: transparent;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
}
.banner .carousel__btn:hover { background: var(--surface); }
.banner__arrow--prev { left: clamp(0.75rem, 2vw, 1.75rem); }
.banner__arrow--next { right: clamp(0.75rem, 2vw, 1.75rem); }

/* Dots */
.banner__dots {
  position: absolute; bottom: clamp(0.75rem, 1.8vw, 1.25rem); left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 0.5rem;
}
.carousel__dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.55); cursor: pointer;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
  transition: width var(--transition), background var(--transition);
}
.carousel__dot.is-active { width: 28px; background: #fff; }

@media (max-width: 640px) {
  .banner__viewport { aspect-ratio: 1122 / 1402; height: auto; }   /* matches mobile banner art (0.8:1) -> shows full */
  .banner .carousel__btn { display: none; }                  /* swipe + dots on mobile */
}

/* ==========================================================================
   PDP — bundle / quantity offers (buy more, save)
   ========================================================================== */
.bundles { display: flex; flex-direction: column; gap: 0.65rem; }
.bundle {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  padding: 0.9rem var(--s-3); border: 1.5px solid var(--line-2);
  border-radius: var(--radius); cursor: pointer; background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.bundle:hover { border-color: var(--line); }
.bundle:has(input:checked) { border-color: var(--ink); box-shadow: var(--shadow); }
.bundle:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.bundle input { position: absolute; opacity: 0; width: 0; height: 0; }
.bundle__radio {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--line-2); display: grid; place-items: center;
  transition: border-color var(--transition);
}
.bundle:has(input:checked) .bundle__radio { border-color: var(--ink); }
.bundle:has(input:checked) .bundle__radio::after {
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--ink);
}
.bundle__main { flex: 1; min-width: 0; }
.bundle__title { font-weight: 600; }
.bundle__sub { font-size: var(--step--1); color: var(--ink-mute); }
.bundle__price { text-align: right; white-space: nowrap; }
.bundle__now { font-weight: 600; font-variant-numeric: tabular-nums; display: block; }
.bundle__was { font-size: var(--step--1); color: var(--ink-mute); text-decoration: line-through; }
.bundle__badge {
  position: absolute; top: -10px; right: 14px; z-index: 1;
  background: var(--gold-deep); color: #fff; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill);
}
.bundle__savenote { font-size: var(--step--1); color: var(--success); font-weight: 500; margin-top: 0.3rem; }

/* PDP depth polish */
.gallery__main { box-shadow: var(--shadow); }
.buy__price { font-size: var(--step-3); }
.buy__pricerow { align-items: baseline; flex-wrap: wrap; }
.buy__save { font-size: var(--step--1); color: var(--success); font-weight: 600; }

/* ==========================================================================
   BENTO BENEFITS — asymmetric, one dark hero tile + a wide strip (PDP)
   ========================================================================== */
.bento { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 920px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; } }

.bento__tile {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  padding: var(--s-4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.bento__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.bento__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-gold); border-radius: var(--radius); color: var(--gold-deep);
  transition: background 260ms var(--ease-out), color 260ms var(--ease-out);
}
.bento__icon svg { width: 24px; height: 24px; }
.bento__tile:hover .bento__icon { background: var(--gold-wash); }
.bento__tile h3 { font-size: var(--step-1); }
.bento__tile p { font-size: var(--step-0); color: var(--ink-soft); }

/* Hero tile — dark, large, big gold numeral, subtle radial glow */
.bento__tile--hero { color: var(--on-ink); border-color: var(--ink); justify-content: space-between; min-height: 220px;
  background:
    radial-gradient(120% 90% at 15% 10%, rgb(201 162 39 / 0.16), transparent 55%),
    var(--ink);
}
.bento__tile--hero { grid-column: 1 / -1; }
@media (min-width: 920px) { .bento__tile--hero { grid-column: span 2; grid-row: span 2; } }
.bento__tile--hero:hover { border-color: var(--line-gold); }
.bento__tile--hero h3 { color: var(--on-ink); font-family: var(--font-display); font-size: var(--step-2); }
.bento__tile--hero p { color: var(--on-ink-soft); max-width: 34ch; }
.bento__big { font-family: var(--font-display); font-weight: 600; line-height: 0.9;
  font-size: clamp(3.4rem, 7vw, 5.2rem); color: var(--gold-soft); letter-spacing: -0.02em; }
.bento__big span { font-size: 0.4em; color: var(--on-ink-soft); letter-spacing: 0; }

/* Wide tile — clean-formula strip with chips */
.bento__tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--s-3) var(--s-5); }
.bento__tile--wide .bento__wide-label { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.bento__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* staggered reveal for the row */
html.js-anim .bento__tile:nth-child(2) { transition-delay: 0.05s; }
html.js-anim .bento__tile:nth-child(3) { transition-delay: 0.1s; }
html.js-anim .bento__tile:nth-child(4) { transition-delay: 0.15s; }
html.js-anim .bento__tile:nth-child(5) { transition-delay: 0.2s; }
html.js-anim .bento__tile:nth-child(6) { transition-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) { html.js-anim .bento__tile { transition-delay: 0s !important; } }

/* ==========================================================================
   LEGAL / POLICY PAGES (sticky TOC + readable prose)
   ========================================================================== */
.legal { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .legal { grid-template-columns: 220px 1fr; } }
.legal__toc { font-size: var(--step--1); }
@media (min-width: 940px) { .legal__toc { position: sticky; top: 96px; } }
.legal__toc h2 { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ink-mute); margin-bottom: var(--s-3); }
.legal__toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; counter-reset: toc; }
.legal__toc a { color: var(--ink-soft); text-decoration: none; display: block; padding: 0.2rem 0; }
.legal__toc a:hover { color: var(--gold-deep); }
.legal__body h2 { font-size: var(--step-2); margin-top: var(--s-5); scroll-margin-top: 6rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink-soft); max-width: var(--measure); }
.legal__body ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; margin-top: var(--s-2); }
.legal__body > * + * { margin-top: var(--s-3); }
.legal-flag {
  background: var(--gold-wash); border: 1px dashed var(--line-gold); border-radius: var(--radius);
  padding: var(--s-3); font-size: var(--step--1); color: var(--gold-deep); margin-bottom: var(--s-4);
}

/* ==========================================================================
   TRACK ORDER + 404
   ========================================================================== */
.track-result {
  display: none; margin-top: var(--s-4); padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.track-result.is-shown { display: block; }
.track-steps { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.track-step { flex: 1; text-align: center; font-size: var(--step--1); color: var(--ink-mute); }
.track-step__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); margin: 0 auto 0.5rem; }
.track-step--done .track-step__dot { background: var(--success); }
.track-step--done { color: var(--ink-soft); }
.track-bar { height: 3px; background: var(--line); border-radius: 999px; margin: 0.5rem 0 var(--s-3); overflow: hidden; }
.track-bar__fill { height: 100%; width: 66%; background: var(--success); }

.notfound { text-align: center; max-width: 640px; margin-inline: auto; padding-block: var(--s-6); }
.notfound__code { font-family: var(--font-display); font-weight: 600; font-size: clamp(5rem, 22vw, 12rem); line-height: 0.9; color: var(--gold-soft); letter-spacing: -0.03em; }
.notfound h1 { margin-top: var(--s-3); }
.notfound p { color: var(--ink-soft); margin: var(--s-3) auto var(--s-4); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ==========================================================================
   PDP — premium guarantee/trust icons under Add to Cart
   ========================================================================== */
.buy__guarantees {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-2);
  margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line);
}
@media (min-width: 1100px) { .buy__guarantees { grid-template-columns: repeat(4, 1fr); } }
.guarantee { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.guarantee__icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-wash); color: var(--gold-deep);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) {
  .guarantee:hover .guarantee__icon { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow); }
}
.guarantee__icon svg { width: 24px; height: 24px; }
.guarantee span { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.25; max-width: 14ch; }
.guarantee b { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   PDP — difference / comparison section
   ========================================================================== */
.difference { max-width: 820px; }
.difference .data-table td, .difference .data-table th { padding: 0.9rem 1rem; }
.difference .data-table .is-ours { background: var(--gold-wash); }
.difference .data-table thead .is-ours { color: var(--gold-deep); font-weight: 600; }
.difference .data-table tbody td { text-align: center; vertical-align: middle; }
.difference .data-table tbody td svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

/* ==========================================================================
   PDP — write a review
   ========================================================================== */
.write-review { max-width: 640px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.write-review h3 { font-size: var(--step-2); margin-bottom: var(--s-3); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { cursor: pointer; color: var(--line-2); line-height: 0; padding: 2px; border-radius: 4px; transition: color var(--transition), transform 140ms var(--ease-out); }
.star-input label svg { width: 30px; height: 30px; }
@media (hover: hover) { .star-input label:hover { transform: scale(1.1); } }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--ring); outline-offset: 2px; }
.review-thanks {
  display: none; align-items: center; gap: 0.6rem; padding: var(--s-3);
  background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success);
  border-radius: var(--radius); font-weight: 500; margin-bottom: var(--s-3);
}
.review-thanks svg { width: 20px; height: 20px; }
.review-thanks.is-shown { display: flex; }

/* ── Versus comparison: supplement vs prescription (PDP difference) ── */
.vs { max-width: 900px; margin-inline: auto; }

.vs__top {
  display: grid;
  grid-template-columns: 1fr clamp(58px, 10vw, 104px) 1fr;
  align-items: stretch;
  position: relative;
}
.vs__panel {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  text-align: center;
  padding: var(--s-4) var(--s-3) var(--s-5);
  border-radius: var(--radius-lg);
}
.vs__panel--ours {
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow);
  position: relative; z-index: 1;
}
.vs__panel--rx {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.vs__tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.32rem 0.75rem; border-radius: var(--radius-pill);
  margin-bottom: 0.25rem;
}
.vs__tag svg { width: 15px; height: 15px; flex: none; }
.vs__panel--ours .vs__tag { background: rgb(255 255 255 / 0.65); color: var(--gold-deep); }
.vs__panel--rx   .vs__tag { background: rgb(255 255 255 / 0.7); color: var(--ink-mute); }
.vs__title { margin: 0; font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.vs__panel--rx .vs__title { color: var(--ink-soft); }
.vs__lead {
  margin: 0.15rem 0 0; font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 0.95; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.vs__lead span { font-size: 0.42em; font-weight: 500; margin-left: 0.15em; color: var(--ink-soft); }
.vs__panel--rx .vs__lead { color: var(--ink-soft); }
.vs__leadsub { margin: 0.1rem 0 0; font-size: 0.8rem; line-height: 1.35; color: var(--ink-mute); max-width: 20ch; }

.vs__medallion {
  align-self: center; justify-self: center;
  width: clamp(46px, 7vw, 60px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-style: italic; font-size: 0.92rem;
  box-shadow: 0 0 0 5px var(--bg), var(--shadow);
  z-index: 2;
}

/* aligned attribute lanes below the panels */
.vs__rows { margin: 0; display: flex; flex-direction: column; }
.vs__row {
  display: grid;
  grid-template-columns: 1fr clamp(58px, 10vw, 104px) 1fr;
  align-items: stretch;
}
.vs__row > * { display: flex; align-items: center; padding: 0.8rem var(--s-3); margin: 0; }
.vs__row dt {
  grid-column: 2; justify-content: center; text-align: center;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
}
.vs__row .is-ours {
  grid-column: 1; justify-content: flex-end; text-align: right;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}
.vs__row .is-rx {
  grid-column: 3; justify-content: flex-start; text-align: left;
  font-size: 0.9rem; color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
.vs__row + .vs__row .is-ours,
.vs__row + .vs__row .is-rx { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7); }
.vs__rows .vs__row:first-child .is-ours { border-top-left-radius: var(--radius); }
.vs__rows .vs__row:first-child .is-rx  { border-top-right-radius: var(--radius); }
.vs__rows .vs__row:last-child  .is-ours { border-bottom-left-radius: var(--radius); }
.vs__rows .vs__row:last-child  .is-rx  { border-bottom-right-radius: var(--radius); }

.vs__note {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: var(--s-4) auto 0; max-width: 60ch;
  font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft);
}
.vs__note svg { flex: none; width: 18px; height: 18px; color: var(--gold-deep); margin-top: 2px; }
.vs__note a { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }

@media (max-width: 600px) {
  .vs__top { grid-template-columns: 1fr; }
  .vs__panel { padding: var(--s-4) var(--s-3); }
  .vs__medallion { margin: -13px 0; }
  .vs__row { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .vs__row dt { grid-column: 1 / -1; order: -1; padding-bottom: 0.15rem; }
  .vs__row .is-ours { grid-column: 1; }
  .vs__row .is-rx  { grid-column: 2; }
  /* per-row blocks read cleaner than continuous lanes when narrow */
  .vs__row { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.25rem 0.7rem; margin-bottom: 0.5rem; }
  .vs__row > * { padding: 0.3rem 0.7rem; }
  .vs__row .is-ours, .vs__row .is-rx { background: none; box-shadow: none; border-radius: 0; }
}

/* ==========================================================================
   WOOCOMMERCE (Phase 2) — style WC's own markup to the brand
   ========================================================================== */
.buy__price { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; color: var(--ink); margin: 0.25rem 0 0.75rem; }
.buy__price del { color: var(--ink-mute); font-weight: 400; margin-right: 0.4rem; }
.buy__price ins { text-decoration: none; }

/* single add-to-cart form */
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; margin: var(--s-3) 0; }
.woocommerce .quantity { display: inline-flex; }
.woocommerce .quantity input.qty {
  width: 68px; text-align: center; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  font: inherit; padding: 0.5rem; background: var(--surface); color: var(--ink);
}
.woocommerce button.single_add_to_cart_button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 500; line-height: 1.1;
  background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--ink); cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.woocommerce button.single_add_to_cart_button { flex: 1; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.single_add_to_cart_button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover { box-shadow: inset 0 0 0 1.5px var(--line-gold); }
.woocommerce a.button:active, .woocommerce button.button:active { transform: translateY(1px); }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--ink); color: var(--on-ink); }

/* shop grid */
.woocommerce ul.products { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.woocommerce ul.products li.product { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: box-shadow var(--transition), border-color var(--transition); }
@media (hover:hover){ .woocommerce ul.products li.product:hover { box-shadow: var(--shadow); border-color: var(--line-gold); } }
.woocommerce ul.products li.product a img { margin: 0; padding: var(--s-4); aspect-ratio: 16/11; object-fit: contain; background: var(--surface); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); font-size: 1.1rem; padding: 0 var(--s-3); color: var(--ink); }
.woocommerce ul.products li.product .price { display: block; color: var(--ink-soft); font-weight: 600; margin: 0.4rem 0; }
.woocommerce ul.products li.product .button { margin: 0 var(--s-3) var(--s-4); }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); padding: 0.9rem 1rem; list-style: none; }
.woocommerce-message { border-color: var(--line-gold); background: var(--gold-wash); }

/* cart + checkout: keep WC tables readable and on-brand */
.woocommerce table.shop_table { border-radius: var(--radius); border-color: var(--line); }
.woocommerce-cart table.cart img { width: 64px; border-radius: var(--radius); }
.woocommerce .cart-collaterals, .woocommerce-checkout #payment { background: var(--surface); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 0.65rem 0.85rem; font: inherit; background: var(--surface); color: var(--ink);
}

/* ==========================================================================
   WOOCOMMERCE — shop cards, cart, checkout (match the static design)
   ========================================================================== */
/* shop: WC loop add-to-cart inside our .pcard */
.woocommerce ul.products li.product.pcard { text-align: left; padding: 0; }
.pcard__actions .button, .pcard__actions a.button.add_to_cart_button {
  background: var(--ink); color: var(--on-ink); border: 1.5px solid var(--ink); border-radius: var(--radius);
  min-height: 44px; padding: 0.6rem 1.1rem; font-weight: 500; margin: 0;
}
.pcard--dark .pcard__actions .button { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.pcard__actions .added_to_cart { display: none; }

/* ---- Cart ------------------------------------------------------------- */
.woocommerce-cart .woocommerce { display: grid; gap: var(--s-5); grid-template-columns: 1fr; padding-block: var(--s-5); }
@media (min-width: 900px) { .woocommerce-cart form.woocommerce-cart-form { margin: 0; } .woocommerce-cart .woocommerce { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.woocommerce-cart table.cart { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; border-collapse: separate; }
.woocommerce-cart table.cart th { background: var(--surface-2); font-family: var(--font-body); font-weight: 600; text-align: left; padding: 0.9rem 1rem; }
.woocommerce-cart table.cart td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.woocommerce-cart table.cart .product-name a { color: var(--ink); font-weight: 500; text-decoration: none; }
.woocommerce-cart .cart_totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.woocommerce-cart .cart_totals h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--s-3); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; margin-top: var(--s-3); }
.woocommerce a.remove { color: var(--ink-mute) !important; border: 1px solid var(--line); }
.woocommerce a.remove:hover { background: var(--raspberry) !important; color: #fff !important; border-color: var(--raspberry); }

/* ---- Checkout --------------------------------------------------------- */
.woocommerce-checkout .woocommerce { padding-block: var(--s-5); }
.woocommerce-checkout form.checkout { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 980px) { .woocommerce-checkout form.checkout { grid-template-columns: 1.4fr 1fr; align-items: start; } .woocommerce-checkout #order_review, .woocommerce-checkout #order_review_heading { position: sticky; top: 90px; } }
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: var(--s-3); }
.woocommerce-checkout .col2-set { width: 100%; }
.woocommerce-checkout #order_review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); }
.woocommerce-checkout table.shop_table { border: 0; }
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.woocommerce-checkout #payment { background: transparent; border-radius: var(--radius); }
.woocommerce-checkout #payment ul.payment_methods { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: var(--s-3); }
.woocommerce-checkout #place_order { width: 100%; margin-top: var(--s-3); font-weight: 600; }
.woocommerce form .form-row label { font-size: var(--step--1); font-weight: 500; color: var(--ink); }
.woocommerce .woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { margin-top: 0; }
