/* Shop pages. Loads after the system (tokens, base, components) and only
   adds what the shop needs: the shelf, chapters, the product stage, the
   bag page, checkout, the Paystack handoff, confirmation and tracking.
   Tokens only; no raw sizes or colours that the system already names.
   Anything worth sharing is listed in NOTES.md for consolidation. */

/* ================================================================ the shelf
   Products standing together on one baseline, at the size they are. */
.shelf-wrap { position: relative; }
.shelf-scroll {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 64px var(--gutter) 14px; margin-inline: calc(-1 * var(--gutter));
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  scroll-snap-type: x proximity;
}
.shelf-scroll::-webkit-scrollbar { display: none; }
.shelf { --h: 240px; list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: calc(var(--h) * 0.05); width: max-content; position: relative; }
.shelf::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: 0; height: 1px; background: var(--rule); }
.shelf--center { margin-inline: auto; }
.shelf__item { position: relative; flex: none; width: calc(var(--h) * var(--w)); height: calc(var(--h) * 0.93); scroll-snap-align: center; }
.shelf__link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.shelf__link:focus-visible { outline-offset: 6px; }
.shelf__item img { position: absolute; top: 0; left: calc(var(--h) * -0.8 * var(--x0)); width: calc(var(--h) * 0.8); height: var(--h); max-width: none; pointer-events: none; transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out); }
.shelf__link:hover img, .shelf__link:focus-visible img { transform: translateY(-8px); }
.shelf__label { position: absolute; left: 50%; bottom: calc(var(--h) * (0.93 - var(--top)) + 14px); transform: translate(-50%, 6px); display: grid; justify-items: center; gap: 1px; padding: 6px 12px; border-radius: 14px; background: var(--glass); color: var(--ink); box-shadow: var(--shadow-float); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; font-size: 13px; line-height: 1.2; opacity: 0; pointer-events: none; transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); z-index: 2; }
.shelf__label b { font-weight: var(--w-semi); letter-spacing: -0.015em; }
.shelf__label span { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.shelf__link:hover .shelf__label, .shelf__link:focus-visible .shelf__label { opacity: 1; transform: translate(-50%, 0); }
.shelf__qty { position: absolute; left: 50%; bottom: calc(var(--h) * (0.93 - var(--top)) + 8px); transform: translateX(-50%); min-width: 30px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--yellow); color: #111411; display: grid; place-items: center; font-size: 11px; z-index: 1; }
.shelf__item.is-dim img { opacity: 0.16; filter: grayscale(1); }
.shelf--quiet img { opacity: 0.5; }   /* images only: labels keep full ink */
.shelf__item.is-dim .shelf__link { pointer-events: none; }
.shelf-legend { margin-top: 2px; }
.shelf-nav { display: flex; gap: 6px; }
.shelf-nav .btn-round { width: 40px; height: 40px; background: var(--glass); }
.shelf-nav .btn-round:disabled { opacity: 0.35; cursor: default; }
.only-touch { display: none; }
@media (hover: none) { .shelf-scroll { padding-top: 22px; } .only-hover { display: none; } .only-touch { display: inline; } }
@media (prefers-reduced-motion: reduce) { .shelf__item, .shelf__item img { transition: none; } }

/* ================================================================ listing: hero */
.range-hero > .wrap { padding-block: calc(var(--band) * 0.8) var(--s-7); }
.range-hero .section-head .aside { max-width: 36ch; }
.range-hero .title .count { font-family: var(--font-mono); font-size: 0.14em; letter-spacing: 0.04em; font-weight: 500; vertical-align: 2.6em; margin-left: 0.25em; color: var(--fg-muted); }

/* ================================================================ listing: the control bar
   Desktop: a glass pill that sticks under the nav. Phone: the chips scroll
   in place and a floating bar sits in thumb reach. */
.shop-bar { position: sticky; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 26px); display: flex; align-items: center; gap: 8px; margin: var(--s-5) auto 0; width: max-content; max-width: calc(100% - 2 * var(--inset)); padding: 6px; border-radius: var(--r-pill); background: var(--glass); box-shadow: var(--shadow-float); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.shop-bar .cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.shop-bar .cats::-webkit-scrollbar { display: none; }
.cat { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-size: 14px; font-weight: var(--w-semi); letter-spacing: -0.01em; white-space: nowrap; transition: background var(--t-base), color var(--t-base); }
.cat .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-muted); }
.cat:hover { background: var(--chip-bg); }
.cat[aria-pressed="true"] { background: var(--btn-shop-bg); color: var(--btn-shop-fg); }
.cat[aria-pressed="true"] .n { color: inherit; }
.shop-bar__sep { width: 1px; height: 24px; background: var(--line); flex: none; }
.shop-bar .search { width: 230px; flex: none; }
.shop-bar .search .input { min-height: 44px; background: var(--chip-bg); }
.shop-bar .sort { position: relative; flex: none; }
.shop-bar .sort select { min-height: 44px; padding: 0 40px 0 16px; border: 0; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--ink); font-size: 14px; font-weight: var(--w-semi); -webkit-appearance: none; appearance: none; cursor: pointer; }
.shop-bar .sort .i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; pointer-events: none; color: var(--ink-muted); }
.filter-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: var(--w-semi); }
.filter-btn .i { width: 17px; height: 17px; }
.filter-btn .dot { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: #111411; font-family: var(--font-mono); font-size: 11px; line-height: 20px; }
.thumb-bar { display: none; }
@media (max-width: 960px) {
  .shop-bar .search { width: 180px; }
}
@media (max-width: 860px) {
  .shop-bar { position: static; width: auto; max-width: none; margin: var(--s-5) 0 0; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* the bar sits in .sheets (inset only, no gutter): bleed by the inset to
     the window edge, and pad back to where sheet content starts */
  .shop-bar .cats { margin-inline: calc(-1 * var(--inset)); padding-inline: calc(var(--inset) + var(--gutter)); scroll-padding-inline: calc(var(--inset) + var(--gutter)); gap: 6px; }
  .shop-bar .cat { background: var(--chip-bg); }
  .shop-bar .cat[aria-pressed="true"] { background: var(--btn-shop-bg); }
  .shop-bar__sep, .shop-bar .search, .shop-bar .sort, .shop-bar .filter-btn { display: none; }
  .thumb-bar { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 0); display: flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55); transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base); }
  .thumb-bar.is-away { transform: translate(-50%, 140%); opacity: 0; }
  .thumb-bar button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: inherit; font-size: 14.5px; font-weight: var(--w-semi); }
  .thumb-bar button + button { background: color-mix(in srgb, var(--bg) 12%, transparent); }
  .thumb-bar .i { width: 18px; height: 18px; }
  .thumb-bar .dot { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: #111411; font-family: var(--font-mono); font-size: 11px; line-height: 20px; }
  .has-thumb-bar .toasts { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* ================================================================ listing: chapters
   Each category is a sheet in its own tone, with its word, its ritual and
   its products. The first product stands big; the rest are the one card. */
.chapter > .wrap { padding-block: clamp(56px, 7vw, 104px); }
.chapter__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5) var(--s-8); margin-bottom: clamp(28px, 4vw, 48px); }
.chapter__head .giant { font-size: clamp(56px, 8.6vw, 140px); }
.chapter__meta { display: grid; gap: 10px; justify-items: start; max-width: 32ch; padding-bottom: 12px; color: var(--fg-muted); }
.chapter__meta .mono { color: var(--fg); }
.chapter__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.chapter__grid > .pcard { min-width: 0; color: var(--ink); --fg: var(--ink); --fg-muted: var(--ink-muted); --rule: var(--line); --chip-bg: var(--surface); --on-fg: var(--bg); }
.chapter__grid > .span-2 { grid-column: span 2; }
.chapter__grid > .span-4 { grid-column: 1 / -1; }
.chapter__grid > .pcard.span-2, .chapter__grid > .pcard.span-4 { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: none; align-items: end; }
.chapter__grid > .pcard.span-2 .pcard__body, .chapter__grid > .pcard.span-4 .pcard__body { padding: 24px 24px 20px 4px; }
.chapter__grid > .pcard.span-2 .pcard__name, .chapter__grid > .pcard.span-4 .pcard__name { font-size: var(--fs-h3); }
.chapter__grid > .pcard.span-4 .pcard__media { aspect-ratio: 16 / 10; }
@media (max-width: 1100px) { .chapter__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .chapter__head { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .chapter__meta { padding-bottom: 0; }
  .chapter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chapter__grid > .span-2, .chapter__grid > .span-4 { grid-column: 1 / -1; }
  .chapter__grid > .pcard.span-2, .chapter__grid > .pcard.span-4 { grid-template-columns: none; grid-template-rows: auto 1fr; align-items: stretch; }
  .chapter__grid > .pcard.span-2 .pcard__body, .chapter__grid > .pcard.span-4 .pcard__body { padding: 4px 16px 16px; }
  .chapter__grid > .pcard.span-4 .pcard__media, .chapter__grid > .pcard.span-2 .pcard__media { aspect-ratio: 16 / 11; }
}

/* the lead product of a chapter: big glass in its own light */
.feature { --studio: var(--pc-studio); position: relative; grid-column: span 2; grid-row: span 2; display: grid; min-height: 100%; border-radius: var(--r-card); overflow: hidden; isolation: isolate; background: radial-gradient(80% 60% at 62% 40%, color-mix(in srgb, var(--studio) var(--pc-glow-mix), var(--pc-glow)) 0%, var(--studio) 72%); color: var(--ink); container-type: inline-size; }
.feature[data-tint="red"] { --studio: var(--pc-studio-red); }
.feature[data-tint="gold"] { --studio: var(--pc-studio-gold); }
.feature[data-tint="green"] { --studio: var(--pc-studio-green); }
.feature::before { content: ""; position: absolute; inset: -10%; z-index: -1; background: var(--leaf, url("../assets/light/moringa.webp")) center / cover; mix-blend-mode: var(--leaf-blend); opacity: calc(var(--leaf-opacity) * 1.2); transform: rotate(-6deg); }
.feature__shot { position: absolute; inset: 0; z-index: 0; }
.feature__shot::after { content: ""; position: absolute; left: 50%; right: 12%; bottom: 6%; height: 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--contact-shadow), transparent); }
.feature__shot img { position: absolute; z-index: 1; left: 66%; bottom: 3%; height: min(84%, 112cqi); width: auto; max-width: none; transform: translateX(-50%); transition: transform 1200ms var(--ease-out); }
.feature:hover .feature__shot img { transform: translate(-50%, -1.5%); }
.feature__body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(20px, 4.4cqi, 40px); pointer-events: none; }
.feature__body > * { pointer-events: auto; }
.feature__top { display: grid; gap: 12px; max-width: 70%; }
.feature__tag { position: absolute; z-index: 2; right: 18px; top: 18px; }
.feature__name { font-size: clamp(40px, 13cqi, 112px); line-height: 0.88; letter-spacing: -0.06em; font-weight: var(--w-bold); font-variation-settings: "wdth" var(--wdth-tight); }
.feature__name a { color: inherit; text-decoration: none; }
.feature__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature__line { color: var(--ink-muted); font-size: 15px; max-width: 26ch; }
.feature .pricebar { width: max-content; max-width: 100%; z-index: 3; }
.feature .pricebar .price { font-size: 17px; }
@media (max-width: 760px) {
  .feature { grid-column: 1 / -1; grid-row: auto; width: 100%; min-height: 0; aspect-ratio: 4 / 4.4; }
  .feature__top { max-width: 62%; }
  .feature__line { display: none; }
  .feature__shot img { left: 70%; height: 76%; }
}

/* results: one grid with a quiet head and load-more */
.results > .wrap { padding-block: clamp(40px, 6vw, 80px); }
.results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-6); }
.results__head h2 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.055em; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.active-filters .chip { min-height: 36px; padding: 0 10px 0 14px; }
.more { display: grid; justify-items: center; gap: 12px; margin-top: var(--s-8); }
.more .meter { width: min(260px, 70vw); }

/* filters sheet */
.refine { width: min(560px, calc(100vw - 32px)); }
.refine .modal__body { gap: var(--s-6); color: var(--ink); }
.refine fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.refine legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: var(--w-semi); letter-spacing: -0.015em; display: flex; justify-content: space-between; width: 100%; }
.refine legend .mono { color: var(--ink-muted); }
.refine .chip[aria-pressed="true"] { background: var(--btn-shop-bg); color: var(--btn-shop-fg); }
.refine .chip { min-height: 40px; padding: 0 14px; }
.refine .prices { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.refine .herb-find { max-width: 240px; }
.refine .only-phone { display: none; }
@media (max-width: 860px) { .refine .only-phone { display: grid; } }

/* ================================================================ product page: the stage */
.pdp-stage { --studio: var(--pc-studio); background: radial-gradient(70% 70% at 64% 46%, color-mix(in srgb, var(--studio) var(--pc-glow-mix), var(--pc-glow)) 0%, var(--studio) 74%); }
.pdp-stage[data-tint="red"] { --studio: var(--pc-studio-red); }
.pdp-stage[data-tint="gold"] { --studio: var(--pc-studio-gold); }
.pdp-stage[data-tint="green"] { --studio: var(--pc-studio-green); }
.pdp-stage::before { content: ""; position: absolute; inset: -6%; z-index: -1; background: var(--leaf, url("../assets/light/moringa.webp")) center / cover; mix-blend-mode: var(--leaf-blend); opacity: calc(var(--leaf-opacity) * 1.25); transform: rotate(-4deg); pointer-events: none; }
.pdp-stage > .wrap { padding-block: calc(var(--nav-h) + 40px) var(--s-6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-rows: auto 1fr auto; gap: 0 clamp(24px, 4vw, 64px); min-height: min(940px, 100svh); }
.pdp-crumbs { grid-column: 1 / -1; color: var(--fg-muted); }
.pdp-show { position: relative; grid-row: 2; min-height: 560px; display: grid; }
.pdp-word { position: absolute; z-index: 0; left: 0; bottom: 14%; margin: 0; font-size: clamp(72px, 11.5vw, 196px); line-height: 0.8; letter-spacing: -0.075em; font-weight: var(--w-bold); font-variation-settings: "wdth" 88; text-transform: lowercase; color: var(--fg); }
.pdp-word span { display: block; }
.pdp-word .dot-end::after { color: var(--yellow); }
.pdp-word--long { font-size: clamp(64px, 9.6vw, 164px); }
.pdp-frame { position: absolute; z-index: 1; right: var(--frame-right, 4%); bottom: 0; height: 100%; width: 62%; }
.pdp-frame[data-wide] { --frame-right: -2%; }
.pdp-frame::after { content: ""; position: absolute; left: 30%; right: 22%; bottom: 5.5%; height: 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--contact-shadow), transparent); }
.pdp-view { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 520ms var(--ease-out), transform 720ms var(--ease-out); pointer-events: none; }
.pdp-view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pdp-view img { position: absolute; left: 50%; bottom: calc(-7% * (var(--s, 1) - 1)); height: calc(100% * var(--s, 1)); width: auto; max-width: none; transform: translateX(-50%); }
.pdp-view--herb img { --s: 1; height: 80%; bottom: 8%; left: 62%; filter: drop-shadow(0 24px 30px rgba(20, 40, 25, 0.22)); }
.pdp-view--label { overflow: hidden; border-radius: var(--r-card); }
.pdp-view--label img { position: absolute; height: 250%; left: 50%; top: var(--label-top, -12%); transform: translateX(-50%); }
.pdp-views { position: absolute; z-index: 3; left: 0; bottom: 0; }
.pdp-views .swatches { padding-right: 6px; }
.view-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-size: 13.5px; font-weight: var(--w-semi); }
.view-btn i { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--studio); box-shadow: inset 0 0 0 1px var(--line); }
.view-btn i img { position: absolute; left: 50%; top: -2px; height: 54px; width: auto; max-width: none; transform: translateX(-50%); }
.view-btn[data-show="plant"] i img { top: 1px; height: 36px; }
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pdp-buy { grid-row: 2; align-self: end; display: grid; gap: var(--s-5); padding-bottom: var(--s-2); }
.pdp-buy__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--fg-muted); }
.pdp-buy__name { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.045em; }
.pdp-buy__line { font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-muted); }
.pdp-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-price .price { font-size: clamp(34px, 3.2vw, 46px); font-weight: var(--w-bold); letter-spacing: -0.045em; line-height: 1; }
.pdp-price .pv { min-height: 30px; padding: 0 12px; font-size: 12px; background: var(--bg); }
.pv-help { border: 0; background: none; color: var(--fg-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; padding: 0 2px; }
.pv-note { font-size: 13.5px; line-height: 1.45; color: var(--fg-muted); max-width: 40ch; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--w-semi); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.stock--low { color: var(--warning-ink); }
.stock--low::before { background: var(--yellow); box-shadow: 0 0 0 0 rgba(242, 194, 48, 0.6); animation: pulse 1.8s var(--ease-out) infinite; }
.stock--out { color: var(--fg-muted); }
.stock--out::before { background: var(--fg-muted); }
.pdp-actions { display: flex; gap: 10px; align-items: center; }
.pdp-actions .stepper { background: var(--bg); }
.pdp-actions .btn { flex: 1; }
.pdp-assure { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fg-muted); }
.pdp-assure span { display: inline-flex; align-items: center; gap: 6px; }
.pdp-assure .i { width: 14px; height: 14px; }
.pdp-rule { grid-column: 1 / -1; margin-top: var(--s-6); }
@media (max-width: 960px) {
  .pdp-stage > .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding-top: calc(var(--nav-h) + 30px); gap: 0; }
  .pdp-show { grid-row: auto; min-height: 0; height: min(156vw, 640px); margin-top: var(--s-2); }
  .pdp-word { top: 2%; bottom: auto; font-size: clamp(56px, 17vw, 96px); }
  .pdp-word--long { font-size: clamp(48px, 14.5vw, 84px); }
  .pdp-frame { width: 100%; right: 0; top: 19%; bottom: 66px; height: auto; }
  .pdp-buy { grid-row: auto; margin-top: var(--s-6); }
  .pdp-buy__name { display: none; }
  .pdp-views { left: 50%; transform: translateX(-50%); bottom: -6px; }
}
@media (max-width: 380px) { .view-btn { padding-right: 10px; } .view-btn span { display: none; } .view-btn[aria-pressed="true"] span { display: inline; } }

/* sticky buy bar: phone always once the main button is out of view;
   desktop after the stage scrolls away */
.buy-bar { position: fixed; z-index: 45; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; width: min(560px, calc(100vw - 2 * var(--inset))); padding: 6px 6px 6px 8px; border-radius: var(--r-pill); background: var(--glass); color: var(--ink); box-shadow: var(--shadow-pop); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); transform: translate(-50%, 160%); transition: transform var(--t-sheet) var(--ease-drawer); }
.buy-bar.is-on { transform: translate(-50%, 0); }
.buy-bar .pshot { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 50%; flex: none; }
.buy-bar .pshot img { height: 150%; bottom: -14%; }
.buy-bar__who { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.buy-bar__who b { font-size: 14.5px; font-weight: var(--w-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar__who span { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.buy-bar .btn { flex: none; min-height: 48px; }
.has-buy-bar .toasts { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }

/* about it */
.pdp-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pdp-about__say { display: grid; gap: var(--s-6); align-content: start; }
.pdp-about__say .big { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.04; letter-spacing: -0.045em; font-weight: var(--w-bold); max-width: 18ch; }
.pdp-about__say .benefit { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: var(--fs-lead); }
.pdp-about .accordion summary { font-size: 19px; }
.pdp-about .facts { --cols: 2; margin: var(--s-4) 0 0; }
.pdp-about .facts > :nth-child(2n + 1) { border-left: 0; padding-left: 0; }
.pdp-about .facts > :nth-child(n + 3) { border-top: 1px solid var(--rule); }
.pdp-about .facts dd { margin: 0; font-weight: var(--w-medium); }
@media (max-width: 860px) { .pdp-about { grid-template-columns: minmax(0, 1fr); } }

/* the plant */
.plant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--s-8); }
.plant__word { font-size: clamp(64px, 10vw, 168px); }
.plant__copy { display: grid; gap: var(--s-5); align-content: center; }
.plant__latin { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; font-style: italic; color: var(--fg-muted); }
.plant__fig { position: relative; margin: 0; display: grid; place-items: center; min-height: 460px; }
.plant__fig img { width: min(100%, 520px); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }
.plant__fig figcaption { position: absolute; right: 0; bottom: 0; color: var(--fg-muted); }
.plant__fig--none { min-height: 280px; border: 1px dashed var(--rule); border-radius: var(--r-panel); }
@media (max-width: 860px) { .plant { grid-template-columns: minmax(0, 1fr); } .plant__fig { min-height: 0; } .plant__fig img { width: min(86%, 420px); } }

/* rails: related products */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 14px) / 4)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); flex-wrap: wrap; }
.rail-head .h1 { margin: 0; }
.rail-nav { display: flex; gap: 8px; }
@media (max-width: 760px) { .rail { grid-auto-columns: 70%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } .rail-nav { display: none; } }

/* ================================================================ bag page */
.bag-hero > .wrap { padding-block: calc(var(--nav-h) + 48px) var(--s-8); }
.bag-hero .shelf-scroll { padding-top: 56px; }
.bag-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.bag-lines { display: grid; }
.bag-lines .line-item { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding-block: 18px; }
.bag-lines .line-item .pshot { width: 112px; border-radius: 18px; }
.bag-lines .line-item__name { font-size: 20px; letter-spacing: -0.03em; }
.bag-lines .line-item__end .price { font-size: 18px; }
.bag-lines .line-item.is-leaving { opacity: 0; transform: translateX(-12px); transition: opacity var(--t-base), transform var(--t-base) var(--ease-out); }
.summary { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: var(--s-5); padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-card); }
.summary h2 { font-size: var(--fs-h3); letter-spacing: -0.04em; }
.summary .totals .grand > :last-child { font-size: 28px; }
.summary .mono { color: var(--fg-muted); }
@media (max-width: 960px) {
  .bag-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .bag-lines .line-item { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; }
  .bag-lines .line-item .pshot { width: 84px; }
  .bag-lines .line-item__name { font-size: 17px; }
}

/* phone: the action that matters, docked in thumb reach */
.dock { display: none; }
@media (max-width: 860px) {
  .dock { position: fixed; z-index: 45; left: var(--inset); right: var(--inset); bottom: calc(var(--inset) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: var(--glass); color: var(--ink); box-shadow: var(--shadow-pop); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
  .dock__sum { display: grid; line-height: 1.15; flex: 1; min-width: 0; }
  .dock__sum b { font-size: 18px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .dock__sum span { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock .btn { min-height: 52px; flex: none; }
  .has-dock main { padding-bottom: 84px; }
  .has-dock .toasts { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

/* ================================================================ checkout */
.co > .wrap { padding-block: calc(var(--nav-h) + 40px) clamp(48px, 7vw, 96px); }
.co-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.co-head .display { font-size: clamp(56px, 8vw, 128px); }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(24px, 5vw, 80px); align-items: start; }
.co-form { display: grid; gap: clamp(32px, 4vw, 48px); }
.co-step { display: grid; gap: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.co-step__head { display: flex; align-items: baseline; gap: 14px; }
.co-step__head .mono { color: var(--fg-muted); min-width: 2.4em; }
.co-step__head h2 { font-size: var(--fs-h3); letter-spacing: -0.04em; }
.co-step__head .aside { margin-left: auto; color: var(--fg-muted); font-size: 14px; }
.who-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--chip-bg); max-width: 420px; }
.who-switch button { min-height: 48px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--fg-muted); font-weight: var(--w-semi); font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.who-switch button .i { width: 17px; height: 17px; }
.who-switch button[aria-pressed="true"] { background: var(--field-bg); color: var(--fg); box-shadow: 0 1px 2px rgba(17, 20, 17, 0.08), 0 0 0 1px var(--rule); }
.who-switch button[data-who="member"][aria-pressed="true"] { background: var(--burgundy); color: var(--on-member); box-shadow: none; }
.member-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-panel); background: var(--paint-burgundy); color: #fff; }
.member-card .avatar { background: rgba(255, 255, 255, 0.16); }
.member-card b { display: block; font-weight: var(--w-semi); letter-spacing: -0.02em; }
.member-card .mono { color: var(--fg-muted); }
.member-card .btn { margin-left: auto; --b-bg: rgba(255, 255, 255, 0.12); --b-fg: #fff; }
.login-box { display: grid; gap: var(--s-4); padding: clamp(18px, 2vw, 24px); border-radius: var(--r-panel); background: var(--burgundy-tint); }
.login-box .field__label { color: var(--fg); }
.login-box p { color: var(--member-ink); font-size: 14px; }
.delivery-box { display: grid; gap: 10px; }
.delivery-box .option { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 54px; }
.delivery-box .option b { font-weight: var(--w-semi); }
.delivery-box .option .muted { font-size: 14px; }
.co-summary { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: var(--s-5); padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-card); }
.co-summary .shelf-scroll { padding-top: 26px; margin-inline: 0; padding-inline: 4px; mask-image: none; -webkit-mask-image: none; }
.co-summary .line-item .pshot { background: rgba(255, 255, 255, 0.92); }
.co-summary .ph { background: var(--yellow); color: #111411; }
.co-summary h2 { font-size: var(--fs-h2); letter-spacing: -0.05em; }
.co-summary .line-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
.co-summary .line-item .pshot { width: 56px; border-radius: 12px; }
.co-summary .lines { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.co-summary .totals .grand > :last-child { font-size: 30px; }
.co-pay { display: grid; gap: 12px; }
.co-pay .disclaimer { text-align: center; margin-inline: auto; }
.co-summary-toggle { display: none; }
.co-errors { scroll-margin-top: calc(var(--nav-h) + 40px); }
@media (max-width: 960px) {
  .co-layout { grid-template-columns: minmax(0, 1fr); }
  .co-summary { position: static; order: -1; padding: 0; background: none; gap: 0; }
  .co-summary > :not(.co-summary-toggle):not(.co-summary__body) { display: none; }
  .co-summary-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 8px 18px; border: 0; border-radius: var(--r-panel); background: var(--chip-bg); color: var(--fg); font-weight: var(--w-semi); }
  .co-summary-toggle .chev { transition: transform var(--t-base); }
  .co-summary-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .co-summary-toggle b { font-size: 18px; letter-spacing: -0.03em; }
  .co-summary__body { padding: var(--s-4) 4px 0; }
  .co-summary__body:not(.is-open) { display: none; }
  .co-summary .co-pay { display: none; }
}

/* ================================================================ Paystack handoff */
.handoff { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 40px; }
.handoff__card { width: min(560px, 100%); display: grid; gap: var(--s-6); justify-items: center; text-align: center; }
.handoff__ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.handoff__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.handoff__ring circle { fill: none; stroke-width: 3; }
.handoff__ring .track { stroke: var(--rule); }
.handoff__ring .arc { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: 402; stroke-dashoffset: 402; animation: arc 2.4s var(--ease-in-out) forwards; }
.handoff__ring img { position: relative; height: 112px; width: auto; max-width: none; }
@keyframes arc { to { stroke-dashoffset: 0; } }
.handoff h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.92; letter-spacing: -0.06em; font-variation-settings: "wdth" var(--wdth-tight); }
.handoff__amount { font-size: clamp(40px, 5vw, 64px); font-weight: var(--w-bold); letter-spacing: -0.05em; line-height: 1; }
.handoff .kv { width: 100%; text-align: left; }
.proto { width: 100%; display: grid; gap: 10px; padding: 18px; border-radius: var(--r-panel); border: 1px dashed var(--rule); text-align: left; }
.proto .mono { color: var(--fg-muted); }
.proto .row .btn { flex: 1 1 160px; }

/* ================================================================ confirmation */
.done-hero > .wrap { padding-block: calc(var(--nav-h) + 48px) clamp(40px, 6vw, 72px); }
.done-hero .giant { font-size: clamp(64px, 11vw, 184px); }
.done-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #111411; color: var(--lime); margin-bottom: var(--s-5); animation: pop 700ms var(--ease-out) both; }
.done-check .i { width: 28px; height: 28px; }
.done-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 600ms 300ms var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-block { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 22px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-float); }
.ref-block__label { color: var(--ink-muted); margin-right: 6px; }
.ref-block__value { font-family: var(--font-mono); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: 0.04em; }
.ref-block .btn { min-height: 46px; }
.ref-block.is-copied .btn { --b-bg: var(--success); --b-fg: #fff; }
.done-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.done-next { display: grid; gap: var(--s-4); }
.next-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.next-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.next-list .i-wrap { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--chip-bg); }
.next-list b { display: block; font-weight: var(--w-semi); letter-spacing: -0.015em; }
.next-list p { color: var(--fg-muted); font-size: 14.5px; }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end; }
.invite h2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 0.92; letter-spacing: -0.055em; max-width: 14ch; }
.invite p { color: var(--fg-muted); max-width: 46ch; margin-top: var(--s-4); }
.invite .disclaimer { color: var(--fg-muted); margin-top: var(--s-4); }
@media (max-width: 860px) { .done-grid, .invite { grid-template-columns: minmax(0, 1fr); } .ref-block { width: 100%; } .ref-block__value { flex: 1; } .ref-block__label { display: none; } }

/* ================================================================ tracking */
.track-hero > .wrap { padding-block: calc(var(--nav-h) + 48px) clamp(40px, 6vw, 80px); }
.track-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: end; margin-top: clamp(24px, 4vw, 48px); padding: 10px; border-radius: var(--r-card); background: var(--bg); box-shadow: var(--shadow-float); color: var(--ink); --fg: var(--ink); --fg-muted: var(--ink-muted); --rule: var(--line); --field-bg: var(--raised); }
.track-form .field__label { padding-left: 6px; }
.track-form .input { min-height: 56px; }
.track-form .ref-input { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.track-form .btn { min-height: 56px; }
.track-form .field__msg { padding-left: 6px; }
@media (max-width: 760px) { .track-form { grid-template-columns: minmax(0, 1fr); padding: 14px; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
.timeline li { position: relative; display: grid; gap: 6px; align-content: start; padding: 26px 16px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--rule); }
.timeline li::after { content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--sheet-bg); border: 2px solid var(--rule); box-sizing: border-box; }
.timeline li[data-state="done"]::before { background: var(--fg); }
.timeline li[data-state="done"]::after { background: var(--fg); border-color: var(--fg); }
.timeline li[data-state="now"]::before { background: linear-gradient(90deg, var(--fg) 0 30%, var(--rule) 30%); }
.timeline li[data-state="now"]::after { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 0 rgba(242, 194, 48, 0.6); animation: pulse 1.8s var(--ease-out) infinite; }
.timeline li[data-state="stop"]::after { background: var(--danger); border-color: var(--danger); }
.timeline b { font-size: 18px; letter-spacing: -0.025em; font-weight: var(--w-semi); }
.timeline li[data-state="todo"] b { color: var(--fg-muted); font-weight: var(--w-medium); }
.timeline .mono { color: var(--fg-muted); }
.timeline p { color: var(--fg-muted); font-size: 14px; max-width: 26ch; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding: 0 0 26px 34px; }
  .timeline li::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 3px; }
  .timeline li[data-state="now"]::before { background: linear-gradient(180deg, var(--fg) 0 30%, var(--rule) 30%); }
}
.track-result { display: grid; gap: clamp(32px, 4vw, 56px); }
.track-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.track-top h2 { font-size: var(--fs-h1); line-height: 0.92; letter-spacing: -0.055em; }

/* ================================================================ prototype: page states switcher */
.states-menu { position: fixed; z-index: 90; left: 12px; bottom: 12px; font-size: 13px; }
.states-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--glass); color: var(--ink-muted); box-shadow: var(--shadow-float); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }
.states-menu summary::-webkit-details-marker { display: none; }
.states-menu summary::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.states-menu nav { position: absolute; left: 0; bottom: 44px; min-width: 200px; display: grid; padding: 6px; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-pop); }
.states-menu a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.states-menu a:hover { background: var(--surface); }
.states-menu a[aria-current] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .states-menu { left: auto; right: 8px; top: calc(var(--nav-h) + 26px); bottom: auto; } .states-menu summary { min-height: 30px; padding: 0 10px; font-size: 9.5px; } .states-menu nav { bottom: auto; top: 36px; right: 0; left: auto; } }

/* pages whose first sheet runs up under the floating nav */
.page--flush { padding-top: var(--inset); }

/* headings that take focus after a lookup or a state change */
[tabindex="-1"]:focus { outline: none; }
.co-errors:focus-visible { outline-color: var(--danger); }
.delivery-box .option { padding-right: 18px; }
.delivery-box .option .ph { white-space: normal; }
@media (max-width: 960px) { .co-summary.sheet--deep { background: none; color: var(--ink); --fg: var(--ink); --fg-muted: var(--ink-muted); --rule: var(--line); } .co-summary .co-summary-toggle { color: var(--ink); } }
/* placeholders inside totals: the system paints the last cell in --fg */
.totals .ph, .totals > div > .ph:last-child { background: var(--yellow); color: #111411; }
/* the .sheets grid sizes its one track to content; a wide shelf or rail
   inside a sheet would stretch every sheet past the window (listed in NOTES) */
.sheets { grid-template-columns: minmax(0, 1fr); }
