/* ==========================================================================
   PEPVIDA redesign prototype
   Clinical-apothecary premium: cream base, single green accent,
   Hanken Grotesk display over Manrope body, strict 8px spacing rhythm.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Color */
  --green: #60A890;
  --green-deep: #3F846B;
  --green-dark: #2E5F4E;
  --ink: #2D2D2D;
  --ink-dark: #232826;
  --cream: #F7F5F0;
  --cream-tint: #F1EEE7;
  --white: #FFFFFF;
  --border: #DCE3DF;
  --muted: #6E7571;
  --muted-soft: #8A8F8B;
  --danger: #C0563E;
  --green-mist: #BFE3D5;
  --green-wash: color-mix(in srgb, var(--green) 8%, transparent);
  --focus-ring: color-mix(in srgb, var(--green) 15%, transparent);
  --tint: 14%;

  /* Type */
  --font-display: "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale, 8px base */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;
  --s16: 128px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --nav-h: 64px;

  /* Uppercase micro-label tracking */
  --track-caps: 0.14em;
  --track-caps-sm: 0.08em;

  /* Section rhythm: one value, used everywhere */
  --section-pad: var(--s8);

  --shadow-card: 0 1px 2px rgba(45, 45, 45, 0.04), 0 8px 24px rgba(45, 45, 45, 0.05);
  --shadow-lift: 0 2px 4px rgba(45, 45, 45, 0.06), 0 16px 32px rgba(45, 45, 45, 0.09);
  --shadow-vial: drop-shadow(0 16px 20px rgba(45, 45, 45, 0.18)) drop-shadow(0 4px 6px rgba(45, 45, 45, 0.10));
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --nav-h: 72px;
    --section-pad: var(--s12);
  }
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 48px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Clip the off-screen slide-out cart so it never adds horizontal scroll.
     'clip' (not 'hidden') does NOT create a scroll container, so the sticky nav
     and the testimonial carousel's own overflow are unaffected. */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---- Type scale ---------------------------------------------------------
   H1 56/60 · H2 40/44 · H3 26/32 · body 17/28 · small 14/20
   eyebrow 12/16 caps +0.14em. Mobile sizes step down via clamp.
--------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: clamp(38px, 3.2vw + 24px, 56px); line-height: 1.08; }
h2, .h2 { font-size: clamp(30px, 2vw + 20px, 40px); line-height: 1.1; }
h3, .h3 { font-size: clamp(22px, 1vw + 18px, 26px); line-height: 1.23; }
h4, .h4 { font-size: 18px; line-height: 26px; }

p { margin: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--green-deep);
}

.small { font-size: 14px; line-height: 20px; }
.lede { font-size: 18px; line-height: 30px; color: var(--muted); }

/* ---- Layout primitives -------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section-white { background: var(--white); }
.section-green { background: var(--green-deep); }

/* Section header: eyebrow, heading, optional lede. One pattern, everywhere. */
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head .eyebrow { margin-bottom: var(--s2); }
.section-head .lede { margin-top: var(--s2); max-width: 600px; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s6);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: var(--green-deep); border-color: var(--green-deep); background: var(--green-wash); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn-light { background: var(--white); color: var(--green-deep); }
.btn-light:hover { background: var(--cream); color: var(--green-dark); }

.btn-block { width: 100%; }

.text-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--green-deep);
  white-space: nowrap;
}
.text-link .arrow { display: inline-block; transition: transform 0.2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-card);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  height: var(--nav-h);
}

.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 26px; width: auto; }
@media (min-width: 768px) { .nav-logo img { height: 30px; } }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-deep); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--green); }

.nav-actions { display: flex; align-items: center; gap: var(--s2); }

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-icon-btn:hover { background: var(--green-wash); color: var(--green-deep); }

.nav-search { display: flex; align-items: center; position: relative; }
.nav-search-input {
  width: 0; opacity: 0; pointer-events: none; padding: 0; margin: 0;
  border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease, border-color 0.2s ease;
}
.nav-search.is-open .nav-search-input {
  width: min(200px, 42vw); opacity: 1; pointer-events: auto; padding: 10px var(--s2);
  border-color: var(--border); background: var(--white); margin-right: 4px;
}
.nav-login {
  display: none;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  padding: 0 var(--s1);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-login:hover { color: var(--green); }

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--green-deep);
  color: var(--white);
  font-size: 11px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
}

.nav-burger { display: inline-flex; }
.nav-burger .bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-burger .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-burger .bars span:nth-child(1) { top: 0; }
.nav-burger .bars span:nth-child(2) { top: 6px; }
.nav-burger .bars span:nth-child(3) { top: 12px; }
.nav-burger[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: var(--s2) 0 var(--s3); }
.mobile-menu a {
  display: block;
  padding: 12px var(--gutter);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--green-deep); }
.mobile-menu .menu-cta { padding: var(--s1) var(--gutter) var(--s1); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-login { display: inline-flex; }
  .nav-burger, .mobile-menu { display: none; }
  .mobile-menu.is-open { display: none; }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h) - 40px);
  display: flex;
  align-items: center;
  background: url("hero.jpg") no-repeat left center / cover;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 245, 240, 0.86) 0%, rgba(247, 245, 240, 0.46) 36%, rgba(247, 245, 240, 0) 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 460px; padding-block: var(--s8); }
.hero-copy .eyebrow { margin-bottom: var(--s3); }
.hero-copy h1 { max-width: 12ch; }
/* Big stacked hero title, "Optimize" in brand green (matches the original site). */
.hero-title {
  font-size: clamp(52px, 7vw + 10px, 82px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: none;
}
.hero-optimize { color: var(--green); }
/* Trust bubbles in the hero (matches the original site). */
.hero-pills { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-pill svg { color: var(--green); flex-shrink: 0; }
.hero-sub {
  margin-top: var(--s3);
  font-size: 18px;
  line-height: 30px;
  color: var(--ink);
  max-width: 34ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}
.hero-cta-more { display: none; } /* mobile-only secondary CTA (matches the original mobile hero) */
.hero-note {
  margin-top: var(--s3);
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .hero {
    min-height: calc(100dvh - var(--nav-h) - 32px);
    background-image: url("hero-mobile.jpg");
    background-position: center center;
    align-items: center;
  }
  .hero::before { display: none; }
  .hero-inner { display: flex; justify-content: center; }
  .hero-copy {
    max-width: none;
    width: min(66vw, 300px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--s4);
  }
  .hero-sub, .hero-pills, .hero-note { display: none; }
  .hero-title { color: var(--white); }
  .hero-optimize { color: var(--green); }
  .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .hero-ctas { flex-direction: column; align-items: center; gap: var(--s2); margin-top: var(--s3); width: 100%; }
  .hero-ctas .btn { min-width: 168px; }
  .hero-cta-more { display: inline-flex; color: var(--white); border-color: rgba(255, 255, 255, 0.85); background: transparent; }
  .hero-cta-more:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, 0.12); }
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: var(--s3) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s3);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
}
.trust-strip svg { flex-shrink: 0; color: var(--green-deep); }
@media (min-width: 768px) {
  .trust-strip ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

/* ---- Pepvida System cards -------------------------------------------------- */
.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
@media (min-width: 600px) { .system-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .system-grid { grid-template-columns: repeat(5, 1fr); } }

.system-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.system-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.system-num {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-soft);
  letter-spacing: var(--track-caps-sm);
}
.system-card h3 { font-size: 24px; line-height: 32px; }
.system-card .system-desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
  flex-grow: 1;
}
.system-products { display: flex; flex-wrap: wrap; gap: var(--s1); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--green));
  flex-shrink: 0;
}

.system-note {
  margin-top: var(--s4);
  padding: var(--s3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  background: var(--white);
}
.system-note p { font-size: 15px; line-height: 24px; color: var(--muted); max-width: 62ch; }
.system-note strong { color: var(--ink); }

/* ---- Product cards ----------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) {
  .product-name { font-size: 22px; line-height: 1.15; }
  .product-body { padding: var(--s2); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--accent, var(--green)) 7%, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--green);
  color: var(--ink);
}

.product-media {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent, var(--green)) var(--tint), var(--white));
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s2);
}
.product-media img {
  max-height: 90%;
  width: auto;
  max-width: 76%;
  object-fit: contain;
  /* Layered drop-shadow so the vial reads as a real 3D object grounded in the tile. */
  filter: var(--shadow-vial);
  transition: transform 0.3s ease;
}
.product-card:hover .product-media img { transform: translateY(-4px) scale(1.02); }

.badge {
  position: absolute;
  z-index: 1;
  top: var(--s2);
  left: var(--s2);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
}
.badge-green { background: var(--green-deep); }
.badge-oos { background: var(--muted); }

.product-body {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3);
  flex-grow: 1;
}
.product-tag {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--accent, var(--green-deep));
}
.product-name { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 700; }
.product-compound {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: var(--muted);
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
}
/* Out-of-stock product cards */
.product-card.is-oos .product-media img { filter: grayscale(1); opacity: 0.6; }
.product-card.is-oos .product-name { color: var(--muted); }
.product-price { font-size: 16px; line-height: 24px; font-weight: 600; }
.product-price .unit { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Sale pricing: muted strikethrough original before an accent sale price */
.price-was {
  font-weight: 500;
  color: var(--muted-soft);
  text-decoration: line-through;
}
.product-price .price-was { font-size: 14px; margin-right: 2px; }
.price-now { color: var(--green-deep); }

/* ---- Science section (green) --------------------------------------------------- */
.section-green { color: var(--white); }
.section-green h2, .section-green h3 { color: var(--white); }
.section-green .eyebrow { color: var(--green-mist); }

.science-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 960px) { .science-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); } }

.science-copy p { color: rgba(255, 255, 255, 0.88); margin-top: var(--s3); max-width: 52ch; }
.science-copy .btn { margin-top: var(--s4); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--s3);
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 2vw + 20px, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.stat-label {
  display: block;
  margin-top: var(--s1);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Steps ------------------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  counter-reset: step;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s3);
}
.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 44px;
  color: var(--green);
}
.step-card h3 { margin-top: var(--s2); font-size: 22px; line-height: 1.25; }
.step-card p { margin-top: var(--s1); font-size: 15px; line-height: 24px; color: var(--muted); }
.step-card a { font-weight: 600; }

/* ---- Story / standards -------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 960px) { .story-grid { grid-template-columns: 10fr 11fr; gap: var(--s8); } }

.story-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.story-copy .eyebrow { margin-bottom: var(--s2); }
.story-copy p { margin-top: var(--s3); color: var(--muted); max-width: 54ch; }

.standards-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}
@media (min-width: 480px) { .standards-list { grid-template-columns: 1fr 1fr; } }
.standards-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}
.standards-list svg { flex-shrink: 0; color: var(--green-deep); }

/* ---- CTA band ------------------------------------------------------------------------ */
.cta-band { background: var(--green-deep); color: var(--white); text-align: center; padding-block: var(--s6); }
.cta-band .tagline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw + 14px, 38px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.cta-band .cta-sub {
  margin: var(--s2) auto 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.85);
}
.signup-form {
  margin: var(--s3) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  max-width: 480px;
}
.signup-form .btn { height: 48px; padding-block: 0; }
.signup-form input {
  flex: 1 1 240px;
  height: 48px;
  padding: 0 var(--s2);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
}
.signup-form input::placeholder { color: rgba(255, 255, 255, 0.65); }
.signup-form input:focus-visible { outline-color: var(--white); }
.signup-msg { margin-top: var(--s2); font-size: 14px; line-height: 20px; color: var(--white); min-height: 20px; }
.cta-shop-link { display: none; }
.cta-shop-link a { color: var(--white); font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.cta-shop-link a:hover { border-bottom-color: var(--white); color: var(--white); }

/* Compact newsletter band (home): slim horizontal layout, no dead space */
.cta-compact { padding-block: var(--s4); }
.cta-compact .cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  text-align: left;
}
.cta-compact .cta-copy { flex: 1 1 300px; }
.cta-compact .tagline { font-size: clamp(20px, 1.4vw + 12px, 26px); }
.cta-compact .cta-sub { margin: var(--s1) 0 0; max-width: 52ch; font-size: 15px; line-height: 24px; }
.cta-compact .signup-form { margin: 0; flex: 1 1 320px; max-width: 460px; justify-content: flex-end; }
.cta-compact .signup-msg { margin: var(--s1) 0 0; min-height: 20px; text-align: right; }

/* ---- Footer ------------------------------------------------------------------------ */
.footer { background: var(--ink-dark); color: rgba(255, 255, 255, 0.75); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  padding-block: var(--s8) var(--s6);
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.8fr 1fr 1fr; gap: var(--s6); } }

.footer-brand img { height: 24px; width: auto; }
.footer-brand .footer-tagline {
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--white);
}
.footer-brand p { margin-top: var(--s2); font-size: 14px; line-height: 22px; max-width: 34ch; }
.footer-social { display: flex; gap: var(--s2); margin-top: var(--s3); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-social a:hover { color: var(--white); }

.footer h4 {
  margin: 0 0 var(--s2);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--white);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.75); }
.footer ul a:hover { color: var(--white); }

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--s3);
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--s3) var(--s4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 13px;
  line-height: 20px;
}
.pay-badges { display: flex; flex-wrap: wrap; gap: var(--s1); }
.pay-badges span {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps-sm);
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Product page ------------------------------------------------------------------- */
.breadcrumb {
  padding-block: var(--s3);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-deep); }
.breadcrumb .sep { margin-inline: var(--s1); color: var(--muted-soft); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

.pdp { padding-bottom: var(--section-pad); }
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: start;
}
@media (min-width: 960px) { .pdp-grid { grid-template-columns: 11fr 10fr; gap: var(--s8); } }

/* Gallery */
.gallery-main {
  position: relative;
  background: var(--cream-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }
.gallery-main img.contain { object-fit: contain; padding: var(--s6); }
.gallery-main img.is-fading { opacity: 0; }

.gallery-thumbs {
  margin-top: var(--s2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
}
.gallery-thumb {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-tint);
  aspect-ratio: 1 / 1;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb img.contain { object-fit: contain; padding: var(--s1); }
.gallery-thumb.is-active { border-color: var(--green-deep); box-shadow: 0 0 0 1px var(--green-deep); }

/* Buy column */
.pdp-info .eyebrow { color: var(--accent, var(--green-deep)); margin-bottom: var(--s2); }
.pdp-info h1 { font-size: clamp(40px, 3vw + 26px, 56px); }
.pdp-compound {
  margin-top: var(--s1);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-desc { margin-top: var(--s3); color: var(--muted); max-width: 50ch; }

.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.pdp-price { font-size: 28px; line-height: 32px; font-weight: 600; font-family: var(--font-body); }
.pdp-price.on-sale { color: var(--green-deep); }
.pdp-price-was {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--muted-soft);
  text-decoration: line-through;
}
.pdp-currency { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }

.option-label {
  display: block;
  margin: var(--s3) 0 var(--s1);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: var(--ink);
}
.option-label .option-value { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }

.variant-chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip {
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--accent, var(--green-deep)); }
.chip[aria-pressed="true"] {
  border-color: var(--accent, var(--green-deep));
  box-shadow: inset 0 0 0 1px var(--accent, var(--green-deep));
  color: var(--ink);
  font-weight: 600;
}

.buy-row {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
  flex-wrap: wrap;
}
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  height: 48px;
}
.qty button {
  width: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.qty button:hover { background: var(--cream); color: var(--green-deep); }
.qty input {
  width: 48px;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn-primary { flex: 1 1 220px; height: 48px; padding-block: 0; }

.pdp-trust {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: var(--s2) 0 0;
  display: grid;
  gap: 10px;
}
.pdp-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--muted); }
.pdp-trust svg { flex-shrink: 0; color: var(--green-deep); }

.pdp-ruo {
  margin-top: var(--s3);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* Credibility strip */
.cred-strip { border-block: 1px solid var(--border); background: var(--white); }
.cred-strip ul {
  list-style: none;
  margin: 0;
  padding: var(--s3) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}
@media (min-width: 768px) { .cred-strip ul { grid-template-columns: repeat(3, auto); justify-content: space-between; } }
.cred-strip li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 500; }
.cred-strip svg { flex-shrink: 0; color: var(--green-deep); }

/* Accordions */
.acc-group { max-width: 800px; }
.acc {
  border-bottom: 1px solid var(--border);
}
.acc:first-of-type { border-top: 1px solid var(--border); }
.acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--green-deep); }
.acc-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--green-deep);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-body { padding: 0 0 var(--s3); color: var(--muted); font-size: 16px; line-height: 26px; max-width: 62ch; }
.acc-body p + p { margin-top: var(--s2); }
.acc-body a { font-weight: 600; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { font-weight: 600; color: var(--ink); width: 40%; padding-right: var(--s2); }
.spec-table td { color: var(--muted); }

/* Pairs well with: reuse product-grid/product-card */

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

/* ---- Page banner (interior pages) ----------------------------------------- */
.page-banner {
  background: var(--green-deep);
  color: var(--white);
  padding-block: var(--s6);
}
.page-banner .eyebrow { color: var(--green-mist); margin-bottom: var(--s2); }
.page-banner h1 { color: var(--white); font-size: clamp(34px, 2.4vw + 20px, 48px); line-height: 1.1; }
.page-banner .banner-sub {
  margin-top: var(--s2);
  font-size: 17px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
}

/* ---- Shop: filter sidebar + grid ------------------------------------------- */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  align-items: start;
}
@media (min-width: 960px) { .shop-layout { grid-template-columns: 216px 1fr; gap: var(--s6); } }

.filter-title {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.filter-list {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.filter-btn {
  display: block;
  text-align: left;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: var(--green-deep); border-color: var(--green); background: var(--green-wash); }
.filter-btn[aria-pressed="true"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
  font-weight: 600;
}
@media (min-width: 960px) {
  .filter-list { display: grid; gap: 4px; }
  .filter-btn { width: 100%; border: none; border-radius: var(--radius); padding: 8px 12px; }
  .filter-btn:hover { background: var(--green-wash); }
  .filter-btn[aria-pressed="true"] { background: var(--cream); color: var(--green-deep); }
  .shop-sidebar { position: sticky; top: calc(var(--nav-h) + var(--s3)); }
}
.shop-count {
  margin-top: var(--s3);
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-soft);
}
.product-card-wrap.is-hidden { display: none; }

/* ---- Lab results: COA list -------------------------------------------------- */
.coa-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  max-width: 800px;
}
.coa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s2) var(--s3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.coa-row:hover { border-color: var(--green); box-shadow: var(--shadow-card); }
.coa-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent, var(--green)) var(--tint), var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
}
.coa-thumb img { max-height: 52px; width: auto; }
.coa-info { flex: 1 1 200px; min-width: 0; }
.coa-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink);
}
.coa-compound {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: var(--muted);
}
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---- Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: var(--s8); } }

.contact-copy p { margin-top: var(--s3); color: var(--muted); max-width: 52ch; }
.contact-channels {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.contact-channels li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 24px; color: var(--muted); }
.contact-channels svg { flex-shrink: 0; color: var(--green-deep); margin-top: 3px; }
.channel-label { display: block; font-weight: 600; color: var(--ink); }
.contact-channels a { font-weight: 600; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s3);
}
@media (min-width: 768px) { .form-card { padding: var(--s4); } }
.form-grid { display: grid; gap: var(--s3); }
.form-field label {
  display: block;
  margin-bottom: var(--s1);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-field input:hover, .form-field textarea:hover { border-color: var(--green); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; line-height: 20px; color: var(--muted); }
.form-msg { font-size: 14px; line-height: 20px; color: var(--green-deep); min-height: 20px; }

/* ---- Benefit / icon cards (affiliates, learn) ----------------------------------- */
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) var(--tint), var(--white));
  color: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Price options (one-time vs. resupply subscription) ------------------- */
.price-options { display: grid; gap: var(--s1); margin-top: 0; }
.price-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-option:hover { border-color: var(--accent, var(--green-deep)); }
.price-option.is-selected {
  border-color: var(--accent, var(--green-deep));
  box-shadow: inset 0 0 0 1px var(--accent, var(--green-deep));
}
.price-option input { margin: 5px 0 0; accent-color: var(--green-deep); flex-shrink: 0; }
.po-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.po-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink);
}
.po-note { font-size: 13px; line-height: 18px; color: var(--muted); }

/* Out-of-stock size chip */
.chip.is-oos { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.chip.is-oos:hover { border-color: var(--border); }

/* Secondary button in the buy row (Subscribe Now) */
.buy-row .btn-ghost { flex: 1 1 180px; height: 48px; padding-block: 0; }

/* ---- Footer newsletter + hours -------------------------------------------- */
.footer-hours { margin-top: var(--s2); font-size: 14px; line-height: 22px; }
.footer-hours strong { color: var(--white); }
.footer .signup-form { margin: 0; max-width: 320px; justify-content: flex-start; }
.footer .signup-form input {
  flex: 1 1 160px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.footer .signup-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer .signup-msg { margin-top: var(--s1); min-height: 20px; text-align: left; color: rgba(255, 255, 255, 0.75); }
.footer-disclaimer p + p { margin-top: var(--s2); }
.footer-disclaimer a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--white); }

/* ---- Legal pages (terms, privacy, refund policy) --------------------------- */
.legal { max-width: 800px; }
.legal .legal-meta { font-size: 14px; line-height: 22px; color: var(--muted-soft); margin-bottom: var(--s4); }
.legal h2 {
  font-size: 24px;
  line-height: 32px;
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal h3 { font-size: 18px; line-height: 26px; margin-top: var(--s3); }
.legal p { margin-top: var(--s2); color: var(--muted); }
.legal p strong { color: var(--ink); }
.legal ul { margin: var(--s2) 0 0; padding-left: 22px; color: var(--muted); display: grid; gap: 6px; }
.legal .legal-note {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}

/* ---- Shop-by-category cards (home) ------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 600px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--green); color: var(--ink); }
.cat-copy .eyebrow { margin-bottom: var(--s1); }
.cat-copy h3 { font-size: 26px; line-height: 32px; }
.cat-copy .text-link { display: inline-block; margin-top: var(--s2); }
.cat-media { flex-shrink: 0; width: 96px; }
.cat-media img { width: 100%; height: auto; filter: var(--shadow-vial); }

/* ---- FAQ group headings (learn) --------------------------------------------- */
.faq-group + .faq-group { margin-top: var(--s8); }

/* ---- Testimonials --------------------------------------------------------- */
.testi-carousel { position: relative; display: flex; align-items: center; gap: var(--s2); }
.testi-track {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--s1) var(--s1) var(--s2);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card { flex: 0 0 auto; width: 216px; scroll-snap-align: start; }
.testi-video {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--green) 22%, #fff), color-mix(in srgb, var(--green) 8%, #fff));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.testi-video .play-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
}
.testi-video .play-btn::after {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--green-deep);
}
.testi-meta { display: flex; margin-top: var(--s2); }
.testi-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--green) var(--tint), var(--white));
  border: 1px solid var(--border);
  color: var(--green-deep);
}
.testi-nav {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.testi-nav:hover { border-color: var(--green); color: var(--green-deep); background: color-mix(in srgb, var(--green) 8%, var(--white)); }
.testi-nav:disabled { opacity: 0.4; cursor: default; pointer-events: none; }
@media (max-width: 640px) {
  .testi-nav { display: none; }
  .testi-card { width: 168px; }
}

/* ==========================================================================
   WooCommerce bridge (theme-only additions, appended after the design CSS)
   Maps WooCommerce's generated markup (price del/ins, form.cart, notices)
   onto the design system above. No design rules are changed.
   ========================================================================== */

/* Accessible-only text (WordPress / WooCommerce standard class). Without
   WooCommerce's default stylesheet these spans would render visibly. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Price HTML from WooCommerce: <del> old price, <ins> sale price */
.product-price del,
.pdp-price-row del {
  font-weight: 500;
  color: var(--muted-soft);
  text-decoration: line-through;
}
.product-price del { font-size: 14px; margin-right: 2px; }
.product-price ins,
.pdp-price-row ins { text-decoration: none; color: var(--green-deep); }
.product-price .woocommerce-Price-amount { font-weight: 600; }
.pdp-price-row .price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  font-size: 28px;
  line-height: 32px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
}
.pdp-price-row .price del { font-size: 18px; line-height: 24px; }
.pdp-price-row .price del .woocommerce-Price-amount { font-weight: 500; }

/* Single product add-to-cart form (WooCommerce form.cart) styled as .buy-row */
.pdp-info form.cart {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
  flex-wrap: wrap;
  align-items: stretch;
}
.pdp-info form.cart .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  height: 48px;
}
.pdp-info form.cart .quantity .qty {
  width: 72px;
  border: none;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}
.pdp-info form.cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  flex: 1 1 220px;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.pdp-info form.cart .single_add_to_cart_button:hover { background: var(--green-deep); }
.pdp-info form.cart .single_add_to_cart_button.disabled,
.pdp-info form.cart .single_add_to_cart_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pdp-info form.cart .single_add_to_cart_button.disabled:hover { background: var(--green); }
.pdp-info form.cart .single_add_to_cart_button:active { transform: translateY(1px); }
.pdp-info .stock.out-of-stock { margin-top: var(--s3); font-weight: 600; color: var(--muted); }

/* WooCommerce notices (added to cart, errors) on brand — single source */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-deep);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  margin-left: auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover { background: var(--green-deep); color: var(--white); }

/* Generic WP page content (cart, checkout, my account, legal pages).
   The design resets p margins, so restore readable rhythm inside content. */
.entry-content > * + * { margin-top: var(--s2); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: var(--s4); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; color: var(--muted); }
.entry-content p { color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }

/* WooCommerce cart / checkout / account basics on brand */
.woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); text-align: left; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--green-deep); color: var(--white); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 12px var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--white);
}

/* Home best sellers: full product line on desktop, first 3 cards on mobile.
   The "See all products" button only appears on mobile, where the grid is
   trimmed so the testimonials section stays a short scroll away. */
.products-cta { display: none; }
@media (max-width: 767px) {
  #products .product-grid > *:nth-child(n+5) { display: none; }
  .products-cta { display: block; }
}

/* ============================================================
   WooCommerce Cart + Checkout — Pepvida brand restyle
   ============================================================ */
/* ---------- CART ---------- */
.woocommerce-cart table.cart {
  border: 1px solid var(--border); border-radius: var(--radius-lg); border-collapse: separate;
  border-spacing: 0; overflow: hidden; background: var(--white); width: 100%; margin-bottom: var(--s3);
}
.woocommerce-cart table.cart thead th {
  background: var(--cream-tint); font-family: var(--font-body); font-weight: 600; text-align: left;
  padding: var(--s2) var(--s3); font-size: 12px; letter-spacing: var(--track-caps-sm); text-transform: uppercase; color: var(--muted);
}
.woocommerce-cart table.cart td { padding: var(--s2) var(--s3); vertical-align: middle; border-top: 1px solid var(--border); }
.woocommerce-cart table.cart td.product-price, .woocommerce-cart table.cart td.product-subtotal { text-align: right; }
.woocommerce-cart table.cart img { width: 64px; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.woocommerce-cart .product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce-cart .product-name a:hover { color: var(--green-deep); }
.woocommerce-cart .product-name .variation, .woocommerce-cart .product-name dl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.woocommerce-cart a.remove { color: var(--muted) !important; font-size: 22px; line-height: 1; }
.woocommerce-cart a.remove:hover { color: var(--danger) !important; background: transparent !important; }
.woocommerce .quantity input.qty {
  width: 72px; height: 48px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; font-family: var(--font-body); font-size: 16px; background: var(--white);
}
/* cart actions row: coupon inline (fixes the giant button) + update on the right */
.woocommerce-cart td.actions { background: var(--cream-tint); padding: 16px 18px; }
.woocommerce-cart td.actions .coupon { display: flex; gap: 8px; align-items: center; float: none; margin: 0; }
.woocommerce-cart td.actions .coupon label { display: none; }
.woocommerce-cart td.actions .coupon .input-text {
  width: auto; min-width: 200px; height: 48px; padding: 0 var(--s2); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 0; background: var(--white); font-family: var(--font-body); font-size: 16px;
}
.woocommerce-cart td.actions .coupon .button {
  height: 48px; padding: 0 22px; border-radius: var(--radius-pill); background: var(--white); color: var(--ink);
  border: 1px solid var(--border); font-weight: 600; font-size: 15px; line-height: 20px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; transition: border-color 0.2s ease, color 0.2s ease;
}
.woocommerce-cart td.actions .coupon .button:hover { border-color: var(--green); color: var(--green-deep); }
.woocommerce-cart td.actions button[name="update_cart"] {
  float: right; height: 48px; background: var(--ink); color: var(--white); border: 0; border-radius: var(--radius-pill);
  padding: 0 24px; font-weight: 600; font-size: 15px; line-height: 20px; cursor: pointer;
  display: inline-flex; align-items: center; transition: background-color 0.2s ease;
}
.woocommerce-cart td.actions button[name="update_cart"]:hover:not([disabled]) { background: var(--ink-dark); }
.woocommerce-cart td.actions button[name="update_cart"][disabled] { opacity: .5; }
/* cart totals card */
.cart_totals { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s3); box-shadow: var(--shadow-card); }
.cart_totals h2 { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--s2); font-size: 20px; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td { padding: 12px 0; border-top: 1px solid var(--border); text-align: left; font-family: var(--font-body); }
.cart_totals table th { font-weight: 600; color: var(--muted); }
.cart_totals table td { text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total .amount { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.cart_totals .order-total .amount { color: var(--green-deep); }
.wc-proceed-to-checkout { padding-top: var(--s2) !important; }
.wc-proceed-to-checkout a.checkout-button {
  display: block; text-align: center; background: var(--green); color: var(--white) !important; padding: 14px; line-height: 20px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 16px; text-decoration: none; font-family: var(--font-body);
  transition: background-color 0.2s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover { background: var(--green-deep); }

/* ---------- CHECKOUT ---------- */
.woocommerce-checkout h3, .woocommerce-checkout #order_review_heading {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: var(--s6); margin-bottom: var(--s2);
}
.woocommerce-checkout h3:first-child, .woocommerce-billing-fields > h3:first-child, .woocommerce-checkout #customer_details h3:first-child { margin-top: 0; }
.woocommerce form .form-row label { font-weight: 600; font-size: 13px; line-height: 20px; letter-spacing: var(--track-caps-sm); text-transform: uppercase; margin-bottom: 6px; display: block; color: var(--ink); }
.woocommerce-checkout .select2-container--default .select2-selection--single {
  padding: 12px var(--s2); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); background: var(--white); color: var(--ink); height: auto;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 24px; padding: 0; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--focus-ring);
}
#order_review {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s3); box-shadow: var(--shadow-card);
}
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td {
  padding: 12px 0; border-bottom: 1px solid var(--border); text-align: left; font-family: var(--font-body);
}
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table td.product-total { text-align: right; }
.woocommerce-checkout-review-order-table .cart_item .product-name { font-weight: 600; color: var(--ink); }
.woocommerce-checkout-review-order-table .wc-item-meta, .woocommerce-checkout-review-order-table .wc-item-meta li { font-size: 13px; color: var(--muted); margin: 3px 0 0; list-style: none; padding: 0; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total .amount { font-family: var(--font-display); font-weight: 700; }
.woocommerce-checkout-review-order-table .order-total .amount { color: var(--green-deep); font-size: 20px; }
#payment div.payment_box::before { display: none; }
#payment #place_order {
  width: 100%; background: var(--green); color: var(--white); border: 0; border-radius: var(--radius-pill);
  padding: 14px; line-height: 20px; font-weight: 700; font-size: 16px; cursor: pointer; margin-top: var(--s2); font-family: var(--font-body);
  transition: background-color 0.2s ease;
}
#payment #place_order:hover { background: var(--green-deep); }
/* Tighten the top of the cart/checkout (the generic .section adds 96px) */
.woocommerce-cart .section, .woocommerce-checkout .section { padding-top: var(--s6); }
/* coupon toggle on checkout: clean beige CTA bar (no green accent stripe),
   with breathing room before the billing/order columns below it */
.woocommerce-form-coupon-toggle { margin-bottom: var(--s4); }
.woocommerce-form-coupon-toggle .woocommerce-info {
  margin-top: 0;
  background: var(--cream-tint);
  border: 1px solid var(--border);
}
.woocommerce form.checkout_coupon.woocommerce-form-coupon {
  border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s2); background: var(--white);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4);
}
.woocommerce form.checkout_coupon > p:not(.form-row) { flex: 1 0 100%; margin: 0; font-size: 14px; color: var(--muted); }
.woocommerce form.checkout_coupon .form-row { float: none; width: auto; margin: 0; padding: 0; }
.woocommerce form.checkout_coupon .form-row-first { flex: 1 1 auto; min-width: 0; }
.woocommerce form.checkout_coupon .form-row-last { flex: 0 0 auto; }
.woocommerce form.checkout_coupon input.input-text { width: 100%; margin: 0; }
.woocommerce form.checkout_coupon .clear { display: none; }
.checkout_coupon .button { background: var(--green); color: var(--white); border-radius: var(--radius-pill); padding: 0 22px; height: 48px; border: 0; display: inline-flex; align-items: center; white-space: nowrap; }

/* Checkout two-column layout (WooCommerce's own layout CSS is dequeued).
   Floats, not grid: the heading + review are separate siblings that must
   stack in the right column, which grid auto-placement mishandles. */
@media (min-width: 960px) {
  .woocommerce-checkout form.checkout { display: block; }
  .woocommerce-checkout form.checkout::after { content: ""; display: table; clear: both; }
  .woocommerce-checkout #customer_details { float: left; width: 55%; }
  .woocommerce-checkout #order_review_heading { float: right; width: 41%; clear: right; margin-top: 0; }
  .woocommerce-checkout #order_review { float: right; width: 41%; clear: right; }
}
/* Field rhythm (WooCommerce's form spacing is in the dequeued stylesheet) */
.woocommerce .form-row { margin: 0 0 var(--s2); }
.woocommerce .form-row:last-child { margin-bottom: 0; }
.woocommerce form .form-row-first { float: left; width: 48%; }
.woocommerce form .form-row-last { float: right; width: 48%; }
.woocommerce form .form-row-wide, .woocommerce form p.form-row:not(.form-row-first):not(.form-row-last) { clear: both; }
.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.woocommerce-billing-fields, .woocommerce-account-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields { margin-bottom: var(--s3); }
.woocommerce-additional-fields, .woocommerce-shipping-fields { clear: both; }
.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3 { margin-top: 0; margin-bottom: var(--s3); }
/* "Ship to a different address?" toggle spacing */
.woocommerce-shipping-fields h3 label, #ship-to-different-address label { display: inline-flex; align-items: center; gap: var(--s1); font-weight: 700; }
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row .select2-container { margin-top: 0; }

/* Cart two-column layout on desktop */
@media (min-width: 960px) {
  .woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); align-items: start; }
  .woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
  .woocommerce-cart .cart-collaterals { grid-column: 2; width: 100%; }
  .woocommerce-cart .cart-collaterals .cross-sells { display: none; }
}
.woocommerce-cart .cart-collaterals { max-width: 420px; }

@media (max-width: 767px) {
  .woocommerce-cart td.actions .coupon { flex-wrap: wrap; }
  .woocommerce-cart td.actions .coupon .input-text { min-width: 0; flex: 1; }
  .woocommerce-cart td.actions button[name="update_cart"] { float: none; width: 100%; margin-top: 12px; }
  /* Stacked-card cart rows (Woo's responsive table CSS is dequeued) */
  .woocommerce-cart table.cart thead { display: none; }
  .woocommerce-cart table.cart, .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr, .woocommerce-cart table.cart td { display: block; width: 100%; }
  .woocommerce-cart table.cart tr { border-top: 1px solid var(--border); padding: var(--s1) 0; }
  .woocommerce-cart table.cart td { padding: 8px var(--s2); border-top: 0; text-align: right; }
  .woocommerce-cart table.cart td::before { content: attr(data-title); float: left; font-weight: 600; color: var(--muted); }
  .woocommerce-cart table.cart td.product-remove,
  .woocommerce-cart table.cart td.product-thumbnail,
  .woocommerce-cart table.cart td.actions { text-align: left; }
  .woocommerce-cart table.cart td.product-remove::before,
  .woocommerce-cart table.cart td.product-thumbnail::before,
  .woocommerce-cart table.cart td.actions::before { content: none; }
  .woocommerce-cart table.cart td.product-thumbnail { width: auto; }
}

/* ---------- Slide-out cart drawer ---------- */
.pv-cart-overlay { position: fixed; inset: 0; background: rgba(45,45,45,.42); opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 998; }
.pv-cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--white); box-shadow: -8px 0 44px rgba(45,45,45,.16); transform: translateX(100%); visibility: hidden; transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear .32s; z-index: 999; display: flex; flex-direction: column; }
body.pv-cart-open { overflow: hidden; }
body.pv-cart-open .pv-cart-overlay { opacity: 1; visibility: visible; }
body.pv-cart-open .pv-cart-drawer { transform: translateX(0); visibility: visible; transition: transform .32s cubic-bezier(.4,0,.2,1); }
.pv-cart-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); }
.pv-cart-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.pv-cart-close { background: none; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin-right: -12px; color: var(--muted); cursor: pointer; padding: 0; transition: color 0.2s ease; }
.pv-cart-close:hover { color: var(--ink); }
.pv-cart-body { flex: 1; overflow-y: auto; padding: 0 var(--s3) var(--s3); }
.pv-cart-body .woocommerce-mini-cart__empty-message { color: var(--muted); padding: 40px 0; text-align: center; }
.pv-cart-body ul.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.pv-cart-body ul.woocommerce-mini-cart li.woocommerce-mini-cart-item { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); position: relative; }
.pv-cart-body ul.woocommerce-mini-cart li img { width: 56px; height: auto; border-radius: var(--radius); border: 1px solid var(--border); order: -1; margin: 0 !important; float: none !important; }
.pv-cart-body ul.woocommerce-mini-cart li a:not(.remove) { font-weight: 600; color: var(--ink); text-decoration: none; display: block; padding-right: 22px; }
.pv-cart-body ul.woocommerce-mini-cart li a:not(.remove):hover { color: var(--green-deep); }
.pv-cart-body .quantity { color: var(--muted); font-size: 13px; }
.pv-cart-body li a.remove_from_cart_button { position: absolute; top: 16px; right: 0; color: var(--muted) !important; font-size: 18px; text-decoration: none; line-height: 1; transition: color 0.2s ease; }
.pv-cart-body li a.remove_from_cart_button:hover { color: var(--danger) !important; }
.pv-cart-body .woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; border-top: 1px solid var(--border); border-bottom: 0; margin-top: 6px; }
.pv-cart-body .woocommerce-mini-cart__total .amount { color: var(--green-deep); }
.pv-cart-body .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 8px 0 0; }
.pv-cart-body .woocommerce-mini-cart__buttons a { display: block; text-align: center; padding: 14px; line-height: 20px; border: 1px solid transparent; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; font-family: var(--font-body); transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.pv-cart-body .woocommerce-mini-cart__buttons a:not(.checkout) { background: var(--white); border-color: var(--border); color: var(--ink); }
.pv-cart-body .woocommerce-mini-cart__buttons a.checkout { background: var(--green); color: var(--white); }
.pv-cart-body .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--green-deep); }

/* ---------- Mini-cart drawer: reference layout ---------- */
.pv-cart-count-label { color: var(--muted); font-weight: 600; font-size: 15px; }
.pv-mc-list { margin: 0; padding: 0; list-style: none; }
.pv-cart-body ul.woocommerce-mini-cart li.pv-mc-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); position: relative; }
.pv-mc-item .pv-mc-thumb { flex: none; display: block; }
.pv-mc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-cart-body ul.woocommerce-mini-cart li.pv-mc-item a.pv-mc-name { font-weight: 600; color: var(--ink); text-decoration: none; padding-right: 44px; line-height: 1.3; }
.pv-mc-item a.pv-mc-name:hover { color: var(--green-deep); }
.pv-mc-unit { color: var(--ink); font-size: 14px; margin-top: 2px; }
.pv-mc-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pv-mc-meta p { margin: 0; }
.pv-mc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pv-mc-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; background: var(--white); transition: opacity 0.2s ease; }
.pv-mc-qty .pv-qty { border: 0; background: none; width: 44px; height: 44px; font-size: 16px; color: var(--ink); cursor: pointer; line-height: 1; padding: 0; transition: color 0.2s ease; }
.pv-mc-qty .pv-qty:hover { color: var(--green-deep); }
.pv-mc-qty .pv-qty-input { width: 30px; height: 44px; border: 0; text-align: center; background: none; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.pv-mc-price { text-align: right; font-weight: 700; white-space: nowrap; }
.pv-mc-price del { color: var(--muted); font-weight: 500; font-size: 13px; margin-right: 6px; }
.pv-mc-price .pv-mc-now { color: var(--ink); }
.pv-cart-body ul.woocommerce-mini-cart li.pv-mc-item a.pv-mc-remove { position: absolute; top: 3px; right: -13px; color: var(--muted); background: none; padding: 13px; line-height: 1; transition: color 0.2s ease; }
.pv-mc-item a.pv-mc-remove:hover { color: var(--danger); }
.pv-mc-foot { padding-top: 4px; }
.pv-mc-promo { padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.pv-mc-promo a.js-pv-promo-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--green-deep); font-weight: 600; font-size: 14px; text-decoration: none; }
.pv-mc-promo a.js-pv-promo-toggle:hover { text-decoration: underline; }
.pv-mc-promo-form { display: flex; gap: 8px; margin-top: 12px; }
.pv-mc-promo-form input { flex: 1 1 auto; min-width: 0; padding: 10px var(--s2); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 16px; }
.pv-mc-promo-form button { flex: 0 0 auto; padding: 10px 18px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: var(--white); font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease; }
.pv-mc-promo-form button:hover { background: var(--ink-dark); }
.pv-mc-promo-form button[disabled] { opacity: 0.5; cursor: default; }
.pv-mc-applied { margin-top: 10px; font-size: 13px; color: var(--green-deep); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-mc-coupon-remove { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: var(--radius-pill); transition: color 0.2s ease, background-color 0.2s ease; }
.pv-mc-coupon-remove:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--white)); }
.pv-mc-total { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.pv-mc-total-amt { color: var(--green-deep); }
.pv-mc-note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.pv-mc-buttons { display: flex; flex-direction: column; gap: 10px; }
.pv-mc-buttons a { display: block; text-align: center; padding: 14px; line-height: 20px; border: 1px solid transparent; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; font-family: var(--font-body); font-size: 15px; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.pv-mc-buttons a.checkout { background: var(--green); color: var(--white); }
.pv-mc-buttons a.checkout:hover { background: var(--green-deep); }
.pv-mc-buttons a.viewcart { background: var(--white); border-color: var(--border); color: var(--ink); }
.pv-mc-buttons a.viewcart:hover { border-color: var(--green); color: var(--green-deep); }
.pv-mc-secure { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 13px; margin: 16px 0 4px; }

.pv-mc-promo-form[hidden] { display: none; }

/* ---------- Checkout "Your order" review: fix oversized text ---------- */
#order_review table.shop_table th,
#order_review table.shop_table td,
#order_review .woocommerce-checkout-review-order-table th,
#order_review .woocommerce-checkout-review-order-table td {
  font-size: 15px; line-height: 1.5; font-family: var(--font-body); font-weight: 400;
}
#order_review .woocommerce-checkout-review-order-table thead th {
  font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-caps-sm); color: var(--muted); font-weight: 600;
}
#order_review .woocommerce-checkout-review-order-table .product-name { font-weight: 600; color: var(--ink); }
#order_review .woocommerce-checkout-review-order-table .product-total,
#order_review .woocommerce-checkout-review-order-table td.product-total { text-align: right; font-weight: 600; white-space: nowrap; }
#order_review .woocommerce-checkout-review-order-table .wc-item-meta,
#order_review .woocommerce-checkout-review-order-table .wc-item-meta li { font-size: 13px; color: var(--muted); font-weight: 400; margin: 3px 0 0; }
#order_review .woocommerce-checkout-review-order-table .cart-subtotal th,
#order_review .woocommerce-checkout-review-order-table .cart-subtotal td,
#order_review .woocommerce-checkout-review-order-table tfoot th,
#order_review .woocommerce-checkout-review-order-table tfoot td { font-size: 15px; }
#order_review .woocommerce-checkout-review-order-table .order-total th { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
#order_review .woocommerce-checkout-review-order-table .order-total .amount { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--green-deep); }

/* cart totals: same sane sizing */
.cart_totals table th, .cart_totals table td { font-size: 15px; font-family: var(--font-body); }
.cart_totals .order-total th, .cart_totals .order-total .amount { font-size: 18px; }

/* ---------- Pastel accent thumbnails (cart + drawer) ---------- */
.pv-cart-body ul.woocommerce-mini-cart li.pv-mc-item .pv-mc-thumb { background: color-mix(in srgb, var(--accent, var(--green)) var(--tint), var(--white)); border-radius: var(--radius); padding: 5px; display: flex; align-items: center; justify-content: center; flex: none; }
.pv-cart-body ul.woocommerce-mini-cart li.pv-mc-item .pv-mc-thumb img { width: 54px; height: 54px; object-fit: contain; border: 0; border-radius: 0; margin: 0; float: none; }
.woocommerce-cart table.cart .pv-cart-thumb { display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent, var(--green)) var(--tint), var(--white)); border-radius: var(--radius); padding: 8px; }
.woocommerce-cart table.cart .pv-cart-thumb img { display: block; width: 56px; height: auto; border: 0; border-radius: 0; }

/* ---------- Checkout payment box: white, smaller label ---------- */
#payment { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s3); margin-top: var(--s2); }
#payment ul.payment_methods { border: 0; margin: 0; padding: 0; }
#payment ul.payment_methods li { list-style: none; padding: 2px 0; }
#payment ul.payment_methods li label, #payment .wc_payment_method > label { font-size: 15px; font-weight: 600; color: var(--ink); display: inline-block; }
#payment div.payment_box { background: var(--cream); border-radius: var(--radius); font-size: 14px; color: var(--muted); margin-top: 8px; }
#payment div.payment_box p { font-size: 14px; margin: 0; }

/* ---------- Cart actions row: white not beige ---------- */
.woocommerce-cart td.actions { background: var(--white); border-top: 1px solid var(--border); }

/* ---------- Shop: quick add to cart ---------- */
.product-card-wrap { position: relative; display: flex; flex-direction: column; }
.product-card-wrap > .product-card { flex: 1 1 auto; }
.pv-quick-add { position: absolute; top: var(--s2); right: var(--s2); z-index: 4; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: var(--shadow-card); opacity: 0; transform: translateY(-4px) scale(.92); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.product-card-wrap:hover .pv-quick-add { opacity: 1; transform: translateY(0) scale(1); }
.pv-quick-add:hover { background: var(--green-deep); }
.pv-quick-add.loading { opacity: .7; pointer-events: none; }
.pv-quick-add.added { opacity: 1; background: var(--ink); }
.pv-quick-add.added svg { display: none; }
.pv-quick-add.added::after { content: "\2713"; font-size: 18px; font-weight: 700; line-height: 1; }
.product-card-wrap .added_to_cart { display: none !important; }
@media (hover: none) { .pv-quick-add { opacity: 1; transform: none; } }

/* Robust drawer item styling scoped to the stable .pv-cart-drawer (survives WooCommerce fragment churn) */
.pv-cart-drawer li.pv-mc-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); position: relative; }
.pv-cart-drawer li.pv-mc-item .pv-mc-thumb { background: color-mix(in srgb, var(--accent, var(--green)) var(--tint), var(--white)); border-radius: var(--radius); padding: 5px; display: flex; align-items: center; justify-content: center; flex: none; }
.pv-cart-drawer li.pv-mc-item .pv-mc-thumb img { width: 54px; height: 54px; object-fit: contain; border: 0; border-radius: 0; margin: 0; float: none; }
.pv-cart-drawer li.pv-mc-item a.pv-mc-name { font-weight: 600; color: var(--ink); text-decoration: none; padding-right: 28px; line-height: 1.3; }
.pv-cart-drawer li.pv-mc-item a.pv-mc-remove { position: absolute; top: 3px; right: -13px; color: var(--muted); background: none; padding: 13px; line-height: 1; transition: color 0.2s ease; }
.pv-cart-drawer li.pv-mc-item a.pv-mc-remove:hover { color: var(--danger); }
.pv-cart-drawer li.pv-mc-item a.pv-mc-name { padding-right: 44px; }
/* No inner scroll/clip here — .pv-cart-body owns scrolling; clipping here
   would cut the promo input's focus ring, which sits flush to this edge. */
.pv-cart-drawer .widget_shopping_cart_content { overflow: visible; }

/* Cart page remove: trash icon */
.woocommerce-cart td.product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); font-size: 0; line-height: 1; border-radius: var(--radius-pill); transition: color 0.2s ease, background-color 0.2s ease; }
.woocommerce-cart td.product-remove a.remove:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--white)); }

/* Cart page: right-size product name, tidy subscription meta, tighten product column */
.woocommerce-cart table.cart td.product-name,
.woocommerce-cart table.cart td.product-name a { font-size: 16px; font-weight: 600; line-height: 1.35; }
.woocommerce-cart table.cart td.product-name a { color: var(--ink); text-decoration: none; }
.woocommerce-cart table.cart td.product-name a:hover { color: var(--green-deep); }
.woocommerce-cart td.product-name .variation { display: block; margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.woocommerce-cart td.product-name .variation dt,
.woocommerce-cart td.product-name .variation dd { display: inline; margin: 0; padding: 0; float: none; font-weight: 400; }
.woocommerce-cart td.product-name .variation dt { font-weight: 600; }
.woocommerce-cart td.product-name .variation dt::after { content: ": "; white-space: pre; }
.woocommerce-cart td.product-name .variation dd p { display: inline; margin: 0; }
.woocommerce-cart th.product-thumbnail, .woocommerce-cart td.product-thumbnail { width: 92px; }
.woocommerce-cart th.product-name, .woocommerce-cart td.product-name { padding-left: 8px; }

/* WooCommerce already adds the colon after the meta key; drop the duplicate */
.woocommerce-cart td.product-name .variation dt::after { content: ""; }

.pv-mc-disc-inline { color: var(--green-deep); font-weight: 600; font-size: 13px; }

/* ============================================================
   Mobile polish (2026-07-16)
   1) Root-level horizontal-overflow clip — catches the fixed
      cart drawer/menu that body{overflow-x:clip} cannot (fixed
      elements are clipped by the root, not by body). Uses clip,
      not hidden, so position:sticky nav is unaffected.
   2) Kill sticky :hover on touch devices — tapping a card on iOS
      left it in :hover, lifting it -4px + adding a green border,
      which read as "misaligned". Neutralize hover where there is
      no true hover pointer.
   ============================================================ */
html { overflow-x: clip; }

@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }
  .product-card:hover .product-media img { transform: none; }
}

/* ============================================================
   Mobile shop overflow fix (2026-07-16)
   Product cards were cut off on the right: CSS-grid items default to
   min-width:auto (= their content width), so cards refused to shrink into
   their 1fr track and overflowed the viewport. Let them shrink + wrap.
   ============================================================ */
.product-grid > .product-card-wrap { min-width: 0; }
.product-card, .product-media, .product-body { min-width: 0; }
.product-name, .product-compound, .product-tag { overflow-wrap: anywhere; }

/* ============================================================
   Mobile: My Account + password/reset (2026-07-16)
   Account tables overflowed and reset-password fields misaligned on phones.
   ============================================================ */
@media (max-width: 767px) {
  .woocommerce-account .woocommerce { display: block; }
  .woocommerce-MyAccount-navigation,
  .woocommerce-MyAccount-content { float: none; width: 100%; }
  .woocommerce-MyAccount-navigation { margin: 0 0 20px; }
  .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .woocommerce-MyAccount-navigation li a { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
  .woocommerce-MyAccount-navigation li.is-active a { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

  /* Orders/downloads/order-detail tables: stack rows into cards via WC data-title */
  .woocommerce-orders-table, .woocommerce-orders-table tbody, .my_account_orders,
  .shop_table.order_details, .woocommerce-table--order-details { display: block; width: 100%; }
  .woocommerce-orders-table thead, .shop_table.order_details thead { position: absolute; left: -9999px; }
  .woocommerce-orders-table tr, .shop_table.order_details tr {
    display: block; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
  .woocommerce-orders-table td, .shop_table.order_details td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    text-align: right; border: 0; padding: 7px 0; width: auto !important; }
  .woocommerce-orders-table td::before, .shop_table.order_details td::before {
    content: attr(data-title); font-weight: 600; color: var(--muted); text-align: left; }
  .woocommerce-orders-table td .button { margin: 0; }

  /* Any other account table: scroll instead of clipping off-screen */
  .woocommerce-MyAccount-content > table:not(.woocommerce-orders-table) {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .woocommerce-Addresses .woocommerce-Address, .woocommerce-MyAccount-paymentMethods { width: 100%; }
}

/* Password reset + edit-account: fields full width + aligned, at all sizes */
.woocommerce-ResetPassword .form-row,
.woocommerce-EditAccountForm .form-row,
.woocommerce-MyAccount-content form .form-row {
  width: 100% !important; float: none; clear: both; margin: 0 0 16px; }
.woocommerce-ResetPassword input,
.woocommerce-EditAccountForm input,
.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"] {
  width: 100%; box-sizing: border-box; }
.woocommerce-ResetPassword .woocommerce-password-strength,
.woocommerce-ResetPassword .woocommerce-password-hint { display: block; margin-top: 6px; }

/* ============================================================
   Checkout payment-method rows (2026-07-16): keep radio + label + gateway
   icon on ONE clean line so the Interac logo sits beside the text.
   ============================================================ */
#payment ul.payment_methods li.wc_payment_method {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 0;
}
#payment ul.payment_methods li.wc_payment_method > input[type="radio"] { margin: 0; flex: 0 0 auto; }
#payment ul.payment_methods li.wc_payment_method > label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
#payment ul.payment_methods li.wc_payment_method > label img {
  display: inline-block; max-height: 20px; width: auto; margin: 0; vertical-align: middle; }
#payment ul.payment_methods li.wc_payment_method .payment_box { flex-basis: 100%; }

/* ============================================================
   Product page (PDP) fixes — 2026-07-16
   Remove Stripe express buttons off the PDP/cart, style the Size
   dropdown, show one clean price, tidy the buy row + spacing.
   ============================================================ */

/* 1) Remove the Stripe Express Checkout (Apple/Google Pay) buttons from
      product + cart pages — they belong at checkout, not here. */
.single-product [id^="wc-stripe-express-checkout"],
.single-product .wc-stripe-express-checkout-wrapper,
.single-product .wc-stripe-express-checkout__separator,
.woocommerce-cart [id^="wc-stripe-express-checkout"],
.woocommerce-cart .wc-stripe-express-checkout-wrapper { display: none !important; }

/* 2) Variable-product options (Size) — clean, styled dropdown */
.pdp-info .variations { width: 100%; margin: 6px 0 14px; border: 0; }
.pdp-info .variations tbody, .pdp-info .variations tr { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pdp-info .variations th, .pdp-info .variations td { padding: 0; border: 0; text-align: left; background: none; }
.pdp-info .variations th.label label { font-weight: 600; font-size: 15px; color: var(--ink); margin: 0; }
.pdp-info .variations td.value { display: flex; align-items: center; gap: 10px; }
.pdp-info .variations select {
	appearance: none; -webkit-appearance: none; -moz-appearance: none;
	min-width: 150px; padding: 11px 38px 11px 14px;
	border: 1px solid var(--border); border-radius: 10px; background-color: #fff;
	font-size: 15px; font-family: inherit; color: var(--ink); cursor: pointer; line-height: 1.2;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%236b746f' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.pdp-info .variations select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.pdp-info .reset_variations { font-size: 13px; color: var(--muted); text-decoration: underline; }
.pdp-info .reset_variations:not([style*="visible"]) { }

/* 3) Show ONE price (the static pdp-price-row); hide the variation-form duplicate */
.pdp-info .single_variation .price,
.pdp-info .woocommerce-variation-price { display: none; }
.pdp-info .woocommerce-variation-availability { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* 4) Variation add-to-cart: qty + button on one tidy row */
.pdp-info .single_variation_wrap { margin-top: 14px; }
.pdp-info .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.pdp-info .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { opacity: .45; pointer-events: none; }
.pdp-info .qty-label, .pdp-info #qty-label { display: block; font-weight: 600; font-size: 15px; margin: 4px 0 6px; }

/* ============================================================
   Order-details table (order-received + My Account view-order).
   The product-name cell was inheriting the 26px display-font
   .product-name rule (green) and, on mobile, being forced into a
   flex space-between row that scattered the name, quantity and
   subscription plan meta. Make it read like a normal line item. 2026-07-16
   ============================================================ */
.woocommerce-table--order-details td.product-name,
.shop_table.order_details td.product-name {
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; font-weight: 400;
}
.woocommerce-table--order-details td.product-name > a,
.shop_table.order_details td.product-name > a {
  font-family: var(--font-body); font-size: 15px; line-height: 1.4;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.woocommerce-table--order-details td.product-name > a:hover,
.shop_table.order_details td.product-name > a:hover { color: var(--green-deep); }
.woocommerce-table--order-details td.product-name .product-quantity,
.shop_table.order_details td.product-name .product-quantity {
  font-family: var(--font-body); font-weight: 500; color: var(--muted);
  font-size: 14px; white-space: nowrap; margin-left: 4px;
}
.woocommerce-table--order-details td.product-name .wc-item-meta,
.shop_table.order_details td.product-name .wc-item-meta {
  list-style: none; margin: 7px 0 0; padding: 0;
}
.woocommerce-table--order-details td.product-name .wc-item-meta li,
.shop_table.order_details td.product-name .wc-item-meta li {
  display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin: 2px 0;
}
.woocommerce-table--order-details td.product-name .wc-item-meta li p,
.shop_table.order_details td.product-name .wc-item-meta li p {
  display: inline; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.woocommerce-table--order-details td.product-name .wc-item-meta-label,
.shop_table.order_details td.product-name .wc-item-meta-label {
  font-weight: 600; color: var(--ink);
}

@media (max-width: 767px) {
  /* Product-name cell stacks naturally instead of flex space-between */
  .shop_table.order_details td.product-name,
  .woocommerce-table--order-details td.product-name {
    display: block; text-align: left; padding: 2px 0 4px;
  }
  .shop_table.order_details td.product-name::before,
  .woocommerce-table--order-details td.product-name::before { display: none; }
  /* Tighter cards + sane cell sizing */
  .shop_table.order_details tr, .woocommerce-table--order-details tr { padding: 12px 14px; margin-bottom: 12px; }
  .shop_table.order_details td, .woocommerce-table--order-details td { font-size: 15px; padding: 6px 0; }
  .shop_table.order_details tfoot th, .shop_table.order_details tfoot td,
  .woocommerce-table--order-details tfoot th, .woocommerce-table--order-details tfoot td { font-size: 15px; }
}

/* Order-details mobile refinement (2026-07-16): compact line total + totals list */
@media (max-width: 767px) {
  /* drop the per-cell dividers; the card border is enough */
  .shop_table.order_details tbody td,
  .woocommerce-table--order-details tbody td { border-bottom: 0; }

  /* line item total: a single right-aligned figure under the item */
  .shop_table.order_details tbody td.product-total,
  .woocommerce-table--order-details tbody td.product-total {
    display: flex; justify-content: flex-end; align-items: baseline;
    margin-top: 8px; padding: 8px 0 0; border-top: 1px solid var(--border);
    font-weight: 600; font-size: 15px;
  }
  .shop_table.order_details tbody td.product-total::before,
  .woocommerce-table--order-details tbody td.product-total::before { display: none; }

  /* totals (Subtotal / Discount / Shipping / Total / Payment): compact rows,
     not individual cards */
  .shop_table.order_details tfoot tr,
  .woocommerce-table--order-details tfoot tr {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    border: 0; border-radius: 0; margin: 0; padding: 9px 4px;
    border-bottom: 1px solid var(--border);
  }
  .shop_table.order_details tfoot tr:last-child,
  .woocommerce-table--order-details tfoot tr:last-child { border-bottom: 0; }
  .shop_table.order_details tfoot th,
  .woocommerce-table--order-details tfoot th {
    display: block; padding: 0; border: 0; width: auto !important;
    text-align: left; font-weight: 600; color: var(--muted); font-size: 15px;
  }
  .shop_table.order_details tfoot td,
  .woocommerce-table--order-details tfoot td {
    display: block; padding: 0; border: 0; width: auto !important;
    text-align: right; font-size: 15px;
  }
  .shop_table.order_details tfoot td::before,
  .woocommerce-table--order-details tfoot td::before { display: none; }
  /* emphasise the grand total */
  .shop_table.order_details tfoot tr.order-total th,
  .shop_table.order_details tfoot tr.order-total td,
  .woocommerce-table--order-details tfoot tr.order-total th,
  .woocommerce-table--order-details tfoot tr.order-total td {
    font-weight: 700; color: var(--ink); font-size: 16px;
  }
  .shop_table.order_details tfoot tr.order-total td .amount,
  .woocommerce-table--order-details tfoot tr.order-total td .amount { color: var(--green-deep); }
}

/* Order-details mobile width fix (2026-07-17): the table was display:block but its
   tbody/tfoot were still table row-groups, so the rows collapsed into a shrink-to-fit
   anonymous table box (275px inside a 327px table) leaving dead space on the right. */
@media (max-width: 767px) {
  .shop_table.order_details tbody, .shop_table.order_details tfoot,
  .woocommerce-table--order-details tbody, .woocommerce-table--order-details tfoot {
    display: block; width: 100%;
  }
  /* The outer table box is redundant on mobile: each line item is already its own
     card and the totals render as a plain list. Drop it so nothing looks nested. */
  .shop_table.order_details, .woocommerce-table--order-details {
    border: 0; border-radius: 0; background: transparent;
  }
}

/* Signed-in state in the header (2026-07-17). The nav previously always rendered
   "Log In" with no is_user_logged_in() check, and .nav-login is desktop-only, so
   mobile had no account link at all. */
.nav-login svg { flex-shrink: 0; margin-right: 6px; }
.nav-account .nav-account-name {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Mobile menu account row */
.mobile-menu .menu-account {
  padding: 0 var(--gutter);
  border-top: 1px solid var(--border);
  margin: var(--s1) 0 0;
}
.mobile-menu .menu-account a.menu-account-link {
  display: flex; align-items: center; gap: 8px;
  padding: var(--s2) 0; font-weight: 600; color: var(--ink); text-decoration: none;
}
.mobile-menu .menu-account a.menu-account-link svg { flex-shrink: 0; color: var(--green-deep); }
.mobile-menu .menu-account .menu-account-sub {
  margin-left: auto; font-weight: 500; font-size: 13px; color: var(--muted);
}
.mobile-menu .menu-account a.menu-logout-link {
  display: block; padding: 0 0 var(--s2);
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.mobile-menu .menu-account a.menu-logout-link:hover { color: var(--green-deep); }

/* ============================================================
   Order details, mobile: ONE receipt card (2026-07-17).
   Previously the line item was its own bordered card and the totals sat in a
   second box, so it read as a container inside a container. This collapses the
   whole summary into a single card: item + price on one row, plan meta beneath,
   then the totals as plain rows. Overrides the earlier per-row card rules.
   ============================================================ */
@media (max-width: 767px) {
  /* the table IS the single card */
  .shop_table.order_details,
  .woocommerce-table--order-details {
    display: block; width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    padding: 0 16px;
    overflow: hidden;
  }

  /* ---- line item: name + qty left, price right, meta underneath ---- */
  .shop_table.order_details tbody tr,
  .woocommerce-table--order-details tbody tr {
    display: flex; align-items: flex-start; gap: 12px;
    border: 0; border-radius: 0; margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }
  .shop_table.order_details tbody td.product-name,
  .woocommerce-table--order-details tbody td.product-name {
    flex: 1 1 auto; display: block; padding: 0; margin: 0; border: 0; text-align: left;
  }
  .shop_table.order_details tbody td.product-total,
  .woocommerce-table--order-details tbody td.product-total {
    flex: 0 0 auto; display: block; width: auto !important;
    margin: 0; padding: 0; border: 0; border-top: 0;
    text-align: right; white-space: nowrap; font-weight: 600; font-size: 15px;
  }

  /* ---- totals: plain rows inside the same card ---- */
  .shop_table.order_details tfoot tr,
  .woocommerce-table--order-details tfoot tr {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    border: 0; border-radius: 0; margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
  }
  .shop_table.order_details tfoot tr:last-child,
  .woocommerce-table--order-details tfoot tr:last-child { border-bottom: 0; }
}

/* Contact form: honeypot must be invisible to humans, present for bots (2026-07-17) */
.pv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg.is-success {
  background: #eef4f1; border-left: 4px solid var(--green-deep); border-radius: 8px;
  padding: 12px 14px; color: var(--ink); font-size: 14px; margin: 0 0 16px;
}
.form-msg.is-error {
  background: #fdf0ee; border-left: 4px solid #c0553f; border-radius: 8px;
  padding: 12px 14px; color: var(--ink); font-size: 14px; margin: 0 0 16px;
}
