/* A product's page (src/market.ts productPageOf, src/product-view.ts). The structure is written at the top of
   product-view.ts. Two columns from 900px: the pictures and what stands under them on the left, the buy box on the
   right, in view while the left scrolls; then full-width sections. On a phone one column, and the row that buys
   stays at the bottom above the site's tabs. Nothing here is smaller than 12px; every press target is 44px. */

:root { --top-h: 66px; }
.market { margin-top: clamp(12px, 2.4vw, 26px); }
.market > .crumbs { max-width: none; margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.market > .crumbs::-webkit-scrollbar { display: none; }
.crumbs a { display: inline-block; padding: 12px 0; }
.market > .crumbs { margin: -8px 0 4px; }

/* page.css gives every list a top margin and every row a rule, two ends and code letters: these lists are not such rows */
.product ul, .psec ul { margin: 0; padding: 0; list-style: none; }
.psec li, .product li { display: block; padding: 0; border: 0; color: inherit; }
.psec li span, .product li span { font-family: var(--font); font-size: inherit; letter-spacing: 0; color: inherit; white-space: normal; }
.psec li a, .product li a { font-weight: inherit; }

/* ---------- the top: pictures | buy box ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(372px, 452px); gap: 22px clamp(24px, 3vw, 44px); align-items: start; }
.product > .pg { grid-column: 1; grid-row: 1; }
.product > .under { grid-column: 1; grid-row: 2; }
.product > .buybox { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--top-h) + 14px); min-width: 0; }

/* the pictures */
.pg { min-width: 0; }
.pg.many { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pg-stage { position: relative; height: clamp(400px, calc(100dvh - var(--top-h) - 120px), 700px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-1); }
.pg-shots { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.pg-shots::-webkit-scrollbar { display: none; }
.pg-shots:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring) inset; }
.pg-shot { --pad: clamp(14px, 2.4vw, 34px); position: relative; flex: 0 0 100%; min-width: 0; height: 100%; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; }
/* at its real size or smaller: a small picture stands small on the clean ground, never stretched into a blur */
.pg-shot img { position: absolute; inset: 0; display: block; width: auto; height: auto; max-width: calc(100% - 2 * var(--pad)); max-height: calc(100% - 2 * var(--pad)); margin: auto; object-fit: contain; transition: transform 0.16s ease; }
.pg.can-open .pg-shot { cursor: zoom-in; }
.pg-shot.close img { transition: none; }
.pg-rail { display: flex; flex-direction: column; gap: 10px; max-height: clamp(400px, calc(100dvh - var(--top-h) - 120px), 700px); padding: 2px; overflow-y: auto; scrollbar-width: none; }
.pg-rail::-webkit-scrollbar { display: none; }
.pg-rail a { flex: none; display: grid; place-items: center; width: 72px; height: 72px; padding: 5px; background: #fff; border: 1px solid var(--line-2); border-radius: 15px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pg-rail a:hover { border-color: var(--brand-line); }
.pg-rail a.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pg-rail a:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.pg-rail img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 9px; }
.pg-arrow, .pg-open, .pv-b, .pv-arrow, .rail-b { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #06182d; cursor: pointer; background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(6, 24, 45, 0.14); border-radius: 50%; box-shadow: 0 2px 10px -4px rgba(6, 24, 45, 0.35); transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease; }
.pg-arrow[hidden], .pg-open[hidden], .rail-b[hidden] { display: none; }
.pg-arrow:hover, .pg-open:hover, .pv-b:hover, .pv-arrow:hover, .rail-b:hover { border-color: rgba(10, 108, 245, 0.5); }
.pg-arrow:focus-visible, .pg-open:focus-visible, .pv-b:focus-visible, .pv-arrow:focus-visible, .rail-b:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.pg-arrow { position: absolute; top: 50%; opacity: 0; transform: translateY(-50%); }
.pg-arrow.prev { left: 12px; }
.pg-arrow.next { right: 12px; }
.pg-stage:hover .pg-arrow, .pg-arrow:focus-visible { opacity: 1; }
.pg-arrow:disabled { opacity: 0 !important; pointer-events: none; }
.pg-open { position: absolute; top: 12px; right: 12px; }
.pg-count { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: #06182d; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(6, 24, 45, 0.12); border-radius: 999px; }
.pg-dots { display: none; }
.nopic { display: grid; justify-items: center; gap: 8px; align-content: center; height: 100%; font-size: 14px; color: #5b6c84; }
.nopic .ico { width: 34px; height: 34px; }

/* under the pictures: the key facts, and the box to ask about the product */
.under { display: grid; gap: 16px; min-width: 0; }
.facts-wrap { display: grid; gap: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.fact { display: grid; gap: 3px; align-content: start; min-width: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fact dt { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.fact dd { margin: 0; font-size: 15px; font-weight: 620; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.fact-one { margin: 0; padding: 12px 16px; font-size: 14.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fact-one b { font-weight: 620; color: var(--ink); }
.facts-all { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 560; color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }
.ask { display: grid; gap: 12px; padding: 18px 20px; background: linear-gradient(135deg, var(--brand-soft), transparent 70%), var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.ask h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 640; }
.ask h2 .ico { color: var(--brand); }
.ask-form { display: flex; gap: 8px; margin: 0; }
.ask-form input[type="text"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 14px; }
.ask-form input[type="text"]::placeholder { color: var(--muted); opacity: 1; }
.ask-form input[type="text"]:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--ring); }
.ask-form button { flex: none; min-width: 76px; min-height: 48px; padding: 0 20px; font: 620 15px/1 var(--font); color: var(--btn-ink); cursor: pointer; background: var(--btn); border: 0; border-radius: 14px; box-shadow: var(--btn-shadow); }
.ask-form button:hover { background: var(--btn-hover); }
.ask-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ask-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 540; color: var(--ink-2); text-decoration: none; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 999px; transition: border-color 0.15s ease, color 0.15s ease; }
.ask-chips a:hover { color: var(--brand-ink); border-color: var(--brand-line); }

/* the buy box */
.bb { display: grid; gap: 13px; max-height: calc(100dvh - var(--top-h) - 28px); padding: clamp(18px, 1.8vw, 26px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-2); }
.bb > * { margin: 0; min-width: 0; }
.bb h1 { margin: 0; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 680; overflow-wrap: anywhere; text-wrap: balance; }
.stars { display: inline-flex; gap: 1px; flex: none; }
.st { display: block; width: 17px; height: 17px; }
.st .bg { fill: var(--line-2); }
.st .fg { fill: var(--amber); }
.st.s-half .fg { clip-path: inset(0 50% 0 0); }
.rated { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; margin: -10px 0 -12px; justify-self: start; font-size: 14px; color: var(--muted); text-decoration: none; }
.rated b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.rated span:last-child { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.rated:hover span:last-child { color: var(--brand-ink); text-decoration-color: var(--brand-line); }
.norev { margin: -6px 0 -4px; font-size: 13px; color: var(--muted); }
.bb .price { font-family: var(--font); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 40px; margin: 2px 0 0; font-size: 34px; font-weight: 680; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price s { font-size: 19px; font-weight: 450; color: var(--muted); }
.price [hidden] { display: none; }
.bb .price .about { flex-basis: 100%; font-size: 14px; font-weight: 450; letter-spacing: 0; color: var(--muted); }
.off { padding: 3px 9px; font: 600 14.5px/1.3 var(--font); letter-spacing: 0; color: #fff; background: var(--accent, var(--brand)); border-radius: 999px; }
:root[data-theme="dark"] .off { color: #00122b; }
.calm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-top: -6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.calm .stock { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--good); }
.stock .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.calm .stock.out { color: var(--muted); }
.verdict b { font-weight: 640; color: var(--ink); }
.verdict.good b { color: var(--good); }
.verdict.warn b { color: var(--warn); }
.verdict a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.verdict a:hover { color: var(--brand-ink); }

.opts { display: grid; gap: 12px; }
.opt { display: grid; gap: 7px; min-width: 0; }
.opt-h { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.opt-h b { font-weight: 620; color: var(--ink); overflow-wrap: anywhere; }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.opt-b { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; max-width: 100%; padding: 6px 14px; font: 560 14px/1.25 var(--font); color: var(--ink); text-align: center; overflow-wrap: anywhere; cursor: pointer; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.opt-b:hover { border-color: var(--brand-line); }
.opt-b:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.opt-b.on { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.opt-b.out { color: var(--muted); background: var(--surface-2); border-style: dashed; }
.opt-b.gone { color: var(--muted); text-decoration: line-through; background: transparent; border-style: dashed; opacity: 0.7; }
.opt-b.flat { cursor: default; }
.opt-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.shipline { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.shipline .ico { width: 19px; height: 19px; color: var(--brand); }
.shipline > span { flex: 1; min-width: 0; }
.shipline a { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 560; color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }

/* one tidy group: Buy across the whole width, then cart and save side by side, then watch and share */
.bb .buybar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 0 0; }
.bb .buybar .pay { grid-column: 1 / -1; }
.buybar .pay { display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; min-width: 0; min-height: 54px; padding: 0 16px; font-size: 16.5px; font-weight: 650; text-decoration: none; white-space: nowrap; border-radius: 16px; }
/* A long name of a store gives way with three dots; "Buy at" and the price are always whole. */
.buybar .pay .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.buybar .pay small { display: none; flex: none; font-size: 13.5px; font-weight: 560; opacity: 0.88; }
.buybar .pay[aria-disabled="true"], .pnav-buy .pay[aria-disabled="true"] { pointer-events: none; opacity: 0.5; }
.bb .buybar .act { justify-content: center; min-height: 50px; padding: 0 14px; font-size: 15px; font-weight: 600; white-space: nowrap; border-radius: 15px; }
.buybar .act svg { width: 20px; height: 20px; }
.bb .bb-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: -3px 0 0; }
.bb .bb-more .act { justify-content: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 560; color: var(--ink-2); white-space: nowrap; background: transparent; border-color: var(--line); border-radius: 13px; }
.bb .bb-more .act:hover { color: var(--brand-ink); border-color: var(--brand-line); }
.zero { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.zero .ico { width: 17px; height: 17px; margin-top: 1px; color: var(--good); }
.zero b { font-weight: 640; color: var(--ink); }
.storerow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 9px 14px 9px 10px; color: inherit; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.15s ease; }
.storerow:hover { border-color: var(--brand-line); }
.storerow:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.storerow .av { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
.storerow > span { display: grid; min-width: 0; }
.storerow b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 620; color: var(--ink); }
.storerow small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.storerow em { font-size: 13.5px; font-style: normal; font-weight: 560; color: var(--brand-ink); white-space: nowrap; }
.asof { margin-top: -5px; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* ---------- the row of sections ---------- */
.pnav { position: sticky; top: calc(var(--top-h) - 1px); z-index: 20; margin: 26px 0 0; background: var(--bar); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); }
/* under the header it hangs from it: square on top, nothing of the page showing between the two */
.pnav.stuck { border-radius: 0 0 18px 18px; box-shadow: var(--shadow-2); }
.pnav-in { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 6px 8px; }
.pnav-links { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pnav-links::-webkit-scrollbar { display: none; }
.pnav-links a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14.5px; font-weight: 560; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: 12px; transition: background 0.15s ease, color 0.15s ease; }
.pnav-links a:hover { color: var(--ink); background: var(--brand-soft); }
.pnav-links a.on { color: var(--brand-ink); background: var(--brand-soft); }
.pnav-links a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring) inset; }
.pnav-buy { display: flex; align-items: center; gap: 12px; min-width: 0; margin-left: auto; animation: pnav-in 0.2s ease; }
.pnav-buy[hidden] { display: none; }
.pnav-buy img { flex: none; width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pnav-name { max-width: 26ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; color: var(--ink-2); }
.pnav-buy b { font-size: 16px; font-weight: 660; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pnav-buy .pay { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 14.5px; font-weight: 640; text-decoration: none; white-space: nowrap; border-radius: 13px; }
@keyframes pnav-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- the sections ---------- */
.psec { margin: 18px 0 0; padding: clamp(18px, 2.4vw, 32px); scroll-margin-top: calc(var(--top-h) + 84px); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-1); }
.psec h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 650; }
.psec h3 { margin: 0; font-size: 16.5px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 640; color: var(--ink); }
.quiet { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.quiet a, .dcard a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }

/* about: the store's words beside its characteristics */
.about.split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.about-main { min-width: 0; }
.prose { max-width: 44em; font-size: 16px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 12px 0 0; }
.prose h3 { margin: 22px 0 0; }
.prose ul { display: grid; gap: 6px; margin: 12px 0 0; padding: 0 0 0 20px; list-style: disc; }
.psec .prose li { display: list-item; }
.prose li::marker { color: var(--brand); }
.prose b { font-weight: 620; color: var(--ink); }
.about.cols .prose { max-width: none; columns: 2; column-gap: clamp(28px, 4vw, 64px); }
.about.cols .prose > * { break-inside: avoid; }
.more { margin: 0; }
.more > summary { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 0 18px; font-size: 14.5px; font-weight: 600; color: var(--brand-ink); list-style: none; cursor: pointer; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.more .more-close, .more[open] .more-open { display: none; }
.more[open] .more-close { display: inline; }
/* open: the rest reads on from the first part, and the button to fold it stands under it */
.more[open] { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.more[open] > .prose { margin-top: 12px; }
.about-side { position: sticky; top: calc(var(--top-h) + 84px); padding: 18px 20px 14px; scroll-margin-top: calc(var(--top-h) + 84px); background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; }
.about-side h3 { margin-bottom: 6px; }
.specs { display: grid; margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(96px, 42%) minmax(0, 1fr); gap: 14px; padding: 10px 0; font-size: 14.5px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); overflow-wrap: anywhere; }
.specs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.about-side .specs > div:last-child { border-bottom: 0; }
.specs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.specs.two > div { font-size: 15px; }

/* reviews: the rating and its bars | the reviews as cards */
.rgrid { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.rgrid.alone { grid-template-columns: minmax(0, 1fr); }
.rgrid.alone .rsum { max-width: 420px; }
.rsum { position: sticky; top: calc(var(--top-h) + 84px); display: grid; gap: 16px; }
.rating { display: flex; align-items: center; gap: 14px; }
.rating-n { font-size: 52px; font-weight: 680; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.rating > div { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.rating .st { width: 22px; height: 22px; }
.rbars { display: grid; gap: 7px; }
.psec .rbars li { display: grid; grid-template-columns: 54px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.psec .rbars li span { white-space: nowrap; }
.rbars b { font-weight: 560; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); }
.rbars progress { width: 100%; height: 8px; overflow: hidden; -webkit-appearance: none; appearance: none; background: var(--line); border: 0; border-radius: 999px; }
.rbars progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.rbars progress::-webkit-progress-value { background: var(--amber); border-radius: 999px; }
.rbars progress::-moz-progress-bar { background: var(--amber); border-radius: 999px; }
.rwhose { margin: 0; padding-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
.rlist h3 { margin-bottom: 12px; }
.rcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.psec .rcard { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; }
.rcard p { margin: 0; }
.rcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.rcard-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rcard-text { flex: 1; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.rcard-text.soft { color: var(--muted); }
.rcard-text.fold { flex: none; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-more { align-self: flex-start; min-height: 44px; margin: -6px 0 -4px; padding: 0; font: 600 14px/1 var(--font); color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 3px; cursor: pointer; background: none; border: 0; }
.rcard-more[hidden] { display: none; }
.rcard-more:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-radius: 8px; }
.rcard-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; }
.rcard-by b { font-weight: 620; color: var(--ink); }
.psec .rcard-by span { font-size: 13px; color: var(--muted); }

/* delivery, returns, payment */
.dcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dcard { display: grid; gap: 8px; align-content: start; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; }
.dcard > .ico { width: 22px; height: 22px; color: var(--brand); }
.dcard h3 { font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dcard p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.dcard .dhead { font-size: 18px; font-weight: 640; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.dcard .dhead.warn { color: var(--warn); }
.dcard blockquote { margin: 0; padding: 2px 0 2px 12px; font-size: 14px; line-height: 1.5; color: var(--muted); border-left: 3px solid var(--brand-line); }
.dcard .quiet { margin: 0; font-size: 14px; }

/* the same product in other stores */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.offer-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 72px; padding: 8px 16px 8px 8px; color: inherit; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.15s ease, transform 0.15s ease; }
a.offer-row:hover { border-color: var(--brand-line); transform: translateY(-1px); }
a.offer-row:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.offer.low .offer-row { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.offer-pic { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.offer-pic img { width: 100%; height: 100%; object-fit: contain; }
.offer-who { display: grid; gap: 1px; min-width: 0; }
.offer-who b { font-size: 15px; font-weight: 620; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.psec .offer-who small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.offer-side { display: grid; justify-items: end; gap: 1px; text-align: right; }
.psec .offer .offer-price { font-family: var(--font-mono); font-size: 16px; font-weight: 620; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.offer-side small { font-size: 12.5px; color: var(--muted); }
.offer-side small.ok { color: var(--good); }
.offer-side em { font-style: normal; font-weight: 650; color: var(--good); }

/* a row of products that moves sideways: never a second row */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.rail-head h2 { margin: 0; }
.rail-arrows { display: flex; gap: 8px; flex: none; }
.rail-b { background: var(--surface-solid); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.rail-b:disabled { opacity: 0.4; cursor: default; }
.rail-row { display: flex; gap: 14px; margin: 0 -4px; padding: 4px 4px 10px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; }
.rail-row::-webkit-scrollbar { display: none; }
.rail-row:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); border-radius: 18px; }
.rail-row .tile { flex: 0 0 198px; scroll-snap-align: start; }
.rail .quiet { margin-top: 6px; }

/* the price while watched */
.psec .chart { max-height: 200px; }

/* waiting for the store's answer: the places it will fill, drawn quietly */
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--brand-soft) 40%, var(--line) 60%); background-size: 300% 100%; animation: sk 1.5s ease-in-out infinite; }
.sk.w40 { width: 40%; }
.sk.w60 { width: 60%; }
.sk.w70 { width: 70%; }
.sk.w90 { width: 90%; }
.sk.w95 { width: 95%; }
.sk.w100 { width: 100%; }
.sk-lines { display: grid; gap: 12px; max-width: 44em; margin-top: 16px; }
.sk-rows { display: grid; gap: 22px; padding: 10px 0 12px; }
.fact .sk + .sk { height: 15px; margin-top: 6px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- the pictures full screen ---------- */
.pv { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; color: var(--ink); background: var(--surface-solid); border: 0; }
.pv[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.pv::backdrop { background: rgba(2, 10, 23, 0.6); }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.pv-count { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pv-tools { display: flex; gap: 8px; }
.pv-b[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pv-b[hidden] { display: none; }
.pv-stage { position: relative; min-height: 0; margin: 0 14px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
/* whole on the screen, at its real size or smaller; looked at closer, at its real size, and the stage moves over it */
.pv-stage img { position: absolute; inset: 0; display: block; width: auto; height: auto; max-width: calc(100% - 28px); max-height: calc(100% - 28px); margin: auto; object-fit: contain; }
.pv-stage.can-zoom img { cursor: zoom-in; }
.pv-stage.zoomed img { position: static; max-width: none; max-height: none; margin: 0; cursor: zoom-out; }
.pv-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.pv-arrow.prev { left: 26px; }
.pv-arrow.next { right: 26px; }
.pv-arrow[hidden] { display: none; }
.pv-strip { display: flex; justify-content: safe center; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; scrollbar-width: none; }
.pv-strip:empty { padding: 7px; }
.pv-strip button { flex: none; display: grid; place-items: center; width: 60px; height: 60px; padding: 4px; cursor: pointer; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; }
.pv-strip button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pv-strip button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.pv-strip img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (hover: none) {
  .pg-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-shots, .rail-row { scroll-behavior: auto; }
  .pg-shot img, .pnav-buy, .sk { transition: none; animation: none; }
}

/* ---------- narrower: one column ---------- */
@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product > .pg, .product > .under, .product > .buybox { grid-column: 1; grid-row: auto; }
  .product > .buybox { position: static; }
  .bb { max-height: none; overflow: visible; }
  .pg-stage, .pg-rail { height: auto; max-height: none; }
  .pg-stage { height: min(560px, 62dvh); }
  .about.split, .rgrid { grid-template-columns: minmax(0, 1fr); }
  .about-side, .rsum { position: static; }
  .about.cols .prose { columns: 1; }
  .dcards { grid-template-columns: minmax(0, 1fr); }
  .pnav-buy { display: none; }
}

/* ---------- a phone ---------- */
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  .pg.many { display: block; }
  .pg-rail { display: none; }
  .pg-stage { height: min(88vw, 50dvh); border-radius: 20px; }
  .pg-shot { --pad: 14px; }
  .pg-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
  .pg-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background 0.15s ease, transform 0.15s ease; }
  .pg-dots i.on { background: var(--brand); transform: scale(1.25); }
  .bb { gap: 13px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .bb h1 { font-size: 22px; }
  .bb .price { font-size: 30px; }
  .ask { padding: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* The row that buys stays at the bottom of the screen, over the tabs; the page ends a little later to make room. */
  .page:has(.buybar) { padding-bottom: calc(var(--tabs-h, 0px) + 72px); }
  .bb .buybar { position: fixed; left: 0; right: 0; bottom: var(--tabs-h, 0px); z-index: 30; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; margin: 0; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
  .bb .buybar .pay { grid-column: auto; order: 3; min-height: 50px; font-size: 15.5px; border-radius: 15px; }
  .buybar .pay small { display: inline; }
  .bb .buybar .act { order: 2; min-width: 50px; min-height: 50px; padding: 0; border-radius: 15px; }
  .bb .buybar .act.heart { order: 1; }
  .bb .buybar .act .lbl { display: none; }
  .pnav, .pnav.stuck { top: calc(var(--top-h) - 1px); margin: 22px calc(-1 * var(--gutter)) 0; background: color-mix(in srgb, var(--bg) 96%, transparent); border-width: 1px 0; border-radius: 0; box-shadow: none; }
  .pnav-in { min-height: 52px; padding: 4px var(--gutter); }
  .psec { margin-top: 14px; padding: 18px 16px; border-radius: 22px; scroll-margin-top: calc(var(--top-h) + 64px); }
  .psec h2 { font-size: 20px; }
  .prose { font-size: 15.5px; }
  .specs.two { grid-template-columns: minmax(0, 1fr); }
  .rcards { grid-template-columns: minmax(0, 1fr); }
  .rating-n { font-size: 44px; }
  .offer-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px 8px 8px; }
  .offer-pic { width: 48px; height: 48px; }
  .rail-arrows { display: none; }
  .rail-row { gap: 10px; margin: 0 -16px; padding: 4px 16px 10px; scroll-padding-left: 16px; }
  .rail-row .tile { flex-basis: 152px; }
  .pv-stage { margin: 0 8px; border-radius: 16px; }
  .pv-arrow { display: none; }
}
