/* Storefront layout and sections. Needs tokens.css, base.css and components.css. */

/* announcement */
.ann { background: var(--ink); color: #E8E3DA; font-size: var(--t-small); text-align: center; padding: 8px var(--gutter); }
.ann b { color: var(--y-500); }

/* header */
.hd { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--sand) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hd-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5); min-height: var(--hd-h); }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .wm { font-weight: var(--w-display); font-size: var(--t-section); letter-spacing: -.04em; color: var(--ink); }
.logo .wm::after { content: ""; display: block; width: 20px; height: 4px; background: var(--y-500); border-radius: 2px; margin-top: 2px; }
.logo .wm-sub { font-size: var(--t-micro); letter-spacing: .28em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }
.nav { display: flex; gap: 2px; justify-content: center; }
.nav a { padding: 10px 14px; border-radius: var(--r-pill); font-weight: var(--w-label); font-size: var(--t-small); white-space: nowrap; }
.nav a:hover { background: var(--line); }
.nav a[aria-current="page"] { background: var(--y-100); }
.hd-right { display: flex; align-items: center; gap: 2px; }
.srch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--control); width: 300px; color: var(--stone); margin-right: 6px; }
.srch:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.srch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 0; color: var(--ink); font-size: var(--t-body); }
.srch input::-webkit-search-cancel-button { appearance: none; }
.srch kbd { font: 600 11px var(--font); padding: 2px 6px; border-radius: 6px; background: var(--sand); color: var(--stone); }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--paper); border-radius: var(--r-2); box-shadow: var(--sh-3); padding: 6px; z-index: 30; max-height: 60vh; overflow: auto; }
.suggest li a, .suggest li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-1); color: var(--ink); min-height: 44px; }
.suggest li[aria-selected="true"] a, .suggest li a:hover { background: var(--well); }
.suggest .sg-name { font-size: var(--t-small); }
.suggest .sg-price { font-weight: var(--w-title); font-size: var(--t-small); white-space: nowrap; }
.hide-m { display: inline-grid; }
.show-m { display: none; }

/* hero */
.hero { padding: var(--s-7) 0 var(--s-6); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-7); align-items: center; }
.hero .display { margin-top: 14px; }
.hero .lead { font-size: var(--t-title); color: var(--ink-2); max-width: 46ch; margin: 22px 0 28px; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: var(--t-small); font-weight: var(--w-label); color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--moss-100); color: var(--moss); font-size: var(--t-micro); flex: none; }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 12px; position: relative; }
.bento a { border-radius: var(--r-3); overflow: hidden; background: var(--paper); position: relative; display: block; }
.bento a:first-child { grid-row: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento .tag { position: absolute; left: 14px; bottom: 14px; background: var(--paper); border-radius: var(--r-pill); padding: 8px 14px; font-weight: var(--w-title); font-size: var(--t-small); box-shadow: var(--sh-2); max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento .float { position: absolute; right: -8px; top: -12px; background: var(--y-500); color: var(--on-y); border-radius: var(--r-3); padding: 14px 18px; box-shadow: var(--sh-3); transform: rotate(4deg); z-index: 1; }
.bento .float b { display: block; font-size: var(--t-section); letter-spacing: -.03em; line-height: 1; }
.bento .float small { font-size: var(--t-micro); font-weight: var(--w-label); }

/* sections */
.sec { padding-block: var(--s-6); } /* block only: the .wrap gutter stays on the sides */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.sec-head .mut { margin-top: 4px; font-size: var(--t-small); }
h2.sec { padding: 0; }
.more-link { font-weight: var(--w-label); color: var(--stone); white-space: nowrap; }
.more-link:hover { color: var(--ink); }

/* popular strip */
.strip { padding: var(--s-5) 0; }
.ctl { display: flex; gap: 8px; }
.ctl-btn { box-shadow: inset 0 0 0 1.5px var(--control); font-size: var(--t-title); }
.strip-viewport { overflow: hidden; container-type: inline-size; --cols: 6; --gap: 14px; }
.strip-track { display: flex; gap: var(--gap); width: max-content; animation: strip var(--strip-dur, 40s) linear infinite; animation-play-state: paused; }
.strip-viewport:hover .strip-track, .strip-viewport:focus-within .strip-track { animation-play-state: running; }
.strip-viewport:active .strip-track { animation-play-state: paused; }
.strip-viewport.manual .strip-track { animation: none; transition: transform var(--t-base) var(--ease); }
.strip-group { display: flex; gap: var(--gap); }
@keyframes strip { to { transform: translateX(calc(-100% / 2 - var(--gap) / 2)); } }
.tile { flex: none; width: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols)); background: var(--paper); border-radius: var(--r-3); overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); color: var(--ink); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.tile .im { aspect-ratio: 1; background: var(--well); }
.tile .im img { width: 100%; height: 100%; object-fit: cover; }
.tile .tx { padding: 10px 12px 12px; font-size: var(--t-small); font-weight: var(--w-label); line-height: 1.3; }
.tile .tx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .price { display: block; font-size: var(--t-small); margin-top: 2px; }
@media (hover: none) { .strip-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .strip-viewport::-webkit-scrollbar { display: none; } .strip-track { animation: none; } .tile { scroll-snap-align: start; } }

/* categories: a 2x2 photo mosaic, the name and a chevron */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { display: block; background: var(--paper); border-radius: var(--r-3); overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); color: var(--ink); }
.cat:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cat-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 1; background: var(--line); }
.cat-mosaic.one { grid-template-columns: 1fr; }
.cat-mosaic img { width: 100%; height: 100%; object-fit: cover; background: var(--well); transition: transform .5s var(--ease); }
.cat:hover .cat-mosaic img { transform: scale(1.04); }
.cat-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: var(--t-body); font-weight: var(--w-title); line-height: 1.25; }
.cat-go { font-size: var(--t-title); line-height: 1; color: var(--stone); }
.cat.empty-cat { display: none; }

/* catalogue: one controls row (title, price, stock, saved, sort), category tabs underneath, then the grid.
   Every control is 40 px high with the same radius, so the row sits on one line. */
.shop-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.shop-head h2 { margin: 0; }
.shop-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-bar, .filter-sheet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-sheet { padding: var(--s-2) 0 var(--s-4); }
.ctl-toggle:not(.show-m) { display: inline-flex; }
.ctl-toggle { align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--control); font-size: var(--t-small); font-weight: var(--w-label); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.ctl-toggle:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ctl-toggle[aria-checked="true"] { background: var(--ink); color: var(--sand); box-shadow: none; }
.ctl-toggle small { font-weight: var(--w-label); opacity: .7; }
.cat-bar { display: flex; gap: 6px 26px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.cat-bar::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 0 11px; font-size: var(--t-body); font-weight: var(--w-label); color: var(--stone); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.tab:hover { color: var(--ink); }
.tab[aria-checked="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.result-meta { font-size: var(--t-small); color: var(--stone); margin: 0 0 var(--s-3); }
.result-meta:empty { display: none; }
.sel { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 36px 0 14px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--control); flex: none; }
.sel:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.sel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; width: auto; min-width: 0; height: 100%; padding: 0; font-size: var(--t-small); font-weight: var(--w-label); color: var(--ink); cursor: pointer; }
.sel select:focus { outline: none; }
.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; min-height: 200px; }
.grid .empty { grid-column: 1 / -1; }
.card { position: relative; }
.card .im { aspect-ratio: 1; border-radius: var(--r-3); overflow: hidden; background: var(--paper); position: relative; display: block; }
.card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .im img { transform: scale(1.04); }
.card .wish { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 92%, transparent); display: grid; place-items: center; box-shadow: var(--sh-1); color: var(--ink); z-index: 2; }
.card .wish svg { width: 17px; height: 17px; }
.card .wish.on { color: var(--clay); }
.card .wish.on svg { fill: currentColor; }
.card .media { position: relative; }
.card .qa { position: absolute; left: 10px; right: 10px; bottom: 10px; min-height: 40px; border-radius: var(--r-pill); background: var(--ink); color: var(--sand); font-size: var(--t-small); font-weight: var(--w-title); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity var(--t-base), transform var(--t-base); z-index: 2; }
.card:hover .qa, .card:focus-within .qa { opacity: 1; transform: none; }
.card .lo { position: absolute; left: 10px; top: 10px; z-index: 2; }
.card .tx { padding: 10px 2px 0; }
.card .cat-l { font-size: var(--t-micro); color: var(--stone); font-weight: var(--w-label); }
.card h3 { font-size: var(--t-small); font-weight: var(--w-label); line-height: 1.3; margin: 2px 0 6px; min-height: calc(2 * 1.3em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: 0; } /* two lines always: prices line up across the row */
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card opens the product; the buttons sit above it */
.card .tx .row { justify-content: space-between; align-items: center; min-height: 36px; }
.card .price { font-size: var(--t-body); }
.card .price.soon { font-size: var(--t-micro); font-weight: var(--w-label); color: var(--stone); }
.card .add { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--y-500); color: var(--on-y); display: inline-flex; align-items: center; justify-content: center; padding: 0; position: relative; z-index: 2; transition: background var(--t-fast), transform var(--t-fast); }
.card .add svg { width: 18px; height: 18px; display: block; }
.card .add:hover { background: var(--y-600); transform: scale(1.06); }
@media (hover: none) { .card .qa { display: none; } }

/* how it works (dialog) */
.how-title { font-size: var(--t-section); margin: 6px 0 16px; }
.how-steps { display: grid; gap: 14px; }
.how-steps li { display: flex; gap: 14px; align-items: flex-start; }
.how-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--sand); display: grid; place-items: center; font-size: var(--t-small); font-weight: var(--w-title); }
.how-steps h3 { font-size: var(--t-body); margin: 4px 0 2px; }
.how-steps p { font-size: var(--t-small); color: var(--stone); }
.how-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.how-foot p { font-size: var(--t-small); color: var(--ink-2); max-width: 40ch; }

/* offers page */
.offer-page .offer-head { margin-bottom: var(--s-5); }
.offer-page h1 { margin: 8px 0; }
.offer-code { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.offers-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* footer */

/* mobile tab bar */
.tabbar { display: none; }

/* product page */
.pdp-page .crumb { font-size: var(--t-small); color: var(--stone); margin-bottom: var(--s-4); display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: nowrap; }
.pdp-page .crumb > * { flex: none; }
.pdp-page .crumb b { flex: 0 1 auto; min-width: 0; color: var(--ink); font-weight: var(--w-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-page .crumb .sep { color: var(--stone-2); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-7); align-items: start; }
.gal { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.gal .thumbs { display: flex; flex-direction: column; gap: 8px; }
.gal .thumbs button { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); width: 100%; }
.gal .thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.gal .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal .stage { position: relative; height: min(600px, 66vh); border-radius: var(--r-4); overflow: hidden; background: var(--paper); }
.gal .stage img { width: 100%; height: 100%; object-fit: cover; }
.gal .zoom-open { position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); border-radius: var(--r-pill); padding: 6px 12px; font-size: var(--t-micro); font-weight: var(--w-label); box-shadow: var(--sh-2); min-height: 36px; }
.pd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--sh-2); font-size: var(--t-title); display: grid; place-items: center; }
.pd-prev { left: 10px; } .pd-next { right: 10px; }
.gal .dots { display: none; }
.buy { position: sticky; top: calc(var(--hd-h) + 16px); align-self: start; }
.buy .eyebrow { display: block; }
.buy h1 { font-size: var(--t-section); letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 10px; }
.buy .code { font-size: var(--t-micro); color: var(--stone-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.buy .pr { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.buy .pr .price { font-size: var(--t-section); }
.buy .price.soon { font-size: var(--t-small); font-weight: var(--w-label); color: var(--stone); }
.buy .stock { font-size: var(--t-small); color: var(--moss); font-weight: var(--w-label); }
.buy .stock.low { color: var(--clay); }
.buy .cta { display: flex; gap: 8px; align-items: center; margin: 16px 0 10px; }
.buy .cta .btn { flex: 1; min-width: 0; min-height: 52px; font-size: var(--t-body); }
.buy .cta .qty { flex: none; min-height: 52px; }
.buy .cta .qty button { min-height: 52px; }
.dl { background: var(--paper); border-radius: var(--r-3); padding: 14px 16px; margin-top: 16px; border: 1px solid var(--line); }
.dl .drow { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-small); min-height: 32px; }
.dl .drow b { white-space: nowrap; font-weight: var(--w-title); font-variant-numeric: tabular-nums; }
.dl .drow + .drow { border-top: 1px dashed var(--line); }
.dl select { border: 0; background: var(--well); border-radius: var(--r-1); padding: 6px 8px; font-weight: var(--w-label); font-size: var(--t-small); min-height: 36px; max-width: 190px; }
.dl small { display: block; color: var(--stone); font-size: var(--t-micro); margin-top: 8px; line-height: 1.45; }
.acc { margin-top: 20px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; padding: 14px 0; font-size: var(--t-body); font-weight: var(--w-title); cursor: pointer; min-height: var(--tap); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--stone); }
.acc details[open] summary::after { content: "–"; }
.acc p { padding: 0 0 14px; font-size: var(--t-small); color: var(--ink-2); white-space: pre-line; }
.rel { margin-top: var(--s-7); }
.rel .strip-track { animation: none; width: auto; overflow-x: auto; scrollbar-width: none; }

/* quick view: a compact two-column dialog, sized to fit the screen; the base reset removes the margin that centres dialogs */
dialog:not(.drawer):not(.sheet) { margin: auto; }
dialog .pn:has(.qv) { width: min(840px, calc(100vw - 32px)); padding: var(--s-5); }
#dlg .x { top: 14px; right: 14px; width: 40px; height: 40px; }
.qv .pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.qv .gal { grid-template-columns: 1fr; gap: 10px; }
.qv .gal .stage { height: min(380px, 52vh); border-radius: var(--r-3); }
.qv .gal .thumbs { flex-direction: row; order: 2; overflow-x: auto; scrollbar-width: none; gap: 8px; }
.qv .gal .thumbs button { width: 52px; flex: none; border-radius: 8px; }
.qv .gal .zoom-open { font-size: var(--t-micro); min-height: 32px; padding: 5px 11px; right: 10px; bottom: 10px; }
.qv .buy { position: static; padding-top: 2px; }
.qv .buy .eyebrow { font-size: var(--t-micro); }
.qv .buy h1 { font-size: var(--t-title); line-height: 1.2; padding-right: 36px; margin: 4px 0 8px; }
.qv .buy .code { font-size: var(--t-micro); }
.qv .buy .pr { margin: 10px 0 4px; }
.qv .buy .pr .price { font-size: var(--t-section); }
.qv .buy .stock { font-size: var(--t-small); }
.qv .buy .cta { margin: 12px 0 8px; }
.qv .buy .cta .btn { min-height: 46px; font-size: var(--t-small); padding: 0 16px; }
.qv .buy .qty { min-height: 46px; }
.qv .buy .qty button { width: 36px; min-height: 46px; font-size: var(--t-title); }
.qv .buy .dl { margin-top: 12px; padding: 12px 14px; }
.qv .buy .dl .drow { font-size: var(--t-small); min-height: 28px; }
.qv .buy .dl small { font-size: var(--t-micro); }
.qv-more { display: inline-block; margin-top: 12px; font-size: var(--t-small); font-weight: var(--w-title); text-decoration: underline; text-underline-offset: 3px; }

/* bag drawer */
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: var(--t-title); letter-spacing: -.02em; }
.bag-items { padding: 4px 22px; flex: 1; overflow: auto; }
.li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.li:last-child { border-bottom: 0; }
.li .im { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--well); }
.li .im img { width: 100%; height: 100%; object-fit: cover; }
.li h4 { font-size: var(--t-small); font-weight: var(--w-label); line-height: 1.3; letter-spacing: 0; }
.li .each { font-size: var(--t-micro); color: var(--stone); }
.li .qty { margin-top: 8px; }
.li .price { font-size: var(--t-body); }
.li .rm { display: block; margin: 8px 0 0 auto; color: var(--stone); font-size: var(--t-micro); text-decoration: underline; }
.bag-empty { padding: var(--s-7) var(--s-5); text-align: center; }
.bag-empty b { display: block; font-size: var(--t-title); margin-bottom: 6px; }
.bag-empty .btn { margin-top: var(--s-4); }
.sum { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--sand); }
.sum .r { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-small); padding: 4px 0; }
.sum .r small { color: var(--stone); }
.sum .r.tot { font-size: var(--t-title); font-weight: var(--w-title); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.sum .btn { width: 100%; margin-top: 14px; }
.sum .note { margin-top: 10px; }
.sum .mono { background: var(--paper); }
.sum .dl { margin-top: 0; margin-bottom: 10px; }

/* checkout page */
.co { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.prog { display: flex; gap: 8px; align-items: center; font-size: var(--t-small); font-weight: var(--w-label); color: var(--stone); margin-bottom: 24px; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 480px) { .prog { font-size: var(--t-micro); gap: 6px; } .prog i { width: 12px; } }
.prog b { color: var(--ink); }
.prog i { width: 24px; height: 1px; background: var(--line-2); }
.fs { background: var(--paper); border-radius: var(--r-3); padding: 24px; margin-bottom: 16px; border: 1px solid var(--line); }
.fs h3 { font-size: var(--t-body); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.fs h3 i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--sand); display: grid; place-items: center; font-style: normal; font-size: var(--t-small); flex: none; }
.co-side { position: sticky; top: calc(var(--hd-h) + 16px); }
.co-side .sum { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper); }
.coupon { display: flex; gap: 8px; margin: 12px 0 4px; }
.coupon input { flex: 1; min-height: 44px; padding: 0 12px; border-radius: var(--r-2); border: 0; box-shadow: inset 0 0 0 1.5px var(--control); background: var(--paper); }
.payc { background: var(--ink); color: var(--on-dark); border-radius: var(--r-3); padding: 22px; margin-top: 16px; }
.payc h3 { font-size: var(--t-body); margin-bottom: 6px; color: var(--y-500); }
.payc .acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #242220; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.payc .acct b { font-size: var(--t-section); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.payc .acct span { font-size: var(--t-micro); color: #AAA; display: block; }
.payc .cp { padding: 8px 12px; border-radius: var(--r-pill); background: var(--y-500); color: var(--on-y); font-size: var(--t-micro); font-weight: var(--w-title); min-height: 36px; }
.payc p { font-size: var(--t-small); color: #C9C3B9; margin-top: 10px; }
.payc p b { color: #fff; }
.err { color: var(--clay); font-size: var(--t-small); min-height: 18px; margin: 8px 0; }
.end { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--s-4); flex-wrap: wrap; }
.confirm-head { text-align: center; padding: var(--s-5) 0; }
.confirm-head .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--moss-100); color: var(--moss); display: grid; place-items: center; margin: 0 auto 14px; font-size: var(--t-section); }
.msg-preview summary { cursor: pointer; font-weight: var(--w-label); font-size: var(--t-small); }
pre.msg { white-space: pre-wrap; font: var(--t-small)/1.5 var(--font); background: var(--well); padding: 12px; border-radius: var(--r-2); margin-top: 8px; }
.tl { display: flex; margin: 16px 0 4px; }
.tl div { flex: 1; text-align: center; font-size: var(--t-micro); font-weight: var(--w-label); color: var(--stone-2); position: relative; padding-top: 18px; }
.tl div::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); z-index: 1; }
.tl div::after { content: ""; position: absolute; top: 8px; left: 50%; right: -50%; height: 2px; background: var(--line); }
.tl div:last-child::after { display: none; }
.tl div.d { color: var(--ink); } .tl div.d::before { background: var(--moss); } .tl div.d::after { background: var(--moss); }
.tl div.c { color: var(--ink); } .tl div.c::before { background: var(--y-500); box-shadow: 0 0 0 4px var(--y-100); }

/* account */
.order-row { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.danger-zone { margin-top: var(--s-5); }
.danger-zone summary { color: var(--clay); font-weight: var(--w-label); cursor: pointer; }

/* help menu, bot */
.help-grid { display: grid; gap: 10px; margin-top: var(--s-3); }
.help-grid .btn { justify-content: flex-start; }
.bot-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-3) 0; }
.bot-answer { background: var(--well); border-radius: var(--r-2); padding: 14px; font-size: var(--t-small); color: var(--ink-2); margin-bottom: var(--s-3); white-space: pre-line; }

/* zoom viewer */
dialog.zoom { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #000; color: #fff; }
.zoom-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; z-index: 3; }
.zoom-btn { width: var(--tap); height: var(--tap); border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: var(--t-section); }
.zoom-level { min-width: 48px; text-align: center; font-weight: var(--w-title); }
dialog.zoom .x { background: rgba(255, 255, 255, .15); color: #fff; box-shadow: none; }
.zoom-view { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; }
.zoom-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-view.z2 img { max-width: none; max-height: none; width: 200%; }
.zoom-view.z3 img { max-width: none; max-height: none; width: 300%; }
.zoom-nav { position: absolute; top: 50%; transform: translateY(-50%); width: var(--tap); height: var(--tap); border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: var(--t-section); display: grid; place-items: center; z-index: 3; }
.zoom-prev { left: 12px; } .zoom-next { right: 12px; }

/* page modes */
body.page-product [data-home], body.page-checkout [data-home], body.offer-mode [data-home]:not(#shop):not(#categories) { display: none; }
body.offer-mode #categories { display: none; }

/* spacing and text utilities for the storefront templates. Inline style attributes are blocked by the content security policy, so templates use these classes instead. */
.mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; } .mb-16 { margin-bottom: 16px; } .my-8 { margin: 8px 0; } .m-0 { margin: 0; }
.note-inset { margin: 12px 22px 0; }
.flex-wrap { flex-wrap: wrap; }
.pre { white-space: pre-line; }
.justify-start { justify-content: flex-start; }
.fs-13 { font-size: var(--t-small); }

/* ───────── responsive ───────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .bento { grid-template-rows: 160px 160px; }
  .filter-bar { display: none; }
  .show-m { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .strip-viewport { --cols: 3; }
  .pdp { grid-template-columns: 1fr; gap: var(--s-5); }
  .buy { position: static; }
  .co { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .nav { display: none; }
  .hd-row { grid-template-columns: auto 1fr; }
  .srch { width: 100%; }
}
@media (max-width: 720px) {
  :root { --hd-h: 116px; }
  .hd-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .hd-right { display: contents; } /* the bag button and the search become grid items of their own */
  .hd-right .ib { grid-row: 1; grid-column: 2; justify-self: end; }
  .hd-right .srch { display: flex; grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; }
  .hide-m { display: none; }
  .hero { padding: var(--s-5) 0 var(--s-4); }
  .hero .display { font-size: var(--t-section); }
  .hero .lead { font-size: var(--t-body); margin: 14px 0 18px; }
  .hero .acts .btn { min-height: 48px; font-size: var(--t-body); padding: 0 20px; }
  .trust { gap: 10px 18px; margin-top: 22px; font-size: var(--t-micro); }
  .bento { grid-template-rows: 120px 120px; gap: 8px; }
  .bento .float { right: 4px; top: -6px; padding: 10px 14px; } .bento .float b { font-size: var(--t-title); }
  .sec { padding-block: var(--s-5); }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-name { font-size: var(--t-small); padding: 10px 10px; }
  .strip-viewport { --cols: 2.3; --gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .card h3 { font-size: var(--t-small); } .card .price { font-size: var(--t-body); }
  .site-ft.has-tabbar { padding-bottom: calc(var(--s-7) + 72px + env(safe-area-inset-bottom)); }
    body { padding-bottom: 0; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; grid-template-columns: repeat(5, 1fr); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); font-size: var(--t-micro); font-weight: var(--w-label); color: var(--stone); text-align: center; }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; min-height: 44px; justify-content: flex-end; }
  .tabbar i { font-style: normal; font-size: var(--t-title); line-height: 1; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar .wa i { width: 48px; height: 48px; border-radius: 50%; background: var(--moss); color: #fff; display: grid; place-items: center; margin-top: -24px; box-shadow: var(--sh-2); }
  .tabbar .wa { color: var(--moss); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .cat-bar { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); gap: 4px 20px; }
  .card .add { width: 34px; height: 34px; }
  .pdp-page .crumb > a:not(.back-link), .pdp-page .crumb .sep { display: none; }
  .gal { grid-template-columns: 1fr; gap: 10px; }
  .gal .thumbs { display: none; }
  .gal .stage { height: auto; aspect-ratio: 1; border-radius: 0; margin: 0 calc(-1 * var(--gutter)); }
  .qv .gal .stage { margin: 0; border-radius: var(--r-3); }
  .qv .pdp { grid-template-columns: 1fr; gap: var(--s-4); }
  dialog:not(.drawer):not(.sheet) .pn:has(.qv) { padding-top: 60px; } /* room for the close button above the photo */
  .qv .gal .stage { height: min(320px, 46vh); }
  .gal .dots { display: flex; justify-content: center; gap: 6px; }
  .gal .dots button { width: 24px; height: 24px; padding: 0; min-height: 0; display: inline-grid; place-items: center; background: transparent; border: 0; } /* 24px hit area, 8px dot */
  .gal .dots button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--control); }
  .gal .dots button[aria-current="true"]::after { background: var(--ink); }
/* Small controls keep their look, but their touch area reaches 44px (WCAG 2.5.8 spacing rule and the project's --tap size). */
.card .wish, .card .add, .pill.sm, .payc .cp { position: relative; }
.card .wish::before, .card .add::before, .pill.sm::before, .payc .cp::before { content: ''; position: absolute; inset: -8px; }
  .buy h1 { font-size: var(--t-section); }
  .buy .pr .price { font-size: var(--t-section); }
  .pdp-page .buy { padding-bottom: 96px; }
  .pdp-page .buy .cta { position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); margin: 0; padding: 10px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); z-index: 24; }
  .pdp-page { padding-bottom: 80px; }
  .fs { padding: 18px; }
  .how-foot { flex-direction: column; align-items: stretch; }
  .how-foot .btn { width: 100%; }
}
@media (max-width: 1000px) and (min-width: 721px) { .srch { width: 100%; max-width: 420px; } }
