/* ==========================================================================
   COMPONENTS: reusable UI. Each block maps to a WooCommerce/Elementor part.
   ========================================================================== */

/* ---------- Announcement bar (static, one message) ---------- */
.announce {
  background: var(--ink-1000); color: var(--text-on-dark-muted);
  border-bottom: 1px solid var(--line-dark);
  min-height: 34px; display: flex; align-items: center; justify-content: center; padding: 6px var(--gutter);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; text-align: center;   /* research-use line: keep >= 11px */
}
.announce__msg { margin: 0; }
.announce__ship { color: var(--text-on-dark); }
@media (max-width: 640px) { .announce__msg > span { display: block; } .announce__sep { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--ink-950); color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 64px; gap: var(--s-5); }
.header__menu { display: none; }
.header__logo img { height: 32px; width: auto; }
.nav__list { display: flex; justify-content: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  font-size: 0.9rem; color: var(--text-on-dark-muted); transition: color var(--t-fast);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--white); }
.nav__link svg { transition: transform var(--t-fast); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 4px; }
.header__search {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 14px; margin-right: 6px;
  border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-dark-strong);
  color: var(--text-on-dark-muted); font-size: 0.85rem; min-width: 180px;
  transition: box-shadow var(--t-fast), color var(--t-fast);
}
.header__search:hover { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.header__search span { flex: 1; text-align: left; }
.header__search kbd { font-family: var(--font-mono); font-size: 0.7rem; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.08); }
.header__cart-count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--blue); color: var(--white); font: 600 0.65rem/1 var(--font-mono);
}
.header__cart-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.3); } }

/* ---------- Mega menu ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-950); border-bottom: 1px solid var(--line-dark); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
/* Opens from the nav bar: short fade + 6px drop, origin at the top edge. Closing is instant. */
.mega:not([hidden]) { animation: megaIn 200ms var(--ease-out); transform-origin: top center; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .mega:not([hidden]) { animation: megaFade 150ms ease; } @keyframes megaFade { from { opacity: 0; } } }
.mega__inner { display: grid; grid-template-columns: 1fr 2fr 220px; gap: var(--s-8); padding-block: var(--s-7); }
.mega__col > p { margin-bottom: var(--s-4); }
.mega__collections a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0;
  font-size: 1.2rem; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark-muted); transition: color var(--t-fast);
}
.mega__collections a:hover { color: var(--white); }
.mega__collections .count { font: 0.7rem var(--font-mono); opacity: .6; }
.mega__index { columns: 2; column-gap: var(--s-7); }
.mega__index li { break-inside: avoid; }
.mega__index a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--text-on-dark-muted); font-size: 0.92rem; transition: color var(--t-fast); }
.mega__index a:hover { color: var(--white); }
.mega__index .t-mono { opacity: .5; font-size: .66rem; }
/* ---------- Vial frame (shared) ----------
   Every small fixed-size box that shows a whole vial: Shop menu feature, search thumbnail,
   cart line, catalog list-view peek. The vial is absolutely centred and sized by the frame's
   own height (--vial-h). Don't centre it with a grid and a % height instead: inside an auto-sized
   grid track the % never resolves, the image falls back to the global
   `img { height: auto; max-width: 100% }` rule, and the vial overflows the frame. */
.pcard__tile, .mega__feature-media, .search__thumb, .line__thumb, .index-peek { overflow: hidden; }
.pcard__tile, .mega__feature-media, .search__thumb, .line__thumb { position: relative; display: block; }
.pcard__tile > img, .mega__feature-media > img, .search__thumb > img, .line__thumb > img, .index-peek > img {
  position: absolute; left: 50%; top: var(--vial-y, 50%); height: var(--vial-h, 86%); width: auto; max-width: none; transform: translate(-50%, -50%);
}
.mega__feature-media { --vial-h: 86%; height: 220px; margin-bottom: var(--s-3); border-radius: 4px;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, #fbfbfd 0%, rgba(251,251,253,0) 70%), linear-gradient(180deg, #eceef3, #dfe2e9); }
.mega__feature-name { font-size: 1.1rem; letter-spacing: -0.02em; }

/* ---------- Dialog / drawer base ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }
dialog:not([open]) { display: none !important; }
dialog::backdrop { background: rgba(4, 6, 13, 0.55); }
dialog[open], dialog[open]::backdrop { animation: fadeIn .3s var(--ease-out); }
dialog.is-closing, dialog.is-closing::backdrop { animation: fadeOut .25s var(--ease-in-out) forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; width: min(440px, 100vw); background: var(--white); color: var(--text-on-light); display: flex; flex-direction: column; box-shadow: var(--shadow-panel); }
/* Drawers: iOS-like curve in, faster out. */
.drawer[open] { animation: drawerIn 420ms cubic-bezier(.32, .72, 0, 1); }
.drawer.is-closing { animation: drawerOut 240ms cubic-bezier(.32, .72, 0, 1) forwards; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerOut { to { transform: translateX(100%); } }
.drawer--left { inset: 0 auto 0 0; }
.drawer--left[open] { animation-name: drawerInL; }
.drawer--left.is-closing { animation-name: drawerOutL; }
@keyframes drawerInL { from { transform: translateX(-100%); } }
@keyframes drawerOutL { to { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px var(--s-5); border-bottom: 1px solid var(--line-light); }
.theme-dark.drawer { background: var(--ink-950); color: var(--text-on-dark); }
.theme-dark .drawer__head { border-color: var(--line-dark); }

/* Mobile nav */
.mnav__logo { height: 28px; width: auto; }
.mnav__body { padding: var(--s-6) var(--s-5); flex: 1; overflow-y: auto; }
.mnav__big { margin: var(--s-3) 0 var(--s-7); }
.mnav__big a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 1.75rem; letter-spacing: -0.035em; font-weight: 550; border-bottom: 1px solid var(--line-dark); }
.mnav__big .count { font: .7rem var(--font-mono); color: var(--text-on-dark-muted); }
.mnav__small a { display: block; padding: 9px 0; font-size: 1.05rem; color: var(--text-on-dark-muted); }
.mnav__foot { padding: var(--s-5); border-top: 1px solid var(--line-dark); }
.mnav__big a, .mnav__small a { transition: color 200ms ease, transform 160ms var(--ease-out); }
.mnav__big a:active, .mnav__small a:active { transform: translateX(3px); color: var(--white); }
/* Menu items follow the drawer in with a short, uneven stagger. */
@media (prefers-reduced-motion: no-preference) {
  .mnav[open] .mnav__big li, .mnav[open] .mnav__small li { animation: mnavIn 360ms var(--ease-out) both; }
  .mnav[open] li:nth-child(1) { animation-delay: 60ms; }
  .mnav[open] li:nth-child(2) { animation-delay: 95ms; }
  .mnav[open] li:nth-child(3) { animation-delay: 125ms; }
  .mnav[open] li:nth-child(4) { animation-delay: 150ms; }
  .mnav[open] li:nth-child(5) { animation-delay: 170ms; }
  @keyframes mnavIn { from { opacity: 0; transform: translateX(-12px); } }
}

/* ---------- Search ---------- */
.search { position: fixed; inset: 0 0 auto 0; width: 100%; margin: 0; background: transparent; }
.search::backdrop { background: rgba(4, 6, 13, 0.7); }
/* Search is opened from the keyboard ("/") and used often: no open/close animation (command-palette rule). */
.search[open], .search[open]::backdrop { animation: none; }
.search__panel { background: var(--ink-950); color: var(--text-on-dark); border-bottom: 1px solid var(--line-dark); }
.search__bar { display: flex; align-items: center; gap: var(--s-4); height: 84px; border-bottom: 1px solid var(--line-dark); }
.search__bar input { flex: 1; background: none; border: 0; outline: none; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); letter-spacing: -0.03em; color: var(--white); min-width: 0; }
.search__bar input::placeholder { color: rgba(238, 240, 247, 0.3); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__body { padding-block: var(--s-5) var(--s-6); max-height: calc(80dvh - 84px); overflow-y: auto; }
/* Results: rows size to their content (names and strengths may wrap); the thumbnail is a fixed
   48 × 64 frame that always contains the whole vial; prices sit in their own right-aligned column. */
.search__results { margin-top: var(--s-3); display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px; align-items: start; }
.search__results li { min-width: 0; }
.search__results a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 80px; padding: 8px 12px 8px 8px; border-radius: 6px; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .search__results a:hover { background: var(--ink-850); } }
.search__results [aria-selected="true"] a { background: var(--ink-800); }
.search__thumb { width: 48px; height: 64px; border-radius: 4px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #fbfbfd, rgba(251,251,253,0) 75%), linear-gradient(180deg, #eceef3, #dfe2e9); }
.search__text { display: grid; gap: 3px; min-width: 0; }
.search__name { font-size: 1.02rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.search__name small { font-size: .78rem; font-weight: 400; color: var(--text-on-dark-muted); }
.search__name mark { background: none; color: var(--blue-soft); }
.search__meta { font: .7rem/1.45 var(--font-mono); color: var(--text-on-dark-muted); letter-spacing: .03em; }
.search__price { display: grid; justify-items: end; gap: 1px; text-align: right; white-space: nowrap; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--text-on-dark); }
.search__price small { font: .62rem var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-on-dark-muted); }
@media (max-width: 760px) {
  .search__bar { height: 68px; }
  .search__body { max-height: calc(100dvh - 68px); padding-block: var(--s-4) var(--s-5); }
  .search__results { grid-template-columns: 1fr; }
}
.search__none { padding: var(--s-5) 0; color: var(--text-on-dark-muted); }

/* ---------- Product card ----------
   Art-directed, photo-first. The vial photograph is the card: a square-cornered 4:5 studio tile in a
   flat cool neutral that sits behind the navy-and-white label without competing, the vial at 84% of
   the tile (shared vial frame, so it can never overflow). Under it, one typographic order:
   name (strong) -> strengths (quiet) -> price (clear), then a borderless text action.
   The tile and the text are one link; the action sits below it. Markup unchanged (order via CSS). */
.pgrid { display: grid; gap: clamp(40px, 4.4vw, 64px) clamp(14px, 1.8vw, 28px); }
.pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid > li { min-width: 0; }
.pcard-wrap { display: flex; flex-direction: column; height: 100%; }
.pcard { display: flex; flex-direction: column; flex: 1; color: var(--text-on-light); }
.pcard__tile { --vial-h: 84%; --vial-y: 50%; aspect-ratio: 4 / 5; border-radius: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 34%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 72%), #eef0f3;
  transition: background-color 400ms ease, transform 180ms var(--ease-out); }
/* Sizing comes from the shared vial frame; hover motion uses the separate `translate`/`scale`
   properties so it never fights that transform. */
.pcard__tile img { z-index: 1; transition: translate 700ms cubic-bezier(.22, 1, .36, 1), scale 700ms cubic-bezier(.22, 1, .36, 1); }
.pcard__shadow { position: absolute; left: 50%; bottom: 5%; width: 44%; height: 4%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,16,36,.22), transparent); transition: opacity 700ms cubic-bezier(.22, 1, .36, 1), transform 700ms cubic-bezier(.22, 1, .36, 1); }
.pcard:active .pcard__tile { transform: scale(.99); }

/* Text: name > strengths > price. */
.pcard__body { display: grid; padding-top: 16px; align-content: start; }
.pcard__name { order: 1; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.pcard__name small { font-weight: 400; color: var(--text-on-light-muted); font-size: .8rem; letter-spacing: 0; }
.pcard__doses { order: 2; margin-top: 3px; font-size: .8rem; line-height: 1.4; color: var(--text-on-light-muted); letter-spacing: 0; }
.pcard__price { order: 3; margin-top: 10px; font-size: .95rem; font-weight: 500; letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }

/* Action: a quiet text button with a hairline above it, not a boxed pill on every card. */
.pcard__act {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; height: 44px; margin-top: 12px; padding: 0;
  border-top: 1px solid var(--line-light); color: var(--ink-950); font-size: .84rem; font-weight: 550; letter-spacing: -0.005em;
  transform-origin: left center;
  transition: transform 160ms var(--ease-out), color 200ms ease, border-color 200ms ease;
}
.pcard__act svg { width: 12px; height: 12px; flex: none; }
.pcard__act svg.arrow { width: 14px; height: 9px; transition: transform 300ms var(--ease-out); }
.pcard__act:active { transform: scale(.97); }
.pcard__act span { transition: filter 200ms ease, opacity 200ms ease; }
.pcard__act.is-swapping span { filter: blur(2px); opacity: .6; }
.pcard__act.is-done { color: var(--blue); }

/* Hover (mouse only): the vial rises 4 px and grows 3% over 700 ms on a gentle ease-out, its contact
   shadow tightens, the tile cools a shade; the action's arrow and hairline answer. Nothing moves on touch. */
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .pcard__tile { background-color: #e9ecf0; }
  .pcard:hover .pcard__tile img { translate: 0 -4px; scale: 1.03; }
  .pcard:hover .pcard__shadow { opacity: .75; transform: translateX(-50%) scale(.92); }
  .pcard-wrap:hover .pcard__act { border-top-color: var(--line-light-strong); }
  .pcard__act:hover { color: var(--blue); }
  .pcard__act:hover svg.arrow, .pcard:hover + .pcard__act svg.arrow { transform: translateX(4px); }
}
.pcard:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .pcard__tile img, .pcard__shadow { transition: none; }
  .pcard:hover .pcard__tile img { translate: none; scale: none; }
}
/* ---------- Select ---------- */
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 34px 0 16px; border: 0; cursor: pointer; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--line-light-strong); font-size: .875rem; }
.select svg { position: absolute; right: 14px; pointer-events: none; }

/* ---------- Buy form (product page) ---------- */
.buy { display: grid; gap: var(--s-5); }
.buy__group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.buy__group legend { margin-bottom: 10px; padding: 0; }
.buy__row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.buy__price { font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.buy__price s { font-size: 1rem; opacity: .45; margin-left: 8px; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.plan button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; border-radius: var(--radius-1); box-shadow: inset 0 0 0 1px var(--line-light-strong); transition: box-shadow var(--t-fast), background var(--t-fast); }
.plan button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink-950); background: var(--paper); }
.plan button span:first-child { font-size: .92rem; font-weight: 500; }
.plan button span:last-child { font: .7rem var(--font-mono); opacity: .65; }
.qty { display: inline-flex; align-items: center; height: 52px; border-radius: var(--radius-1); box-shadow: inset 0 0 0 1px var(--line-light-strong); }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; }
.qty input { width: 36px; text-align: center; border: 0; background: none; font: .95rem var(--font-mono); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 28px; font-size: .8rem; }

/* ---------- Cart ---------- */
.cart__ship { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line-light); font-size: .85rem; }
.cart__ship-bar { height: 2px; background: var(--mist); margin-top: 10px; }
.cart__ship-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .6s var(--ease-out); }
.cart__lines { flex: 1; overflow-y: auto; padding: 0 var(--s-5); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line-light); }
.line__thumb { --vial-h: 84%; width: 72px; height: 90px; border-radius: 4px; background: var(--studio); }
.line__name { font-weight: 550; letter-spacing: -0.01em; }
.line__strength { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 6px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-light); }
.line__strength span { font: .62rem var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-on-light-muted); }
.line__strength b { font-size: .92rem; font-weight: 600; }
.line__meta { font-size: .82rem; color: var(--text-on-light-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.line__photo { font-size: .78rem; color: var(--text-on-light-muted); margin-top: 2px; }
.line .qty { margin-top: 10px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-variant-numeric: tabular-nums; }
.line__remove { font-size: .78rem; color: var(--text-on-light-muted); text-decoration: underline; text-underline-offset: 3px; }
.cart__empty { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-3); padding: var(--s-6) var(--s-5); }
.cart__empty .btn { margin-top: var(--s-4); }
.cart__foot { padding: var(--s-5); border-top: 1px solid var(--line-light); display: grid; gap: 10px; background: var(--paper); }
.cart__row { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart__ack { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--text-on-light-muted); margin: 6px 0; cursor: pointer; }
.cart__ack input { accent-color: var(--ink-950); width: 16px; height: 16px; margin-top: 2px; flex: none; }
.t-small { font-size: .82rem; }
.cart.is-empty .cart__foot, .cart.is-empty .cart__ship { display: none; }
.cart:not(.is-empty) .cart__empty { display: none; }

/* ---------- Gate ---------- */
.gate { width: min(500px, calc(100vw - 32px)); margin: auto; background: var(--ink-950); color: var(--text-on-dark); border-radius: var(--radius-1); box-shadow: 0 0 0 1px var(--line-dark); }
.gate::backdrop { background: rgba(4,6,13,.85); }
.gate__inner { padding: clamp(28px, 5vw, 44px); display: grid; gap: var(--s-4); }
.gate__logo { height: 32px; width: auto; margin-bottom: var(--s-3); }
.gate__form { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.gate__form .btn { margin-top: var(--s-3); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; padding: 12px 0; border-top: 1px solid var(--line-dark); }
.check input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; margin-top: 1px; }
.gate__exit { justify-self: center; color: var(--text-on-dark-muted); padding: 8px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); translate: -50% 0; background: var(--ink-950); color: var(--white); padding: 14px 20px; border-radius: var(--radius-1); box-shadow: 0 0 0 1px var(--line-dark), var(--shadow-float); font-size: .9rem; max-width: calc(100vw - 32px); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Prototype bar (remove for production) ---------- */
.proto { position: fixed; left: 10px; bottom: 10px; z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: rgba(255, 138, 61, .95); color: #1b0b00; border-radius: var(--radius-pill); font-size: .72rem; box-shadow: var(--shadow-float); }
.proto .t-mono { font-size: .62rem; font-weight: 600; }
.proto__toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.proto button { text-decoration: underline; text-underline-offset: 2px; }
.proto__hero { display: flex; gap: 2px; padding: 2px; border-radius: var(--radius-pill); background: rgba(27, 11, 0, .12); }
.proto__hero button { text-decoration: none; padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 600; }
.proto__hero button[aria-checked="true"] { background: #1b0b00; color: #ffb27d; }
@media (max-width: 640px) { .proto__toggle span { display: none; } .proto__toggle::after { content: "Placeholders"; } .proto { opacity: .9; } }
.proto__link { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
@media (max-width: 640px) { .proto__link { display: none; } }


/* ---------- Simulated checkout (inside the cart drawer) ---------- */
.cart.is-checkout .cart__ship, .cart.is-checkout .cart__lines, .cart.is-checkout .cart__foot, .cart.is-checkout .cart__empty { display: none !important; }
.checkout { flex: 1; overflow-y: auto; padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.checkout:not([hidden]) { animation: checkoutIn 240ms var(--ease-out); }
@keyframes checkoutIn { from { opacity: 0; transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .checkout:not([hidden]) { animation: fadeIn 150ms ease; } }
.checkout h2:focus { outline: none; }
.checkout__note { color: var(--text-on-light-muted); font-size: .92rem; }
.checkout__lines { border-top: 1px solid var(--line-light); }
.checkout__lines li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 14px 0; border-bottom: 1px solid var(--line-light); font-variant-numeric: tabular-nums; }
.checkout__lines b { font-weight: 600; }
.checkout__lines small { display: block; color: var(--text-on-light-muted); font-size: .8rem; margin-top: 2px; }
.checkout__total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.checkout__actions { margin-top: auto; display: grid; gap: var(--s-4); justify-items: center; }

/* Prototype bar gets out of the way of the product page's buy bar (lifting it would cover the strengths). */
.proto { transition: opacity 200ms ease, transform 200ms var(--ease-out); }
body.has-buybar .proto { opacity: 0; transform: translateY(8px); pointer-events: none; }