/* Shop block (sp-): catalogue, product page, cart page and drawer, order page, cart pill. Tokens only (base/tokens.css).
   One authored moment: the receipt printing in after Paystack confirms (and the mark's spring). Everything else is a
   150 to 200 ms transition or nothing. Phone breakpoint 720. */
.sp { padding-block: var(--section); }
.sp[data-variant="product"], .sp[data-variant="cart"], .sp[data-variant="confirm"] { padding-block: 16px var(--section); }
.sp[data-variant="mini"] { padding-block: 0; }
.sp :where(h1, h2, h3) { color: var(--ink); }
.sp-none { color: var(--muted); }
.sp-legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.sp-small, .sp-help { font-size: 14px; color: var(--muted); margin: 0; }
.sp-help { display: block; margin-top: 2px; }
.k-field label .sp-opt-t { font-weight: 400; font-size: 13px; }
.sp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sp-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0; padding: 16px 0; }

/* ---- prices ---------------------------------------------------------------------------------------------------- */
.sp-now { font-weight: 600; color: var(--ink); }
.sp-from { font-weight: 400; color: var(--muted); }
.sp-was { color: var(--muted); font-weight: 400; text-decoration-thickness: 1px; }
.sp-per { color: var(--muted); font-size: .86em; font-weight: 500; }

/* ---- catalogue: tools ---------------------------------------------------------------------------------------- */
.sp-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: var(--w-prose); }
.sp-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.sp-bar { display: flex; align-items: flex-end; gap: 12px; }
.sp-search { position: relative; flex: 1 1 auto; }
.sp-search > svg { position: absolute; left: 14px; bottom: 14px; color: var(--muted); pointer-events: none; }
.sp-search input { padding-left: 44px; width: 100%; -webkit-appearance: none; appearance: none; }
.sp-sort { flex: 0 0 210px; }
.sp-sort select { width: 100%; }
.sp-view { display: flex; margin: 0; padding: 0; border: 0; min-width: 0; }
.sp-viewbtn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--field); background: var(--surface); color: var(--muted); cursor: pointer; transition: background-color var(--d) var(--ease), color var(--d) var(--ease), border-color var(--d) var(--ease); }
.sp-viewbtn:first-of-type { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.sp-viewbtn:last-of-type { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; }
.sp-viewbtn:has(input:checked) { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); position: relative; }
.sp-viewbtn:has(input:focus-visible), .sp-chip:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.sp-rail { margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; position: relative; } /* positioned: the chips' visually hidden inputs stay inside the scroller */
.sp-rail::-webkit-scrollbar { display: none; }
.sp-rail .sp-chips { flex-wrap: nowrap; width: max-content; }
.sp-chip { position: relative; cursor: pointer; white-space: nowrap; }
.sp-more { border-top: 1px solid var(--line); }
.sp-more summary { list-style: none; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.sp-more summary::-webkit-details-marker { display: none; }
.sp-more summary svg { transition: transform var(--d) var(--ease); }
.sp-more[open] summary svg { transform: rotate(90deg); }
.sp-more-body { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 4px 0 16px; }
.sp[data-armed] .sp-apply { display: none; }
.sp-apply { align-self: flex-start; }
.sp-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--line); margin-bottom: 20px; }
.sp-count { color: var(--muted); font-size: 15px; }
.sp-clear { font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---- product cards: a shelf, photo first, name and price on one line under it ----------------------------------- */
.sp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 36px 20px; }
.sp-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sp-cmedia { position: relative; display: block; text-decoration: none; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); }
.sp-cimg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sp-cmedia .k-ph { width: 100%; height: 100%; font-size: 14px; }
.sp-flag { position: absolute; left: 10px; top: 10px; font-size: 13px; padding: 4px 10px; }
.sp-card[data-out] .sp-cimg { filter: saturate(.35); opacity: .8; }
.sp-cbody { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; min-width: 0; }
.sp-cname { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.sp-cname a { color: inherit; text-decoration: none; }
.sp-cname a::after { content: ""; position: absolute; inset: 0 0 auto; aspect-ratio: 4 / 5; border-radius: var(--radius); } /* the photo is part of the link target */
.sp-cprice { font-size: 15px; }
.sp-ctext { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-sw { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.sp-swatch { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color var(--d) var(--ease), color var(--d) var(--ease); }
.sp-swatch[data-out] { text-decoration: line-through; border-style: dashed; }
.sp-cact { margin-top: auto; padding-top: 12px; position: relative; z-index: 1; }
.sp-cbtn { width: 100%; transition: background-color var(--d) var(--ease), color var(--d) var(--ease), box-shadow var(--d) var(--ease), transform .16s var(--ease); }
.sp-cbtn[data-done] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.sp-card[data-out] .sp-cbtn { color: var(--muted); }

/* list view: a ledger, hairlines between rows */
.sp-grid[data-view="list"] { grid-template-columns: 1fr; gap: 0; }
.sp-grid[data-view="list"] .sp-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sp-grid[data-view="list"] .sp-cmedia { border-radius: var(--radius-sm); }
.sp-grid[data-view="list"] .sp-cname a::after { display: none; }
.sp-grid[data-view="list"] .sp-cbody { padding-top: 0; }
.sp-grid[data-view="list"] .sp-cact { margin-top: 0; padding-top: 0; }
.sp-grid[data-view="list"] .sp-cbtn { width: auto; }
.sp-grid[data-view="list"] .sp-flag { left: 6px; top: 6px; font-size: 12px; padding: 2px 8px; }

.sp-empty { align-items: center; text-align: center; padding: 40px 20px; color: var(--muted); }
.sp-empty svg { color: var(--field); }
.sp-empty-t { font-size: 18px; font-weight: 600; color: var(--ink); }
.sp-morebox { display: flex; justify-content: center; margin: 32px 0 0; }

/* ---- product page ------------------------------------------------------------------------------------------- */
.sp-pdp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.sp-crumb { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.sp-gallery { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sp-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--placeholder); overscroll-behavior-x: contain; }
.sp-stage::-webkit-scrollbar { display: none; }
.sp-stage > * { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; object-fit: cover; }
.sp-stage .k-ph { font-size: 15px; }
.sp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 84px)); gap: 10px; }
.sp-thumbs button { aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--placeholder); opacity: .7; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--d) var(--ease), outline-color var(--d) var(--ease); }
.sp-thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--brand); }
.sp-thumbs button:focus-visible { outline-color: var(--brand); }
.sp-thumb { width: 100%; height: 100%; object-fit: cover; }
.sp-dots { display: none; justify-content: center; gap: 6px; }
.sp-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--field); transition: width var(--d) var(--ease), background-color var(--d) var(--ease); }
.sp-dots span[aria-current="true"] { width: 18px; border-radius: 999px; background: var(--brand); }

.sp-buy { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sp-hd { display: flex; flex-direction: column; gap: 10px; }
.sp-lede { color: var(--muted); max-width: 60ch; }
.sp-pprice { font-size: 28px; letter-spacing: -0.02em; }
.sp-pprice .sp-now { font-weight: 700; }
.sp-pprice .sp-was { font-size: 18px; margin-left: 4px; }
.sp-live { align-self: flex-start; }
.sp-cartform { display: flex; flex-direction: column; gap: 20px; }
.sp-opt { gap: 10px; }
.sp-opt-p { font-weight: 500; opacity: .8; }
.sp-opt[data-out] { border-style: dashed; color: var(--muted); }
.sp-opt[data-out] > span:first-child { text-decoration: line-through; }
.sp-opt[data-out][aria-pressed="true"] { color: var(--on-brand); }
.sp-qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-qty .sp-legend { margin: 0; }
.sp-note { margin: -10px 0 0; font-size: 14px; color: var(--muted); }
.sp-act { display: flex; align-items: center; gap: 16px; }
.sp-act-price { font-size: 20px; font-weight: 700; min-width: 5ch; }
.sp-addbtn { flex: 1 1 auto; }
.sp-alertform { gap: 10px; }
.sp-alert-h { font-weight: 600; font-size: 17px; }
.sp-alert-t { color: var(--muted); font-size: 15px; }
.sp-alert-row { display: flex; align-items: flex-start; gap: 10px; }
.sp-alert-row .k-field { flex: 1 1 auto; }
.sp-alert-row .k-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp-alert-go { min-height: 48px; }
.sp-body { border-top: 1px solid var(--line); padding-top: 20px; max-width: 62ch; display: flex; flex-direction: column; gap: 12px; }
.sp-body h2 { font-size: 18px; letter-spacing: -0.01em; margin-top: 8px; }
.sp-body ul, .sp-body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sp-sku { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.sp-related { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 72px); }
.sp-related h2 { margin-bottom: 24px; font-size: clamp(22px, 2.6vw, 30px); }

/* ---- cart: page and drawer share the lines and the checkout ----------------------------------------------------- */
.sp-cart-h { margin-bottom: 24px; }
.sp-cart { min-width: 0; }
.sp-cart[data-mode="page"] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.sp-cart[data-mode="page"][data-step="result"] { grid-template-columns: minmax(0, var(--w-narrow)); justify-content: center; }
.sp-cart[data-mode="page"] .sp-checkout { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.sp-lines { list-style: none; margin: 0; padding: 0; }
.sp-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "photo main total" "photo ctl ctl"; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sp-line:first-child { border-top: 1px solid var(--line); }
.sp-lphoto { grid-area: photo; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--placeholder); }
.sp-lphoto img, .sp-lphoto .k-ph { width: 100%; height: 100%; object-fit: cover; }
.sp-lmain { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-lname { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.sp-lopt, .sp-lunit { font-size: 14px; color: var(--muted); }
.sp-lnote { font-size: 14px; color: var(--muted); margin-top: 4px; }
.sp-lnote[data-low] { color: var(--danger); font-weight: 500; }
.sp-lctl { grid-area: ctl; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-lstep { padding: 2px; }
.sp-lstep output { font-size: 16px; min-width: 28px; }
.sp-rm { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; transition: background-color var(--d-fast) ease, color var(--d-fast) ease; }
.sp-ltotal { grid-area: total; font-size: 16px; text-align: right; padding-top: 1px; }
.sp-line[data-out] .sp-lphoto { opacity: .5; }
.sp-line[data-out] .sp-lctl { justify-content: flex-end; }
.sp-emptycart { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 12px; }
.sp-emptycart svg { color: var(--field); margin-bottom: 4px; }
.sp-emptycart .k-btn { margin-top: 12px; }
.sp-bagfoot { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.sp-subrow { font-size: 18px; }
.sp-subrow strong { font-size: 20px; }
.sp-go { width: 100%; margin-top: 4px; }
.sp-bag [data-gone] { margin-bottom: 12px; }

.sp-checkout { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sp-backlink { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; }
.sp-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-fs legend { padding: 0; margin-bottom: 12px; font-size: 17px; font-weight: 600; }
.sp-methods { display: flex; flex-direction: column; gap: 8px; }
.sp-method { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color var(--d) var(--ease), background-color var(--d) var(--ease); }
.sp-method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.sp-method:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.sp-method input, .sp-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.sp-mtext { display: flex; flex-direction: column; min-width: 0; }
.sp-mname { font-weight: 600; }
.sp-mdays { font-size: 14px; color: var(--muted); }
.sp-mprice { font-weight: 600; }
.sp-who { font-size: 15px; color: var(--muted); }
.sp-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; cursor: pointer; padding: 4px 0; }
.sp-check input { margin-top: 1px; }
.sp-sumbox { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.sp-sumbox .sp-row > span:first-child { color: var(--muted); }
.sp-totrow { font-size: 20px; font-weight: 700; padding-top: 4px; }
.sp-sumbox .sp-totrow > span:first-child { color: var(--ink); }
.sp-pay { width: 100%; }
.sp-trust { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin: -4px 0 0; }
.sp-trust svg { flex-shrink: 0; margin-top: 2px; }

/* ---- results: checking, paid (the receipt), pending, oversold, declined, closed --------------------------------- */
.sp-result { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 12px; }
.sp-mark { margin: 16px auto 4px; }
.sp-mark .k-spin { width: 30px; height: 30px; border-width: 3px; }
.sp-res-h { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; text-align: center; }
.sp-res-h:focus { outline: none; }
.sp-res-lead { text-align: center; color: var(--muted); margin-top: -6px; }
.sp-receipt { gap: 12px; }
.sp-rline { display: flex; justify-content: space-between; gap: 12px; }
.sp-rline > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sp-rship { color: var(--muted); }
.sp-rpaid { border-top: 1px dashed var(--field); padding-top: 12px; font-size: 18px; font-weight: 700; }
.sp-ref { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.sp-ref > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-ref code { font: 500 13px/1.4 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.sp-copy { flex-shrink: 0; border: 1px solid var(--field); background: var(--surface); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 13px; font-weight: 600; }
.sp-res-actions { display: flex; flex-direction: column; gap: 8px; }
.sp-tips-h { font-weight: 600; }
.sp-tips { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.sp-popup { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.sp-popup:not([open]) { display: none; }
.sp-popup::backdrop { background: color-mix(in srgb, var(--ink) 42%, transparent); }

/* ---- the drawer: a side sheet on desktop, a bottom sheet on phones ------------------------------------------------ */
.sp-drawer { padding: 0; border: 0; margin: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.sp-drawer[open] { animation: sp-in-side .32s var(--ease); }
.sp-drawer[data-closing] { animation: sp-out-side .2s var(--ease) forwards; }
.sp-drawer::backdrop { background: color-mix(in srgb, var(--ink) 42%, transparent); animation: k-fade .32s var(--ease); }
:root[data-theme="dark"] .sp-drawer::backdrop { background: color-mix(in srgb, var(--ground) 72%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sp-drawer::backdrop { background: color-mix(in srgb, var(--ground) 72%, transparent); } }
.sp-sheet { display: flex; flex-direction: column; height: 100%; max-height: inherit; }
.sp-dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.sp-dhead h2 { font-size: 20px; letter-spacing: -0.01em; }
.sp-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; transition: background-color var(--d-fast) ease; }
.sp-drawer .sp-cart { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; }
.sp-drawer .sp-bag, .sp-drawer .sp-checkout { padding-block: 16px; }
.sp-drawer .sp-line:first-child { border-top: 0; }
.sp-drawer .sp-bagfoot { position: sticky; bottom: 0; background: var(--surface); padding-bottom: calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: -1px; }

/* ---- order page ------------------------------------------------------------------------------------------------ */
.sp-confirm { display: flex; flex-direction: column; gap: 20px; }
.sp-lookup { gap: 14px; }
.sp-lookup-t { color: var(--muted); }
.sp-order { display: flex; flex-direction: column; gap: 16px; }
.sp-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.sp-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.sp-steps li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.sp-steps li:first-child::before { display: none; }
.sp-steps li[data-done]::before, .sp-steps li[aria-current]::before { background: var(--brand); }
.sp-dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--field); }
.sp-steps li[data-done] .sp-dot { background: var(--brand); box-shadow: none; }
.sp-steps li[aria-current] { color: var(--ink); font-weight: 600; }
.sp-steps li[aria-current] .sp-dot { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.sp-statusline { font-size: 17px; font-weight: 600; text-align: center; }
.sp-ship { gap: 8px; }
.sp-ship .k-btn { align-self: flex-start; }

/* ---- the cart pill -------------------------------------------------------------------------------------------- */
.sp-minibox { display: flex; justify-content: flex-end; padding-block: 12px; }
.sp[data-slotted] .sp-minibox { padding: 0; margin: 0; } /* inside the shell header (site.shell.cartSlot) */
.sh[data-open] .sp[data-slotted] .sp-mini { visibility: hidden; } /* the shell's phone menu is open over the page */
@media (max-width: 1280px) { .sp[data-slotted] .sp-mini-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } } /* a tight header row: bag and count */
.sp-mini { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); font-weight: 600; font-size: 15px; text-decoration: none; transition: box-shadow var(--d) var(--ease), transform .16s var(--ease); }
.sp-mini:active { transform: scale(.97); }
.sp-mini-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }

/* ---- hover (pointer devices only) ---------------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .sp-card:hover .sp-cimg { transform: scale(1.03); }
  .sp-cname a:hover { color: var(--brand); }
  .sp-swatch:hover { border-color: var(--brand); color: var(--brand); }
  .sp-viewbtn:hover { border-color: var(--brand); color: var(--brand); }
  .sp-method:hover { border-color: var(--brand); }
  .sp-rm:hover { background: var(--danger-soft); color: var(--danger); }
  .sp-x:hover { background: var(--ground); }
  .sp-thumbs button:hover { opacity: 1; }
  .sp-mini:hover { box-shadow: inset 0 0 0 1px var(--brand), 0 10px 24px color-mix(in srgb, var(--ink) 14%, transparent); }
  .sp-copy:hover { border-color: var(--brand); }
}

/* ---- phones -------------------------------------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .sp-bar { flex-wrap: wrap; }
  .sp-search { flex-basis: 100%; }
  .sp-sort { flex: 1 1 auto; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .sp-cname { font-size: 16px; }
  .sp-grid[data-view="grid"] .sp-ctext { display: none; }
  .sp-cbtn { padding: 0 10px; }
  .sp-grid[data-view="list"] .sp-card { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 14px; align-items: start; }
  .sp-grid[data-view="list"] .sp-cmedia { grid-row: 1 / 3; }
  .sp-grid[data-view="list"] .sp-cact { grid-column: 2; }
  .sp-grid[data-view="list"] .sp-cbtn { width: 100%; }

  /* product page: the stage runs edge to edge and the buy sheet rises over it; the action bar sticks to the bottom */
  .sp-pdp { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sp-crumb { margin-bottom: 8px; }
  .sp-gallery { position: relative; top: 0; margin-inline: calc(-1 * var(--pad)); gap: 0; }
  .sp-stage { aspect-ratio: 5 / 4; border-radius: 0; }
  .sp-thumbs { display: none; }
  .sp-dots { display: flex; position: absolute; left: 0; right: 0; bottom: 36px; z-index: 1; }
  .sp-dots span { background: color-mix(in srgb, var(--surface) 70%, transparent); }
  .sp-buy { margin: -24px calc(-1 * var(--pad)) 0; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: none; padding: 24px var(--pad) 0; position: relative; z-index: 2; gap: 18px; }
  .sp-act { order: 99; position: sticky; bottom: 0; margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); z-index: 3; }
  .sp-body { order: 90; }
  .sp-sku { order: 91; padding-bottom: 8px; }
  .sp-alert-row { flex-direction: column; align-items: stretch; }

  .sp-cart[data-mode="page"] { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sp-cart[data-mode="page"] .sp-checkout { position: static; padding: 20px; margin-inline: calc(-1 * var(--pad) + 4px); }
  .sp-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 12px; }

  .sp-drawer { margin: auto 0 0; width: 100vw; height: auto; max-height: 92dvh; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
  .sp-drawer[open] { animation-name: sp-in-up; }
  .sp-drawer[data-closing] { animation-name: sp-out-up; }
  .sp-drawer .sp-cart { padding: 0 var(--pad); }
  .sp-dhead { padding-left: var(--pad); }

  .sp-minibox { padding: 0; }
  .sp-mini { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; min-height: 52px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--field), var(--shadow); }
  .sp-mini-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body:has(.sp-act:not([hidden])) .sp-mini { bottom: calc(92px + env(safe-area-inset-bottom)); } /* clear the product page's bar */
}

/* ---- motion: the receipt prints in once Paystack has said yes; the drawer slides; the rest is quiet ------------------- */
.sp-result[data-state="paid"] .sp-celebrate-h { animation: k-focus .7s .4s var(--ease) backwards; }
.sp-result[data-state="paid"] .sp-res-lead { animation: k-in .6s .55s var(--ease) backwards; }
.sp-result[data-state="paid"] .sp-receipt { animation: k-print .9s .7s var(--ease) backwards; }
.sp-result[data-state="paid"] .sp-receipt > * { animation: k-in .45s var(--ease) backwards; }
.sp-result[data-state="paid"] .sp-receipt > :nth-child(1) { animation-delay: .9s; }
.sp-result[data-state="paid"] .sp-receipt > :nth-child(2) { animation-delay: .98s; }
.sp-result[data-state="paid"] .sp-receipt > :nth-child(3) { animation-delay: 1.06s; }
.sp-result[data-state="paid"] .sp-receipt > :nth-child(n+4) { animation-delay: 1.14s; }
.sp-result[data-state="paid"] .sp-res-actions { animation: k-in .5s 1.3s var(--ease) backwards; }
.sp-result:is([data-state="declined"], [data-state="closed"], [data-state="oversold"]) .k-mark.warn { animation: k-drop .55s var(--spring) backwards, k-nope .5s .6s ease-in-out; }
.sp-result:is([data-state="declined"], [data-state="closed"], [data-state="oversold"]) > :not(.sp-mark) { animation: k-in .5s .3s var(--ease) backwards; }
.sp-flag:not([hidden]), .sp-live:not([hidden]) { animation: k-fade .3s var(--ease); }
@keyframes sp-in-side { from { transform: translateX(32px); opacity: 0; } }
@keyframes sp-out-side { to { transform: translateX(32px); opacity: 0; } }
@keyframes sp-in-up { from { transform: translateY(48px); opacity: 0; } }
@keyframes sp-out-up { to { transform: translateY(48px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sp-drawer[open], .sp-drawer[data-closing] { animation: k-fade .2s ease both; }
  .sp-result *, .sp-result .k-mark.warn { animation: k-fade .3s ease both !important; }
  .sp-cimg, .sp-mini, .sp-cbtn { transition-property: opacity, background-color, color, box-shadow; }
  .sp-card:hover .sp-cimg { transform: none; }
  .sp-mini:active { transform: none; }
}
