/* =====================================================================
   SHOP  (listing, options picker, product page, cart drawer, cart,
   checkout, payment, receipt, tracking). Uses the --bp-* and --ios-*
   tokens from app.css, so light and dark themes follow automatically.
   Class prefix: sh-
   ===================================================================== */
:root {
    --sh-gap: 16px;
    --sh-r: 16px;
    --sh-r-sm: 12px;
    --sh-ok: #1f7a35;
    --sh-ok-bg: #e3f6e8;
    --sh-warn: #8a4b00;
    --sh-warn-bg: #fff4e5;
    --sh-bad: #c4271c;
    --sh-bad-bg: #ffe9e7;
    --sh-gold: var(--bp-brand-500);
    --sh-ring: 0 0 0 3px rgba(211, 1, 62, .25);
    --sh-shadow: 0 1px 2px rgba(38, 39, 40, .06), 0 10px 30px -18px rgba(38, 39, 40, .35);
}
@media screen {
    html[data-theme="dark"] {
        --sh-ok: var(--bp-text-green); --sh-ok-bg: var(--bp-tint-green);
        --sh-warn: var(--bp-text-amber); --sh-warn-bg: var(--bp-tint-amber);
        --sh-bad: var(--bp-text-red); --sh-bad-bg: var(--bp-tint-red);
        --sh-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .7);
    }
}

.sh-card { background: var(--bp-surface); border-radius: var(--sh-r); box-shadow: var(--sh-shadow); }
.sh-muted { color: var(--bp-muted); }
.sh-h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--bp-ink); margin: 0; }
.sh-h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--bp-ink); margin: 0; }
.sh-link { color: var(--bp-brand-700); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .sh-link { color: var(--bp-brand-800); }
.sh-x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--ios-fill); color: var(--bp-ink); cursor: pointer; flex: none; }
.sh-x:hover { background: var(--ios-fill-2); }
.sh-x svg { width: 18px; height: 18px; }
.sh-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sh-pill.is-ok { background: var(--sh-ok-bg); color: var(--sh-ok); }
.sh-pill.is-warn { background: var(--sh-warn-bg); color: var(--sh-warn); }
.sh-pill.is-bad { background: var(--sh-bad-bg); color: var(--sh-bad); }
.sh-pill.is-quiet { background: var(--ios-fill); color: var(--bp-ink-2); }
.sh-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--sh-r-sm); font-size: 14.5px; line-height: 1.5; }
.sh-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.sh-note strong { display: block; color: inherit; }
.sh-note p { margin: 0; }
.sh-note.is-info { background: var(--ios-fill); color: var(--bp-ink-2); }
.sh-note.is-warn { background: var(--sh-warn-bg); color: var(--sh-warn); }
.sh-note.is-bad { background: var(--sh-bad-bg); color: var(--sh-bad); }
.sh-note.is-ok { background: var(--sh-ok-bg); color: var(--sh-ok); }

/* Quantity stepper */
.sh-qty { display: inline-grid; grid-template-columns: 40px 52px 40px; align-items: center; height: 48px; border-radius: var(--sh-r-sm); background: var(--ios-fill); }
.sh-qty button { height: 100%; border: 0; background: none; color: var(--bp-ink); font-size: 20px; font-weight: 600; cursor: pointer; border-radius: var(--sh-r-sm); }
.sh-qty button:hover:not(:disabled) { background: var(--ios-fill-2); }
.sh-qty button:disabled { opacity: .35; cursor: not-allowed; }
.sh-qty input, .sh-qty output { width: 100%; height: 100%; border: 0; background: none; text-align: center; font: inherit; font-size: 16px; font-weight: 700; color: var(--bp-ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; display: grid; place-items: center; }
.sh-qty input::-webkit-outer-spin-button, .sh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sh-qty.is-sm { grid-template-columns: 34px 38px 34px; height: 36px; border-radius: 10px; }
.sh-qty.is-sm button { font-size: 17px; border-radius: 10px; }
.sh-qty.is-sm output, .sh-qty.is-sm input { font-size: 15px; }

/* =====================================================================
   Checkout steps band
   ===================================================================== */
.sh-steps { margin: 18px 0 8px; }
.sh-steps ol { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sh-step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; color: var(--bp-muted); font-size: 14px; font-weight: 600; }
.sh-step:last-child { flex: 0 0 auto; }
.sh-step-in { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: inherit; text-decoration: none; }
.sh-step-n { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--ios-fill); color: var(--bp-ink-2); font-size: 13px; font-weight: 800; flex: none; }
.sh-step-n svg { width: 15px; height: 15px; }
.sh-step-line { flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--bp-line); min-width: 12px; }
.sh-step.is-done { color: var(--bp-ink-2); }
.sh-step.is-done .sh-step-n { background: var(--bp-brand-700); color: #fff; }
.sh-step.is-done .sh-step-line { background: var(--bp-brand-700); }
.sh-step.is-now { color: var(--bp-ink); }
.sh-step.is-now .sh-step-n { background: var(--bp-ink); color: var(--bp-surface); box-shadow: 0 0 0 4px var(--ios-fill); }
a.sh-step-in:hover .sh-step-label { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
    .sh-step:not(.is-now) .sh-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .sh-step.is-now { flex: 3 1 auto; }
    .sh-step.is-now .sh-step-in { min-width: 0; }
    .sh-step.is-now .sh-step-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .sh-step-line { margin: 0 8px; }
    body:has(.sh-co-bar) .bp-wa, body:has(.sh-cart-bar) .bp-wa { bottom: calc(136px + env(safe-area-inset-bottom)); }
}

html[data-theme="dark"] .sh-val.is-swatch i,
html[data-theme="dark"] .sh-opt .sh-dot,
html[data-theme="dark"] .sh-chip .sh-dot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }

/* =====================================================================
   LISTING
   ===================================================================== */
.sh-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 0 12px; }
.sh-list-head p { margin: 4px 0 0; color: var(--bp-muted); font-size: 14.5px; }
.sh-shop { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 32px; }
.sh-filters { position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow: auto; overscroll-behavior: contain; padding: 6px 18px 18px; scrollbar-width: thin; }
.sh-filters-head, .sh-filters-foot { display: none; }
.sh-fsec { border-bottom: 1px solid var(--bp-line); padding: 4px 0; }
.sh-fsec:last-of-type { border-bottom: 0; }
.sh-fsec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--bp-ink); }
.sh-fsec > summary::-webkit-details-marker { display: none; }
.sh-fsec > summary small { font-weight: 600; font-size: 12.5px; color: var(--bp-brand-700); background: var(--ios-tint-fill); border-radius: 999px; padding: 2px 8px; margin-left: auto; }
.sh-fsec > summary svg { width: 18px; height: 18px; color: var(--bp-muted); transition: transform .2s; }
.sh-fsec[open] > summary svg { transform: rotate(180deg); }
.sh-fbody { padding: 0 0 14px; }
.sh-fcats { display: grid; gap: 2px; }
.sh-fcat { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 15px; color: var(--bp-ink-2); text-decoration: none; }
.sh-fcat em { font-style: normal; font-size: 13px; color: var(--bp-muted); font-variant-numeric: tabular-nums; }
.sh-fcat:hover { background: var(--ios-fill); }
.sh-fcat.is-on { background: var(--ios-tint-fill); color: var(--bp-brand-800); font-weight: 700; }
.sh-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-opt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; background: var(--ios-fill); color: var(--bp-ink); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.sh-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sh-opt em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--bp-muted); }
.sh-opt:hover { background: var(--ios-fill-2); }
.sh-opt:has(input:checked) { border-color: var(--bp-brand-700); background: var(--ios-tint-fill); color: var(--bp-brand-800); }
.sh-opt:has(input:focus-visible) { box-shadow: var(--sh-ring); }
.sh-opt .sh-dot { width: 18px; height: 18px; border-radius: 999px; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.sh-checks { display: grid; gap: 2px; }
.sh-check { display: flex; align-items: center; gap: 12px; min-height: 42px; font-size: 15px; color: var(--bp-ink-2); cursor: pointer; }
.sh-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--bp-brand-700); flex: none; }
.sh-check input[type=radio] { border-radius: 999px; }
.sh-price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.sh-price-row span { color: var(--bp-muted); }
.sh-price-row input { height: 42px; width: 100%; min-width: 0; border: 0; border-radius: 10px; background: var(--ios-fill); padding: 0 12px; font: inherit; font-size: 15px; color: var(--bp-ink); }
.sh-price-row input:focus { outline: none; box-shadow: var(--sh-ring); background: var(--bp-surface); }
.sh-range { position: relative; height: 28px; margin: 4px 4px 10px; }
.sh-range-bar { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--bp-line); }
.sh-range-bar i { position: absolute; top: 0; bottom: 0; background: var(--bp-brand-700); border-radius: 4px; }
.sh-range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.sh-range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 999px; background: var(--bp-surface); border: 2px solid var(--bp-brand-700); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.sh-range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 999px; background: var(--bp-surface); border: 2px solid var(--bp-brand-700); cursor: pointer; }
.sh-apply { margin-top: 10px; }

.sh-results { min-width: 0; }
.sh-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 10px; }
.sh-toolbar-l, .sh-toolbar-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sh-count { font-size: 14.5px; color: var(--bp-muted); white-space: nowrap; }
.sh-count b { color: var(--bp-ink); }
.sh-filter-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ios-fill); color: var(--bp-ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.sh-filter-btn svg { width: 18px; height: 18px; }
.sh-filter-btn b { min-width: 20px; height: 20px; border-radius: 999px; background: var(--bp-brand-700); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.sh-sort { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.sh-sort label { font-size: 14px; color: var(--bp-muted); white-space: nowrap; }
.sh-sort select { height: 40px; border: 0; border-radius: 999px; background: var(--ios-fill); color: var(--bp-ink); font: inherit; font-size: 14.5px; font-weight: 600; padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; cursor: pointer; }
.sh-sort select:focus { outline: none; box-shadow: var(--sh-ring); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--bp-surface); box-shadow: inset 0 0 0 1px var(--bp-line-2); color: var(--bp-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.sh-chip svg { width: 14px; height: 14px; color: var(--bp-muted); }
.sh-chip .sh-dot { width: 14px; height: 14px; border-radius: 999px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.sh-chip:hover { box-shadow: inset 0 0 0 1.5px var(--bp-brand-700); }
.sh-chip.is-clear { background: none; box-shadow: none; color: var(--bp-brand-700); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
html[data-theme="dark"] .sh-chip.is-clear { color: var(--bp-brand-800); }
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sh-grid > .bp-card { background: var(--bp-surface); }
.sh-more { display: grid; justify-items: center; gap: 10px; padding: 24px 0 8px; text-align: center; }
.sh-more p { margin: 0; font-size: 14px; color: var(--bp-muted); }
.sh-more-bar { width: min(240px, 70%); height: 4px; border-radius: 4px; background: var(--bp-line); overflow: hidden; }
.sh-more-bar i { display: block; height: 100%; background: var(--bp-brand-700); border-radius: 4px; transition: width .3s var(--bp-ease); }
.sh-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(20, 18, 17, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sh-scrim.is-on { opacity: 1; visibility: visible; }

@media (max-width: 1200px) {
    .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .sh-shop { grid-template-columns: minmax(0, 1fr); }
    .sh-filter-btn { display: inline-flex; }
    .sh-filters { position: fixed; top: 0; bottom: 0; left: 0; z-index: 150; width: min(380px, 92vw); max-height: none; border-radius: 0 20px 20px 0; padding: 0; display: flex; flex-direction: column; transform: translateX(-104%); transition: transform .3s var(--bp-ease); visibility: hidden; }
    .sh-filters.is-open { transform: none; visibility: visible; }
    .sh-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--bp-line); }
    .sh-filters-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 4px 20px 16px; }
    .sh-filters-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bp-line); background: var(--bp-surface); }
    .sh-apply { display: none; }
}
@media (max-width: 767px) {
    .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .sh-list-head { padding-top: 10px; }
    .sh-h1 { font-size: 22px; }
    .sh-toolbar { position: sticky; top: 64px; z-index: 30; padding: 8px; border-radius: 14px; }
    .sh-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .sh-sort select { max-width: 170px; }
    .sh-count.is-wide { display: none; }
}

/* =====================================================================
   OPTION PICKER (product page and the options sheet)
   ===================================================================== */
.sh-group { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.sh-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sh-group legend, .sh-group-name { padding: 0; font-size: 15.5px; font-weight: 700; color: var(--bp-ink); }
.sh-group-name span { font-weight: 500; color: var(--bp-muted); }
.sh-group-avail { font-size: 13px; color: var(--bp-muted); white-space: nowrap; }
.sh-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-val { position: relative; display: inline-grid; justify-items: center; align-content: center; gap: 1px; min-width: 56px; min-height: 48px; padding: 6px 14px; border: 1.5px solid transparent; border-radius: 12px; background: var(--ios-fill); color: var(--bp-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.sh-val small { font-size: 11.5px; font-weight: 600; color: var(--bp-muted); }
.sh-val:hover { background: var(--ios-fill-2); }
.sh-val:focus-visible { outline: none; box-shadow: var(--sh-ring); }
.sh-val[aria-pressed="true"] { border-color: var(--bp-ink); background: var(--bp-surface); box-shadow: 0 0 0 1px var(--bp-ink); }
.sh-val.is-out { color: var(--bp-muted); }
.sh-val.is-out > span:first-child { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sh-val.is-low small { color: var(--sh-warn); }
.sh-val.is-swatch { min-width: 0; min-height: 0; width: 44px; height: 44px; padding: 0; border-radius: 999px; background: none; border: 2px solid transparent; }
.sh-val.is-swatch i { width: 34px; height: 34px; border-radius: 999px; background: var(--sw, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.sh-val.is-swatch[aria-pressed="true"] { border-color: var(--bp-ink); box-shadow: none; background: none; }
.sh-val.is-swatch.is-out::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--bp-muted); transform: rotate(-45deg); border-radius: 2px; }
.sh-val.is-swatch.is-out i { opacity: .45; }
.sh-pick-clear { font-size: 14px; margin: -6px 0 14px; }
.sh-stockline { min-height: 22px; margin: 0 0 12px; font-size: 14.5px; font-weight: 600; }
.sh-stockline.is-ok { color: var(--sh-ok); }
.sh-stockline.is-low { color: var(--sh-warn); }
.sh-stockline.is-out { color: var(--sh-bad); }
.sh-stockline.is-hint { color: var(--bp-muted); font-weight: 500; }
.sh-shake { animation: sh-shake .35s; }
@keyframes sh-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sh-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.sh-tier { display: grid; gap: 1px; min-width: 120px; padding: 10px 12px; border: 1.5px solid var(--bp-line); border-radius: 12px; background: var(--bp-surface); color: var(--bp-ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.sh-tier .q { font-size: 12.5px; font-weight: 600; color: var(--bp-muted); }
.sh-tier .p { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-tier .s { font-size: 12px; font-weight: 700; color: var(--sh-ok); }
.sh-tier:hover { border-color: var(--bp-line-2); }
.sh-tier.is-on { border-color: var(--sh-gold); background: var(--bp-amber-50); }
.sh-tier-hint { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bp-amber-50); color: var(--bp-text-amber, #7a4a00); font-size: 14px; font-weight: 600; }

/* Options sheet (quick view): two panes on wide screens, bottom sheet on phones */
.sh-sheet { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sh-sheet[hidden] { display: none; }
.sh-sheet-scrim { position: absolute; inset: 0; background: rgba(20, 18, 17, .55); opacity: 0; transition: opacity .25s; }
.sh-sheet-panel { position: relative; width: min(920px, 100%); max-height: min(88vh, 760px); overflow: auto; overscroll-behavior: contain; background: var(--bp-surface); border-radius: 22px; box-shadow: var(--bp-shadow-lg); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s var(--bp-ease), transform .3s var(--bp-ease); outline: none; }
.sh-sheet.is-open .sh-sheet-scrim { opacity: 1; }
.sh-sheet.is-open .sh-sheet-panel { opacity: 1; transform: none; }
.sh-sheet-grab { display: none; }
.sh-sheet-close { position: absolute; top: 12px; right: 12px; z-index: 3; }
.sh-qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sh-qv-media { position: relative; background: var(--ios-bg); border-radius: 22px 0 0 22px; padding: 16px; display: grid; align-content: start; gap: 10px; }
.sh-qv-main { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #fff; }
.sh-qv-main img { width: 100%; height: 100%; object-fit: contain; }
.sh-qv-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sh-qv-thumbs button { width: 56px; height: 56px; flex: none; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.sh-qv-thumbs button[aria-current="true"] { border-color: var(--bp-ink); }
.sh-qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sh-qv-body { padding: 24px 24px 20px; display: flex; flex-direction: column; min-width: 0; }
.sh-qv-cat { font-size: 13px; font-weight: 600; color: var(--bp-muted); margin: 0 40px 4px 0; }
.sh-qv-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 40px 8px 0; color: var(--bp-ink); }
.sh-qv-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.sh-qv-price b { font-size: 24px; font-weight: 800; color: var(--bp-ink); }
.sh-qv-price s { color: var(--bp-muted); font-size: 15px; }
.sh-qv-picker { margin-top: 14px; }
.sh-qv-foot { position: sticky; bottom: -20px; margin: auto -24px -20px; padding: 14px 24px 20px; background: var(--bp-surface); border-top: 1px solid var(--bp-line); display: grid; gap: 10px; }
.sh-qv-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
.sh-qv-row .bp-btn { height: 48px; padding: 0 12px; }
.sh-qv-total { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--bp-muted); }
.sh-qv-total b { color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.sh-qv-more { font-size: 14.5px; text-align: center; }
.sh-qv-error { margin: 0; color: var(--sh-bad); font-weight: 600; font-size: 14px; }
.sh-intent { outline: 3px solid rgba(211, 1, 62, .3); outline-offset: 2px; }
.sh-sheet-loading { display: grid; place-items: center; min-height: 280px; color: var(--bp-muted); }
.sh-spin { width: 28px; height: 28px; border-radius: 999px; border: 3px solid var(--bp-line); border-top-color: var(--bp-brand-700); animation: sh-spin .8s linear infinite; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
    .sh-sheet { padding: 0; align-items: flex-end; }
    .sh-sheet-panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); opacity: 1; transition: transform .35s var(--ios-spring); }
    .sh-sheet-grab { display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--bp-line-2); margin: 8px auto 0; position: sticky; top: 8px; z-index: 4; }
    .sh-qv { grid-template-columns: 1fr; }
    .sh-qv-media { border-radius: 0; padding: 8px 16px 0; background: none; grid-template-columns: 96px 1fr; align-items: center; }
    .sh-qv-main { aspect-ratio: 1; border-radius: 12px; background: var(--ios-bg); }
    .sh-qv-thumbs { display: none; }
    .sh-qv-media .sh-qv-head-m { display: block; }
    .sh-qv-body { padding: 12px 16px 16px; }
    .sh-qv-body > .sh-qv-cat, .sh-qv-body > .sh-qv-name, .sh-qv-body > .sh-qv-price { display: none; }
    .sh-qv-foot { margin: auto -16px -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); bottom: -16px; }
    .sh-qv-row { grid-template-columns: auto 1fr; }
    .sh-qv-row .bp-btn-dark { grid-column: 1 / -1; order: 3; }
}
.sh-qv-head-m { display: none; min-width: 0; }
.sh-qv-head-m .sh-qv-name { font-size: 18px; margin: 0 44px 4px 0; }
.sh-qv-head-m .sh-qv-price b { font-size: 20px; }

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.sh-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--bp-surface); box-shadow: var(--bp-shadow-lg); transform: translateX(104%); transition: transform .32s var(--bp-ease); visibility: hidden; outline: none; }
.sh-drawer.is-open { transform: none; visibility: visible; }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--bp-line); }
.sh-drawer-head h2 { font-size: 18px; font-weight: 800; margin: 0; color: var(--bp-ink); }
.sh-drawer-head h2 span { color: var(--bp-muted); font-weight: 600; }
.sh-drawer-added { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--sh-ok-bg); color: var(--sh-ok); font-size: 14.5px; font-weight: 700; }
.sh-drawer-added svg { width: 18px; height: 18px; flex: none; }
.sh-drawer-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 4px 16px; }
.sh-drawer-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bp-line); display: grid; gap: 10px; }
.sh-drawer-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--bp-ink-2); }
.sh-drawer-sum b { font-size: 20px; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.sh-drawer-foot p { margin: -4px 0 0; font-size: 13px; color: var(--bp-muted); }
.sh-drawer-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.sh-drawer-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 12px; text-align: center; color: var(--bp-muted); }
.sh-drawer-empty svg { width: 40px; height: 40px; color: var(--bp-line-2); }
.sh-drawer-empty strong { color: var(--bp-ink); font-size: 17px; }
.sh-dline { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bp-line); }
.sh-dline:last-child { border-bottom: 0; }
.sh-dline-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--ios-bg); }
.sh-dline-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-dline-name { display: block; font-size: 15px; font-weight: 600; color: var(--bp-ink); line-height: 1.3; text-decoration: none; }
.sh-dline-name:hover { text-decoration: underline; }
.sh-dline-var { margin: 2px 0 0; font-size: 13px; color: var(--bp-muted); }
.sh-dline-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sh-dline-price { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--bp-ink); }
.sh-dline-tier { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--sh-ok); }
.sh-dline-rm { border: 0; background: none; color: var(--bp-muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.sh-dline-rm:hover { color: var(--sh-bad); }
.is-busy { opacity: .55; pointer-events: none; }

/* =====================================================================
   PRODUCT PAGE
   ===================================================================== */
.sh-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: 14px 0 8px; }
.sh-gal { position: sticky; top: 132px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.sh-gal.is-single { grid-template-columns: minmax(0, 1fr); }
.sh-gal-thumbs { display: grid; gap: 8px; align-content: start; max-height: 620px; overflow: auto; scrollbar-width: none; }
.sh-gal-thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; opacity: .75; transition: opacity .15s, border-color .15s; }
.sh-gal-thumbs button:hover { opacity: 1; }
.sh-gal-thumbs button[aria-current="true"] { border-color: var(--bp-ink); opacity: 1; }
.sh-gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sh-gal-main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #fff; touch-action: pan-y; }
.sh-gal-main > button.sh-gal-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sh-gal-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.sh-gal-zoom { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 200%; pointer-events: none; opacity: 0; transition: opacity .15s; }
.sh-gal-main.is-zoom .sh-gal-zoom { opacity: 1; }
.sh-gal-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #282828; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer; }
.sh-gal-arrow svg { width: 20px; height: 20px; }
.sh-gal-arrow.prev { left: 12px; }
.sh-gal-arrow.next { right: 12px; }
.sh-gal-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.sh-gal-main .bp-sale { z-index: 2; top: 12px; left: 12px; right: auto; width: auto; padding: 4px 10px; border-radius: 999px; background: #D3013E; color: #fff; font-size: 13px; }
.sh-gal-dots { display: none; }
.sh-lightbox { position: fixed; inset: 0; z-index: 170; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .94); }
.sh-lightbox[hidden] { display: none; }
.sh-lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.sh-lightbox .sh-x { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .15); color: #fff; }
.sh-lightbox p { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px; margin: 0; }
html[data-theme="dark"] .sh-gal-main img, html[data-theme="dark"] .sh-qv-main img { filter: brightness(.94); }

.sh-pdp-info { min-width: 0; }
.sh-pdp-cat { font-size: 14px; font-weight: 600; color: var(--bp-brand-700); text-decoration: none; }
html[data-theme="dark"] .sh-pdp-cat { color: var(--bp-brand-800); }
.sh-pdp-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 6px; }
.sh-pdp-title h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0; color: var(--bp-ink); }
.sh-pdp-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--bp-muted); margin-bottom: 14px; }
.sh-pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.sh-pdp-price b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--bp-ink); }
.sh-pdp-price b small { font-size: 18px; font-weight: 700; margin-right: 4px; }
.sh-pdp-price s { color: var(--bp-muted); font-size: 16px; }
.sh-pdp-price .unit { font-size: 15px; color: var(--bp-muted); }
.sh-pdp-price .save { font-size: 13px; font-weight: 800; color: #fff; background: var(--bp-red); padding: 3px 8px; border-radius: 8px; }
.sh-pdp-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.sh-pdp-desc { color: var(--bp-ink-2); margin: 14px 0 18px; font-size: 15.5px; line-height: 1.55; }
.sh-pdp-box { padding: 18px; margin-bottom: 14px; }
.sh-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; }
.sh-buy .bp-btn { height: 48px; }
.sh-buy-total { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; font-size: 14.5px; color: var(--bp-muted); }
.sh-buy-total b { color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.sh-buy-error { margin: 10px 0 0; color: var(--sh-bad); font-weight: 600; font-size: 14.5px; }
/* Devine-style price and buy panel */
.sh-pdp-cat { text-transform: uppercase; letter-spacing: .02em; }
.sh-pdp-rating { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-size: 14.5px; color: var(--bp-muted); }
.sh-stars { display: inline-flex; gap: 2px; font-size: 18px; line-height: 1; }
.sh-stars i { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--bp-brand-700); }
.sh-stars i.is-on { color: var(--bp-brand-700); }
.sh-pdp-price.is-devine { align-items: center; }
.sh-pdp-price.is-devine b { font-size: 34px; color: var(--bp-brand-700); }
html[data-theme="dark"] .sh-pdp-price.is-devine b { color: var(--bp-brand-800); }
.sh-pdp-price.is-devine s { font-size: 19px; }
.sh-pdp-price .off { font-size: 13px; font-weight: 800; color: var(--bp-brand-700); background: var(--bp-brand-50); padding: 5px 12px; border-radius: 999px; }
html[data-theme="dark"] .sh-pdp-price .off { color: var(--bp-brand-800); }
.sh-pdp-rule { border: 0; border-top: 1px solid var(--bp-line); margin: 16px 0 18px; }
.sh-pdp-stock { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 15px; font-weight: 600; }
.sh-pdp-stock .bp-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.sh-pdp-stock.is-in { color: var(--sh-ok); }
.sh-pdp-stock.is-out { color: var(--sh-bad); }
.sh-pdp-box.is-plain { padding: 0; background: none; box-shadow: none; }
.sh-pdp-box.is-plain .sh-buy { display: flex; margin-top: 18px; }
.sh-buy-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sh-buy-btns .bp-btn { height: 52px; min-width: 180px; padding: 0 28px; border-radius: 999px; font-size: 16px; box-shadow: 0 8px 20px -10px rgba(211, 1, 62, .6); }
.sh-btn-buynow { background: #A60030; color: #fff; border: 0; }
.sh-btn-buynow:hover { filter: brightness(1.08); }
.sh-tabs { margin: 24px 0 0; padding: 4px 20px 20px; }
.sh-tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--bp-line); margin-bottom: 16px; overflow-x: auto; }
.sh-tabs-nav button { position: relative; height: 50px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--bp-muted); cursor: pointer; white-space: nowrap; }
.sh-tabs-nav button[aria-selected="true"] { color: var(--bp-ink); }
.sh-tabs-nav button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--bp-brand-700); }
.sh-tab { color: var(--bp-ink-2); line-height: 1.6; }
.sh-specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 16px; font-size: 15px; }
.sh-specs dt { color: var(--bp-muted); }
.sh-specs dd { margin: 0; color: var(--bp-ink); font-weight: 600; }
@media (max-width: 1024px) {
    .sh-pdp { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .sh-gal { position: static; grid-template-columns: minmax(0, 1fr); }
    .sh-gal-thumbs { display: none; }
    .sh-gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
    .sh-gal-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--bp-line-2); transition: width .2s, background .2s; }
    .sh-gal-dots i.is-on { width: 18px; background: var(--bp-ink); }
}
@media (max-width: 767px) {
    .sh-gal-main { border-radius: 16px; margin: 0 -4px; }
    .sh-gal-arrow { display: none; }
    .sh-pdp-title h1 { font-size: 24px; }
    .sh-pdp-price b { font-size: 28px; }
    .sh-buy { grid-template-columns: auto 1fr; }
    .sh-buy .bp-btn-dark { display: none; }
    .sh-pdp-price.is-devine b { font-size: 28px; }
    .sh-buy-btns .bp-btn { flex: 1 1 0; min-width: 0; padding: 0 16px; }
    .sh-tabs { padding: 4px 14px 16px; }
}

/* =====================================================================
   CART PAGE
   ===================================================================== */
.sh-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; padding: 6px 0 28px; }
.sh-cart-lines { padding: 6px 20px; }
.sh-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.sh-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-top: 1px solid var(--bp-line); align-items: start; }
.sh-line-img { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--ios-bg); display: block; }
.sh-line-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-line h2 { font-size: 16px; font-weight: 600; margin: 0; line-height: 1.3; }
.sh-line h2 a { color: var(--bp-ink); text-decoration: none; }
.sh-line h2 a:hover { text-decoration: underline; }
.sh-line-var { margin: 3px 0 0; font-size: 14px; color: var(--bp-muted); }
.sh-line-unit { margin: 6px 0 0; font-size: 14px; color: var(--bp-ink-2); font-variant-numeric: tabular-nums; }
.sh-line-unit s { color: var(--bp-muted); margin-left: 6px; }
.sh-line-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sh-line-tip { border: 0; background: var(--bp-amber-50); color: var(--bp-text-amber, #7a4a00); border-radius: 999px; height: 28px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sh-line-tip:hover { box-shadow: inset 0 0 0 1px var(--sh-gold); }
.sh-line-side { display: grid; justify-items: end; gap: 10px; }
.sh-line-total { white-space: nowrap; font-size: 17px; font-weight: 800; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.sh-line.is-blocked .sh-line-img, .sh-line.is-blocked h2 { opacity: .55; }
.sh-sum { position: sticky; top: 132px; padding: 20px; display: grid; gap: 12px; }
.sh-sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--bp-ink-2); }
.sh-sum-row b { color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.sh-sum-row.is-total { padding-top: 12px; border-top: 1px solid var(--bp-line); font-size: 17px; font-weight: 700; color: var(--bp-ink); }
.sh-sum-row.is-total b { font-size: 22px; }
.sh-sum .bp-btn { height: 52px; font-size: 16px; }
.sh-trust { display: grid; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--bp-line); font-size: 13.5px; color: var(--bp-muted); }
.sh-trust div { display: flex; gap: 10px; align-items: center; }
.sh-trust svg { width: 18px; height: 18px; color: var(--bp-ink-2); flex: none; }
.sh-cart-bar { display: none; }
.sh-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; }
.sh-empty > svg { width: 48px; height: 48px; color: var(--bp-line-2); }
.sh-empty h1, .sh-empty h2 { font-size: 22px; font-weight: 800; margin: 0; color: var(--bp-ink); }
.sh-empty p { margin: 0 0 8px; color: var(--bp-muted); max-width: 440px; }
.sh-empty-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 1024px) {
    .sh-cart { grid-template-columns: minmax(0, 1fr); }
    .sh-sum { position: static; }
}
@media (max-width: 767px) {
    .sh-cart-lines { padding: 4px 14px; }
    .sh-line { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
    .sh-line-img { width: 76px; height: 76px; }
    .sh-line-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; }
    .sh-sum .sh-sum-cta { display: none; }
    .sh-cart-bar { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 calc(50% - 50vw); padding: 10px 16px; background: var(--bp-glass, rgba(255, 255, 255, .9)); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -1px 0 var(--bp-line); }
    .sh-cart-bar small { display: block; font-size: 12.5px; color: var(--bp-muted); }
    .sh-cart-bar b { font-size: 18px; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
    .sh-cart-bar .bp-btn { flex: 1; max-width: 220px; }
}

/* =====================================================================
   CHECKOUT, PAYMENT
   ===================================================================== */
.sh-co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; padding: 4px 0 32px; }
.sh-co-main { display: grid; gap: 16px; min-width: 0; }
.sh-co-card { padding: 20px 22px 22px; }
.sh-co-h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 18px; font-weight: 800; color: var(--bp-ink); letter-spacing: -.01em; }
.sh-co-n { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--bp-ink); color: var(--bp-surface); font-size: 14px; font-weight: 800; flex: none; }
.sh-co-h small { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--bp-muted); }
.sh-co-card .bp-form-section { gap: 16px; }
.sh-zone-search { position: relative; margin-bottom: 10px; }
.sh-zone-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--bp-muted); pointer-events: none; }
.sh-zone-search input { padding-left: 40px !important; }
.sh-zones { display: grid; gap: 8px; max-height: 340px; overflow: auto; padding: 2px; overscroll-behavior: contain; }
.sh-zone { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--bp-line); background: var(--bp-surface); cursor: pointer; transition: border-color .15s, background .15s; }
.sh-zone:hover { border-color: var(--bp-line-2); }
.sh-zone input { width: 20px; height: 20px; margin: 0; accent-color: var(--bp-brand-700); }
.sh-zone strong { display: block; font-size: 15px; color: var(--bp-ink); }
.sh-zone small { display: block; font-size: 13px; color: var(--bp-muted); }
.sh-zone b { font-size: 15px; color: var(--bp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-zone:has(input:checked) { border-color: var(--bp-brand-700); background: var(--ios-tint-fill); }
.sh-zone:has(input:focus-visible) { box-shadow: var(--sh-ring); }
.sh-zones-empty { padding: 12px; font-size: 14px; color: var(--bp-muted); }
.sh-zones.has-error { outline: 2px solid var(--sh-bad); outline-offset: 4px; border-radius: 12px; }
.sh-pay-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--bp-brand-700); background: var(--ios-tint-fill); }
.sh-mpesa { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #00a651; color: #fff; font-weight: 900; font-size: 20px; flex: none; }
.sh-pay-method strong { display: block; color: var(--bp-ink); }
.sh-pay-method small { color: var(--bp-muted); font-size: 13.5px; }
.sh-how { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: how; }
.sh-how li { counter-increment: how; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.5px; color: var(--bp-ink-2); }
.sh-how li::before { content: counter(how); width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--ios-fill); color: var(--bp-ink); font-size: 13px; font-weight: 800; }
.sh-co-sum { position: sticky; top: 132px; padding: 20px; display: grid; gap: 12px; }
.sh-co-items { display: grid; gap: 12px; max-height: 320px; overflow: auto; padding-bottom: 4px; }
.sh-co-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sh-co-thumb { position: relative; width: 56px; height: 56px; border-radius: 12px; background: var(--ios-bg); }
.sh-co-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.sh-co-thumb em { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--bp-ink); color: var(--bp-surface); font-size: 12px; font-style: normal; font-weight: 800; }
.sh-co-item strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--bp-ink); line-height: 1.3; }
.sh-co-item small { display: block; font-size: 13px; color: var(--bp-muted); }
.sh-co-item b { font-size: 14.5px; color: var(--bp-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-co-sum .bp-form-submit { min-height: 52px; }
.sh-co-terms { margin: 0; font-size: 12.5px; color: var(--bp-muted); text-align: center; }
.sh-co-terms a { color: inherit; text-decoration: underline; }
.sh-co-bar { display: none; }
.sh-co-off { margin-bottom: 16px; }
.sh-ordno { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ios-fill); }
.sh-ordno span { font-size: 13px; color: var(--bp-muted); }
.sh-ordno strong { font-size: 15px; color: var(--bp-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sh-pay-test { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bp-line-2); display: grid; gap: 8px; }
.sh-pay-test p { margin: 0; font-size: 13.5px; color: var(--bp-muted); }
@media (max-width: 1024px) {
    .sh-co { grid-template-columns: minmax(0, 1fr); }
    .sh-co-sum { position: static; }
}
@media (max-width: 767px) {
    .sh-co-card { padding: 16px; }
    .sh-co-sum .sh-co-cta { display: none; }
    .sh-co-bar { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 12px; margin: 0 calc(50% - 50vw); padding: 10px 16px; background: var(--bp-glass, rgba(255, 255, 255, .9)); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -1px 0 var(--bp-line); }
    .sh-co-bar span { display: grid; }
    .sh-co-bar small { font-size: 12.5px; color: var(--bp-muted); }
    .sh-co-bar b { font-size: 18px; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
    .sh-co-bar .bp-form-submit { flex: 1; min-height: 48px; }
}

/* Payment status */
.sh-status { max-width: 560px; margin: 8px auto 40px; padding: 28px 24px 24px; text-align: center; }
.sh-status-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 999px; display: grid; place-items: center; }
.sh-status-ico svg { width: 34px; height: 34px; }
.sh-status-ico.is-wait { background: var(--sh-warn-bg); color: var(--sh-warn); }
.sh-status-ico.is-ok { background: var(--sh-ok-bg); color: var(--sh-ok); }
.sh-status-ico.is-bad { background: var(--sh-bad-bg); color: var(--sh-bad); }
.sh-status h1, .sh-status h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--bp-ink); }
.sh-status > div > p { margin: 0 auto 14px; color: var(--bp-muted); max-width: 420px; }
.sh-status-msg.is-ok { color: var(--sh-ok) !important; font-weight: 600; }
.sh-status-amount { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--bp-ink); font-variant-numeric: tabular-nums; }
.sh-status-phone { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 16px; color: var(--bp-muted); font-size: 14.5px; }
.sh-status-phone svg { width: 16px; height: 16px; }
.sh-status-live { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; color: var(--bp-muted); font-size: 14px; }
.sh-status-live .sh-spin { width: 20px; height: 20px; border-width: 2.5px; }
.sh-facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--ios-fill); text-align: left; font-size: 14px; }
.sh-facts div { display: flex; justify-content: space-between; gap: 10px; }
.sh-facts span { color: var(--bp-muted); }
.sh-facts b { color: var(--bp-ink); font-weight: 700; }
.sh-verify { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--bp-surface); box-shadow: inset 0 0 0 1px var(--bp-line); text-align: left; }
.sh-verify p { margin: 0 0 10px; font-size: 14px; color: var(--bp-ink-2); }
.sh-verify-msg { margin: 8px 0 0 !important; font-size: 13.5px !important; }
.sh-status-actions { display: grid; gap: 8px; }
.sh-modal { position: fixed; inset: 0; z-index: 180; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 18, 17, .55); }
.sh-modal.is-open { display: flex; }
.sh-modal-panel { width: 100%; max-width: 440px; padding: 28px 24px 22px; border-radius: 20px; background: var(--bp-surface); box-shadow: var(--bp-shadow-lg); text-align: center; }
.sh-modal-panel h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: var(--bp-ink); }
.sh-modal-panel h3.is-ok, .sh-modal-panel p.is-ok { color: var(--sh-ok); }
.sh-modal-panel h3.is-warn, .sh-modal-panel p.is-warn { color: var(--sh-warn); }
.sh-modal-panel h3.is-bad, .sh-modal-panel p.is-bad { color: var(--sh-bad); }
.sh-modal-panel > p { margin: 0 0 16px; font-size: 14.5px; color: var(--bp-muted); }
.sh-modal-detail { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--ios-fill); font-size: 13.5px; color: var(--bp-ink-2); text-align: left; }
.sh-modal-actions { display: grid; gap: 8px; }

/* Receipt (stays a light sheet of paper in dark mode, see app.css) */
.sh-receipt-wrap { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.sh-receipt-done { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 16px 18px; }
.sh-receipt-done .sh-status-ico { width: 48px; height: 48px; margin: 0; flex: none; }
.sh-receipt-done .sh-status-ico svg { width: 24px; height: 24px; }
.sh-receipt-done h1 { font-size: 20px; font-weight: 800; margin: 0; color: var(--bp-ink); }
.sh-receipt-done p { margin: 2px 0 0; color: var(--bp-muted); font-size: 14.5px; }
.sh-receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.sh-receipt-brand { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: #D3013E; }

/* Track order */
.sh-track-steps { list-style: none; margin: 0; padding: 4px 0; display: grid; }
.sh-track-steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 0 0 22px; }
.sh-track-steps li:last-child { padding-bottom: 0; }
.sh-track-steps li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--bp-line); }
.sh-track-steps li:last-child::before { display: none; }
.sh-track-steps li.is-done::before { background: var(--bp-brand-700); }
.sh-track-dot { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--ios-fill); color: var(--bp-muted); z-index: 1; }
.sh-track-dot svg { width: 16px; height: 16px; }
.sh-track-steps li.is-done .sh-track-dot { background: var(--bp-brand-700); color: #fff; }
.sh-track-steps li.is-now .sh-track-dot { background: var(--bp-surface); box-shadow: inset 0 0 0 2px var(--bp-brand-700); }
.sh-track-steps li.is-now .sh-track-dot::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: var(--bp-brand-700); animation: sh-pulse 1.6s infinite; }
@keyframes sh-pulse { 50% { opacity: .35; } }
.sh-track-steps strong { display: block; font-size: 15.5px; color: var(--bp-ink); }
.sh-track-steps small { display: block; font-size: 14px; color: var(--bp-muted); }
.sh-track-steps li:not(.is-done):not(.is-now) strong { color: var(--bp-muted); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
    .sh-track-steps li.is-now .sh-track-dot::after, .sh-spin { animation: none; }
    .sh-filters, .sh-drawer, .sh-sheet-panel { transition: none; }
}

/* Visually hidden legends stay 1px wide even inside form sections. */
.bp-form-section > legend.bp-sr { width: 1px; float: none; }

/* Related and suggested products: a plain grid, no slider. */
.sh-grid.sh-grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) {
    .sh-grid.sh-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
