/* ═══════════════════ SUPPLEMENTS PAGE — SECTION-SPECIFIC STYLES ═══════════════════
   Companion to supplements-sections.js. The hero (Section 1) is the shared
   css/phero.css. */

/* ───────────── Reveal-on-scroll base rule ─────────────
   No other stylesheet on this template defines .reveal (custom.css's is
   scoped to .faqs-section), so this page carries its own. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════ INTRO — CLINICAL-GRADE SUPPLEMENTS ═══════════════════
   .cintro__card only becomes a two-column grid when a video is set (see
   "Intro video column" below). .cintro__bg's background is a static theme
   image in /images. */
.cintro { position: relative; isolation: isolate; min-height: clamp(360px, 46vh, 520px); display: flex; align-items: center; overflow: hidden; }
.cintro__bg {
  position: absolute; inset: 0; z-index: -1;
  background: #cfe3da url("../images/intro-bubbles.jpg") center center/cover no-repeat;
}
.cintro__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,26,0.18) 0%, rgba(20,30,26,0.10) 100%);
}
.cintro__inner { width: min(1240px, 92vw); margin: 0 auto; padding: clamp(40px, 7vh, 80px) 0; }
.cintro__card {
  position: relative;
  border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(30px, 4vw, 52px) clamp(28px, 4.5vw, 60px);
  background: linear-gradient(160deg, rgba(16,52,34,0.46) 0%, rgba(12,42,28,0.38) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 30px 70px -30px rgba(10,20,16,0.55), inset 0 1px 0 rgba(255,255,255,0.14);
}
.cintro__title { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.06; letter-spacing: -0.02em; color: #fff; margin: 0 0 clamp(26px, 3.6vh, 40px); text-wrap: balance; }
.cintro__list { list-style: none; margin: 0 0 clamp(30px, 4vh, 44px); padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cintro__list li {
  position: relative; padding-left: 30px;
  font-family: var(--sans); font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; line-height: 1.55; color: #fff; text-wrap: pretty;
}
.cintro__list li::before {
  content: ""; position: absolute; left: 0; top: 0.78em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); transform: translateY(-50%);
}
.cintro__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Intro video column ──
   .cintro__card--media is only added when intro_video has a file; without
   one the card is single-column.
   The footage is 3:4 portrait, green-screen. With the green removed
   (.cintro__media--key) the <canvas> carries the picture and the <video>
   stays in the DOM as its frame source — kept rendered (opacity 0, not
   display:none) so every browser keeps decoding frames for it.
   Negative block margins let the capsule run a little past the card's
   padding so it doesn't sit small inside it; the card's own padding still
   wins on the copy side. */
.cintro__card--media {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.cintro__media {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  aspect-ratio: 3 / 4;
  margin: calc(-1 * clamp(14px, 2vw, 28px)) 0;
}
.cintro__video,
.cintro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.cintro__media:not(.cintro__media--key) .cintro__video { object-fit: cover; border-radius: clamp(14px, 1.6vw, 22px); }
.cintro__media--key .cintro__video { opacity: 0; pointer-events: none; }
/* if keying can't run (e.g. video served cross-origin without CORS), JS
   adds .is-fallback: show the plain video rather than an empty column */
.cintro__media--key.is-fallback .cintro__video { opacity: 1; object-fit: cover; border-radius: clamp(14px, 1.6vw, 22px); }
.cintro__media--key.is-fallback .cintro__canvas { display: none; }

@media (max-width: 860px) {
  .cintro__card--media { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cintro__media { max-width: min(300px, 78%); margin: 0 auto calc(-1 * clamp(10px, 3vw, 20px)); }
}

/* ═══════════════════ SECTION 2 — BESTSELLERS CAROUSEL ═══════════════════
   No star rating on these cards. */
.bsell { background: #ffffff; padding: clamp(58px, 8vh, 104px) 0 clamp(40px, 6vh, 72px); }
.bsell__head { text-align: center; margin-bottom: clamp(38px, 5.5vh, 68px); }
.bsell__carousel { position: relative; width: min(1240px, 94vw); margin: 0 auto; }
.bsell__viewport { position: relative; overflow: hidden; }
.bsell__track { position: relative; }
.bsell__item {
  position: absolute; top: 0; left: 50%;
  width: clamp(190px, 21vw, 270px);
  transform: translateX(-50%);
  will-change: transform, opacity;
}
.bsell__item:not(.bsell__item--center) { cursor: pointer; }

/* ── Bestseller cards: bare product image + centred meta ── */
.bsell-card { display: flex; flex-direction: column; align-items: center; text-align: center;
  background: transparent; border: 0; box-shadow: none; padding: 0; width: 100%; }
.bsell-card__media { width: 100%; display: flex; align-items: flex-end;
  justify-content: center; margin-bottom: 16px; }
.bsell__item .bsell-card__media img { width: auto; height: clamp(180px, 19vw, 240px);
  max-width: 100%; object-fit: contain; }
.bsell-card__name { font-family: var(--sans); font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; margin: 0 0 12px;
  text-wrap: balance; }
.bsell-card__name a { color: inherit; text-decoration: none; }
.bsell-card__price { display: flex; flex-direction: column; align-items: center;
  gap: 3px; margin-bottom: 16px; }
.bsell-card__now { font-family: var(--sans); font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink); }
.bsell-card__member { font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  color: var(--ink-soft); }
/* .bsell-card__cta shares its style with .sup-card__add. Both live in
   custom.css with the rest of the shared product card. */

.bsell__arrow {
  position: absolute; top: 30%; transform: translateY(-50%); z-index: 20;
  width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer;
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.9); box-shadow: 0 8px 22px -10px rgba(12, 12, 13, 0.4);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.bsell__arrow:hover { color: var(--accent); transform: translateY(-50%) scale(1.06); }
.bsell__arrow svg { width: 22px; height: 22px; display: block; }
.bsell__arrow--prev { left: clamp(-6px, -1vw, 4px); }
.bsell__arrow--next { right: clamp(-6px, -1vw, 4px); }

.bsell__dots { display: flex; justify-content: center; gap: 9px; margin-top: clamp(30px, 4.5vh, 50px); }
.bsell__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 12, 13, 0.22); cursor: pointer; transition: background 0.18s ease; }
.bsell__dot.is-active { background: var(--ink); }

/* member CTA beneath the bestsellers carousel */
.bsell__member {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 44px; text-align: center;
}
.bsell__member-text {
  margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 500; color: var(--ink, #1c1a17);
  letter-spacing: -0.01em;
}

/* ═══════════════════ SECTION 3 — SHOP BY GOAL ═══════════════════
   .browse__inner/__head/__filters/.browse__empty match the same base
   classes in peptides-sections.css; this template doesn't load that file,
   so it carries its own copy.
   .chip and the .sup-grid/.sup-card family are shared and live in
   custom.css. */
.browse { background: var(--bg); padding: clamp(72px, 11vh, 140px) 0 clamp(64px, 9vh, 120px); }
.browse__inner { width: min(1240px, 92vw); margin: 0 auto; }
.browse__head { max-width: 760px; margin: 0 auto clamp(34px, 4.6vh, 52px); text-align: center; }
.browse__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(34px, 4.6vh, 52px); }
.browse__empty { display: none; text-align: center; padding: 60px 0; font-family: var(--sans); color: var(--ink-soft); }

/* product grid: .sup-grid / .sup-card are shared with the single product
   page's Complete your stack, so they live in custom.css. Only the Shop by
   Goal filter's hide state is page-specific. */
.sup-card.is-hidden { display: none; }

/* ── connector: "Shop by goal" → "The OUTLIV standard" ──
   .browse gets the padding-bottom + relative positioning that
   .browse__connector anchors to. */
.browse { position: relative; padding-bottom: clamp(132px, 18vh, 210px); }
.browse__connector {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 1.5px; height: clamp(58px, 8.5vh, 96px); pointer-events: none;
	background: linear-gradient(180deg, rgba(24,58,48,0) 0%, rgba(24,58,48,0.32) 55%, rgba(24,58,48,0.55) 100%);
}

/* ═══════════════════ SECTION 4 — PROVEN / "THE OUTLIV STANDARD" ═══════════════════
   The grid reflows for 1–4 cards: a data-count attribute (set in
   smudgechild_supplements_proven_section()) drives the column count and
   max-width per count.
   Reveal is intentionally switched off for this section (see the .reveal
   override below); the reveal classes stay on the markup but don't
   animate. */
.proven {
	position: relative; isolation: isolate;
	background:
		linear-gradient(180deg, rgba(18,46,34,0.25) 0%, rgba(14,40,30,0.22) 100%),
		radial-gradient(135% 125% at 100% 100%, rgba(10,30,22,0.225) 0%, rgba(12,34,26,0.09) 38%, rgba(12,34,26,0) 64%),
		#2a4d42 url("../images/standard-gradient.jpg") center/cover no-repeat;
	padding: clamp(104px, 15vh, 158px) 0 clamp(72px, 11vh, 140px);
}
.proven__inner { width: min(1240px, 92vw); margin: 0 auto; }
.proven__title { text-align: center; margin: 0 auto clamp(40px, 6vh, 72px); max-width: 18ch; color: #fff; }

/* base/default grid — 4 cards */
.proven__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 34px); justify-content: center; }

/* fewer-than-4 cases: narrower columns, capped width, centred */
.proven__grid[data-count="1"] { grid-template-columns: minmax(0, 600px); max-width: 600px; margin: 0 auto; }
.proven__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 340px)); }
.proven__grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 340px)); }

.proven__item { text-align: center; position: relative; }
.proven__item::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
	border-radius: 10px;
	background: linear-gradient(0deg,
		rgba(255,255,255,0.26) 0%,
		rgba(255,255,255,0.13) 28%,
		rgba(255,255,255,0.05) 52%,
		rgba(255,255,255,0) 74%);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.65),
		inset 0 0 0 1px rgba(255,255,255,0.22);
	mix-blend-mode: screen;
}
.proven__media { aspect-ratio: 1 / 1; border-radius: 10px 10px 0 0; overflow: hidden; background: rgba(255,255,255,0.10); }
.proven__glass {
	border-radius: 0 0 10px 10px;
	border-top: 1px solid rgba(255,255,255,0.30);
	background: rgba(10,26,20,0.42);
	-webkit-backdrop-filter: blur(16px) saturate(135%);
	backdrop-filter: blur(16px) saturate(135%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
	padding: clamp(18px, 2.6vh, 28px) clamp(16px, 1.6vw, 22px) clamp(22px, 3.2vh, 32px);
}
/* no fade-in for this section or its cards */
.proven .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.proven__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.proven__h { font-family: var(--sans); font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.01em; color: #fff; margin: 0 0 12px; }
.proven__p { font-family: var(--sans); font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.6; color: #fff; margin: 0 auto; max-width: 30ch; text-wrap: pretty; }

.proven__connector { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 22px; height: clamp(78px, 11vh, 108px); pointer-events: none; z-index: 2; }
.proven__connector-line {
	position: absolute; left: 50%; top: 0; bottom: 26px; width: 1.5px; transform: translateX(-50%);
	background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.62) 55%, rgba(255,255,255,0.38) 100%);
}
.proven__connector-node {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 20px; height: 20px; border: 1.5px solid rgba(255,255,255,0.85); border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.proven__connector-node span { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ≤3-column cases keep 2-per-row down to tablet width instead of jumping
   straight to the 4-count breakpoint below (a 3-card row at 880px would
   otherwise squeeze to ~230px columns) */
@media (max-width: 880px) {
	.proven__grid { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 44px); }
	.proven__grid[data-count="1"] { grid-template-columns: minmax(0, 600px); }
	.proven__grid[data-count="2"],
	.proven__grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 340px)); }
}
@media (max-width: 460px) {
	.proven__grid,
	.proven__grid[data-count="2"],
	.proven__grid[data-count="3"] { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}
/* ── Shop by goal search (Lumart, 12 Nov) ── */
.browse__search {
  position: relative; display: block; width: min(460px, 100%); margin: 0 auto 16px;
  color: var(--ink-soft);
}
.browse__search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.browse__search input {
  width: 100%; box-sizing: border-box; height: 46px; margin: 0;
  padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: 16px; color: var(--ink); outline: none; box-shadow: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.18s ease;
}
.browse__search input::placeholder { color: var(--ink-faint, #8a8a8a); }
.browse__search input:focus { border-color: var(--accent); }
.browse__filters.is-searching .chip.is-active { color: var(--ink-soft); background: rgba(255,255,255,0.5); border-color: var(--line); }

/* Lumart, 12 Nov (phones). */
@media (max-width: 680px) {
  /* Bestsellers: three whole cards in view (centre + one each side); swipe
     or tap a side card to move, so the arrows go */
  .bsell { padding-top: 52px; }
  .bsell__head { margin-bottom: 28px; }
  .bsell__carousel { width: calc(100% - 20px); }
  .bsell__item { width: 35%; }
  .bsell__arrow { display: none; }
  .bsell-card__media { margin-bottom: 10px; }
  .bsell__item .bsell-card__media img { height: clamp(118px, 33vw, 150px); }
  .bsell-card__name { font-size: 14px; margin-bottom: 6px; }
  .bsell-card__now { font-size: 16px; }
  .bsell-card__member { font-size: 11px; }
  .bsell-card__price { margin-bottom: 10px; gap: 1px; }
  .bsell-card__cta { font-size: 12px; padding: 8px 12px; }
  .bsell__dots { margin-top: 22px; }

  /* Clinical-grade intro: the capsule video first, then tighter copy */
  .cintro__card { padding: 22px 22px 26px; }
  .cintro__card--media { gap: 4px; }
  .cintro__media { order: -1; max-width: min(190px, 52%); margin: -8px auto -6px; }
  .cintro__title { font-size: 28px; margin-bottom: 16px; text-align: center; }
  .cintro__list { gap: 8px; margin-bottom: 20px; }
  .cintro__list li { font-size: 15px; line-height: 1.45; padding-left: 22px; }
  .cintro__list li::before { width: 7px; height: 7px; }
  .cintro__actions { justify-content: center; }

  /* Shop by goal: smaller, tighter pills */
  .browse { padding-top: 56px; }
  .browse__head { margin-bottom: 22px; }
  .browse__filters { gap: 6px; margin-bottom: 26px; }
  .browse__filters .chip { font-size: 12.5px; padding: 6px 12px; }
  .browse__search input { height: 42px; }

  /* The OUTLIV standard: 2 × 2 */
  .proven__grid,
  .proven__grid[data-count="2"],
  .proven__grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 12px; }
  .proven__item { display: flex; flex-direction: column; }
  .proven__glass { flex: 1; padding: 12px 10px 14px; }
  .proven__h { font-size: 15px; margin-bottom: 6px; }
  .proven__p { font-size: 12px; line-height: 1.45; }
}
