/* ── OnlyPeps storefront ──────────────────────────────────────────────────────
 * The OnlyPeps brand's own sheet (src/onlypeps/storefront.ts). Served on
 * onlypeps.io only and never loaded by a New-U page, so these tokens cannot
 * collide with New-U's three systems (style.css :root, admin.css, --pds-*).
 * Palette: brief §15. Mobile-first; breakpoints at 768 and 1080.
 */
:root {
  --op-ink: #10251f;
  --op-deep: #0b251e;
  --op-accent: #c8f87e;
  --op-paper: #f8faf7;
  --op-paper-2: #eff3ed;
  --op-muted: #63726d;
  --op-line: #dce4df;
  --op-white: #ffffff;
  --op-danger: #a3261b;
  --op-radius: 14px;
  --op-gutter: 16px;
  --op-max: 1180px;
  --op-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--op-paper);
  color: var(--op-ink);
  font: 16px/1.6 var(--op-font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--op-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; color: var(--op-deep); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); margin: 0.5rem 0 0.75rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0; }
:focus-visible { outline: 3px solid var(--op-deep); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.op-wrap { width: 100%; max-width: var(--op-max); margin: 0 auto; padding: 0 var(--op-gutter); }
.op-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.op-skip { position: absolute; left: -9999px; top: 0; background: var(--op-accent); color: var(--op-deep); padding: 12px 16px; z-index: 10; font-weight: 700; }
.op-skip:focus { left: 8px; top: 8px; }

/* ── Chrome ─────────────────────────────────────────────────────────────── */
.op-ruo-strip { background: var(--op-deep); color: var(--op-accent); font-size: 0.8rem; text-align: center; padding: 6px var(--op-gutter); }
.op-header { background: var(--op-white); border-bottom: 1px solid var(--op-line); position: sticky; top: 0; z-index: 5; }
.op-header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 60px; }
.op-logo { font-weight: 800; font-size: 1.35rem; text-decoration: none; color: var(--op-deep); letter-spacing: -0.02em; }
.op-logo span { background: var(--op-accent); padding: 0 6px; border-radius: 6px; margin-left: 2px; }
.op-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
.op-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0 0 8px; }
.op-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; color: var(--op-ink); }
.op-nav a[aria-current="page"], .op-nav a:hover { background: var(--op-paper-2); }
.op-cart-link { grid-column: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--op-deep); color: var(--op-white); text-decoration: none; font-weight: 600; }
.op-cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--op-accent); color: var(--op-deep); font-size: 0.85rem; font-weight: 800; }

.op-footer { margin-top: 4rem; background: var(--op-deep); color: #dfe9e3; padding: 2.5rem 0 1.5rem; }
.op-footer a { color: var(--op-white); }
.op-footer h2 { color: var(--op-accent); font-size: 1rem; margin: 0 0 0.5rem; }
.op-footer ul { list-style: none; margin: 0; padding: 0; }
.op-footer li a { display: inline-block; padding: 6px 0; }
.op-footer-grid { display: grid; gap: 1.5rem; }
.op-footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; }

.op-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.875rem; color: var(--op-muted); }
.op-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--op-line); }
.op-crumbs a { color: var(--op-muted); }

/* ── Building blocks ────────────────────────────────────────────────────── */
.op-lead { font-size: 1.1rem; color: var(--op-muted); max-width: 62ch; }
.op-small { font-size: 0.875rem; color: var(--op-muted); }
.op-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--op-muted); margin: 1.25rem 0 0; }
.op-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--op-deep); color: var(--op-accent); font: 700 1rem/1 var(--op-font); text-decoration: none; cursor: pointer; }
.op-btn:hover { background: #12382d; }
.op-btn[disabled] { background: var(--op-line); color: var(--op-muted); cursor: not-allowed; }
.op-btn-block { width: 100%; }
.op-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.op-hero { background: var(--op-deep); color: var(--op-white); padding: 2.5rem 0 2.75rem; }
.op-hero h1 { color: var(--op-white); max-width: 18ch; }
.op-hero .op-lead { color: #d3e1d9; }
.op-hero .op-btn { background: var(--op-accent); color: var(--op-deep); }
.op-hero .op-link { color: var(--op-accent); margin-left: 12px; }
.op-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 1.25rem 0 0; }

.op-minimum { display: grid; gap: 4px; background: var(--op-accent); color: var(--op-deep); border-radius: var(--op-radius); padding: 14px 18px; margin: 1.5rem 0; }
.op-minimum strong { font-size: 1.05rem; }
.op-status { font-weight: 600; color: var(--op-deep); margin: 0 0 0.5rem; }
.op-ruo { border-left: 4px solid var(--op-deep); background: var(--op-paper-2); padding: 12px 16px; border-radius: 0 var(--op-radius) var(--op-radius) 0; font-size: 0.9rem; margin: 2rem 0 0; }
.op-empty { background: var(--op-white); border: 1px dashed var(--op-line); border-radius: var(--op-radius); padding: 24px; text-align: center; color: var(--op-muted); }
.op-error { color: var(--op-danger); font-weight: 600; margin: 0.75rem 0 0; }
.op-prose { max-width: 820px; }
.op-list { padding-left: 1.2rem; }
.op-list li { padding: 4px 0; }

.op-chips ul { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0 0 1rem; padding: 4px 0 8px; scrollbar-width: thin; }
.op-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--op-line); background: var(--op-white); text-decoration: none; white-space: nowrap; color: var(--op-ink); }
.op-chips a[aria-current="page"] { background: var(--op-deep); border-color: var(--op-deep); color: var(--op-accent); }

/* Product grid: 2 columns on phones, 3 on tablets, 4 on desktop. */
.op-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.op-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: var(--op-white); color: var(--op-ink); transition: border-color 0.15s ease; }
.op-card:hover, .op-card:focus-within { border-color: var(--op-deep); }
.op-card-link { display: block; text-decoration: none; color: var(--op-ink); }
.op-card-media { display: grid; place-items: center; aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--op-paper-2) 0%, var(--op-paper) 100%); }
.op-card-head { display: grid; gap: 6px; padding: 12px 14px 0; }
.op-card-body { display: grid; align-content: start; gap: 6px; flex: 1 1 auto; padding: 6px 14px 16px; }
.op-badge { justify-self: start; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.op-badge.is-in { background: var(--op-accent); color: var(--op-deep); }
.op-badge.is-out { background: var(--op-paper-2); color: var(--op-ink); }
.op-card-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--op-muted); font-weight: 700; }
.op-card-strengths { font-size: 0.875rem; color: var(--op-muted); }
.op-card-price { margin: 0; }
.op-card-sub { display: block; font-size: 0.8rem; color: var(--op-muted); }
/* The card's own buy form: format, strength, add. Script-only (rendered hidden). */
.op-card-buy { display: grid; gap: 8px; margin-top: 4px; }
.op-segs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 0; margin: 0; padding: 0; min-width: 0; }
.op-seg { position: relative; display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border: 2px solid var(--op-line); border-radius: 10px; background: var(--op-paper); font-size: 0.8rem; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; }
.op-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.op-seg:has(input:checked) { border-color: var(--op-deep); background: var(--op-accent); }
.op-seg:has(input:focus-visible) { outline: 3px solid var(--op-deep); outline-offset: 2px; }
.op-seg.is-unavailable { opacity: 0.55; cursor: not-allowed; }
.op-card-select, .op-line-edit select { min-height: 44px; width: 100%; min-width: 0; border: 1px solid var(--op-line); border-radius: 10px; padding: 0 10px; font: inherit; background: var(--op-white); color: var(--op-ink); }
.op-card-add { min-height: 44px; padding: 0 12px; font-size: 0.95rem; }
.op-card-status { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--op-deep); }
.op-card-status:empty { display: none; }

.op-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.op-cat-grid a { display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: var(--op-radius); background: var(--op-paper-2); text-decoration: none; color: var(--op-ink); }
.op-cat-grid a:hover { background: #e3eae1; }
.op-cat-grid span { font-size: 0.9rem; color: var(--op-muted); }
.op-cat-grid .op-tile-cta { align-self: end; font-weight: 700; color: var(--op-deep); }
.op-steps { padding-left: 1.2rem; display: grid; gap: 8px; }

/* ── Product page ───────────────────────────────────────────────────────── */
.op-pdp { display: grid; gap: 1.25rem; align-items: start; }
.op-buy { background: var(--op-white); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 18px; display: grid; gap: 14px; }
.op-buy-h { margin: 0; font-size: 1.15rem; }
.op-strengths { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.op-strengths legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.op-strength { position: relative; display: grid; gap: 2px; min-height: 56px; padding: 10px 12px; border: 2px solid var(--op-line); border-radius: 12px; cursor: pointer; background: var(--op-paper); }
.op-strength input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.op-strength:has(input:checked) { border-color: var(--op-deep); background: var(--op-accent); }
.op-strength:has(input:focus-visible) { outline: 3px solid var(--op-deep); outline-offset: 2px; }
.op-strength.is-unavailable { opacity: 0.55; cursor: not-allowed; }
.op-strength-mg { font-weight: 700; }
.op-strength-price { font-size: 0.875rem; color: var(--op-muted); }
.op-strength:has(input:checked) .op-strength-price { color: var(--op-deep); }
.op-formats { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.op-formats legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.op-format { position: relative; display: grid; gap: 2px; min-height: 56px; padding: 10px 12px; border: 2px solid var(--op-line); border-radius: 12px; cursor: pointer; background: var(--op-paper); }
.op-format input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.op-format:has(input:checked) { border-color: var(--op-deep); background: var(--op-accent); }
.op-format:has(input:focus-visible) { outline: 3px solid var(--op-deep); outline-offset: 2px; }
.op-format.is-unavailable { opacity: 0.55; cursor: not-allowed; }
.op-format-name { font-weight: 700; }
.op-format-note { font-size: 0.875rem; color: var(--op-muted); }
.op-format:has(input:checked) .op-format-note { color: var(--op-deep); }
.op-buy-facts, .op-totals { margin: 0; display: grid; gap: 6px; }
.op-buy-facts div, .op-totals div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.op-buy-facts dt, .op-totals dt { color: var(--op-muted); }
.op-buy-facts dd, .op-totals dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.op-buy-facts code { font-size: 0.85rem; }
.op-saving[hidden] { display: none; }
.op-saving { display: inline-block; margin-left: 4px; font-size: 0.8rem; font-weight: 700; color: var(--op-deep); }
.op-qty { display: flex; align-items: center; gap: 12px; }
.op-qty label { font-weight: 600; }
.op-qty input, .op-field select, .op-line-qty input { min-height: 44px; border: 1px solid var(--op-line); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--op-white); color: var(--op-ink); }
.op-qty input { width: 6rem; }
.op-buy-total { margin: 0; font-weight: 600; min-height: 1.6em; }
.op-buy-note { margin: 0; font-size: 0.875rem; color: var(--op-muted); }
.op-oos { margin: 0; color: var(--op-danger); font-weight: 600; }

.op-table-wrap { overflow-x: auto; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: var(--op-white); }
.op-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.op-table caption { text-align: left; padding: 12px 14px 0; color: var(--op-muted); font-size: 0.85rem; }
.op-table th, .op-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--op-line); white-space: nowrap; }
.op-table tbody tr:last-child > * { border-bottom: 0; }
.op-spec { display: grid; gap: 0; margin: 0; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: var(--op-white); overflow: hidden; }
.op-spec div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--op-line); }
.op-spec div:last-child { border-bottom: 0; }
.op-spec dt { font-weight: 600; color: var(--op-muted); }
.op-spec dd { margin: 0; overflow-wrap: anywhere; }

/* ── Basket ─────────────────────────────────────────────────────────────── */
.op-cart { display: grid; gap: 16px; }
.op-cart-progress { background: var(--op-white); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 14px 16px; }
.op-progress-text { margin: 0 0 10px; }
.op-meter { height: 10px; border-radius: 999px; background: var(--op-paper-2); overflow: hidden; }
.op-meter span { display: block; width: 0; height: 100%; background: var(--op-deep); border-radius: inherit; transition: width 0.25s ease; }
.op-meter.is-complete span { background: #4f8a1f; }
.op-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.op-line { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 16px; background: var(--op-white); border: 1px solid var(--op-line); border-radius: var(--op-radius); }
.op-line.is-blocked { border-color: var(--op-danger); }
.op-line-info { display: grid; gap: 2px; grid-column: 1 / -1; }
.op-line-info a { font-weight: 700; }
.op-line-strength { font-weight: 600; }
.op-line-format { justify-self: start; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--op-line); background: var(--op-paper); }
.op-line-format.is-pack { border-color: var(--op-deep); background: var(--op-accent); color: var(--op-deep); }
.op-line-meta { font-size: 0.875rem; color: var(--op-muted); }
.op-line-note { font-size: 0.875rem; color: var(--op-danger); font-weight: 600; }
.op-line-qty { display: flex; align-items: center; gap: 6px; }
.op-line-qty input { width: 4.25rem; text-align: center; }
.op-step { min-width: 44px; min-height: 44px; border: 1px solid var(--op-line); border-radius: 10px; background: var(--op-paper); font: 700 1.1rem/1 var(--op-font); color: var(--op-ink); cursor: pointer; }
.op-line-total { justify-self: end; align-self: center; font-weight: 700; }
.op-remove { grid-column: 1 / -1; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--op-muted); text-decoration: underline; font: inherit; cursor: pointer; }
.op-cart-summary { background: var(--op-white); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 16px; display: grid; gap: 12px; align-self: start; }
.op-subtotal { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.op-field { display: grid; gap: 6px; }
.op-field label { font-weight: 600; }
.op-field select { width: 100%; }

@media (min-width: 768px) {
  .op-header-row { grid-template-columns: auto 1fr auto; }
  .op-nav { grid-column: 2; grid-row: 1; justify-self: center; }
  .op-nav ul { padding: 0; }
  .op-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .op-line { grid-template-columns: 1fr auto auto auto; align-items: center; }
  .op-line-info { grid-column: auto; }
  .op-remove { grid-column: auto; }
  .op-hero { padding: 4rem 0; }
  .op-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; min-height: clamp(520px, 62vh, 620px); }
  .op-hero-art { min-height: 0; height: 100%; }
  .op-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .op-shop-head { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: end; }
  .op-pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .op-pdp-intro { grid-column: 2; grid-row: 1; }
  .op-pdp-media { grid-column: 1; grid-row: 1 / span 2; }
  .op-buy { grid-column: 2; grid-row: 2; }
}
@media (min-width: 1080px) {
  .op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .op-pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .op-buy { position: sticky; top: 84px; margin-top: 1.25rem; }
  .op-cart { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .op-cart-progress { grid-column: 1 / -1; }
  .op-cart-summary { position: sticky; top: 84px; }
}

/* ── Redesign: vial art, hero, shop header, search, strength thumbnails ───── */
[hidden] { display: none !important; }

/* Home hero: copy left, vial right; stacks on phones. */
.op-hero-grid { display: grid; gap: 1.5rem; }
.op-hero-art { display: grid; place-items: center; min-height: 300px; }
/* A size container has no intrinsic inline size, so inside the centred grid
   cell the hero figure collapsed to 0 px wide; give it the cell's width. */
.op-hero-art .op-photo { width: 100%; }
/* The eyebrow sits on the dark hero there: use the light accent, not --op-muted. */
.op-hero .op-eyebrow { color: var(--op-accent); }
.op-featured { margin-top: 2rem; }

/* Shop header: title and basket meter side by side on desktop. */
.op-shop-head { display: grid; gap: 16px; margin-top: 0.5rem; }
.op-shop-title h1 { margin-top: 0; }
.op-shop-title .op-lead { margin-bottom: 0; }
.op-shop-basket { background: var(--op-white); border: 1px solid var(--op-line); border-radius: var(--op-radius); padding: 14px 16px; }
.op-shop-basket .op-progress-text { margin: 0 0 10px; font-size: 0.95rem; }
.op-search { display: grid; gap: 6px; max-width: 480px; margin: 1rem 0 0; }
.op-search label { font-weight: 600; font-size: 0.9rem; }
.op-search input { min-height: 48px; width: 100%; padding: 0 18px; border: 1px solid var(--op-line); border-radius: 999px; background: var(--op-white); color: var(--op-ink); font: inherit; }
.op-search input:focus-visible { border-color: var(--op-deep); }

/* Product media: large vial stage over a row of strength thumbnails. */
.op-pdp-media { display: grid; gap: 12px; align-content: start; min-width: 0; }
.op-stage { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 16px; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: radial-gradient(ellipse at 50% 40%, var(--op-white) 0%, var(--op-paper-2) 72%); }
.op-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.op-thumb { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 10px 8px; border: 2px solid var(--op-line); border-radius: 12px; background: var(--op-white); color: var(--op-ink); font: inherit; cursor: pointer; }
.op-thumb[aria-pressed="true"] { border-color: var(--op-deep); background: var(--op-accent); }
.op-thumb:disabled { opacity: 0.5; cursor: not-allowed; }
.op-thumb-label { font-weight: 700; font-size: 0.875rem; }
/* Cart: muted intro, New-U checkout section, arrow icon on the checkout button. */
.op-cart-intro { margin: 0.25rem 0 0; color: var(--op-muted); font-size: 0.95rem; }
.op-newu { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--op-radius); background: var(--op-paper-2); border-left: 4px solid var(--op-deep); }
.op-newu p { margin: 0; }
.op-newu-brand { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--op-deep); }
.op-newu-brand img { width: 24px; height: 24px; }
.op-newu-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; color: var(--op-deep); }
.op-icon { flex: none; }
.op-nowrap { white-space: nowrap; }
.op-checkout-note { margin: 0; }
.op-buy-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; font-size: 0.9rem; }
.op-buy-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
/* On phones the buy form comes straight after the intro, ahead of the vial
 * stage and strength strip (reading order stays intro, media, form). */
.op-buy { order: 2; }
.op-pdp-media { order: 3; }

@media (min-width: 768px) {
  /* Later than the base .op-hero-grid rule, so these win on desktop. */
  .op-hero-grid { gap: 2.5rem; min-height: clamp(520px, 62vh, 620px); }
  .op-hero-art { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .op-btn, .op-strength, .op-format, .op-chips a, .op-cart-link, .op-search input { border: 1px solid CanvasText; }
  .op-strength:has(input:checked), .op-format:has(input:checked) { background: Highlight; color: HighlightText; border-color: Highlight; forced-color-adjust: none; }
  .op-strength:has(input:focus-visible), .op-format:has(input:focus-visible) { outline: 3px solid CanvasText; outline-offset: 3px; }
  .op-meter span { background: Highlight; }
}

/* ── Product photography: NU logo and product name on the vial label ───── */
/* Per-photo geometry, one class per ONLYPEPS_PHOTOS index. The aspect ratio and
 * label box must match the table; tests/onlypeps-redesign.test.ts reads them back. */
.op-photo--0 { aspect-ratio: 1254 / 1254; }
.op-photo--0 .op-photo-img { object-position: 50% 50%; }
.op-photo--0 .op-photo-label { left: 33.3%; top: 40.5%; width: 33.3%; height: 30.4%; }
.op-photo--1 { aspect-ratio: 1448 / 1086; }
.op-photo--1 .op-photo-img { object-position: 50% 50%; }
.op-photo--1 .op-photo-label { left: 36.5%; top: 43.3%; width: 27.1%; height: 30.4%; }
.op-photo--2 { aspect-ratio: 1254 / 1254; }
.op-photo--2 .op-photo-img { object-position: 50% 50%; }
.op-photo--2 .op-photo-label { left: 32.9%; top: 43.5%; width: 33.2%; height: 27.8%; }
.op-photo--3 { aspect-ratio: 1672 / 941; }
.op-photo--3 .op-photo-img { object-position: 82% 50%; }
.op-photo--3 .op-photo-label { left: 64.7%; top: 43.0%; width: 17.6%; height: 32.1%; }
/* Branded sets: NU-labelled studio vials (network storefronts; one set per
 * store, PHOTO_SETS). `label` is where the name goes (the band between the
 * printed rules, or inside a printed name box); `meta` holds the strength pill
 * (and form) under a name box; `slot` is a printed bottom-row slot for the form
 * line. Geometry: BRANDED_PHOTOS in src/onlypeps/product-photo.ts, measured by
 * scripts/onlypeps/prepare-label-photos.mjs; tests read it back. */
.op-photo--nu-red { aspect-ratio: 1254 / 1254; }
.op-photo--nu-red .op-photo-label { left: 29.3%; top: 47.8%; width: 40.6%; height: 20.3%; }
.op-photo--nu-blue { aspect-ratio: 1254 / 1254; }
.op-photo--nu-blue .op-photo-label { left: 29%; top: 48%; width: 41.3%; height: 19.5%; }
.op-photo--nu-indigo { aspect-ratio: 1254 / 1254; }
.op-photo--nu-indigo .op-photo-label { left: 29.4%; top: 47.6%; width: 40.7%; height: 19.9%; }
.op-photo--nu-violet { aspect-ratio: 1254 / 1254; }
.op-photo--nu-violet .op-photo-label { left: 29.5%; top: 47.3%; width: 40.7%; height: 19.6%; }
.op-photo--nu-ember { aspect-ratio: 1254 / 1254; }
.op-photo--nu-ember .op-photo-label { left: 32.5%; top: 51.4%; width: 34.4%; height: 7.2%; }
.op-photo--nu-ember .op-photo-meta { left: 32.7%; top: 59.6%; width: 34.3%; height: 6.9%; }
.op-photo--nu-azure { aspect-ratio: 1254 / 1254; }
.op-photo--nu-azure .op-photo-label { left: 29.7%; top: 50.8%; width: 40.5%; height: 16%; }
.op-photo--nu-azure .op-photo-slot { left: 53%; top: 69.1%; width: 15.3%; height: 5.1%; }
.op-photo--nu-neon { aspect-ratio: 1254 / 1254; }
.op-photo--nu-neon .op-photo-label { left: 31.3%; top: 53%; width: 37.2%; height: 14.4%; }
.op-photo--nu-verdant { aspect-ratio: 1254 / 1254; }
.op-photo--nu-verdant .op-photo-label { left: 29.7%; top: 51.6%; width: 40.4%; height: 15.5%; }
.op-photo--nu-verdant .op-photo-slot { left: 55.8%; top: 69.1%; width: 12.4%; height: 4.9%; }
.op-photo--nu-ion { aspect-ratio: 1254 / 1254; }
.op-photo--nu-ion .op-photo-label { left: 32.2%; top: 52%; width: 35.1%; height: 8.3%; }
.op-photo--nu-ion .op-photo-meta { left: 38.1%; top: 61.7%; width: 23.3%; height: 10.4%; }
.op-photo--nu-hero { aspect-ratio: 1254 / 1254; }
.op-photo { container-type: inline-size; position: relative; margin: 0; overflow: hidden; border-radius: var(--op-radius); background: #e9ecf6; }
.op-photo-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.op-photo-label { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em; padding: 3% 2%; text-align: center; color: #1b2233; pointer-events: none; }
.op-photo-name { font-weight: 800; font-size: 4.6cqw; line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: normal; }
.op-photo-strength { font-weight: 600; font-size: 3.6cqw; color: #3b4560; }
.op-photo-ruo { font-size: 1.9cqw; letter-spacing: 0.04em; text-transform: uppercase; color: #4a5470; }
/* Fitted product name (src/onlypeps/product-photo.ts fitLabelName). The server
 * picks line breaks and a tier = font size as a percentage of the LABEL width;
 * --op-label-w is each photo's label width in percent of the figure, so
 *   font-size = label width × tier%
 * in cqw of the .op-photo container. The name scales with the label as
 * rendered, at every breakpoint, without touching the photo or the label box.
 * Each line is its own nowrap block, so identifiers never split mid-word. */
.op-photo--0 { --op-label-w: 33.3; }
.op-photo--1 { --op-label-w: 27.1; }
.op-photo--2 { --op-label-w: 33.2; }
.op-photo--3 { --op-label-w: 17.6; }
.op-photo--nu-red { --op-label-w: 40.6; }
.op-photo--nu-blue { --op-label-w: 41.3; }
.op-photo--nu-indigo { --op-label-w: 40.7; }
.op-photo--nu-violet { --op-label-w: 40.7; }
.op-photo--nu-ember { --op-label-w: 34.4; }
.op-photo--nu-azure { --op-label-w: 40.5; }
.op-photo--nu-neon { --op-label-w: 37.2; }
.op-photo--nu-verdant { --op-label-w: 40.4; }
.op-photo--nu-ion { --op-label-w: 35.1; }
/* Branded label rows. Heights are budgeted by fitLabelName (BRANDED_*): pill
 * 3.3cqw × (1 + 0.6), form 1.9cqw × 1.2, gap 1.4cqw, band padding 0.8cqw.
 * No RUO line on the vial: the site carries the disclaimer. */
.op-photo--branded .op-photo-label { padding: 0.8cqw 0; gap: 1.4cqw; }
.op-photo--light .op-photo-name { color: #0e1b3d; }
.op-photo--dark .op-photo-name { color: #f4f7fc; text-shadow: 0 0 0.35em rgba(0, 0, 0, 0.6); }
.op-photo-meta, .op-photo-slot { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; text-align: center; pointer-events: none; }
.op-photo-pill { font-weight: 700; font-size: 3.3cqw; line-height: 1; padding: 0.3em 0.8em; border-radius: 0.3em; color: #fff; background: linear-gradient(180deg, #2b8af7 0%, #0d63e0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(13, 40, 110, 0.25); white-space: nowrap; }
/* A product with no orderable strength in this store has no pill; the page
 * script fills it when a strength is picked. */
.op-photo-pill:empty { display: none; }
.op-photo-form { font-weight: 600; font-size: 1.9cqw; line-height: 1.2; letter-spacing: 0.24em; text-indent: 0.24em; text-transform: uppercase; color: #1b2a4a; white-space: nowrap; }
.op-photo--dark .op-photo-form { color: #c9d4e8; }
/* Printed bottom-row slot (beside the printed RUO + vial icon): two lines, like the art. */
.op-photo-slot { font-weight: 600; font-size: 1.5cqw; line-height: 1.25; letter-spacing: 0.02em; text-transform: uppercase; color: #1b2a4a; }
/* Per-photo accents: the pill takes the colour the art was lit with. */
.op-photo--nu-ember .op-photo-pill { background: linear-gradient(180deg, #ff9b3d 0%, #f05a00 100%); box-shadow: 0 0 0.6em rgba(255, 120, 20, 0.45); }
.op-photo--nu-neon .op-photo-pill { background: linear-gradient(90deg, #22d3ee 0%, #7c5cff 100%); box-shadow: 0 0 0.6em rgba(80, 160, 255, 0.45); }
.op-photo--nu-ion .op-photo-pill { background: linear-gradient(90deg, #1e6bff 0%, #19c6ff 100%); box-shadow: 0 0 0.6em rgba(30, 140, 255, 0.5); }
.op-photo--nu-verdant .op-photo-pill { background: linear-gradient(180deg, #2fbf55 0%, #118c33 100%); }
.op-photo--nu-ion .op-photo-form { font-size: 1.5cqw; letter-spacing: 0.16em; text-indent: 0.16em; }
.op-photo-name.op-fit { font-size: calc(var(--op-label-w) * var(--op-fit) * 0.01cqw); line-height: 1.08; letter-spacing: 0.01em; }
.op-photo-line { display: block; white-space: nowrap; }
.op-fit-30 { --op-fit: 3; } .op-fit-35 { --op-fit: 3.5; } .op-fit-40 { --op-fit: 4; } .op-fit-45 { --op-fit: 4.5; }
.op-fit-50 { --op-fit: 5; } .op-fit-55 { --op-fit: 5.5; } .op-fit-60 { --op-fit: 6; } .op-fit-65 { --op-fit: 6.5; }
.op-fit-70 { --op-fit: 7; } .op-fit-75 { --op-fit: 7.5; } .op-fit-80 { --op-fit: 8; } .op-fit-85 { --op-fit: 8.5; }
.op-fit-90 { --op-fit: 9; } .op-fit-95 { --op-fit: 9.5; } .op-fit-100 { --op-fit: 10; }
.op-fit-105 { --op-fit: 10.5; } .op-fit-110 { --op-fit: 11; } .op-fit-115 { --op-fit: 11.5; }
.op-fit-120 { --op-fit: 12; } .op-fit-125 { --op-fit: 12.5; } .op-fit-130 { --op-fit: 13; }
.op-fit-135 { --op-fit: 13.5; } .op-fit-140 { --op-fit: 14; } .op-fit-145 { --op-fit: 14.5; }
.op-fit-150 { --op-fit: 15; } .op-fit-155 { --op-fit: 15.5; } .op-fit-160 { --op-fit: 16; }
.op-fit-165 { --op-fit: 16.5; } .op-fit-170 { --op-fit: 17; } .op-fit-175 { --op-fit: 17.5; }
.op-fit-180 { --op-fit: 18; } .op-fit-185 { --op-fit: 18.5; } .op-fit-190 { --op-fit: 19; }
.op-fit-195 { --op-fit: 19.5; } .op-fit-200 { --op-fit: 20; }
.op-card-media .op-photo { width: 100%; }
.op-card-media .op-photo-ruo { display: none; }
.op-stage .op-photo { width: 100%; }
.op-hero-photo { margin: 2rem 0 0; max-width: 960px; }
.op-pdp-photo { max-width: 460px; margin-bottom: 1rem; }

/* ── Two formats, listing controls, live price, basket bar ─────────────────── */
/* Home: the two purchase formats, given equal weight under the hero copy. */
.op-format-tiles { display: grid; gap: 12px; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.op-format-tiles a { display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: var(--op-radius); background: var(--op-white); color: var(--op-ink); text-decoration: none; }
.op-format-tiles a:hover .op-tile-cta { text-decoration: underline; text-decoration-thickness: 2px; }
.op-format-tiles strong { font-size: 1.15rem; color: var(--op-deep); }
.op-format-tiles span { color: var(--op-muted); font-size: 0.95rem; }
.op-format-tiles .op-tile-cta { color: var(--op-deep); font-weight: 700; }
.op-proof { background: var(--op-paper-2); border-radius: var(--op-radius); padding: 4px 18px 14px; margin-top: 1.5rem; }
.op-proof h2 { margin-top: 1rem; }
.op-proof .op-link { margin-right: 16px; }

/* Who takes the order, said beside every way of adding to the basket. */
.op-handoff { display: grid; gap: 4px; padding: 12px 16px; border-radius: var(--op-radius); background: var(--op-paper-2); border-left: 4px solid var(--op-deep); font-size: 0.9rem; margin: 1rem 0; }
.op-handoff p { margin: 0; }
.op-handoff-h { display: flex; align-items: center; gap: 8px; color: var(--op-deep); font-size: 0.95rem; }
.op-buy .op-handoff { margin: 0; }

/* Shop controls: format tabs (links), search, then strength / sort / stock. */
.op-controls { display: grid; gap: 12px; margin: 1rem 0; }
.op-controls .op-search { margin: 0; }
.op-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.op-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--op-line); border-radius: 999px; background: var(--op-white); color: var(--op-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.op-tabs a[aria-current="true"] { border-color: var(--op-deep); background: var(--op-deep); color: var(--op-accent); }
.op-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.op-filters .op-field label { font-size: 0.9rem; }
.op-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.op-check input { width: 20px; height: 20px; accent-color: var(--op-deep); }
.op-filter-reset { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--op-deep); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Product page: the chosen variant's price, large; quantity stepper. */
.op-price { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--op-paper-2); }
.op-price p { margin: 0; }
.op-price-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--op-muted); }
.op-price-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.op-price-now strong { font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--op-deep); }
.op-save { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--op-accent); color: var(--op-deep); font-size: 0.85rem; font-weight: 800; }
.op-price-sub { color: var(--op-muted); font-size: 0.95rem; }
.op-format-from { font-size: 0.85rem; font-weight: 700; color: var(--op-deep); }
.op-qty-row { display: flex; align-items: center; gap: 6px; }
.op-qty-row input { width: 4.5rem; text-align: center; }
.op-step[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Basket: change a line's strength or format in place. */
.op-line-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 340px; margin: 4px 0; }

/* The persistent basket indicator (every page but the basket). */
.op-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--op-white); border-top: 1px solid var(--op-line); box-shadow: 0 -6px 18px rgba(11, 37, 30, 0.08); padding-bottom: env(safe-area-inset-bottom, 0); }
.op-bar-meter { height: 4px; border-radius: 0; }
.op-bar-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.op-bar-text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 0.9rem; line-height: 1.35; }
.op-bar-link { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }
.op-bar-link.op-btn { color: var(--op-accent); padding: 0 18px; }
.op-bar-add { flex: none; min-height: 44px; padding: 0 16px; font-size: 0.95rem; white-space: nowrap; }
body.op-has-bar { padding-bottom: var(--op-bar-h, 76px); }
/* Phones: with the add button showing, the row is the button and the basket
 * link; the progress stays visible as the meter above them. */
@media (max-width: 767px) {
  .op-bar.has-add .op-bar-text { display: none; }
  .op-bar.has-add .op-bar-add { flex: 1 1 auto; min-width: 0; }
}

@media (min-width: 768px) {
  .op-format-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .op-controls { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
  .op-controls .op-search { justify-self: end; width: 100%; }
  .op-filters { grid-column: 1 / -1; grid-template-columns: minmax(160px, 220px) minmax(180px, 240px) auto auto; justify-content: start; }
  .op-bar-text { font-size: 1rem; }
}
@media (forced-colors: active) {
  .op-seg, .op-tabs a, .op-card, .op-bar { border: 1px solid CanvasText; }
  /* Checked/current is a filled state; the outline is kept for focus alone. */
  .op-seg:has(input:checked), .op-tabs a[aria-current="true"] { background: Highlight; color: HighlightText; border-color: Highlight; forced-color-adjust: none; }
  .op-seg:has(input:focus-visible), .op-tabs a:focus-visible { outline: 3px solid CanvasText; outline-offset: 3px; }
}
/* Keyboard focus and in-page jumps stay clear of the fixed bar. */
html:has(body.op-has-bar) { scroll-padding-bottom: calc(var(--op-bar-h, 76px) + 12px); }
