/* ============================================================
   AS PHARMA ENTERPRISES — design system
   Deep bottle-green ink · mint clinic-white · pharmacy lime
   Display: Archivo (wide) · Body: Instrument Sans · Lab: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #16241d;
  --ink-soft: #45544b;
  --green-900: #0c382b;
  --green-700: #14563f;
  --green-600: #1c6b4e;
  --lime: #b7d64b;
  --clinic: #f1f6f0;
  --card: #ffffff;
  --line: #dbe5db;
  --foil-a: #eef2ee;
  --foil-b: #c9d3ca;

  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --r-card: 14px;
  --shadow-1: 0 1px 2px rgba(12, 56, 43, .06), 0 8px 24px -12px rgba(12, 56, 43, .18);
  --shadow-2: 0 2px 4px rgba(12, 56, 43, .08), 0 20px 44px -16px rgba(12, 56, 43, .28);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--clinic);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }

ul { padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, button { border-radius: 0; }

[hidden] { display: none !important; }

::selection { background: var(--lime); color: var(--green-900); }

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

.mono {
  font-family: var(--font-mono);
  font-size: .78em;
  letter-spacing: .04em;
}

.wrap {
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3.5vw, 48px);
}

.section { padding-block: clamp(64px, 8.5vw, 108px); }
.section--white { background: var(--card); }
.section--ink { background: var(--green-900); color: #eef4ee; }

/* section headers */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-600) 50%, transparent 50%);
  border: 1.5px solid var(--green-600);
}

.section--ink .eyebrow { color: var(--lime); }
.section--ink .eyebrow::before {
  border-color: var(--lime);
  background: linear-gradient(90deg, var(--lime) 50%, transparent 50%);
}

.display {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h2.display { font-size: clamp(30px, 4vw, 46px); }

.sec-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green-700);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: border-color .2s;
}

.sec-link:hover { border-color: var(--green-600); }

.lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(16.5px, 1.35vw, 18.5px);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s, transform .2s var(--ease);
}

.btn:hover { background: var(--green-900); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--green-900);
  box-shadow: inset 0 0 0 1.5px var(--green-700);
}

.btn-ghost:hover { background: rgba(20, 86, 63, .07); transform: translateY(-1px); }

.btn-lime {
  background: var(--lime);
  color: var(--green-900);
}

.btn-lime:hover { background: #c8e363; }

.btn-block { width: 100%; }

.link-btn {
  display: block;
  margin: 10px auto 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background .2s;
}

.icon-btn:hover { background: rgba(12, 56, 43, .07); }

/* ---------- ticker ---------- */

.ticker {
  background: var(--green-900);
  color: var(--lime);
  overflow: hidden;
  padding-block: 9px;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 1.4em;
}

.ticker-track span::after {
  content: '⁺';
  margin-left: 2.8em;
  color: rgba(183, 214, 75, .5);
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(241, 246, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}

.site-head.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(12, 56, 43, .25);
}

/* The header stays stuck at 76px, so a jump to one of these parked
   the section's first line underneath it. */
#quality, #journal, #contact { scroll-margin-top: 92px; }

.head-bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}

.logo-mark { flex: none; }

.logo-word {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--green-900);
}

.logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .42em;
  color: var(--ink-soft);
  margin-top: 3px;
}

.main-nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }

.main-nav a {
  font-size: 15.5px;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.main-nav a:hover, .main-nav a[aria-current] { border-color: var(--lime); }

.head-tools { display: flex; align-items: center; gap: 4px; }

.head-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 16px;
  height: 42px;
  color: var(--ink-soft);
}

.head-search input {
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  width: 130px;
  color: var(--ink);
}

.head-search input::placeholder { color: #92a096; }

.cart-btn { position: relative; }

.cart-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--green-900);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
}

.cart-badge.on { display: inline-flex; }

.nav-toggle { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 55;
  background: var(--clinic);
  padding: 130px clamp(24px, 7vw, 40px) 40px;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 30px;
  text-decoration: none;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav form {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  background: #fff;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 4px 4px, rgba(12, 56, 43, .055) 1.6px, transparent 1.6px) 0 0 / 30px 30px,
    var(--clinic);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 7vw, 96px);
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  margin-bottom: 22px;
}

.hero h1 .u-lime {
  position: relative;
  white-space: nowrap;
}

.hero h1 .u-lime::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: .14em;
  background: var(--lime);
  z-index: -1;
  border-radius: 999px;
}

.hero .lede { margin-bottom: 34px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-cred {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-cred span { display: inline-flex; align-items: center; gap: 8px; }

.hero-cred svg { color: var(--green-600); }

/* hero art */

.hero-art {
  position: relative;
  height: clamp(380px, 42vw, 560px);
}

.hero-pad {
  position: absolute;
  border-radius: 999px;
}

.hero-pad-a {
  width: 78%;
  height: 44%;
  left: 8%;
  top: 32%;
  background: color-mix(in srgb, #2e9e93 20%, white);
  transform: rotate(-28deg);
}

.hero-pad-b {
  width: 60%;
  height: 34%;
  right: 0;
  bottom: 6%;
  background: color-mix(in srgb, #e5a33f 24%, white);
  transform: rotate(18deg);
}

.hero-item {
  position: absolute;
  filter: drop-shadow(0 18px 24px rgba(12, 56, 43, .18));
  animation: settle .9s var(--ease) both;
}

.hero-item .art { width: 100%; height: auto; }

.hero-item-1 { width: 46%; left: 4%; top: 12%; animation-delay: .05s; }
.hero-item-2 { width: 42%; left: 33%; top: 27%; z-index: 2; animation-delay: .18s; }
.hero-item-3 { width: 44%; right: 1%; top: 8%; rotate: 5deg; animation-delay: .3s; }

.hero-pill {
  position: absolute;
  width: 58px;
  animation: floaty 7s ease-in-out infinite;
}

.hero-pill-1 { left: 0; bottom: 12%; rotate: -20deg; }
.hero-pill-2 { right: 10%; bottom: 0; rotate: 14deg; animation-delay: -3.2s; }

@keyframes settle {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* ---------- blister category strip (signature) ---------- */

.blister-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: linear-gradient(135deg, var(--foil-a), var(--foil-b) 55%, #dde6de);
  border: 1px solid #b9c4bb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.blister-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px) 12px clamp(20px, 2.2vw, 28px);
  text-decoration: none;
  border-right: 1px dashed #aeb9b0;
  transition: background .25s;
}

.blister-cell:last-child { border-right: 0; }

.blister-cell:hover { background: rgba(255, 255, 255, .55); }

.dome {
  width: clamp(64px, 6.5vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #e7ede7 55%, #c9d4cb 100%);
  box-shadow:
    inset 0 -4px 8px rgba(12, 56, 43, .12),
    inset 0 3px 5px rgba(255, 255, 255, .9),
    0 6px 14px -6px rgba(12, 56, 43, .3);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.blister-cell:hover .dome {
  transform: translateY(-6px);
  box-shadow:
    inset 0 -4px 8px rgba(12, 56, 43, .12),
    inset 0 3px 5px rgba(255, 255, 255, .9),
    0 16px 22px -8px rgba(12, 56, 43, .38);
}

.dome-icon {
  width: 46%;
  color: var(--h);
  transition: transform .3s var(--ease);
}

.blister-cell:hover .dome-icon { transform: scale(1.12); }

.dome-icon svg { width: 100%; height: auto; }

.blister-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.5;
}

.blister-cell:hover .blister-label { color: var(--green-900); }

/* ---------- product cards ---------- */

.p-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}

.p-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, translate .3s var(--ease);
}

.p-card:hover { box-shadow: var(--shadow-2); translate: 0 -4px; }

.p-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.02;
  padding: 12%;
  overflow: hidden;
}

.p-pad {
  position: absolute;
  inset: auto;
  width: 88%;
  height: 52%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--h) 16%, white);
  transform: rotate(-24deg);
  transition: transform .4s var(--ease);
}

.p-card:hover .p-pad { transform: rotate(-18deg) scale(1.05); }

.p-art .art {
  position: relative;
  width: 74%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(12, 56, 43, .16));
  transition: transform .35s var(--ease);
}

.p-card:hover .p-art .art { transform: translateY(-6px) rotate(-1.5deg); }

.p-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-900);
  background: var(--lime);
  padding: 5px 11px;
  border-radius: 999px;
}

.p-info {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.p-meta {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: #7b897f;
}

.p-name {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.p-name a { text-decoration: none; }

.p-name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

.p-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.p-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-900);
  white-space: nowrap;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-700);
  padding: 8px 15px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .2s, color .2s, box-shadow .2s;
}

.add-btn:hover {
  background: var(--green-700);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--green-700);
}

/* ---------- quality facts (signature #2) ---------- */

.quality-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.quality-grid > * { min-width: 0; }

.facts-panel {
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--green-900);
  border-radius: 10px;
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 10px 12px 0 rgba(183, 214, 75, .55);
}

.facts-title {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 830;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -.01em;
  line-height: 1;
  padding-bottom: 10px;
}

.facts-serving {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  padding-bottom: 8px;
  border-bottom: 9px solid var(--green-900);
  color: var(--ink-soft);
}

.facts-panel ul { margin: 0; }

.facts-panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-block: 11px;
  border-bottom: 1.5px solid var(--green-900);
  font-size: 15px;
}

.facts-panel li strong { font-weight: 650; }

.facts-panel li .mono {
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: right;
}

.facts-foot {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.quality-copy .lede { margin-bottom: 28px; }



/* ---------- spotlight ---------- */

.spotlight { overflow: hidden; }

.spot-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.spot-flavors { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }

.spot-flavors span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(238, 244, 238, .35);
  color: #dfeadf;
}

.spot-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.spot-ring {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(183, 214, 75, .4);
  animation: spin 60s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.spot-sachets { display: flex; align-items: center; }

.spot-sachets .art {
  width: clamp(200px, 22vw, 290px);
  height: auto;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .35));
}

.spot-sachets > div { margin-inline: -52px; }
.spot-sachets > div:nth-child(1) { rotate: -16deg; translate: 10px 22px; }
.spot-sachets > div:nth-child(2) { z-index: 2; }
.spot-sachets > div:nth-child(3) { rotate: 16deg; translate: -10px 22px; }

.spot-price {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.spot-price .mono { color: var(--lime); font-size: 15px; }

/* ---------- journal ---------- */

.j-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}

.j-card { display: flex; flex-direction: column; gap: 10px; }

.j-cover {
  display: grid;
  place-items: center;
  text-decoration: none;
  aspect-ratio: 16 / 9.5;
  border-radius: var(--r-card);
  background:
    radial-gradient(circle at 4px 4px, rgba(255, 255, 255, .16) 1.4px, transparent 1.4px) 0 0 / 24px 24px,
    linear-gradient(135deg, var(--h), color-mix(in srgb, var(--h) 60%, #16241d));
  margin-bottom: 8px;
  overflow: hidden;
  transition: filter .25s;
}

.j-card:hover .j-cover { filter: saturate(1.15) brightness(1.05); }

.j-glyph {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(44px, 4.6vw, 62px);
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 3px 14px rgba(0, 0, 0, .25);
}

.j-tag { font-size: 11px; letter-spacing: .12em; color: #7b897f; }

.j-title {
  font-size: 19.5px;
  font-weight: 680;
  line-height: 1.32;
}

.j-title a { text-decoration: none; }

.j-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

.j-excerpt { font-size: 15px; color: var(--ink-soft); }

/* ---------- newsletter ---------- */

.news-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(32px, 4.5vw, 60px);
  box-shadow: var(--shadow-1);
}

.news-form { display: flex; gap: 10px; }

.news-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15.5px;
  padding: 14px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--clinic);
}

.news-form input:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }

.news-fine {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #7b897f;
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--green-900);
  color: #cfdccf;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 6vw, 84px) 48px;
}

.foot-brand .logo-word { color: #fff; }
.foot-brand .logo-sub { color: rgba(207, 220, 207, .75); }

.foot-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  max-width: 34ch;
  color: rgba(207, 220, 207, .85);
}

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.foot-col li { margin-bottom: 10px; }

.foot-col a {
  font-size: 15px;
  text-decoration: none;
  color: #cfdccf;
}

.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.foot-contact li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 12px;
}

.foot-contact svg { flex: none; margin-top: 3px; color: var(--lime); }

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pay-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 6px 12px;
  border: 1px solid rgba(207, 220, 207, .3);
  border-radius: 6px;
  color: #e7efe7;
}

.social-row { display: flex; gap: 10px; margin-top: 20px; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e7efe7;
  border: 1px solid rgba(207, 220, 207, .3);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.social-btn:hover {
  background: var(--lime);
  color: var(--green-900);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.foot-legal {
  border-top: 1px solid rgba(207, 220, 207, .18);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(207, 220, 207, .65);
}

.foot-disclaimer {
  padding-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  color: rgba(207, 220, 207, .5);
  max-width: 74ch;
}

/* ---------- cart drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 36, 27, .45);
  opacity: 0;
  transition: opacity .25s;
}

.drawer-backdrop.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(430px, 100vw);
  background: var(--clinic);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .32s var(--ease);
  box-shadow: -20px 0 60px rgba(12, 56, 43, .25);
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 750;
  font-size: 21px;
}

.drawer-count { color: var(--ink-soft); font-weight: 500; }

.ship-meter { padding: 16px 24px 14px; border-bottom: 1px solid var(--line); background: #fff; }

.ship-note { font-size: 12px; letter-spacing: .05em; color: var(--green-700); margin-bottom: 8px; }

.ship-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.ship-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-600), var(--lime));
  transition: width .4s var(--ease);
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px;
}

.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.di-art {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--h) 12%, white);
  border-radius: 10px;
  padding: 6px;
}

.di-art .art { width: 52px; height: auto; }

.di-name { font-weight: 620; font-size: 15px; line-height: 1.3; }

.di-meta { font-size: 11px; color: #7b897f; margin-top: 2px; }

.di-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.qty button {
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
  border-radius: 50%;
  color: var(--green-700);
}

.qty button:hover { background: rgba(20, 86, 63, .08); }

.qty span { min-width: 22px; text-align: center; font-size: 13px; }

.di-price { font-size: 13.5px; font-weight: 600; color: var(--green-900); }

.di-remove {
  align-self: start;
  color: #92a096;
  padding: 6px;
  border-radius: 50%;
}

.di-remove:hover { color: var(--ink); background: rgba(12, 56, 43, .07); }

.drawer-empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); display: grid; gap: 20px; justify-items: center; }

.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: #fff; }

.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  font-size: 17px;
  margin-bottom: 6px;
}

.drawer-fine { font-size: 11px; color: #7b897f; margin-bottom: 16px; }

/* ---------- toast ---------- */

.toast-zone {
  position: fixed;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 40px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--green-900);
  color: #eef4ee;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  translate: 0 12px;
  transition: opacity .3s, translate .3s var(--ease);
}

.toast.show { opacity: 1; translate: 0 0; }

.toast-link {
  color: var(--lime);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-2);
  transition: transform .25s var(--ease), background .2s;
}

.wa-float:hover { transform: translateY(-3px); background: var(--green-900); }

/* ---------- shop page ---------- */

.page-head { padding-block: clamp(44px, 5vw, 68px) 0; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-block: 26px 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  padding: 9px 17px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .2s;
}

.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--h, var(--green-600)); }

.chip:hover { box-shadow: inset 0 0 0 1.5px var(--green-600); }

.chip.on {
  background: var(--green-900);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--green-900);
}

.shop-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.shop-count { font-size: 12px; color: #7b897f; letter-spacing: .06em; }

.sort-select {
  font: inherit;
  font-size: 14px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.shop-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-soft);
  display: grid;
  gap: 18px;
  justify-items: center;
}

/* ---------- product detail page ---------- */

.crumbs {
  padding-block: 26px 0;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: #7b897f;
}

.crumbs a { color: var(--green-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(28px, 3.5vw, 48px) clamp(64px, 7vw, 96px);
  align-items: start;
}

.pd-stage {
  position: sticky;
  top: 106px;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.pd-pad {
  position: absolute;
  width: 92%;
  height: 54%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--h) 17%, white);
  transform: rotate(-22deg);
}

.pd-stage .art {
  position: relative;
  width: 62%;
  filter: drop-shadow(0 24px 30px rgba(12, 56, 43, .2));
}

.pd-badge-row { display: flex; gap: 8px; margin-bottom: 14px; }

.pd-cat-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: color-mix(in srgb, var(--h, #1c6b4e) 14%, white);
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
}

.pd-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 10px; }

.pd-sku { font-size: 12px; color: #7b897f; letter-spacing: .1em; margin-bottom: 20px; }

.pd-blurb { color: var(--ink-soft); margin-bottom: 26px; max-width: 52ch; }

.pd-benefits { margin-bottom: 28px; display: grid; gap: 9px; }

.pd-benefits li {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  align-items: baseline;
}

.pd-benefits svg { flex: none; translate: 0 2px; color: var(--green-600); }

.pd-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin-bottom: 30px;
}

.pd-price { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--green-900); margin-right: auto; }

.pd-price small { display: block; font-size: 10.5px; font-weight: 500; color: #7b897f; letter-spacing: .06em; }

.pd-qty { border-width: 1.5px; }

.pd-accordion details {
  border-bottom: 1.5px solid var(--line);
}

.pd-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
  font-weight: 650;
  font-size: 16px;
}

.pd-accordion summary::-webkit-details-marker { display: none; }

.pd-accordion summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green-600);
  transition: rotate .25s;
}

.pd-accordion details[open] summary::after { rotate: 45deg; }

.pd-accordion .acc-body { padding-bottom: 20px; color: var(--ink-soft); font-size: 15px; }

.facts-table { width: 100%; border-collapse: collapse; }

.facts-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 7px solid var(--ink);
}

.facts-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7b897f;
  padding: 8px 0 6px;
  border-bottom: 1.5px solid var(--ink);
}

.facts-table th:last-child, .facts-table td:last-child { text-align: right; }

.facts-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}

.facts-table td.mono { font-size: 12px; color: var(--ink-soft); }

.related { padding-bottom: clamp(64px, 8vw, 100px); }

/* ---------- reveals & motion ---------- */

.rv {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .6s ease, translate .6s var(--ease);
  transition-delay: var(--d, 0ms);
}

.rv.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; translate: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-item { animation: none; }
  .hero-pill { animation: none; }
  .spot-ring { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .blister-strip { grid-template-columns: repeat(3, 1fr); }
  .blister-cell:nth-child(3) { border-right: 0; }
  .blister-cell:nth-child(-n+3) { border-bottom: 1px dashed #aeb9b0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav, .head-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; height: clamp(300px, 60vw, 420px); max-width: 560px; }
  .quality-grid, .spot-grid, .news-inner { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  /* `static` here only meant "stop being sticky", but it also removed the
     containing block for the absolutely positioned .pd-pad, which then sized
     against the page and scrolled it sideways on every product without an
     uploaded photo. `relative` keeps the anchor — and `top` has to be cleared
     with it, or the sticky offset above shifts the stage 106px down over the
     product title. */
  .pd-stage { position: relative; top: auto; max-width: 480px; }
  .j-grid { grid-template-columns: 1fr; max-width: 560px; }
  .facts-panel { max-width: 560px; }
}

@media (max-width: 700px) {
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-info { padding: 14px 14px 16px; }
  .p-name { font-size: 15px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .blister-strip { grid-template-columns: repeat(2, 1fr); }
  .blister-cell { border-bottom: 1px dashed #aeb9b0; }
  .blister-cell:nth-child(odd) { border-right: 1px dashed #aeb9b0; }
  .blister-cell:nth-child(even) { border-right: 0; }
  .blister-cell:nth-last-child(-n+2) { border-bottom: 0; }
  /* Stacking all four cells end-to-end ran the footer to ~1300px — a
     screen and a half of scrolling before the legal line. Shop and
     Help are short enough to sit side by side; brand and Contact
     keep the full width because their lines are long. */
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px clamp(14px, 5vw, 30px);
  }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .news-form { flex-direction: column; }
  .shop-meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .hero-cred { gap: 8px 18px; }
  .spot-art { min-height: 300px; }
  .spot-sachets .art { width: 128px; }
  /* The -52px overlap is tuned for a 290px sachet. Against a 128px one it
     stacked all three almost on top of each other, so the fan read as a
     rendering glitch. Scale the overlap with the art. */
  .spot-sachets > div { margin-inline: -24px; }
  .spot-sachets > div:nth-child(1) { translate: 6px 12px; }
  .spot-sachets > div:nth-child(3) { translate: -6px 12px; }
}

@media (max-width: 420px) {
  .p-grid { grid-template-columns: 1fr 1fr; }
  .add-btn { padding: 7px 11px; font-size: 12.5px; }
  .p-price { font-size: 12.5px; }
  .p-row { gap: 6px; }
}

/* ============================================================
   LIVE CATALOG ADDITIONS
   Uploaded photography, sale pricing, stock states and checkout.
   ============================================================ */

/* ---------- product photos ---------- */

.p-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* a real photo fills the tile; the generated art keeps its breathing room */
.p-art:has(.p-photo) { padding: 0; }
.p-art:has(.p-photo) .p-pad { display: none; }

/* ---------- sale & stock ---------- */

.p-price s {
  margin-left: 7px;
  font-size: .82em;
  font-weight: 500;
  color: #8b9a8f;
  text-decoration-thickness: 1.2px;
}

.p-badge.sale { background: #B23A32; color: #fff; }
.p-badge.out { background: #55635a; color: #fff; }
.p-badge.low { background: #E5A33F; color: var(--green-900); }

.p-card.sold-out .p-art { opacity: .58; filter: saturate(.6); }

.p-sold {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(12, 56, 43, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.add-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.pd-price s {
  margin-left: 9px;
  font-size: .68em;
  font-weight: 500;
  color: #8b9a8f;
}

/* ---------- product page gallery ---------- */

.pd-media { display: grid; gap: 12px; align-content: start; }

.pd-photo {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* Video keeps its own shape.

   The stage is a square with overflow:hidden, and `height:100%` does not
   resolve against an aspect-ratio-derived height — so a portrait clip fell
   back to its intrinsic size, overflowed the stage, and had its bottom
   (including the native play controls) clipped away. On a phone that reads
   as "the video won't play". Sizing by width with a capped height keeps the
   whole frame, and its controls, inside the box. */
.pd-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
  object-fit: contain;
  background: #0b1a13;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

/* let the stage take the video's shape rather than squeezing it into a square */
.pd-stage:has(.pd-video) {
  aspect-ratio: auto;
  background: #0b1a13;
  align-items: stretch;
}

.pd-stage:has(.pd-photo), .pd-stage:has(.pd-video) { padding: 0; }
.pd-stage:has(.pd-photo) .pd-pad, .pd-stage:has(.pd-video) .pd-pad { display: none; }

.pd-thumbs { display: flex; gap: 9px; flex-wrap: wrap; }

.pd-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--foil-a);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .18s, transform .18s var(--ease);
}
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.on { box-shadow: inset 0 0 0 2px var(--green-700); }
.pd-thumb img, .pd-thumb video { width: 100%; height: 100%; object-fit: cover; }

.pd-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 30, 22, .35);
  color: #fff;
}
.pd-thumb-play svg { width: 20px; height: 20px; }

/* ---------- checkout sheet ---------- */

.co-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(12, 30, 22, .5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s;
}
.co-backdrop.show { opacity: 1; }

.co-sheet {
  position: fixed;
  z-index: 71;
  inset: auto 0 0 0;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--clinic);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform .34s var(--ease);
  box-shadow: 0 -20px 60px -20px rgba(12, 56, 43, .45);
}
.co-sheet.open { transform: none; }

@media (min-width: 900px) {
  .co-sheet {
    inset: 50% auto auto 50%;
    width: min(1000px, calc(100vw - 48px));
    max-height: 88vh;
    border-radius: 18px;
    transform: translate(-50%, -46%) scale(.98);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .co-sheet.open { transform: translate(-50%, -50%); opacity: 1; }
}

.co-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px 20px 0 0;
}

.co-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  font-stretch: 112%;
  line-height: 1.15;
  margin-top: 2px;
}

.co-body {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0;
}

@media (max-width: 899px) {
  .co-body { grid-template-columns: minmax(0, 1fr); }
}

.co-form { padding: 22px 24px 28px; }

.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .co-row { grid-template-columns: 1fr; } }

.co-field { display: block; margin-bottom: 14px; }

.co-field > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6c7d71;
  margin-bottom: 6px;
}
.co-field > span em { font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .8; }

.co-field input, .co-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .16s, box-shadow .16s;
}
.co-field textarea { resize: vertical; line-height: 1.5; }

.co-field input:focus, .co-field textarea:focus {
  outline: 0;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(28, 107, 78, .13);
}

.co-field input.bad { border-color: #B23A32; box-shadow: 0 0 0 3px rgba(178, 58, 50, .12); }

.co-pay { border: 0; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; }

.co-pay legend {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #6c7d71;
  padding: 0 0 10px;
}

.co-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.co-opt:hover { border-color: #c2d2c4; }
.co-opt input { width: 18px; height: 18px; accent-color: var(--green-600); flex: none; }
.co-opt b { display: block; font-size: 15px; font-weight: 600; }
.co-opt small { display: block; font-size: 12.5px; color: #6c7d71; }
.co-opt:has(input:checked) { border-color: var(--green-600); background: rgba(28, 107, 78, .04); }

.co-summary {
  background: var(--card);
  border-left: 1px solid var(--line);
  padding: 22px 24px 28px;
  align-self: stretch;
}
@media (max-width: 899px) { .co-summary { border-left: 0; border-top: 1px solid var(--line); } }

.co-sum-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 16px;
}

.co-items { display: grid; gap: 14px; margin-bottom: 18px; }

.co-items li { display: flex; align-items: center; gap: 12px; }

.co-item-art {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--foil-a);
  border-radius: 9px;
  overflow: hidden;
}
.co-item-art svg, .co-item-art img { width: 100%; height: 100%; object-fit: cover; }

.co-item-body { flex: 1; min-width: 0; }
.co-item-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.co-item-meta { display: block; color: #6c7d71; }
.co-item-price { font-weight: 600; white-space: nowrap; }

.co-totals { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; margin-bottom: 18px; }
.co-totals div { display: flex; justify-content: space-between; font-size: 14.5px; }

.co-grand {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 17px !important;
  color: var(--green-900);
}

.co-fine { display: block; margin-top: 12px; color: #7b897f; line-height: 1.5; text-align: center; }

/* ---------- confirmation ---------- */

.co-done { padding: 40px 28px 44px; text-align: center; max-width: 520px; margin-inline: auto; }

.co-tick {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-900);
}
.co-tick svg { width: 30px; height: 30px; }

.co-ref {
  display: inline-block;
  background: var(--green-900);
  color: var(--lime);
  padding: 5px 13px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.co-done-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.co-done-note { color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }
.co-done-total { font-size: 15px; font-weight: 700; color: var(--green-900); margin-bottom: 24px; }
.co-done-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ============================================================
   BANNER CAROUSEL
   Slides are authored in the dashboard. Crossfaded, so slides with
   different amounts of copy never shift the page height.
   ============================================================ */

.bnr {
  position: relative;
  isolation: isolate;
  background: var(--green-900);
  overflow: hidden;
}

.bnr-stage {
  position: relative;
  display: grid;
  min-height: clamp(340px, 42vw, 520px);
}

.bnr-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, var(--h), color-mix(in srgb, var(--h) 55%, #000));
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}

.bnr-slide.on { opacity: 1; visibility: visible; }

.bnr-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* the veil keeps type legible over any photo the shop owner uploads */
.bnr-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(6, 26, 19, calc(var(--tint) + .12)) 0%,
    rgba(6, 26, 19, var(--tint)) 55%,
    rgba(6, 26, 19, calc(var(--tint) * .55)) 100%);
}

.bnr-inner {
  width: 100%;
  /* extra bottom room so the copy sits optically centred above the dots,
     and inline room so the arrows never land on top of the words */
  padding-block: clamp(44px, 6vw, 68px) clamp(64px, 7vw, 92px);
  padding-inline: clamp(20px, 3.5vw, 48px);
  display: grid;
  justify-items: start;
  text-align: left;
  gap: 4px;
}

@media (min-width: 641px) {
  .bnr-inner { padding-inline: clamp(76px, 6vw, 96px); }
}

.bnr-inner.al-center { justify-items: center; text-align: center; }
.bnr-inner.al-right { justify-items: end; text-align: right; }

.bnr-inner > * { max-width: 34ch; }
.bnr-inner.al-center > * { max-width: 46ch; }

.bnr-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}

.bnr-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.03em;
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
}

.bnr-sub {
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  margin-top: 14px;
}

.bnr-cta { margin-top: 26px; background: var(--lime); color: var(--green-900); }
.bnr-cta:hover { background: #c8e363; }

/* light theme = dark type, for pale photography */
.th-light .bnr-heading { color: var(--green-900); }
.th-light .bnr-sub { color: var(--ink-soft); }
.th-light .bnr-eyebrow { color: var(--green-700); }
.th-light .bnr-cta { background: var(--green-900); color: #fff; }
.th-light .bnr-cta:hover { background: var(--green-700); }

/* ---------- controls ---------- */

.bnr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  transition: background .18s, transform .18s var(--ease);
}
.bnr-arrow:hover { background: rgba(255, 255, 255, .3); }
.bnr-arrow svg { width: 21px; height: 21px; }
.bnr-arrow.prev { left: clamp(12px, 2vw, 28px); }
.bnr-arrow.next { right: clamp(12px, 2vw, 28px); }
.bnr-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.bnr-arrow.next:hover { transform: translateY(-50%) translateX(2px); }

.bnr-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2vw, 24px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.bnr-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  transition: background .2s, width .25s var(--ease);
}
.bnr-dot:hover { background: rgba(255, 255, 255, .7); }
.bnr-dot.on { background: var(--lime); width: 26px; }

@media (max-width: 640px) {
  .bnr-arrow { display: none; }          /* swipe instead */
  .bnr-inner > * { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bnr-slide { transition: none; }
}

/* ============================================================
   JOURNAL — index page and article reader
   ============================================================ */

.j-cover.has-photo { padding: 0; overflow: hidden; }
.j-cover.has-photo img { width: 100%; height: 100%; object-fit: cover; }

.j-head {
  max-width: 780px;
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px);
}

.j-head-title {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.03;
  margin-bottom: 16px;
}

.j-grid-page { padding-bottom: clamp(56px, 8vw, 96px); }

/* ---------- article ---------- */

.art {
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: clamp(48px, 7vw, 80px);
}

.art-head { padding-block: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 30px); }

.art-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--h);
  margin-bottom: 14px;
}

.art-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.art-lede { margin-bottom: 20px; }

.art-by {
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.art-cover {
  margin: 0 0 clamp(28px, 4vw, 44px);
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--h) 12%, var(--foil-a));
  display: grid;
  place-items: center;
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

/* body copy — the reading column */
.art-body {
  font-size: 17.5px;
  line-height: 1.72;
  color: #23342b;
  /* A pasted reference URL has no break opportunity, and one long enough will
     widen the whole page rather than its own paragraph. */
  overflow-wrap: anywhere;
}

.art-body > * + * { margin-top: 1.15em; }

.art-body h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 1.9em;
  color: var(--green-900);
}

.art-body h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 650;
  letter-spacing: -.01em;
  margin-top: 1.6em;
  color: var(--green-900);
}

.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body ul { list-style: none; padding-left: 0; }

.art-body ul li {
  position: relative;
  padding-left: 26px;
  margin-top: .5em;
}
.art-body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 12px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--h) 50%, color-mix(in srgb, var(--h) 25%, #fff) 50%);
}

.art-body ol { list-style: decimal; }
.art-body ol li { margin-top: .5em; padding-left: 4px; }
.art-body ol li::marker { font-family: var(--font-mono); font-size: .85em; color: var(--h); }

.art-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--h);
  font-size: 1.06em;
  line-height: 1.55;
  color: var(--green-900);
}

.art-body a { color: var(--green-600); text-underline-offset: 3px; }
.art-body strong { font-weight: 650; color: var(--green-900); }

.art-foot {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.art-more {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 72px);
}

.j-loading { padding: 80px 0; text-align: center; color: var(--ink-soft); }

/* ============================================================
   MOBILE PASS
   Touch targets, iOS viewport quirks and narrow-screen layouts.
   Everything here is scoped to a max-width query except the few
   rules that replace inline styles the markup used to carry.
   ============================================================ */

/* Safari inflates body copy on rotate unless this is pinned. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* These two lived as inline style attributes, which no media query
   could reach — that is why the third related card used to hang off
   the right edge on a phone. */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rel-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }

/* Dynamic viewport units keep the sheet's Place order button clear of
   the iOS URL bar. The vh values above stay as the fallback. */
.co-sheet { max-height: 94dvh; }
@media (min-width: 900px) { .co-sheet { max-height: 88dvh; } }

@media (max-width: 899px) {
  /* Any field under 16px makes iOS Safari zoom the page in on focus
     and never zoom back out. */
  .co-field input,
  .co-field textarea,
  .co-field select,
  .head-search input,
  .mobile-nav input,
  .sort-select,
  input, select, textarea { font-size: 16px; }

  /* The float used to sit on top of the footer's last line and on the
     Add button of the bottom-right card. */
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 25px; height: 25px; }
  .foot-legal { padding-bottom: 76px; }

  /* 44px minimum on anything you tap. */
  .add-btn { padding: 11px 16px; font-size: 13.5px; }
  .social-btn { width: 44px; height: 44px; }
  .foot-col li { margin-bottom: 0; }
  .foot-col a { display: inline-block; padding-block: 9px; }
  .foot-contact li { margin-bottom: 6px; padding-block: 4px; }

  /* The brand blurb was capped at 34ch, which on a 390px phone left a
     ragged third line against a full-width column. */
  .foot-brand p { max-width: none; margin-top: 14px; }
  .foot-grid { padding-block: clamp(40px, 9vw, 56px) 36px; }
  .foot-col h4 { margin-bottom: 10px; }
  .social-row { margin-top: 18px; }
  .pay-row { margin-top: 18px; }

  /* Email and phone are the longest strings in the footer; on a narrow
     column they used to push the layout wider than the viewport. */
  .foot-contact a { overflow-wrap: anywhere; }
  .link-btn { padding-block: 11px; }
  .sec-link { display: inline-block; padding-bottom: 8px; }
  .qty button { width: 38px; height: 38px; font-size: 17px; }
  .qty span { min-width: 30px; font-size: 14.5px; }
  .crumbs a { display: inline-block; padding-block: 5px; }

  /* Lab-mono captions were down at 10.5px, below comfortable reading
     size on a phone. */
  .p-meta { font-size: 11.5px; }
  .p-badge { font-size: 11px; }
  .foot-disclaimer, .foot-legal { font-size: 12px; }
  .drawer-fine, .facts-foot, .ship-note { font-size: 12px; }
  .co-field > span { font-size: 11.5px; }
  .facts-table th { font-size: 11px; }
  .facts-table td.mono { font-size: 12.5px; }

  /* A toast at bottom: 26px lands squarely on the cart drawer's
     checkout button. While any panel is open the toast is redundant
     anyway — the drawer already lists what was just added. */
  body.no-scroll .toast-zone { opacity: 0; pointer-events: none; }
}

@media (max-width: 700px) {
  /* Four wrapped rows of filter chips pushed the products a whole
     screen down. One swipeable strip instead, bled to the edges so it
     reads as scrollable. */
  .chip-row {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(20px, 3.5vw, 48px));
    padding-inline: clamp(20px, 3.5vw, 48px);
    padding-block: 2px;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; padding: 10px 16px; }

  /* Stacked, so a long facility name stops squeezing against the
     nutrient it belongs to. */
  .facts-panel li { display: grid; gap: 3px; }
  .facts-panel li .mono { text-align: left; }
}

@media (max-width: 480px) {
  /* Two cards to a row leaves roughly 165px of card — not enough for a
     price and a pill side by side, so the pill takes its own line. */
  .p-row { flex-wrap: wrap; gap: 8px; }
  .add-btn { flex: 1 0 100%; justify-content: center; }
  .p-price { font-size: 14.5px; }
}

/* Long words in user-entered copy must never widen the page. */
.crumbs, .p-name, .facts-table td:first-child, .di-name { overflow-wrap: anywhere; }

@media (max-width: 899px) {
  /* Missed by the bare `input` rule above — `.news-form input` is more
     specific, so it kept its 15.5px and kept triggering the iOS zoom. */
  .news-form input { font-size: 16px; }

  /* Product-name links were 19px tall, under the 24px minimum, and the
     ragged name heights left card rows looking uneven. A floor fixes both. */
  .p-name { display: flex; min-height: 44px; }
  .p-name a { display: block; width: 100%; }

  /* Lab-mono captions to a readable floor on a phone. */
  .logo-sub { font-size: 9.5px; letter-spacing: .34em; }
  .p-badge,
  .j-tag,
  .pay-row span,
  .facts-table th,
  .pd-cat-chip { font-size: 11.5px; }
  .pd-price small { font-size: 11.5px; }
}

/* ============================================================
   DIVISIONS
   Three ranges live in one shop — supplements, medicines and
   cosmetics. Tabs read as top-level navigation so they are never
   confused with the category pills sitting underneath them.
   ============================================================ */

.div-tabs {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  padding-top: clamp(20px, 2.5vw, 30px);
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.div-tabs::-webkit-scrollbar { display: none; }

.div-tab {
  position: relative;
  flex: none;
  padding: 4px 2px 13px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: clamp(16px, 1.8vw, 21px);
  letter-spacing: -.01em;
  color: #7b897f;
  white-space: nowrap;
  transition: color .18s;
}

.div-tab::after {
  content: '';
  position: absolute;
  inset: auto 0 -1.5px 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--lime);
  scale: 0 1;
  transition: scale .24s var(--ease);
}

.div-tab:hover { color: var(--green-700); }
.div-tab.on { color: var(--green-900); }
.div-tab.on::after { scale: 1; }

/* who a cosmetic is for — only rendered when a range actually splits */
.aud-row { display: flex; align-items: center; gap: 6px; }

.aud-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .18s, color .18s, box-shadow .18s;
}
.aud-btn:hover { box-shadow: inset 0 0 0 1.5px var(--green-600); }
.aud-btn.on { background: var(--green-900); color: #fff; box-shadow: inset 0 0 0 1.5px var(--green-900); }

/* a medicine that cannot be dispensed without a prescription says so */
.rx-note {
  /* block-level flex, not inline-flex: the sentence is long enough that an
     inline box refused to wrap and widened the whole phone page */
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  line-height: 1.5;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  padding: 7px 12px;
  border-radius: 8px;
  color: #8a5a12;
  background: rgba(229, 163, 63, .14);
  box-shadow: inset 0 0 0 1px rgba(229, 163, 63, .35);
}
.rx-note svg { flex: none; margin-top: 2px; }

.p-badge.rx { background: #8a5a12; color: #fff; }

@media (max-width: 700px) {
  /* bleed the tab strip to the screen edges so it reads as swipeable */
  .div-tabs {
    gap: 20px;
    margin-inline: calc(-1 * clamp(20px, 3.5vw, 48px));
    padding-inline: clamp(20px, 3.5vw, 48px);
  }
  .aud-row { width: 100%; }
  .aud-btn { flex: 1; text-align: center; padding-block: 11px; }
}
