/* Shop on the web (server/web/pages/shop.js; the phone's is
   components/pages/ShopPage.tsx). Every colour is a theme variable, so the
   page reads on whatever theme it wears, light or dark; the featured cards
   and the Buy key wear candy (games/look.mjs), the app's own look.

   Laid out like the shopping apps people know (Shopify's Shop, Klarna,
   Instacart, Etsy): a search bar, a row of departments, featured collections
   to swipe, shelves of square product cards scrolled sideways, a grid for a
   search, and a product sheet with its photos to swipe and its buy bar
   pinned to the foot — minus what those apps use to hurry people: no
   struck-through "was" prices, no countdowns, no red sale badges. Every
   control is at least 44px, and nothing pushes the page sideways at 360px. */

.shop-page { display: flex; flex-direction: column; gap: 12px; max-width: 1120px; margin: 0 auto; box-sizing: border-box; }
/* The web app is a column on a wide screen: sizes follow the page's own width, not the window's. */
.shop-body { container-type: inline-size; }
.screen-scroll > .inner.shop-page { padding-top: calc(52px + env(safe-area-inset-top)); padding-bottom: 40px; }
.shop-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* Every glyph here is a line icon drawn in the text colour. */
.shop-page svg, .shop-sheet svg { stroke: currentColor; fill: none; stroke-width: 40; }

/* ---- the top: back, search, settings ---- */
/* Pinned from the very top, frosted, so nothing scrolls between it and the menu key above. */
.shop-top { position: sticky; top: 0; z-index: 6; margin: calc(-52px - env(safe-area-inset-top)) -16px 0; padding: calc(56px + env(safe-area-inset-top)) 16px 8px; background: color-mix(in srgb, var(--bg) 96%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.shop-top-row { display: flex; align-items: center; gap: 8px; }
.shop-key { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform 70ms ease-out; }
.shop-key:active { transform: translateY(2px); }
.shop-key:disabled { opacity: 0.45; cursor: default; }
.shop-key[hidden] { display: none; }
.shop-key svg { width: 20px; height: 20px; }
.shop-key.sm { width: 36px; height: 36px; border-radius: 12px; }
.shop-key.sm svg { width: 16px; height: 16px; }
.shop-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-solid, var(--surface)); }
.shop-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.shop-search-glass { display: inline-flex; color: var(--ink-muted); }
.shop-search-glass svg { width: 18px; height: 18px; }
.shop-search-input { flex: 1; min-width: 0; border: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 10px 0; outline: none; }
.shop-search-input::-webkit-search-cancel-button { display: none; }
.shop-search-clear { flex: none; width: 44px; height: 44px; margin-right: -5px; border-radius: 50%; border: none; background: var(--tint); color: var(--ink-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.shop-search-clear[hidden] { display: none; }
.shop-search-clear svg { width: 14px; height: 14px; }

/* ---- departments ---- */
.shop-depts { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.shop-depts::-webkit-scrollbar { display: none; }
.shop-dept { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.shop-dept svg { width: 17px; height: 17px; }
.shop-dept.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* The Brands row: one key a brand, its mark and its whole name, scrolled sideways like the departments; See all is
   every brand A to Z, the keys wrapping under each letter. */
.shop-az { display: flex; flex-direction: column; gap: 10px; }
.shop-az-letter { margin: 0; font: 900 18px/1.2 var(--arc-font, inherit); color: var(--ink-muted); }
.shop-az-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-brands { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.shop-brands::-webkit-scrollbar { display: none; }
.shop-brand { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 16px 0 7px; border-radius: 999px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.shop-brand:active { transform: translateY(2px); border-bottom-width: 1px; }
.shop-brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-c, var(--ink)); color: var(--brand-ink, var(--bg)); font: 900 15px/1 var(--arc-font, inherit); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 24%, transparent); }

/* ---- featured collections ---- */
.shop-hero-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shop-hero-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
.shop-hero-track::-webkit-scrollbar { display: none; }
.shop-hero { --lip: color-mix(in srgb, var(--c) 70%, #000); flex: none; width: 100%; scroll-snap-align: start; position: relative; display: flex; align-items: stretch; gap: 10px; min-height: 184px; padding: 18px; border: none; border-radius: 24px; background: var(--c); box-shadow: 0 5px 0 var(--lip); color: var(--ink, #fff); font: inherit; text-align: left; cursor: pointer; overflow: hidden; box-sizing: border-box; isolation: isolate; }
.shop-hero:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lip); }
.shop-hero-words { flex: 1 1 52%; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.shop-hero-title { font: 900 26px/1.08 var(--arc-font, inherit); letter-spacing: -0.3px; }
.shop-hero-line { font-size: 14px; font-weight: 650; line-height: 1.3; }
.shop-hero-go { white-space: nowrap; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--arc-cocoa, #2B2118); font: 900 13.5px/1 var(--arc-font, inherit); }
.shop-hero-go svg { width: 14px; height: 14px; stroke-width: 56; }
.shop-hero-pics { flex: 1 1 48%; position: relative; min-width: 120px; }
.shop-hero-pic { position: absolute; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.shop-hero-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-hero-pic.p0 { right: 4%; top: 0; width: 64%; aspect-ratio: 1; transform: rotate(3deg); z-index: 2; }
.shop-hero-pic.p1 { left: 0; bottom: 0; width: 46%; aspect-ratio: 1; transform: rotate(-5deg); z-index: 3; }
.shop-hero-pic.p2 { right: 0; bottom: -10%; width: 40%; aspect-ratio: 1; transform: rotate(8deg); z-index: 1; opacity: 0.95; }
.shop-dots { display: flex; justify-content: center; gap: 6px; }
.shop-dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--border); transition: width 200ms var(--arc-spring, ease), background 200ms; }
.shop-dots span.on { width: 20px; background: var(--ink); }

/* ---- shelves ---- */
.shop-shelf { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shop-shelf-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shop-h2 { flex: 1; min-width: 0; margin: 0; font: 900 20px/1.2 var(--arc-font, inherit); letter-spacing: -0.2px; color: var(--ink); white-space: normal; overflow-wrap: break-word; }
.shop-see { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px 0 10px; border: none; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.shop-see svg { width: 15px; height: 15px; stroke-width: 52; }
.shop-rail-keys { display: none; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .shop-rail-keys { display: flex; } }
.shop-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
.shop-rail::-webkit-scrollbar { display: none; }

/* ---- a product card ---- */
.shop-card { flex: none; width: 158px; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0; border: none; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; }
.shop-card.sm { width: 132px; }
.shop-card > * { max-width: 100%; }
.shop-card-img { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border); margin-bottom: 5px; box-sizing: border-box; }
.shop-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 200ms ease; }
@media (hover: hover) { .shop-card:hover .shop-card-img img { transform: scale(1.03); } }
.shop-card:active .shop-card-img { transform: scale(0.98); }
.shop-badge { position: absolute; left: 8px; top: 8px; font: 900 11px/1 var(--arc-font, inherit); letter-spacing: 0.2px; padding: 5px 8px 4px; border-radius: 99px; background: var(--arc-lemon, #FFC83D); color: var(--arc-cocoa, #2B2118); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }
.shop-badge.value { background: var(--arc-mint, #1FC98F); }
.shop-card-price { font-weight: 800; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-card-title { font-size: 13.5px; line-height: 1.3; color: var(--ink); display: block; overflow-wrap: anywhere; min-height: 2.6em; }
.shop-card-rating { font-size: 12.5px; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.shop-star { color: #F2A60C; }
.shop-card-count { color: var(--ink-muted); font-weight: 500; }
.shop-card-store { font-size: 12px; color: var(--ink-muted); white-space: normal; overflow-wrap: break-word; }
.shop-card-flag { font-size: 12px; font-weight: 650; color: var(--danger); }
.shop-card-status { font-size: 12px; font-weight: 700; color: var(--ink-muted); white-space: normal; overflow-wrap: break-word; }
.shop-card-status.ready { color: var(--success); }
.shop-card-wrap { position: relative; flex: none; scroll-snap-align: start; }
.shop-card-x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-solid, var(--surface)); color: var(--ink-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.shop-card-x::before { content: ''; position: absolute; inset: -6px; }
.shop-card-x svg { width: 14px; height: 14px; }
.shop-was { font-weight: 500; color: var(--ink-muted); font-size: 12.5px; }

/* Grey shapes while the first copy is on its way. */
.shop-card.skel { cursor: default; }
.shop-card.skel .shop-card-img, .shop-skel-line { background: var(--tint); border-color: transparent; animation: shop-pulse 1.2s ease-in-out infinite alternate; }
.shop-skel-line { height: 18px; width: 40%; border-radius: 8px; }
.shop-skel-line.sm { height: 12px; width: 70%; }
@keyframes shop-pulse { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .shop-card.skel .shop-card-img, .shop-skel-line { animation: none; } }

/* ---- a grid: a search, "See all", a collection ---- */
.shop-grid-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin-bottom: -10px; }
.shop-grid-title { flex: 1; min-width: 0; margin: 0; font: 900 24px/1.15 var(--arc-font, inherit); letter-spacing: -0.3px; color: var(--ink); overflow-wrap: anywhere; }
.shop-grid-n { flex: none; font-size: 13px; color: var(--ink-muted); }
.shop-sorts { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px -6px; padding: 0 16px 2px; scrollbar-width: none; }
.shop-sorts::-webkit-scrollbar { display: none; }
.shop-sort { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.shop-sort.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.shop-grid .shop-card { width: auto; }
@container (min-width: 470px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shop-card { width: 172px; } }
@container (min-width: 720px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .shop-card { width: 184px; } .shop-hero { width: calc(50% - 6px); } }
@container (min-width: 960px) { .shop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.shop-more { align-self: center; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.shop-more:disabled { opacity: 0.6; cursor: default; }
.shop-empty { color: var(--ink-muted); font-size: 14px; padding: 18px 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.shop-empty.col { flex-direction: column; align-items: flex-start; gap: 12px; }
.shop-quiet { text-align: center; color: var(--ink-muted); font-size: 12.5px; padding-top: 4px; }
.shop-kept { font-size: 13px; color: var(--ink-muted); }

/* ---- did you buy it, orders ---- */
.shop-trips { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); }
.shop-trips .shop-h2 { font-size: 17px; }
.shop-trip { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.shop-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-trip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-trip-title { font-size: 14.5px; font-weight: 650; color: var(--ink); display: block; overflow-wrap: anywhere; }
.shop-trip-acts { display: flex; gap: 8px; margin-top: 6px; }
.shop-pill { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-solid, var(--surface)); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.shop-pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-pill:disabled { opacity: 0.5; cursor: default; }

/* ---- a product ---- */
.shop-sheet { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; max-width: 640px; margin: 0 auto; width: 100%; }
/* Close stays at hand however far the sheet is scrolled: a row pinned to its top. */
.shop-sheet-top { position: sticky; top: -18px; z-index: 5; display: flex; justify-content: flex-end; margin: -18px -18px -14px; padding: 8px 14px; background: var(--bg); }
.shop-gallery-wrap { position: relative; margin: 0 -18px; }
.shop-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; }
.shop-gallery::-webkit-scrollbar { display: none; }
.shop-gallery-pic { flex: none; width: 100%; aspect-ratio: 1; max-height: 52vh; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.shop-gallery-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-dots.on-pic { position: absolute; left: 0; right: 0; bottom: 10px; }
.shop-dots.on-pic span { background: rgba(0, 0, 0, 0.18); }
.shop-dots.on-pic span.on { background: rgba(0, 0, 0, 0.7); }
.shop-pdp-head { display: flex; flex-direction: column; gap: 4px; }
.shop-pdp-store { font-size: 13px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: normal; overflow-wrap: break-word; }
.shop-sheet-title { font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.shop-pdp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.shop-sheet-price { font-size: 24px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-pdp-rating { font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.shop-pdp-loading { display: flex; flex-direction: column; gap: 8px; }
.shop-opt { display: flex; flex-direction: column; gap: 8px; }
.shop-opt-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.shop-opt-name span { font-weight: 500; color: var(--ink-muted); }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip { min-height: 44px; min-width: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-solid, var(--surface)); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.shop-chip:hover { border-color: var(--ink-muted); }
.shop-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.shop-chip.gone { opacity: 0.45; text-decoration: line-through; }
.shop-qty { flex: none; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.shop-step { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-solid, var(--surface)); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.shop-step:disabled { opacity: 0.4; cursor: default; }
.shop-qty-n { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-checks { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-solid, var(--surface)); }
.shop-checks-title { font-size: 13px; font-weight: 800; color: var(--ink); }
.shop-check { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.shop-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); transform: translateY(-1px); }
.shop-check.ok .shop-dot { background: var(--success); }
.shop-check.warn .shop-dot { background: #E0A01E; }
.shop-check.bad .shop-dot { background: var(--danger); }
.shop-check a, .shop-inline { color: var(--accent); font-weight: 650; }
.shop-inline { border: none; background: none; padding: 0; font: inherit; cursor: pointer; }
.shop-features { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink); }
.shop-desc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0; border: none; border-top: 1px solid var(--border); background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.shop-desc-head svg { width: 18px; height: 18px; }
.shop-desc p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); white-space: pre-line; }
/* Pinned to the sheet's foot, edge to edge in the sheet's own colour, with a hairline over it. */
.shop-buybar { position: sticky; bottom: -28px; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 0 -18px -28px; padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
.shop-buybar.flat { position: static; margin: 0; padding: 0; border: none; background: none; }
.shop-buybar.stack { flex-direction: column; align-items: stretch; }
.shop-pill.wide { width: 100%; }
.shop-buybar .arc-candy { margin-bottom: 5px; }
.shop-buy { padding: 0 16px; }
.shop-buy span { white-space: normal; overflow-wrap: break-word; }
.arc-candy.shop-buy:disabled { opacity: 0.55; cursor: default; transform: none; }
.shop-waiting { flex: 1; display: flex; align-items: center; min-height: 48px; font-weight: 700; font-size: 14px; color: var(--ink-muted); }
.shop-own-blurb { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.shop-where { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.shop-where-part.make, .shop-where-sw.make { background: var(--ink-faint); }
.shop-where-part.ship, .shop-where-sw.ship { background: var(--ink-muted); }
.shop-where-part.fee, .shop-where-sw.fee { background: var(--border); }
.shop-where-part.us, .shop-where-sw.us { background: var(--accent); }
.shop-where-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-where-key { display: flex; align-items: center; gap: 6px; }
.shop-where-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---- our bag ---- */
.shop-bag { gap: 10px; }
/* A line is its name, then its − n + and price under it: nothing is squeezed at 320px. */
.shop-bag-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; min-width: 0; }
.shop-bag-line.gone .shop-bag-name { color: var(--ink-muted); }
.shop-bag-name { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.shop-bag-short { font-size: 14px; font-weight: 700; color: var(--ink-muted); text-align: center; padding: 4px 0; }
.shop-bag-price { min-width: 52px; text-align: right; font-weight: 800; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-bag-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 800; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- settings ---- */
.shop-settings { gap: 12px; }
.shop-settings-head { display: flex; align-items: center; gap: 12px; }
.shop-set { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.shop-set.row { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; min-height: 44px; }
.shop-set.row input { width: 20px; height: 20px; }
.shop-field { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.shop-set-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* A short screen (an SE, a landscape phone): the photo gives room to the name and the price. */
@media (max-height: 640px) { .shop-gallery-pic { max-height: 38vh; } }
