/* ==========================================================================
   Monarch Biolabs — Shared Stylesheet (v2)
   Layout language inspired by a research-grade DTC peptide brand: dark navy
   hero + trust sections, blue accent, verified-batch data cards, pill
   badges, tabbed PDP. Content stays 100% dietary-supplement compliant
   (structure/function claims + FDA disclaimer) — only the visual system
   was mimicked.
   Edit the CSS custom properties below to re-theme the whole site.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --color-bg: #F2F6F3;
  --color-bg-alt: #E8EFEA;
  --color-surface: #FFFFFF;
  --color-text: #10192E;
  --color-text-muted: #5B6B85;
  --color-border: #E3E8F0;

  --color-navy: #0B1F1A;
  --color-navy-2: #0F2E26;
  --color-navy-3: #163B30;

  --color-accent: #2E7D5B;
  --color-accent-dark: #1F5C41;
  --color-accent-light: #E1F5EA;

  --color-success: #1E9E62;

  /* ---- Type ---- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* ---- Layout ---- */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 23, 48, 0.10);

  --ticker-height: 40px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; color: var(--color-text-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}
.eyebrow.on-dark { color: #7FE3B0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent-light); }
.btn-white { background: #fff; color: var(--color-navy); }
.btn-white:hover { box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.82rem; border-radius: 8px; }

/* ==========================================================================
   Trust ticker — EDIT ME
   Scrolling marquee of trust claims above the header. Edit the items in
   the HTML (#ticker-track) — duplicate the list once in the markup for a
   seamless loop; the animation handles the rest.
   ========================================================================== */
.ticker {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  height: var(--ticker-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 61;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: ticker-scroll 96s linear infinite;
  padding-left: 40px;
}
.ticker-track span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-track span::before { content: "✓"; color: #6FE3A0; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-navy);
}
.logo .logo-mark {
  width: 23px; height: 23px;
  display: block;
  flex-shrink: 0;
}

/* ---- Stacked wordmark lockup (icon + two-line MONARCH / BIOLABS) ---- */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}
.logo .logo-text { font-size: 0.8rem; letter-spacing: 0.01em; }
.logo-text .primary { color: var(--color-navy); }
.logo-text .secondary { color: var(--color-accent-dark); }
.footer-bottom__brand .logo-text .primary { color: #fff; }
.footer-bottom__brand .logo-text .secondary { color: #7FE3B0; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { color: var(--color-accent); background: var(--color-accent-light); }
.icon-btn svg { display: block; }
.icon-btn--cart { margin-right: 2px; }
.cart-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--color-surface);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .logo { white-space: nowrap; gap: 6px; }
  .logo .logo-mark { width: 20px; height: 20px; }
  .logo .logo-text { font-size: 0.7rem; }
  .nav-right { gap: 8px; }
  .nav-right .btn-sm { display: none; }
  .nav-wrap { height: 64px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-surface);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
  }
}

/* ==========================================================================
   Hero — dark, split layout, two-tone headline
   ========================================================================== */
.hero-dark {
  background: radial-gradient(120% 140% at 80% 0%, #163B30 0%, var(--color-navy) 55%, #071410 100%);
  color: #fff;
  padding: 76px 0 0;
  overflow: hidden;
}
.hero-dark-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-dark h1 { color: #fff; margin-bottom: 20px; }
.hero-dark h1 .accent { color: #5FD695; }
.hero-dark .subhead {
  color: rgba(255,255,255,0.68);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-visual {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #16332A 0%, #0B1F1A 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat .label {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .hero-dark-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Sections ---- */
.section { padding: 76px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-navy { background: var(--color-navy); color: rgba(255,255,255,0.85); }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head.text-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 32px;
}
.section-divider.on-dark { border-top-color: rgba(255,255,255,0.12); }

/* ---- Product grid & cards (v2) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-card__image {
  aspect-ratio: 1 / 0.92;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-navy);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  text-align: center;
  padding: 16px;
  position: relative;
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-badge::before { content: "✓"; color: #6FE3A0; }

.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__body h3 { font-size: 0.98rem; margin: 0; }
.product-card__benefit { font-size: 0.83rem; color: var(--color-text-muted); flex: 1; margin: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.pill {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 4px;
}
.product-card__price-label { font-size: 0.72rem; color: var(--color-text-muted); }
.product-card__price { font-weight: 800; font-size: 1.05rem; }
.card-arrow-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.card-arrow-btn:hover { background: var(--color-accent); color: #fff; }

/* Legacy alias so any old "badge" class references still render sanely */
.badge { display: inline-block; }

/* ---- Category section wrapper ---- */
.category-section + .category-section { margin-top: 8px; }

/* ---- Why Monarch ---- */
.why-block { max-width: 760px; }
.why-block p { font-size: 1.05rem; color: var(--color-text-muted); }

/* ==========================================================================
   Verification / trust section (dark, checklist + mock batch-data card)
   ========================================================================== */
.verify-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .verify-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.check-list li { display: flex; gap: 14px; }
.check-list .check-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(111, 227, 160, 0.15);
  color: #6FE3A0;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.check-list h4 { color: #fff; margin: 0 0 4px; font-size: 0.98rem; }
.check-list p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.88rem; }

.batch-card {
  background: var(--color-navy-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.batch-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.batch-card__header .logo-mini { color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em; }
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(111, 227, 160, 0.12);
  color: #6FE3A0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
}
.batch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.batch-row:last-of-type { border-bottom: none; }
.batch-row .label { color: rgba(255,255,255,0.55); }
.batch-row .value { color: #fff; font-weight: 700; }
.batch-row .value.accent { color: #5FD695; }
.batch-row .value.success { color: #6FE3A0; }
.batch-card__footer {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---- 4-col icon trust cards ---- */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .icon-card-grid { grid-template-columns: repeat(2, 1fr); } }
.icon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.icon-card .icon-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.icon-card h4 { font-size: 1rem; margin-bottom: 8px; }
.icon-card p { font-size: 0.86rem; margin: 0; }

/* ---- Full-width CTA banner ---- */
.cta-banner {
  background: linear-gradient(120deg, var(--color-accent) 0%, #163B30 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* ---- FAQ accordion (v2 — solid blue rows) ---- */
.accordion-group { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger::after {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9));
  background-size: 10px 1.5px, 1.5px 10px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-trigger::after { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: rgba(255,255,255,0.08); }
.accordion-panel-inner { padding: 4px 22px 20px; }
.accordion-panel-inner p { color: rgba(255,255,255,0.85); margin: 0; }
.accordion-item.open .accordion-panel { max-height: 400px; }

/* Light variant (used sparingly, e.g. nested contexts) */
.accordion-group.light .accordion-item { background: var(--color-surface); border: 1px solid var(--color-border); }
.accordion-group.light .accordion-trigger { color: var(--color-text); }
.accordion-group.light .accordion-trigger::after {
  border-color: var(--color-accent);
  background-image: linear-gradient(var(--color-accent), var(--color-accent)), linear-gradient(var(--color-accent), var(--color-accent));
}
.accordion-group.light .accordion-panel { background: var(--color-bg-alt); }
.accordion-group.light .accordion-panel-inner p { color: var(--color-text-muted); }

/* ---- Email capture / popup ---- */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 16, 34, 0.65);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.popup-overlay.visible { display: flex; }
.popup-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.popup-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
  color: var(--color-text-muted);
}
.popup-card h3 { font-size: 1.4rem; }
.email-form { display: flex; gap: 8px; margin-top: 20px; }
.email-form input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.email-form input[type="email"]:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.form-note { font-size: 0.75rem; margin-top: 10px; color: var(--color-text-muted); }

/* ---- Welcome popup (v2) — split image / offer card ---- */
.popup-card-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.popup-card-v2 .popup-close {
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-navy-2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
}

.popup-image {
  position: relative;
  /* ---- IMPORT YOUR PHOTO HERE ----
     Placeholder gradient below. To use a real photo, either add
     background-image: url("assets/your-photo.jpg"); (it will layer under
     the dark overlay gradient, so keep the overlay line below it), or
     replace this div in the HTML with an <img class="popup-image"> and add
     .popup-image::after for the overlay instead. */
  background-color: var(--color-navy);
  background-image:
    linear-gradient(180deg, rgba(11,31,26,0.15), rgba(11,31,26,0.85)),
    linear-gradient(160deg, var(--color-navy-3), var(--color-navy));
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.popup-image-overlay .eyebrow.on-dark { color: var(--color-accent-light); }
.popup-image-overlay h2 {
  color: #fff;
  font-size: 1.7rem;
  margin: 10px 0 0;
  line-height: 1.2;
}
.popup-image-overlay .accent-light { color: #7FE3AC; }

.popup-content {
  background: var(--color-navy);
  color: rgba(255,255,255,0.9);
  padding: 40px 34px;
  overflow-y: auto;
}
.popup-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  background: rgba(46, 125, 91, 0.25);
  border: 1px solid rgba(111, 227, 160, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.popup-content h3 {
  color: #fff;
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 0 0 14px;
}
.popup-content h3 .accent { color: #7FE3AC; }
.popup-subcopy {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.popup-discount-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(46, 125, 91, 0.18);
  border: 1px solid rgba(111, 227, 160, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.popup-discount-percent {
  font-size: 1.6rem;
  font-weight: 800;
  color: #7FE3AC;
}
.popup-discount-title { font-weight: 700; font-size: 0.88rem; color: #fff; }
.popup-discount-sub { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

.popup-form { display: flex; flex-direction: column; gap: 12px; }
.popup-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.9rem;
}
.popup-form input::placeholder { color: rgba(255,255,255,0.45); }
.popup-form input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.popup-form .btn { margin-top: 4px; }
.popup-fineprint {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .popup-card-v2 { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .popup-image { min-height: 180px; }
  .popup-content { padding: 30px 24px; }
}

/* ---- Footer (v2 — dark navy) ---- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  margin-top: 0;
}
@media (max-width: 480px) {
  .email-form { flex-direction: column; }
  .email-form .btn { width: 100%; }
}
/* ---- Footer bottom — brand mark + FDA disclaimer, Useful Links, and
   Contact (with the newsletter form underneath), followed by a full-width
   copyright bar. Full-bleed against a darker ground than the header/hero
   for separation — this is the only block left in .site-footer now that
   the old logo/description/social row above it has been removed. ---- */
.footer-bottom {
  background: #131a15;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
}
.footer-bottom__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-bottom__grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-bottom__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  margin-bottom: 18px;
}
.footer-bottom__brand .logo-mark { width: 16px; height: 16px; }
.footer-bottom__brand .logo-text { font-size: 0.56rem; letter-spacing: 0.01em; }
.footer-bottom__disclaimer p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}
.footer-bottom__disclaimer p:last-child { margin-bottom: 0; }
.footer-bottom__links h4,
.footer-bottom__contact h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.footer-bottom__links { display: flex; flex-direction: column; }
.footer-bottom__links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  padding: 6px 0;
}
.footer-bottom__links a:hover { color: #fff; }
.footer-bottom__contact a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom__contact a:hover { color: #fff; }
.footer-bottom__newsletter { margin-top: 28px; }
.footer-bottom__newsletter p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin: 0 0 14px;
}
.footer-bottom__contact .email-form { margin-top: 0; }
.footer-copyright-bar {
  background: var(--color-accent-dark);
  padding: 16px 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

/* ---- Breadcrumb / generic page header ---- */
.page-header {
  padding: 52px 0 30px;
  background: var(--color-navy);
  color: #fff;
}
.page-header p { color: rgba(255,255,255,0.6); max-width: 620px; }
.page-header h1 { color: #fff; }
.page-header .eyebrow { color: #7FE3B0; }
/* ---- About page — pillar list ---- */
.pillar-list {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
}
.pillar {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}
.pillar:first-child { padding-top: 8px; }
.pillar:last-child { border-bottom: none; }
.pillar-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar h3 { margin: 2px 0 8px; }
.pillar p { color: var(--color-text-muted); margin: 0; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb.on-dark { color: rgba(255,255,255,0.5); }
.breadcrumb.on-dark a { color: #7FE3B0; }

/* ==========================================================================
   PDP (v2)
   ========================================================================== */
.pdp-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: flex-start;
}
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; gap: 32px; } }

.pdp-left { position: sticky; top: calc(var(--header-height) + 24px); min-width: 0; }
@media (max-width: 900px) { .pdp-left { position: static; } }
.pdp-info { min-width: 0; }

.pdp-image {
  aspect-ratio: 1/0.95;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-navy);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-align: center;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

.pdp-price-row { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 20px; }
.pdp-price { font-size: 1.7rem; font-weight: 800; }

.info-bar {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-bar span.dot { opacity: 0.4; }

@media (max-width: 520px) {
  .info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .info-bar span.dot { display: none; }
}

.option-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.pill-selector { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; row-gap: 18px; }
.pill-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-surface);
  position: relative;
}
.pill-option.selected { border-color: var(--color-navy); background: var(--color-navy); color: #fff; }
.pill-option .save-flag {
  position: absolute;
  top: -10px; right: -8px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
}

/* ---- Size / increment selector (compact pills, e.g. capsule-count options) ---- */
.size-selector { gap: 8px; }
.size-selector .pill-option {
  padding: 10px 16px;
  min-width: 92px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pill-option__label { font-weight: 800; font-size: 0.92rem; }
.pill-option__sub { font-weight: 500; font-size: 0.68rem; opacity: 0.75; }
.size-selector .pill-option.selected .pill-option__sub { opacity: 0.85; }
.best-seller-flag {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.trust-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}
.trust-icon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.trust-icon-item .dot-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.checkout-row {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

/* ---- PDP tabs ---- */
.pdp-tabs {
  display: flex;
  gap: 8px;
  margin: 36px 0 24px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tab-btn {
  background: none;
  border: none;
  padding: 12px 4px;
  margin-right: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pdp-tab-btn.active { color: var(--color-navy); border-bottom-color: var(--color-accent); }
.pdp-tab-panel { display: none; }
.pdp-tab-panel.active { display: block; }

.benefit-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.benefit-list li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--color-text); }
.benefit-list li::before { content: "✓"; color: var(--color-accent); font-weight: 800; flex-shrink: 0; }

.supplement-facts {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-surface);
  margin-bottom: 20px;
}
.supplement-facts table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.supplement-facts th, .supplement-facts td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--color-border); }
.supplement-facts caption { text-align: left; font-weight: 800; padding-bottom: 10px; }

.why-formula {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 20px 0;
}

.reviews-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.stars { color: #C9962F; letter-spacing: 2px; }
.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  background: var(--color-surface);
}
.review-card .review-meta { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 8px; }

.sticky-cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 55;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  color: #fff;
}
@media (max-width: 700px) {
  .sticky-cart-bar.active { display: flex; }
}
.sticky-cart-bar .price { font-weight: 800; }

/* ---- FDA disclaimer callout ---- */
.disclaimer {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 24px;
}
.disclaimer.on-dark { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }

/* ---- Simple form (contact) ---- */
.simple-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.simple-form label { font-size: 0.85rem; font-weight: 700; display: block; margin-bottom: 6px; }
.simple-form input, .simple-form textarea, .simple-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--color-surface);
}
.simple-form textarea { min-height: 140px; resize: vertical; }

/* ---- Policy pages ---- */
.policy-content { max-width: 780px; margin: 0 auto; }
.policy-content h2 { margin-top: 36px; }
.policy-content ul { color: var(--color-text-muted); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.82rem; }
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 200;
}
.toast.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
body.no-scroll { overflow: hidden; }

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 300;
}
.cart-drawer-overlay.visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__header h3 { margin: 0; }
.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
  padding: 4px;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}
.cart-drawer__empty {
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 40px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-line__name { font-weight: 700; font-size: 0.92rem; }
.cart-line__price { color: var(--color-text-muted); font-size: 0.8rem; margin-top: 2px; }
.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}
.cart-line__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-line__total { font-weight: 700; }
.cart-line__remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-drawer__footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--color-border);
}
.cart-drawer__subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.cart-drawer__note {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-bottom: 14px;
}

/* ---- Free shipping progress bar, shown at the top of the cart drawer ---- */
.cart-drawer__shipping-bar {
  margin-bottom: 20px;
}
.shipping-bar__message {
  font-size: 0.82rem;
  margin: 0 0 8px;
  color: var(--color-text);
}
.shipping-bar__message strong { color: var(--color-accent); }
.shipping-bar__track {
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
}
.shipping-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* ---- Frequently Bought Together — cart drawer upsell section ---- */
.cart-drawer__bundle {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.cart-drawer__bundle-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}
.cart-drawer__bundle-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bundle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.bundle-card__image {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  padding: 4px;
}
.bundle-card__info { flex: 1; min-width: 0; }
.bundle-card__name {
  font-weight: 600;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bundle-card__price {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}
.bundle-card__add {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bundle-card__add:hover { background: var(--color-accent); color: #fff; }

/* ==========================================================================
   Search Overlay — full-screen takeover, mimics a minimal product-search UI:
   centered underlined input up top, results as an image+name+price grid.
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-surface);
  z-index: 250;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0.32s;
}
.search-overlay.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .search-overlay { transition: opacity 0.15s ease, visibility 0s linear 0.15s; transform: none; }
  .search-overlay.visible { transition: opacity 0.15s ease; }
}

.search-overlay-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}
.search-overlay-close:hover { border-color: var(--color-accent); color: var(--color-accent); }

.search-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}
@media (max-width: 600px) {
  .search-container { padding: 100px 20px 60px; }
}

.search-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 14px;
}
#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.3rem;
  font-family: inherit;
  font-weight: 500;
  background: transparent;
  color: var(--color-text);
}
#search-input::placeholder { color: var(--color-text-muted); }
.search-icon-btn { color: var(--color-text-muted); flex-shrink: 0; }

.search-results { margin-top: 6px; }
.search-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 32px 0 0;
  margin: 0;
}
.search-results-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent-dark);
  margin: 32px 0 22px;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}
@media (max-width: 600px) {
  .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
}
.search-result-card { display: block; text-decoration: none; color: inherit; }
.search-result-card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.search-result-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.search-result-card__price {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* ==========================================================================
   Account page
   ========================================================================== */
.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}
.account-tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.account-tab-btn.active { color: var(--color-accent-dark); border-bottom-color: var(--color-accent); }
.account-tab-panel { display: none; }
.account-tab-panel.active { display: block; }
.account-wrap { max-width: 440px; margin: 0 auto; }
.account-forgot { display: block; text-align: right; font-size: 0.82rem; margin-top: 8px; }

/* ==========================================================================
   Checkout page
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

.checkout-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 20px;
}
.checkout-section h3 { margin-top: 0; }

/* ---- Step indicator (Information / Shipping / Payment) ---- */
.checkout-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.checkout-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
}
.checkout-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.checkout-step-node.active .checkout-step-circle {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}
.checkout-step-node.done .checkout-step-circle {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}
.checkout-step-node.active .checkout-step-label { color: var(--color-text); }
.checkout-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.checkout-step-line {
  width: 90px;
  height: 2px;
  background: var(--color-border);
  margin: 17px 8px 0;
  transition: background 0.2s ease;
}
.checkout-step-line.done { background: var(--color-accent); }
@media (max-width: 560px) {
  .checkout-step-line { width: 32px; }
  .checkout-step-label { display: none; }
}

/* ---- Bordered card with a centered "── Title ──" heading, used for every
   panel on checkout (billing details, shipping, payment, order summary) ---- */
.checkout-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.checkout-card__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.checkout-card__title::before,
.checkout-card__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.checkout-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.checkout-step-actions .btn { flex: 0 0 auto; }

/* ---- Order summary item rows (thumbnail + qty badge + name + price) ---- */
.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.checkout-item-row:last-child { border-bottom: none; }
.checkout-item-row__qty {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-item-row__thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  padding: 4px;
}
.checkout-item-row__info { flex: 1; min-width: 0; }
.checkout-item-row__name {
  font-weight: 600;
  font-size: 0.88rem;
}
.checkout-item-row__price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.checkout-item-row__remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.checkout-item-row__remove:hover { color: #c0392b; }

/* ---- Promo / coupon code box ---- */
.promo-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.promo-box__row {
  display: flex;
  gap: 8px;
}
.promo-box__row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.85rem;
  background: var(--color-surface);
}
.promo-box__row input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.promo-box__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.promo-box__remove {
  background: none;
  border: none;
  color: var(--color-accent-dark);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 2px;
  flex-shrink: 0;
}
.promo-box__feedback {
  margin: 8px 0 0;
  font-size: 0.78rem;
  min-height: 1em;
}
.promo-box__feedback:empty { margin: 0; }
.promo-box__feedback.promo-feedback--success { color: var(--color-accent-dark); }
.promo-box__feedback.promo-feedback--error { color: #c0392b; }

/* ---- Shipping method radios, now living inside the persistent Order
   Summary rather than their own step panel ---- */
.checkout-shipment-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

/* ---- Ship-to-a-different-address checkbox ---- */
.checkout-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkout-checkbox-row input { width: 16px; height: 16px; accent-color: var(--color-accent); cursor: pointer; }
.checkout-checkbox-row--wrap {
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.checkout-checkbox-row--wrap input { margin-top: 3px; flex-shrink: 0; }
.checkout-checkbox-row--wrap a { color: var(--color-accent-dark); text-decoration: underline; }

/* ---- Scrollable terms summary shown above the agree-to-terms checkbox on
   the Payment step — full text lives on the real Terms page (linked below
   the box); this is a quick-reference preview. ---- */
.terms-preview {
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--color-bg-alt);
}
.terms-preview h4 {
  margin: 16px 0 4px;
  font-size: 0.85rem;
}
.terms-preview h4:first-child { margin-top: 0; }
.terms-preview p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---- Stacked full-width step actions (Continue on top, Back below) —
   mirrors a standard hosted multi-step checkout ---- */
.checkout-step-actions--stacked {
  flex-direction: column;
  align-items: stretch;
}
.checkout-step-actions--stacked .btn { width: 100%; }

.checkout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .checkout-form-row { grid-template-columns: 1fr; }
}
.checkout-form-row.three { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 480px) {
  .checkout-form-row.three { grid-template-columns: 1fr; }
}

/* ---- Billing details form — stacked, full-width fields (mirrors a
   standard hosted-checkout information step), consistent input styling
   throughout instead of unstyled browser defaults. ---- */
.checkout-billing-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 18px 0 6px;
}
.checkout-billing-form label:first-child { margin-top: 0; }
.checkout-billing-form .checkout-form-row label { margin-top: 0; }
.checkout-billing-form input,
.checkout-billing-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.checkout-billing-form input:focus,
.checkout-billing-form select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.checkout-billing-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23516b60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.checkout-summary {
  position: sticky;
  top: 20px;
}
.checkout-summary .disclaimer { margin-top: 4px; }
.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.checkout-summary-line.total {
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: none;
  padding-top: 16px;
}
.checkout-empty-note {
  padding: 8px 0 60px;
  text-align: left;
}

.empty-cart-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  color: var(--color-accent-dark);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 560px;
}

.empty-cart-banner__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.processor-slot {
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-accent-light);
}
.processor-slot h4 {
  margin-top: 0;
  color: var(--color-accent-dark);
}
.processor-slot code {
  background: rgba(15, 46, 38, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.processor-slot ul {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}
.shipping-option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ---- Order confirmation ---- */
.confirmation-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}
.confirmation-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Age verification gate — shown once per browser (localStorage-backed)
   before the site is usable. Sits above every other overlay (cart drawer,
   search, email popup) so it can never be covered or skipped. The
   html.age-gate-lock class is applied by an inline script at the very top
   of <body> (before anything else paints) so there's no flash of the site
   before the gate appears, then handed off to main.js's initAgeGate() for
   the actual confirm/decline interaction.
   ========================================================================== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 31, 26, 0.94);
}
html.age-gate-lock .age-gate { display: flex; }
html.age-gate-lock body { overflow: hidden; }

.age-gate__card {
  background: var(--color-surface);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  padding: 38px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.age-gate__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--color-text);
  margin-bottom: 24px;
}
.age-gate__logo .logo-mark { width: 16px; height: 16px; }
.age-gate__logo .logo-text { font-size: 0.56rem; letter-spacing: 0.01em; }
.age-gate h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.age-gate p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 26px;
}
.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.age-gate__decline { display: none; }
.age-gate--declined .age-gate__question,
.age-gate--declined .age-gate__actions { display: none; }
.age-gate--declined .age-gate__decline { display: block; }
.age-gate__fine-print {
  margin-top: 22px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.age-gate__fine-print a { color: var(--color-accent-dark); }
