/* A Real Change — Member Store. Brand aesthetic: teal + coral + cream, handwritten logo. */
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("/fonts/poppins-800.woff2") format("woff2"); }
:root {
  --cream: #f7f4ee; --cream-2: #eef5f0; --surface: #ffffff; --surface-2: #f2efe7;
  --ink: #22302a; --soft: #5a6a62; --line: #e7e1d5;
  --teal: #2f8f7f; --teal-ink: #24685c; --teal-tint: #e3f1ec;
  --coral: #ef7a54; --coral-ink: #d9603a; --coral-tint: #fdeee7;
  --coral-deep: #c2512e; --coral-text: #b64a2a; /* AA-contrast coral for fills + small labels */
  --display: "Poppins", "Trebuchet MS", "Segoe UI", var(--sans);
  --danger: #c0503f;
  --radius: 16px; --radius-sm: 12px; --wrap: 1140px;
  --shadow-sm: 0 1px 2px rgba(34,48,42,.05), 0 6px 18px rgba(34,48,42,.06);
  --shadow: 0 2px 8px rgba(34,48,42,.07), 0 20px 46px rgba(34,48,42,.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* A Real Change is a warm, bright brand — render light for everyone, even on
     devices set to dark mode (no dark theme; the near-black version read as blank). */
  color-scheme: light;
}
* { box-sizing: border-box; }
/* The `hidden` attribute must win even over author display rules (buttons set
   display:inline-flex, which would otherwise override [hidden]{display:none}). */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.guest { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
body.locked { overflow: hidden; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; line-height: 1.12; text-wrap: balance; }
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--coral-text); margin-bottom: 10px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.eyebrow.center, .section-title.center, .section-sub.center { text-align: center; display: block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: 20px; margin-left: 6px; }
.site-nav a { color: var(--soft); font-weight: 600; font-size: 14.5px; }
.site-nav a.active, .site-nav a:hover { color: var(--teal-ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip { font-size: 13px; color: var(--soft); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { background: none; border: none; color: var(--soft); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.link-btn:hover { color: var(--ink); }
.linkish { background: none; border: none; color: var(--teal-ink); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.cart-btn { background: var(--teal); color: #fff; border: none; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 17px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cart-btn:hover { background: var(--teal-ink); }
.cart-count { background: rgba(255,255,255,.25); border-radius: 999px; min-width: 20px; text-align: center; padding: 0 6px; font-size: 12px; }
.cart-count.has { background: var(--coral-deep); }

/* Buttons */
.btn { background: var(--teal); color: #fff; border: none; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; cursor: pointer; transition: filter .15s, transform .05s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { filter: brightness(.95); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--surface-2); color: var(--soft); opacity: 1; cursor: default; }
.btn svg { width: 17px; height: 17px; }
.btn.coral { background: var(--coral-deep); }
.btn.ghost { background: transparent; color: var(--teal-ink); border: 1.5px solid var(--teal); }
.btn.ghost:hover { background: var(--teal-tint); filter: none; }
.btn.lg { padding: 13px 26px; font-size: 16px; }
.btn.sm { padding: 8px 16px; font-size: 13px; min-height: 40px; }
.btn.block { width: 100%; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty button { background: var(--surface-2); border: none; width: 44px; height: 44px; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--line); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }

/* Landing hero */
.landing-hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-tint); color: var(--teal-ink); font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.badge-pill svg { width: 14px; height: 14px; }
.hero-copy h1 { font-size: clamp(34px, 5.2vw, 56px); }
.accent-underline { color: var(--teal); position: relative; }
.accent-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em; background: var(--coral); border-radius: 2px; }
.hero-copy p { color: var(--soft); font-size: 17px; max-width: 32em; margin-top: 4px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-checks { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; color: var(--soft); font-size: 13.5px; font-weight: 600; }
.hero-checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks svg { width: 15px; height: 15px; color: var(--teal); }
.hero-cta-note { color: var(--soft); font-size: 13px; margin: 12px 0 0; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--soft); font-size: 13px; font-weight: 600; margin-top: 26px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip svg { width: 15px; height: 15px; color: var(--teal); }
.hero-photo { position: relative; }
/* Portrait photo — anchor the crop to the top so her face is always in frame
   (centered cover was cutting her face off at the top). */
.hero-photo img { width: 100%; max-height: 520px; object-fit: cover; object-position: center top; border-radius: 22px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: 18px; bottom: 18px; background: var(--surface); border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow-sm); }
.hero-badge strong { display: block; font-size: 14px; }
.hero-badge span { font-size: 12px; color: var(--soft); }

/* Quote band */
.quote-band { background: var(--teal); color: #fff; margin: 48px 0; padding: 56px 0; }
.quote-band p { font-size: clamp(19px, 2.6vw, 26px); font-weight: 600; line-height: 1.4; text-align: center; max-width: 40ch; margin: 0 auto; }
.quote-by { display: block; text-align: center; margin-top: 14px; font-weight: 700; opacity: .9; }

/* Process + included */
.process, .included { padding: 44px 0; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); }
.section-sub { color: var(--soft); font-size: 16px; margin: 8px 0 0; }
.process-grid, .included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.process-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.step-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal); color: #fff; margin-bottom: 14px; }
.step-ic svg { width: 24px; height: 24px; }
.step-n { position: absolute; top: 18px; right: 20px; width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--teal-tint); color: var(--teal-ink); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.process-step strong { display: block; font-size: 18px; margin-bottom: 6px; }
.step-desc { color: var(--soft); font-size: 14px; }
.included-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.inc-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--coral-tint); color: var(--coral-ink); align-items: center; justify-content: center; margin-bottom: 12px; }
.inc-ic svg { width: 22px; height: 22px; }
.included-card strong { display: block; font-size: 17px; margin-bottom: 5px; }
.included-card span { color: var(--soft); font-size: 14px; }
.cta-band { text-align: center; margin: 56px 0 24px; padding: 48px 24px; background: var(--coral-tint); border-radius: var(--radius); }
.cta-band h3 { font-size: 26px; margin-bottom: 18px; }

/* Store */
.shop-head { padding: 34px 0 4px; }
.shop-head h1 { font-size: clamp(28px, 4vw, 40px); }
.shop-head p { color: var(--soft); font-size: 16px; }
.ship-chip { display: inline-block; font-size: 13px; font-weight: 700; color: var(--teal-ink); background: var(--teal-tint); padding: 5px 12px; border-radius: 999px; margin-left: 6px; }
.section-head { margin: 40px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .16s, box-shadow .16s, border-color .16s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); }
.card:hover .card-name { color: var(--teal-ink); }
.card-media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.card-media img { object-position: 50% 45%; }
.card-media img, .card-media .vial { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--coral-text); font-weight: 800; }
.card-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.card-strength { font-size: 13px; color: var(--soft); min-height: 18px; }
.card-blurb { font-size: 12.5px; color: var(--soft); margin: 6px 0 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-size: 20px; font-weight: 800; }
.price.lg { font-size: 30px; }

/* Drawer / cart */
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(430px, 94vw); background: var(--surface); border-left: 1px solid var(--line); z-index: 50; display: flex; flex-direction: column; box-shadow: -14px 0 46px rgba(34,48,42,.2); }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-body { padding: 8px 22px 24px; overflow-y: auto; flex: 1; }
.scrim { position: fixed; inset: 0; background: rgba(34,48,42,.44); z-index: 40; backdrop-filter: blur(2px); }
.scrim[hidden] { display: none; }
.cart-line { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 58px; height: 58px; border-radius: 11px; overflow: hidden; flex: none; background: var(--surface-2); }
.cart-line .thumb img, .cart-line .thumb .vial { width: 100%; height: 100%; object-fit: cover; }
.cart-line .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cart-line .meta .nm { font-weight: 800; font-size: 15px; }
.cart-line .meta .st { font-size: 12px; color: var(--soft); }
.cart-line .lp { font-weight: 800; font-size: 15px; white-space: nowrap; }
.cart-line .rm { background: none; border: none; color: var(--soft); font-size: 13px; cursor: pointer; padding: 8px 0; }
.cart-line .rm:hover { color: var(--danger); }
.totals { margin-top: 18px; font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--soft); }
.totals .row.grand { color: var(--ink); font-weight: 800; font-size: 20px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.ack { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 13px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 9%, transparent); font-size: 13px; }
.ack input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
/* The total and Checkout button stay in view while the items scroll behind them.
   With three items they used to fall below the fold, so on a phone she'd see a cart
   with no visible total and no way to pay without discovering she had to scroll. */
.cart-checkout {
  position: sticky; bottom: 0; z-index: 2;
  /* Deliberately small. This used to hold the shipping picker and the full price
     breakdown at up to 72vh, which left the item list a sliver — she could not
     comfortably scroll her own basket, or reach the note telling her she still needs
     bacteriostatic water. Only what she must ACT on is pinned now: the total, the
     confirmation and the button. Everything she reads once scrolls with the cart. */
  max-height: 52vh; overflow-y: auto;
  /* Negative margins cancel .drawer-body's own padding (8px 22px 24px) so the
     pinned block spans the full drawer width. */
  margin: 0 -22px -24px; padding: 12px 22px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 20px -12px rgba(32, 52, 46, 0.22);
}
/* The pinned total is a single line, so it needs none of the stacked spacing the
   scrolling breakdown above it uses. */
.totals.compact { margin-top: 0; }
.totals.compact .row.grand { border-top: none; margin-top: 0; padding-top: 0; padding-bottom: 2px; }
.cart-checkout .ack { margin: 10px 0; padding: 10px 12px; }
.cart-checkout .secure-line { margin-top: 8px; padding-bottom: 0; }
/* Must WRAP: it now carries the statement-descriptor line too, and a rigid flex row
   clipped "ARC WELLNESS" against the bottom of the cart drawer. */
.secure-line {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 4px 6px; font-size: 12px; color: var(--soft); margin-top: 12px;
  padding-bottom: 8px; text-align: center; line-height: 1.5;
}
.secure-line .descriptor-note { flex-basis: 100%; }
.secure-line svg { width: 13px; height: 13px; }
.empty { color: var(--soft); text-align: center; padding: 48px 12px; }

/* Modal (auth / pdp) — mobile-scrollable */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(34,48,42,.5); padding: 20px; backdrop-filter: blur(3px); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); width: min(410px, 100%); padding: 30px; position: relative; max-height: calc(100vh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-card.wide { width: min(780px, 100%); padding: 0; }
/* FIXED to the viewport, not absolute inside the card. It used to scroll away with
   the product detail, so on a phone — where the card is a tall scroll — she reached
   the bottom with no visible way out and had to guess that tapping the backdrop
   worked. Also enlarged to a 44px tap target. */
.modal-close {
  position: fixed; top: 14px; right: 14px;
  background: var(--surface); border: 1px solid var(--line);
  width: 44px; height: 44px; border-radius: 999px;
  font-size: 26px; line-height: 1; color: var(--ink);
  cursor: pointer; z-index: 70;
  box-shadow: 0 4px 14px rgba(32, 52, 46, .28);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-2); }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h2 { font-size: 25px; margin: 4px 0; }
.auth-sub { color: var(--soft); font-size: 14px; margin: 0; }
.auth-fine { text-align: center; font-size: 12px; color: var(--soft); margin: 14px 0 0; }

/* Profile gate / account / terms */
.wrap.narrow { max-width: 620px; }
.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; margin: 24px auto; }
.gate-card h1 { font-size: clamp(23px, 3.4vw, 31px); }
.profile-form .form-field input:disabled { background: var(--surface-2); color: var(--soft); cursor: not-allowed; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; }
.check-row input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.terms-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 8px 0 4px; max-height: 240px; overflow-y: auto; }
.terms-intro { margin: 0 0 10px; font-size: 13.5px; color: var(--soft); }
.terms-list { margin: 0; padding-left: 18px; }
.terms-list li { font-size: 13px; color: var(--ink); margin-bottom: 9px; line-height: 1.5; }
.terms-accepted { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--teal-ink); background: var(--teal-tint); padding: 10px 14px; border-radius: var(--radius-sm); }
.terms-accepted svg { width: 15px; height: 15px; flex: none; }

/* Shipping selector in cart */
/* The shipping picker now scrolls with the cart, so it keeps its normal spacing. */
.ship-select { margin: 16px 0 4px; }
.ship-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); margin-bottom: 8px; }
.ship-opt { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.ship-opt.sel { border-color: var(--teal); background: var(--teal-tint); }
.ship-opt input { accent-color: var(--teal); }
.ship-opt .ship-name { flex: 1; font-weight: 600; }
.ship-opt .ship-price { font-weight: 700; }
.sent-ic { display: inline-flex; width: 54px; height: 54px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-ink); align-items: center; justify-content: center; margin-bottom: 8px; }
.sent-ic svg { width: 26px; height: 26px; }
.dev-link { margin-top: 16px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.dev-link p { margin: 0 0 8px; font-size: 12px; color: var(--soft); }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-field .opt { color: var(--soft); font-weight: 400; }
.form-field input { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
.form-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.form-err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 2px 0 8px; }

/* PDP */
.pdp { display: grid; grid-template-columns: 1fr 1fr; }
/* The image is decorative here — she has already seen it on the shelf. Capping it
   keeps the words she actually needs above the fold instead of pushing them into a
   scroll. */
@media (max-width: 720px) { .pdp-media { min-height: 0; max-height: 34vh; } }
.pdp-media { background: var(--surface-2); min-height: 340px; }
.pdp { align-items: stretch; }
.pdp-media img, .pdp-media .vial { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { padding: 30px; }
.pdp-info h2 { font-size: 26px; margin: 4px 0 2px; }
.pdp-strength { color: var(--soft); font-size: 15px; margin-bottom: 10px; }
.pdp-info > p { color: var(--soft); font-size: 14px; }
.pdp-facts { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.pdp-facts li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.pdp-facts strong { min-width: 92px; color: var(--ink); }
.pdp-add { margin: 6px 0 14px; }
.pdp-note { font-size: 11px; color: var(--soft); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 12px; }

/* Orders */
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-when { font-size: 17px; font-weight: 800; }
.order-id { font-size: 11.5px; color: var(--soft); font-family: ui-monospace, monospace; margin-top: 2px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.badge.paid { background: var(--teal-tint); color: var(--teal-ink); }
.badge.pending { background: var(--coral-tint); color: var(--coral-ink); }
.badge.hold { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.order-items { margin: 14px 0 0; font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.order-items .oi { display: flex; justify-content: space-between; padding: 4px 0; }
.order-items .oi.muted { color: var(--soft); }
.order-items .oi em { color: var(--soft); font-style: normal; }
.order-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.order-total { font-weight: 800; font-size: 18px; display: flex; gap: 14px; align-items: baseline; }
.order-total span:first-child { font-size: 13px; color: var(--soft); font-weight: 600; }

/* Admin */
.admin { padding-top: 20px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 30px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-val { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat-label { font-size: 12.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 14px 0 30px; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.admin-table th { text-align: left; padding: 12px 14px; background: var(--surface-2); color: var(--soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.a-when { font-weight: 700; }
.a-id, .a-items { font-size: 11.5px; color: var(--soft); margin-top: 2px; }
.warn-text { color: var(--coral-ink); }
.admin-table select { font: inherit; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.admin-table select:disabled { opacity: .5; }
.pend-actions { white-space: nowrap; }
.pend-actions .btn { margin-right: 4px; }

/* Banners */
.banner { border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; font-size: 15px; }
.banner.ok { background: var(--teal-tint); color: var(--teal-ink); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.banner.info { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.banner.warn { background: #fff5ef; color: #7a3312; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent); }
.banner a { color: inherit; text-decoration: underline; }

/* A checkout failure must persist on screen, not flash past in a toast. */
.cart-error {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #fff5ef; color: #7a3312;
  border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent);
  font-size: 14px; line-height: 1.5;
}
.descriptor-note { display: inline-block; margin-top: 4px; }
.order-note {
  margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--soft);
}
/* Held orders sit above everything else in admin — money may already have moved. */
.attention {
  margin: 22px 0 8px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff5ef; border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent);
}
.attention .section-title { margin-top: 0; color: #7a3312; }
.attention .section-sub { color: #7a3312; }
.hold-reason { font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* Availability, owner-controlled */
.avail { display: block; font-size: 12.5px; margin: 2px 0 0; color: var(--soft); }
.avail-mto { color: var(--teal-ink); }
.avail-off { color: #a2410f; font-weight: 600; }
.avail-note { font-weight: 400; color: var(--soft); }
.unavailable-tag { font-size: 13px; color: #a2410f; font-weight: 600; }
.cart-line.gone { opacity: 0.72; }
.cart-line.gone .lp { color: var(--soft); }
.line-warn { font-size: 12.5px; line-height: 1.45; color: #a2410f; margin: 4px 0 6px; }
.muted-sm { color: var(--soft); font-size: 13px; }
.price-input, .note-input {
  font: inherit; font-size: 14px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink); width: 100%; max-width: 190px;
}
.price-input { max-width: 96px; }
/* Confirms the row saved without rebuilding the table and losing other rows' edits. */
.row-saved { background: var(--teal-tint); transition: background .3s ease; }

/* Fulfilment */
.to-ship { margin: 22px 0 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--teal-tint); border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent); }
.to-ship .section-title { margin-top: 0; }
.track-line { margin: 8px 0 0; font-size: 14px; }
.track-line a { color: var(--teal-ink); font-weight: 700; }
.admin-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.admin-search input {
  font: inherit; font-size: 15px; padding: 10px 12px; flex: 1 1 260px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}

/* The "you'll need water and syringes" nudge — informative, dismissible, never blocking. */
.companion-nudge {
  position: relative; margin: 14px 0 4px; padding: 14px 16px;
  background: var(--teal-tint); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  border-radius: 12px;
}
.nudge-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--teal-ink); }
.nudge-body { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.nudge-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nudge-x {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  font-size: 22px; line-height: 1; color: var(--soft); cursor: pointer;
  min-width: 40px; min-height: 40px;
}

/* Sign-in by code, for when the emailed link won't cooperate. */
.code-form { margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.code-form label { display: block; font-size: 13.5px; color: var(--soft); margin-bottom: 8px; }
/* Help / policies */
.help { max-width: 760px; }
.help-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 18px;
}
.help-card .section-title { margin-top: 0; }
.help-card p { font-size: 15.5px; line-height: 1.65; color: var(--ink); margin: 0 0 10px; }
.help-facts, .help-list { margin: 12px 0 0; padding: 0; list-style: none; }
.help-facts li, .help-list li { font-size: 15px; line-height: 1.6; padding: 7px 0; border-top: 1px solid var(--line); }
.help-facts li:first-child, .help-list li:first-child { border-top: none; }
.help-facts strong, .help-list strong { color: var(--ink); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: none; }
.faq summary {
  cursor: pointer; padding: 13px 0; font-size: 16px; font-weight: 600;
  color: var(--ink); list-style: none; min-height: 44px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--soft); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--soft); font-size: 15px; }
.help-fine { font-size: 13px; color: var(--soft); line-height: 1.6; }
.pdp-about { font-size: 14.5px; line-height: 1.65; color: var(--soft); margin: 10px 0 4px; }

.code-form input {
  font: inherit; font-size: 26px; letter-spacing: 8px; text-align: center;
  width: 100%; padding: 12px; margin-bottom: 10px; font-family: monospace;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
/* Admin 'view as customer' preview bar */
.custview-bar { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--coral-tint); color: var(--coral-ink); font-size: 13px; font-weight: 700; padding: 9px 16px; text-align: center; }
.custview-bar[hidden] { display: none; }
.custview-bar .linkish { color: var(--coral-ink); text-decoration: underline; }

/* Footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 30px 0; background: var(--surface); text-align: center; }
.footer-logo { height: 30px; width: auto; opacity: .85; margin-bottom: 12px; }
.site-footer .policy { font-weight: 600; color: var(--ink); font-size: 13px; margin: 0 0 8px; }
.site-footer .fine { color: var(--soft); font-size: 13px; margin: 0 0 8px; }
.site-footer .compliance { color: var(--soft); font-size: 11.5px; line-height: 1.5; max-width: 70ch; margin: 10px auto 0; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 80; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { order: -1; }
  /* sandi-hero.jpg is 1111x1920 — a PORTRAIT, full-body shot with her face about a
     fifth of the way down. Forcing it into a squat 260px-tall full-width box and
     cropping from the top gave a band of empty ceiling and sliced her off at the
     waist. Frame it as a portrait instead and anchor on her face. max-height stops
     it eating a small phone's whole screen; only the smallest devices hit it. */
  .hero-photo img {
    max-height: 52vh;
    aspect-ratio: 4 / 5;
    object-position: 50% 25%;
  }
  .process-grid, .included-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .pdp-media { aspect-ratio: 16/10; }
  .modal-card.wide { max-height: calc(100vh - 24px); }
}
@media (max-width: 640px) {
  /* One product per row on a phone. Two tiny cards side by side left her looking at
     a name and "$290" with the description hidden entirely — a bare price with no
     words next to it is exactly where a hesitant buyer closes the tab. */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { flex-direction: row; align-items: stretch; }
  .card-media { width: 116px; flex: 0 0 116px; }
  .card-body { padding: 14px 14px 15px; }
  .card-name { font-size: 17px; }
  /* Description stays visible — it's the whole reason she can judge the price. */
  .card-blurb { display: block; font-size: 13.5px; }
  .price { font-size: 19px; }
  .card-foot { margin-top: 12px; }
  /* Thumb-sized controls. */
  .btn.sm { padding: 10px 16px; font-size: 15px; }
  .qty button { min-width: 40px; min-height: 40px; font-size: 18px; }
  .cart-line .rm { min-height: 44px; font-size: 14px; text-decoration: underline; }
}
@media (max-width: 520px) {
  /* Keep the 22px horizontal inset from .wrap. The old `padding: 10px 0 8px`
     shorthand zeroed it, so the logo and Log in button sat flush against the screen
     edges while every piece of page content was inset 22px — the header visibly
     failed to line up with the page. */
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 22px 8px; gap: 10px 12px; }
  /* Signed in there are several links, so they get their own centred row. */
  .site-nav { order: 3; width: 100%; gap: 18px; margin-left: 0; justify-content: center; }
  /* Signed OUT there is only "Help", and a lone link stranded on its own
     full-width row read as a broken menu bar. Keep it inline beside Log in. */
  body.guest .site-nav { order: 0; width: auto; margin-left: auto; }
  .user-chip { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* A price DROP is good news — it must not be shown in the same alarm colour as a rise. */
.line-good { font-size: 12.5px; line-height: 1.45; color: var(--teal-ink); margin: 4px 0 6px; font-weight: 600; }

/* Two prices, presented as facts rather than a comparative claim. */
.price-block { display: flex; flex-direction: column; gap: 2px; }
.price-alt { font-size: 12px; color: var(--soft); line-height: 1.3; }
.price-block.lg .price-alt { font-size: 13px; margin-top: 2px; }

/* Shipping address on an order */
.order-addr { margin: 10px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.order-addr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-addr-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); font-weight: 700; }
.order-addr-locked { font-size: 12px; color: var(--soft); }
.order-addr-body { font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--ink); }
.form-row { display: flex; gap: 10px; }
.form-row .form-field { flex: 1 1 auto; }
.form-row .form-field.narrow { flex: 0 0 86px; }
.acct-sub { font-size: 17px; margin: 22px 0 2px; }
@media (max-width: 520px) { .form-row { flex-wrap: wrap; } .form-row .form-field.narrow { flex: 1 1 40%; } }

/* Admin tables on a phone.
   These are 5-6 columns wide. On a 390px screen the status and action controls sat
   entirely offscreen, so approving or shipping meant discovering you had to scroll
   a table sideways — during exactly the rush when you're on a phone. Below 640px
   each row becomes a labelled card instead, with the controls always reachable. */
@media (max-width: 640px) {
  .admin-table thead { display: none; }
  /* min-width: 640px is set on .admin-table for the desktop layout and was never
     reset here — so on a 390px phone the table stayed 640px wide and pushed the whole
     page sideways, while .table-wrap below had its scroll container removed. Cards do
     not need a minimum width at all. */
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; min-width: 0; }
  .admin-table tr {
    border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 12px; margin: 0 0 10px; background: var(--surface);
  }
  .admin-table td {
    border: none; padding: 5px 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  }
  .admin-table td::before {
    content: attr(data-label);
    flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--soft);
  }
  .admin-table td:not([data-label])::before { content: ""; }
  /* Values right-align against their label and wrap rather than overflow. */
  .admin-table td > * { text-align: right; }
  .admin-table td.pend-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .admin-table td.pend-actions .btn { flex: 0 0 auto; }
  .admin-table select, .admin-table .price-input, .admin-table .note-input { max-width: 60%; }
  .table-wrap { overflow-x: visible; }
  .admin-search { flex-direction: column; align-items: stretch; }
}

/* How long a vial lasts. Always carries its "depending on your dose" qualifier —
   a bare day count would be an implied dose. */
.supply-note { display: block; font-size: 12.5px; color: var(--teal-ink); margin: 3px 0 0; font-weight: 600; }
.supply-note.lg { font-size: 14px; margin: 8px 0 0; font-weight: 500; }

/* Destructive admin action — visually distinct from the neutral ghost buttons it
   sits beside, so Delete is never pressed while reaching for Address. */
.btn.ghost.danger { color: #b4232a; border-color: #e8b9bb; }
.btn.ghost.danger:hover { background: #fdf2f2; border-color: #b4232a; }

/* Admin tabs — the back office is four screens, not one endless scroll. */
.admin-tabs { display: flex; gap: 4px; margin: 18px 0 6px; border-bottom: 1px solid var(--line, #e6e1dc); overflow-x: auto; }
.admin-tab { padding: 10px 16px; white-space: nowrap; text-decoration: none; color: #6b6560;
  border-bottom: 2px solid transparent; font-weight: 600; font-size: 15px; }
.admin-tab:hover { color: #2f2b28; }
.admin-tab.active { color: #b4232a; border-bottom-color: #b4232a; }
.pager { display: flex; align-items: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.pager-count { margin: 0; font-size: 14px; color: #6b6560; }
.pager .btn[disabled] { opacity: .4; cursor: default; }

/* --- store closed --------------------------------------------------------- */
/* Stands in for the whole shelf, so it carries the weight of a page rather than
   the weight of a banner. Cream card on the page background, teal accent — the
   store's own voice, not a browser error. */
.closed-notice { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 34px 36px; margin: 34px auto; max-width: 760px; }
.closed-notice.compact { margin: 22px auto 6px; padding: 26px 28px; }
.closed-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--coral-text); background: var(--coral-tint);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.closed-notice h2 { font-size: 27px; line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.closed-notice p { color: var(--soft); font-size: 15.5px; margin: 0 0 13px; }
.closed-notice p:last-of-type { margin-bottom: 0; }
.closed-reassure { background: var(--teal-tint); color: var(--teal-ink) !important; border-radius: var(--radius-sm);
  padding: 14px 16px; margin-top: 18px !important; font-weight: 600; }
.closed-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* The drawer is 360px-ish, so the page-sized padding has to come off. */
.drawer-body .closed-notice { margin: 0; padding: 22px 20px; border-left-width: 4px; box-shadow: none; }
.drawer-body .closed-notice h2 { font-size: 20px; }
@media (max-width: 640px) {
  .closed-notice { padding: 24px 20px; margin: 20px auto; }
  .closed-notice h2 { font-size: 22px; }
}

/* Admin: open/closed at a glance, because "is my store live?" should never need
   a second opinion. */
.store-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 26px; }
.store-status.shut { border-left: 5px solid var(--coral-deep); }
.store-status.open { border-left: 5px solid var(--teal); }
.ss-state { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 6px; }
.ss-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.store-status.shut .ss-dot { background: var(--coral-deep); }
.store-status.open .ss-dot { background: var(--teal); }
.store-status .section-sub { margin: 0 0 16px; }
