/* Atkinson Hyperlegible Next, made by the Braille Institute for readers with low vision. Served from this site (SIL Open Font License). */
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/atkinson-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/atkinson-ext-400.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/atkinson-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/atkinson-ext-600.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/atkinson-800.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/atkinson-ext-800.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Netwave Store */
:root {
  /* Netwave palette: night navy and Volta blue from the logo, with kente gold, forest and clay for meaning. */
  --navy: #0a1a3a; --navy-2: #13285a; --ink: #0f1b33;
  --brand: #0b57d0; --brand-dark: #0844a6; --brand-soft: #e8f0fe;
  --deal: #b4400e; --deal-dark: #8f320a; --deal-soft: #fdf0e8;
  --teal: #0a7a4c; --gold: #e9a90e; --forest: #0a7a4c; --forest-soft: #e3f4ec;
  --bg: #f4f6f9; --surface: #fff; --line: #dde3ec; --line-2: #b9c3d3;
  --text: #0f1b33; --muted: #4f5b73; --faint: #5f6a82;
  --ok: #0a6b43; --ok-soft: #e3f4ec; --warn: #8a5100; --warn-soft: #fff3d9; --danger: #c3261f; --danger-soft: #fdeceb;
  --r: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(10,26,58,.06), 0 4px 14px rgba(10,26,58,.05);
  --shadow-lg: 0 18px 50px rgba(10,26,58,.18);
  /* The woven band: a kente-style stripe used only at the edges of the store (header, hero, footer). */
  --weave: repeating-linear-gradient(90deg, #e9a90e 0 22px, #0a1a3a 22px 25px, #0a7a4c 25px 37px, #0a1a3a 37px 40px, #0b57d0 40px 58px, #0a1a3a 58px 61px, #b4400e 61px 69px, #0a1a3a 69px 72px);
  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The store header stays on screen while scrolling. When a link jumps to a section (#reviews, #book)
   or keyboard focus moves, keep the target below the header instead of hidden behind it.
   --head-h is the measured header height, set by app.js; the numbers are fallbacks. */
html:has(body > .header) { scroll-padding-top: calc(var(--head-h, 80px) + 8px); }
@media (max-width: 900px) { html:has(body > .header) { scroll-padding-top: calc(var(--head-h, 124px) + 8px); } }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-dark); }
.btn-deal { background: var(--deal); color: #fff; } .btn-deal:hover { background: var(--deal-dark); }
.btn-dark { background: var(--navy); color: #fff; } .btn-dark:hover { background: var(--navy-2); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-line { background: #fff; border-color: var(--line-2); color: var(--text); } .btn-line:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: inherit; } .btn-ghost:hover { background: rgba(11,27,63,.06); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .86rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; }
.linkbtn.danger { color: var(--danger); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .lbl { font-weight: 650; font-size: .9rem; }
.hint { color: var(--muted); font-size: .84rem; font-weight: 400; }
.input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,95,255,.14); }
.input[type=file] { padding: 9px; }
input[type=file] { max-width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 680px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.grid2 > *, .grid3 > * { min-width: 0; }
.link-list a { text-decoration: underline; }
.panel .btn { white-space: normal; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 1px; flex-shrink: 0; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; background: #fff; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--brand); margin-top: 2px; }
.radio-card strong { display: block; }

.alert { padding: 13px 16px; border-radius: 12px; font-size: .93rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { background: var(--danger-soft); color: #8b1c17; }
.alert-ok { background: var(--ok-soft); color: #0a5a3d; }
.alert-info { background: var(--brand-soft); color: #143d8f; }
.alert-warn { background: var(--warn-soft); color: #6b4200; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 750; padding: 3px 9px; border-radius: 99px; background: #edf0f5; color: var(--muted); white-space: nowrap; }
.badge.blue { background: var(--brand-soft); color: var(--brand); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.deal { background: var(--deal); color: #fff; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.12rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }

/* Header */
.topbar { background: var(--navy); color: #c7d3ee; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar .trust-line { display: flex; align-items: center; gap: 6px; }
@media (max-width: 700px) { .topbar .hide-sm { display: none; } }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; flex-shrink: 0; }
.logo svg { width: 40px; height: 40px; }
.logo b { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; }
.logo small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: -3px; }
.search { flex: 1; position: relative; display: flex; max-width: 680px; }
.search select { border: 1.5px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; background: #f6f8fb; padding: 0 10px; font-size: .86rem; font-weight: 600; max-width: 150px; }
.search input { flex: 1; min-width: 0; min-height: 46px; border: 1.5px solid var(--line-2); padding: 0 14px; border-radius: 0; }
.search input:focus { outline: none; border-color: var(--brand); }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 18px; border-radius: 0 10px 10px 0; cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--text); }
.suggest a:hover, .suggest a[aria-selected=true] { background: var(--brand-soft); text-decoration: none; }
.suggest img { width: 40px; height: 40px; object-fit: contain; background: #f4f6fa; border-radius: 6px; }
.suggest .price { margin-left: auto; font-weight: 700; font-size: .88rem; }
.head-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.head-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 650; font-size: .9rem; background: none; border: 0; cursor: pointer; position: relative; text-decoration: none !important; }
.head-btn:hover { background: #f1f4f9; }
.head-btn .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.head-btn .lines small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.cart-count { position: absolute; top: 0; left: 22px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--deal); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; list-style: none; margin: 0; z-index: 70; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; cursor: pointer; font-weight: 550; }
.menu-list a:hover, .menu-list button:hover { background: #f1f4f9; text-decoration: none; }
.catbar { background: #fff; border-bottom: 1px solid var(--line); }
.catbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar ul::-webkit-scrollbar { display: none; }
.catbar a { display: block; padding: 11px 12px; color: var(--text); font-weight: 600; font-size: .88rem; white-space: nowrap; border-bottom: 2.5px solid transparent; }
.catbar a:hover { color: var(--brand); text-decoration: none; }
.catbar a[aria-current=page] { color: var(--brand); border-bottom-color: var(--brand); }
.catbar .deal-link { color: var(--deal); }
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: 10px; padding: 10px 0; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search select { display: none; }
  .search input { border-radius: 10px 0 0 10px; }
  .head-btn .lines { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cart-count { left: auto; right: 0; }
}

/* Footer */
.footer { background: var(--navy); color: #b6c3de; margin-top: 48px; font-size: .9rem; }
.footer-promise { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-promise ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.footer-promise li { display: flex; gap: 12px; align-items: center; }
.footer-promise strong { color: #fff; display: block; }
.footer-promise .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #7fd8ff; flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0; }
.footer h2 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #dfe7f7; }
.footer .logo { color: #fff; margin-bottom: 12px; } .footer .logo small { color: #8fa0c4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.pay-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-logos span { background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 6px; color: #fff; font-weight: 700; font-size: .75rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-promise ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid, .footer-promise ul { grid-template-columns: 1fr; } }

/* Home */
.home-top { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding-top: 16px; }
.side-cats { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; list-style: none; margin: 0; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 560; font-size: .9rem; }
.side-cats a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.side-cats .i { color: var(--muted); }
@media (max-width: 900px) { .home-top { grid-template-columns: 1fr; } .side-cats { display: none; } }
.hero { position: relative; border-radius: var(--r); overflow: hidden; min-height: 340px; background: var(--navy); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 40px 48px; color: #fff; opacity: 0; visibility: hidden; transition: opacity .5s; }
.slide.on { opacity: 1; visibility: visible; }
.slide.navy { background: var(--navy); }
.slide.orange { background: #c2410c; }
.slide.teal { background: #0b6b63; }
.slide.has-img { background-size: cover; background-position: center; }
.slide.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,63,.85), rgba(11,27,63,.2)); }
.slide-inner { position: relative; max-width: 520px; }
.slide h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.slide p { font-size: 1.05rem; opacity: .92; }
.slide .btn { background: #fff; color: var(--navy); }
.slide-art { position: absolute; right: 40px; bottom: 0; top: 0; display: flex; align-items: center; opacity: .95; }
.slide-art svg { width: 240px; height: 240px; }
.slide-pics { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); display: flex; gap: 12px; }
.slide-pics figure { margin: 0; width: 150px; background: #fff; color: #10203f; border-radius: 10px; overflow: hidden; }
.slide-pics figure:nth-child(2) { transform: translateY(-14px) rotate(1.5deg); }
.slide-pics figure:nth-child(3) { transform: translateY(10px) rotate(-1deg); }
.slide-pics img { display: block; width: 150px; height: 150px; object-fit: cover; background: #f3f4f6; }
.slide-pics figcaption { padding: 7px 9px 9px; font-size: .78rem; line-height: 1.3; display: grid; gap: 2px; }
.sp-price { font-weight: 800; font-size: .9rem; }
.sp-off { color: #c2410c; font-weight: 800; }
.sp-shop { color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .slide { padding: 28px 24px; } .slide-art, .slide-pics { display: none; } .hero { min-height: 300px; } }
.dots { position: absolute; bottom: 14px; left: 48px; display: flex; gap: 8px; }
.dots button { width: 28px; height: 6px; border-radius: 3px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.dots button[aria-current=true] { background: #fff; }
@media (max-width: 760px) { .dots { left: 24px; } }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.promise div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; font-size: .84rem; color: var(--muted); }
.promise strong { display: block; color: var(--text); font-size: .92rem; }
.promise .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr 1fr; } }

.section { margin-top: 22px; }
.rail { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.rail-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.rail-head a { font-weight: 700; font-size: .88rem; }
.rail.deals .rail-head { background: linear-gradient(90deg, #b13a0a, #c2410c); color: #fff; border: 0; }
.rail.deals .rail-head a { color: #fff; }
.countdown { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: .9rem; }
.countdown span { background: rgba(0,0,0,.2); padding: 2px 7px; border-radius: 6px; }
.rail-body { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; padding: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail-body > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail-body { grid-auto-columns: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 760px) { .rail-body { grid-auto-columns: 44%; } }

.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; color: var(--text); font-weight: 650; font-size: .88rem; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat-tile:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat-tile .ic { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.cat-tile .ic .i { width: 26px; height: 26px; }
@media (max-width: 760px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }

.sell-cta { margin-top: 22px; border-radius: var(--r); background: radial-gradient(500px 300px at 100% 0%, rgba(15,181,163,.35), transparent), var(--navy); color: #fff; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.sell-cta h2 { font-size: 1.5rem; margin-bottom: 6px; }
.sell-cta p { color: #c3d0eb; margin: 0; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.store-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: center; color: var(--text); }
.store-card:hover { border-color: var(--brand); text-decoration: none; }
.store-logo { width: 54px; height: 54px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; overflow: hidden; flex-shrink: 0; }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-card strong { display: block; }
.verified { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-size: .76rem; font-weight: 700; }
.verified .i { width: 14px; height: 14px; }

/* Product card */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard-img { aspect-ratio: 1; background: #f6f8fb; display: block; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pcard .off { position: absolute; top: 8px; left: 8px; background: var(--deal); color: #fff; font-weight: 800; font-size: .74rem; padding: 3px 8px; border-radius: 6px; }
.pcard .wish { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.12); display: grid; place-items: center; cursor: pointer; color: var(--muted); z-index: 2; }
.wish[aria-pressed=true] { color: var(--deal); }
.wish[aria-pressed=true] .i { fill: currentColor; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-name { font-size: .9rem; font-weight: 550; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; line-height: 1.4; }
.pcard-name::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard-name:hover { text-decoration: none; color: var(--brand); }
.price { font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.was { color: var(--faint); text-decoration: line-through; font-size: .82rem; font-weight: 500; margin-left: 6px; }
.pcard .store { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .low { font-size: .76rem; color: var(--deal-dark); font-weight: 700; }
.pcard .sale-bar { height: 5px; border-radius: 3px; background: #ffe2d4; overflow: hidden; margin-top: 2px; }
.pcard .sale-bar span { display: block; height: 100%; background: var(--deal); }
.pcard .add { position: relative; z-index: 2; margin-top: 8px; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }
.stars .s { --p: 0%; position: relative; display: inline-block; font-size: .9rem; letter-spacing: 1px; line-height: 1; color: #d6dbe4; }
.stars .s::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--p); overflow: hidden; color: var(--gold); }

/* Listing */
.crumbs { font-size: .84rem; color: var(--muted); padding: 14px 0 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.listing.listing-bare { grid-template-columns: 1fr; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: sticky; top: 90px; }
.filters h2 { font-size: 1rem; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-weight: 700; font-size: .88rem; margin-bottom: 8px; padding: 0; }
.filters .check { font-size: .9rem; margin-bottom: 8px; }
.filter-toggle { display: none; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } .filters { position: static; display: none; } .filters.open { display: block; } .filter-toggle { display: inline-flex; } }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.list-head h1 { font-size: 1.3rem; margin: 0; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; color: var(--text); font-weight: 600; font-size: .86rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 700; color: var(--text); padding: 0 10px; }
.pager [aria-current=page] { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--faint); }

/* Product page */
.pd { display: grid; grid-template-columns: 1.05fr 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .pd { grid-template-columns: 1fr 1fr; } .pd-side { grid-column: 1 / -1; } }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; } }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; position: sticky; top: 90px; }
@media (max-width: 760px) { .gallery { position: static; } }
.gallery-main { aspect-ratio: 1; background: #f6f8fb; border-radius: 10px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--line); background: #f6f8fb; padding: 3px; cursor: pointer; flex-shrink: 0; }
.thumbs button[aria-current=true] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.pd-info h1 { font-size: 1.45rem; font-weight: 750; }
.pd-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.pd-price { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pd-price .price { font-size: 1.9rem; }
.pd-price .was { font-size: 1rem; }
.flash-box { background: var(--deal-soft); border: 1px solid #ffd3bf; border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.flash-box strong { color: var(--deal-dark); display: flex; gap: 6px; align-items: center; }
.flash-box .countdown span { background: var(--deal); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.qty input { width: 52px; text-align: center; border: 0; font-weight: 700; min-height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.buy-row .btn { flex: 1; min-width: 140px; }
.highlights { margin: 0 0 14px; padding-left: 20px; }
.highlights li { margin-bottom: 4px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.side-box h2 { font-size: .98rem; }
.side-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.side-row:first-of-type { border-top: 0; }
.side-row .i { color: var(--brand); margin-top: 2px; }
.protect { background: linear-gradient(135deg, #e7fbf5, #eef4ff); border: 1px solid #c9eee2; }
.protect h2 { color: var(--ok); display: flex; gap: 8px; align-items: center; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs-nav a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.desc { white-space: pre-line; }
.rating-sum { display: grid; grid-template-columns: 180px 1fr; gap: 24px; margin-bottom: 20px; align-items: center; }
.rating-sum .big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.bar-row { display: grid; grid-template-columns: 50px 1fr 36px; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); }
.bar { height: 8px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); }
@media (max-width: 560px) { .rating-sum { grid-template-columns: 1fr; } }
.review { border-top: 1px solid var(--line); padding: 16px 0; }
.review h3 { font-size: .98rem; margin: 6px 0 4px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0 0 14px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: #d6dbe4; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--brand); border-radius: 4px; }

/* Cart and checkout */
.co-grid { display: grid; grid-template-columns: 1fr 370px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .co-grid { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 90px; }
@media (max-width: 960px) { .summary { position: static; } }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.store-group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.store-group-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: .88rem; gap: 8px; flex-wrap: wrap; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 80px; height: 80px; object-fit: contain; background: #f6f8fb; border-radius: 8px; }
.cart-line .name { font-weight: 650; color: var(--text); }
@media (max-width: 560px) { .cart-line { grid-template-columns: 64px 1fr; } .cart-line img { width: 64px; height: 64px; } .cart-line .line-right { grid-column: 2; text-align: left !important; } }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { min-height: 42px; }
.addr-pick { display: grid; gap: 10px; margin-bottom: 16px; }

/* Order */
.steps { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { text-align: center; font-size: .78rem; font-weight: 650; color: var(--faint); position: relative; padding-top: 34px; }
.steps li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #e3e8f0; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #d3dae6; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: #e3e8f0; }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ok); } .steps li.done::before { background: var(--ok); box-shadow: 0 0 0 1.5px var(--ok); } .steps li.done::after { background: var(--ok); }
.steps li.now { color: var(--brand); } .steps li.now::before { background: var(--brand); box-shadow: 0 0 0 4px rgba(11,95,255,.2); }
.momo-card { background: var(--navy); color: #fff; border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.momo-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0 0; }
.momo-card dt { color: #9fb0d3; } .momo-card dd { margin: 0; font-weight: 750; }
.momo-card .big { font-size: 1.5rem; }
.copy { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 6px; padding: 2px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; margin-left: 6px; }
details.box { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-top: 10px; background: #fff; }
details.box summary { padding: 12px 0; cursor: pointer; font-weight: 650; }
details.box[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; }
.divider { text-align: center; color: var(--muted); font-size: .84rem; margin: 18px 0; }

/* Account and dashboards */
.acct { display: grid; grid-template-columns: 230px 1fr; gap: 18px; padding-top: 18px; align-items: start; }
.acct-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.acct-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 600; }
.acct-nav a:hover { background: #f1f4f9; text-decoration: none; }
.acct-nav a[aria-current=page] { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 860px) { .acct { grid-template-columns: minmax(0, 1fr); } .acct-nav { display: flex; overflow-x: auto; position: relative; } .acct-nav a { white-space: nowrap; } }

.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.dash-side { background: var(--navy); color: #c4d0ea; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.dash-side .logo { color: #fff; padding: 0 8px; } .dash-side .logo small { color: #8fa0c4; }
.dash-side nav { display: grid; gap: 2px; }
.dash-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #c4d0ea; font-weight: 600; font-size: .92rem; }
.dash-side nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.dash-side nav a[aria-current=page] { background: var(--brand); color: #fff; }
.dash-side nav .count { margin-left: auto; background: var(--deal); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 8px; font-weight: 800; }
.dash-side .nav-group { display: grid; gap: 2px; margin-top: 10px; }
.dash-side .nav-group-name { padding: 6px 12px 2px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8fa0c4; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.todo-grid a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; background: var(--surface, #fff); color: inherit; font-weight: 600; }
.todo-grid a:hover { text-decoration: none; border-color: var(--brand); }
.todo-grid .n { font-size: 1.4rem; font-weight: 800; min-width: 1.6em; }
dl.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 0 0 14px; }
dl.kv dt { font-weight: 700; color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 6px; } }
.all-clear { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.dash-menu > summary { display: none; }
.dash-menu[open] > nav, .dash-menu > nav { display: grid; gap: 2px; }
.dash-side .foot { margin-top: auto; display: grid; gap: 2px; }
.dash-side .foot a, .dash-side .foot button { color: #c4d0ea; padding: 8px 12px; border-radius: 8px; background: none; border: 0; text-align: left; cursor: pointer; font-weight: 600; font-size: .88rem; width: 100%; }
.dash-side .foot a:hover, .dash-side .foot button:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.dash-main { padding: 26px 28px 60px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { margin: 0; font-size: 1.55rem; }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { position: static; height: auto; padding: 12px; gap: 10px; min-width: 0; }
  .dash-menu > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; }
  .dash-menu > summary::-webkit-details-marker { display: none; }
  .dash-menu > summary::after { content: '▾'; margin-left: auto; }
  .dash-menu[open] > summary::after { content: '▴'; }
  .dash-menu[open] > nav { margin-top: 6px; }
  .dash-menu-now { font-weight: 600; color: #8fa0c4; }
  .dash-menu-now:not(:empty)::before { content: '· '; }
  .dash-side .foot { display: flex; flex-wrap: wrap; margin: 0; }
  .dash-main { padding: 18px 16px 40px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: .82rem; font-weight: 650; }
.stat .v { font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.stat.hl { border-color: #ffd28a; background: #fffaf0; }
.stat.blue { background: var(--navy); color: #fff; border: 0; } .stat.blue .k { color: #a9b8da; }
a.stat { color: inherit; } a.stat:hover { text-decoration: none; border-color: var(--brand); }

.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: contain; background: #f6f8fb; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { max-width: 300px; min-height: 40px; }
.tabs-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-row a { padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 650; font-size: .86rem; color: var(--text); }
.tabs-row a[aria-current=page] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs-row a:hover { text-decoration: none; border-color: var(--navy); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 8px; } }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.doc-grid a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f6f8fb; }
.doc-grid img { width: 100%; height: 150px; object-fit: cover; }
.doc-grid span { display: block; padding: 8px 10px; font-size: .84rem; font-weight: 650; color: var(--text); background: #fff; }
.wizard { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wizard a, .wizard span { display: block; padding: 10px; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--muted); text-align: center; }
.wizard .done a { border-color: var(--ok); color: var(--ok); }
.wizard [aria-current=step] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
@media (max-width: 760px) { .wizard { grid-template-columns: 1fr 1fr; } }
.img-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.img-edit figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; font-size: .8rem; }
.img-edit img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f6f8fb; border-radius: 6px; margin-bottom: 6px; }

/* Content pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.25rem; }
.prose li { margin-bottom: 6px; }
.sell-hero { background: radial-gradient(800px 400px at 90% 0%, rgba(15,181,163,.35), transparent 60%), var(--navy); color: #fff; border-radius: var(--r); padding: 48px; margin-top: 16px; }
.sell-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; max-width: 640px; }
.sell-hero p { color: #c7d3ee; font-size: 1.08rem; max-width: 560px; }
@media (max-width: 640px) { .sell-hero { padding: 28px 22px; } }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.feature-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feature-grid .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
ol.howto { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
ol.howto li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
ol.howto li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 10px; }
@media (max-width: 860px) { ol.howto { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { ol.howto { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 650; opacity: 0; pointer-events: none; transition: all .2s; z-index: 300; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #8fc1ff; font-weight: 800; }
/* Phones: shorter notice, shorter hero, compact promises, so products appear sooner. */
.topbar .short { display: none; }
@media (max-width: 600px) {
  .topbar .long { display: none; } .topbar .short { display: inline; }
  .topbar .wrap { padding-top: 6px; padding-bottom: 6px; }
  .hero { min-height: 230px; }
  .slide { padding: 26px 22px 56px 30px; }
  .slide-inner h2 { font-size: 1.65rem; }
  .slide-inner p { font-size: .98rem; margin-bottom: 14px; }
  .slide-inner .btn-lg { min-height: 46px; padding: 10px 18px; }
  .promise { grid-template-columns: 1fr 1fr; gap: 8px; }
  .promise div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: .82rem; }
  .promise .ic { width: 34px; height: 34px; }
  .promise strong { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Keep hidden screen-reader labels inside scrolling tables from widening the page */
.tbl-wrap { position: relative; }
/* Two-column layouts stack on phones, even when a page sets its own columns */
@media (max-width: 960px) { .co-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* Logo, app banner and app page */
.logo .logo-mark { width: 40px; height: 40px; border-radius: 11px; }
.app-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: center; max-width: 560px; margin: 0 auto; }
.app-banner img { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.app-banner .txt { flex: 1; min-width: 0; font-size: .88rem; line-height: 1.35; }
.app-banner .txt strong { display: block; font-size: .95rem; }
.app-banner .close { background: none; border: 0; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 1.3rem; flex-shrink: 0; }
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin-top: 18px; }
.app-hero img { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--shadow); }
.app-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 18px; color: var(--muted); font-size: .92rem; }
.app-facts strong { color: var(--text); }
@media (max-width: 640px) { .app-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .app-facts { justify-content: center; } }

/* Credit to the studio that built the store: visible, but quieter than the store's own links. */
.footer .powered { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.footer .powered:hover { text-decoration-thickness: 2px; }

/* Links inside sentences are underlined so they do not rely on colour alone */
main p a:not(.btn), .footer p a, .hint a, .alert a:not(.btn), .prose a { text-decoration: underline; text-underline-offset: 2px; }
.footer p a { color: #fff; }
/* Links inside coloured message boxes use the box's own dark text colour for strong contrast */
.alert a:not(.btn) { color: inherit; font-weight: 700; }
/* Sign in with Google */
.btn-google{background:#fff;color:#1f1f1f;border:1px solid #747775;gap:10px;font-weight:600}
.btn-google:hover{background:#f2f2f2}
.btn-google svg{flex:none}

/* Bar shown to admins and sellers while they browse the shop */
.role-bar{background:#fff7e6;color:#5c3b00;border-bottom:1px solid #f0d9a8;font-size:.86rem}
.role-bar .wrap{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:space-between;padding-top:7px;padding-bottom:7px}
.role-bar-links{display:flex;gap:14px;align-items:center}
.role-bar a,.role-bar button{color:#5c3b00;font-weight:700;text-decoration:underline;background:none;border:0;padding:0;font:inherit;cursor:pointer}
.role-bar form{margin:0}

/* Reminder to confirm the email address */
.verify-bar{background:#e8f0ff;color:#0b2a66;border-bottom:1px solid #c5d6fb;font-size:.88rem}
.verify-bar .wrap{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.verify-bar form{margin:0}
.verify-bar a{font-weight:700;color:#0b2a66;text-decoration:underline}
.verify-bar button{background:none;border:0;padding:0;font:inherit;font-weight:700;color:#0b2a66;text-decoration:underline;cursor:pointer}
/* Shop payment accounts on the order page */
.pay-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pay-list li { background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.pay-net { color: #9fb0d3; font-size: .85rem; }
.pay-num { font-weight: 800; font-size: 1.1rem; }
.pay-name { color: #dbe4f7; font-size: .9rem; }

/* ---------- Shop page (seller appearance) ---------- */
.shop-page { --shop: #1b2a4a; }
.shop-announce { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--shop); color: #fff; font-weight: 650; display: flex; gap: 8px; align-items: center; }
.shop-hero { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; border-top: 6px solid var(--shop); }
.shop-banner { display: block; width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; max-height: 300px; }
.shop-id { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px; }
.shop-hero.has-banner .shop-id { padding-top: 10px; }
.shop-logo { width: 84px; height: 84px; font-size: 1.6rem; background: var(--shop); color: #fff; }
.shop-hero.has-banner .shop-logo { margin-top: -48px; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.shop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-shop { background: var(--shop); color: #fff; } .btn-shop:hover { filter: brightness(1.12); color: #fff; }
.shop-h2 { margin: 0 0 10px; font-size: 1.05rem; }
.shop-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.shop-promo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 2px dashed var(--shop); background: #fff; }
.shop-promo .code { font-family: ui-monospace, monospace; letter-spacing: .04em; }
.shop-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 26px 0 10px; }
.shop-info .box { margin: 0; }
.shop-social { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-social a { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.shop-hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.shop-hours th, .shop-hours td { text-align: left; padding: 5px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.shop-hours tr.today th, .shop-hours tr.today td { font-weight: 800; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 16px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; border: 2px solid var(--line); border-radius: 99px; font-size: .86rem; font-weight: 600; cursor: pointer; }
.swatch span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.swatch input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.swatch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hours-grid { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .hours-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hours-row .lbl { grid-column: 1 / -1; } }
.pick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }

/* ---------- Deliveries ---------- */
.track-box { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); }
.code-box { padding: 14px 16px; border-radius: 12px; border: 2px dashed var(--ok); background: #fff; }
.code-digits { font-size: 2rem; font-weight: 800; letter-spacing: .35em; margin: 4px 0 6px; font-family: ui-monospace, monospace; }

/* ---------- Messages ---------- */
.thread { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: #f1f4f9; border: 1px solid var(--line); }
.msg.mine { margin-left: auto; background: var(--brand-soft); }
/* On phones the category chips stay in one scrollable row, so the page does not jump when fonts load */
@media (max-width: 760px) { .subcats { flex-wrap: nowrap; overflow-x: auto; position: relative; padding-bottom: 4px; } .subcats .chip { white-space: nowrap; flex-shrink: 0; } }


/* ==========================================================================
   Visual refresh (October 2026)
   One typeface built for low vision, a calmer surface, and one signature:
   the woven band at the edges of the store. Everything else stays quiet.
   ========================================================================== */
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
b, strong { font-weight: 800; }
.price, .sum-row.total, .pd-price { font-variant-numeric: tabular-nums; }

/* Header: white bar with the woven band as its lower edge. Only the logo and search row stays on screen. */
.topbar { background: var(--navy); color: #d6def0; }
.topbar .trust-line .i { color: var(--gold); }
.header { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.header::after { content: ''; display: block; height: 5px; background: var(--weave); }
.header-row { min-height: 74px; }
.logo b { font-size: 1.38rem; letter-spacing: -.02em; }
.logo small { letter-spacing: .08em; font-size: .66rem; }
.search select { background: var(--bg); border-color: var(--line-2); border-radius: 12px 0 0 12px; font-weight: 600; }
.search input { border-color: var(--line-2); font-size: 1rem; min-height: 48px; }
.search button { border-radius: 0 12px 12px 0; padding: 0 20px; }
.head-btn { font-weight: 600; }
.head-btn:hover { background: var(--bg); }
.catbar { position: relative; z-index: 40; }
.catbar a { font-weight: 600; font-size: .92rem; padding: 12px 13px; border-bottom-width: 3px; }
@media (max-width: 900px) {
  .header-row { padding: 10px 0 12px; padding-left: 0; padding-right: 0; gap: 10px 8px; }
  .header .wrap.header-row { padding-left: 16px; padding-right: 16px; }
  .logo svg { width: 34px; height: 34px; }
  .logo b { font-size: 1.2rem; }
  .search input { min-height: 46px; }
  .topbar { font-size: .8rem; }
}

/* Buttons: one strong colour for the main action on a page, outline for the rest. */
.btn { border-radius: 10px; font-weight: 800; letter-spacing: .005em; }
.btn-sm { border-radius: 8px; font-weight: 600; }
.btn-line { border-color: var(--line-2); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }

/* Panels and rails: flat white surfaces separated by hairlines, not shadows. */
.panel, .rail, .side-cats, .promise div { border-color: var(--line); }
.rail-head { padding: 16px 18px; }
.rail-head h2 { font-size: 1.2rem; }
.rail.deals .rail-head { background: var(--deal); }

/* Home: the hero carries the woven band down its left edge. */
.hero { border-radius: var(--r); }
.hero .slide::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--weave); background-size: 100% 72px; background-image: repeating-linear-gradient(180deg, #e9a90e 0 22px, #0a1a3a 22px 25px, #0a7a4c 25px 37px, #0a1a3a 37px 40px, #0b57d0 40px 58px, #0a1a3a 58px 61px, #b4400e 61px 69px, #0a1a3a 69px 72px); z-index: 2; }
.hero .slide.navy { background: var(--navy); }
.hero .slide.orange { background: #c2410c; }
.hero .slide.teal { background: #0b6b63; }
.slide-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.025em; line-height: 1.08; max-width: 14ch; }
.slide-inner p { font-size: 1.05rem; max-width: 38ch; }
.side-cats a { font-weight: 600; font-size: .94rem; padding: 9px 10px; }
.side-cats .i { color: var(--brand); }
.promise div { color: var(--muted); }
.promise .ic { background: var(--forest-soft); color: var(--forest); border-radius: 50%; }
.promise strong { font-weight: 800; }

/* Product cards: the price is the loudest thing; buttons step back so a row of cards is calm. */
.pcard { border-radius: 12px; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard-img { background: var(--bg); }
.pcard-name { font-weight: 600; font-size: .93rem; line-height: 1.38; }
.pcard .price { font-size: 1.08rem; font-weight: 800; color: var(--text); }
.pcard .store { font-size: .8rem; }
.pcard .add.btn-primary { background: #fff; color: var(--brand); border-color: var(--brand); }
.pcard .add.btn-primary:hover { background: var(--brand); color: #fff; }
.pcard .off { background: var(--deal); border-radius: 6px; font-weight: 800; }
.pcard .low { color: var(--deal); }

/* Product page: price and the two buying actions first. */
.pd-price .price, .pd-info .price { font-weight: 800; }

/* Footer: the woven band again, closing the page. */
.footer { margin-top: 56px; position: relative; }
.footer::before { content: ''; display: block; height: 5px; background: var(--weave); }
.footer-promise .ic { color: var(--gold); border-radius: 50%; }

/* Links inside sentences are underlined, so they never rely on colour alone. */
:where(main p, main label, main dd, .prose li, .side-row, .footer p) a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Badges for protected and not protected choices */
.badge.ok { background: var(--forest-soft); color: var(--forest); }
/* Protected ways to pay come first; paying the shop directly is listed last. */
#direct-option { order: 5; }

/* The app banner on phones: one compact line instead of a card over the page. */
@media (max-width: 600px) {
  .app-banner { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; gap: 10px; border-radius: 12px; }
  .app-banner img { width: 36px; height: 36px; }
  .app-banner .txt { font-size: .85rem; line-height: 1.3; }
  .app-banner .txt strong { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Official logo: bag-and-wave mark with the NETWAVE STORE wordmark in its colours. */
.logo .logo-mark { width: auto; height: 44px; border-radius: 0; }
.wordmark b { text-transform: uppercase; font-weight: 800; letter-spacing: .01em; }
.wordmark .w-net { color: #0a1f4f; }
.wordmark .w-wave { color: #0b77ad; background: linear-gradient(90deg, #0897a8, #0b5fa8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wordmark small { color: #b45309; letter-spacing: .32em; font-weight: 800; }
.footer .logo .logo-mark, .dash-side .logo .logo-mark { background: #fff; padding: 4px 6px; border-radius: 10px; box-sizing: content-box; height: 32px; }
.footer .wordmark .w-net, .dash-side .wordmark .w-net { color: #fff; }
.footer .wordmark .w-wave, .dash-side .wordmark .w-wave { background: linear-gradient(90deg, #3fe0e8, #5fb4ff); -webkit-background-clip: text; background-clip: text; }
.footer .wordmark small, .dash-side .wordmark small { color: #f6a723; }
@media (max-width: 520px) { .logo .logo-mark { height: 34px; } }
@media (forced-colors: active) { .wordmark .w-wave { -webkit-text-fill-color: currentColor; background: none; } }

/* Shop QR code poster */
.qr-page { padding: 20px 16px 40px; }
.qr-tools h1 { margin: 0 0 6px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.qr-poster { background: #fff; border: 1px solid var(--line); border-radius: 20px; max-width: 520px; margin: 22px auto 0; padding: 28px 24px 26px; text-align: center; color: var(--navy); }
.qr-brand { width: 190px; height: auto; display: block; margin: 0 auto 6px; }
.qr-kicker { margin: 4px 0 0; font-weight: 700; color: #b45309; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.qr-name { font-size: 1.7rem; font-weight: 800; margin: 4px 0 14px; line-height: 1.15; overflow-wrap: anywhere; }
.qr-code { width: min(320px, 100%); height: auto; display: block; margin: 0 auto; }
.qr-scan { font-weight: 800; margin: 12px 0 2px; font-size: 1.1rem; }
.qr-link { margin: 0 0 12px; font-size: .95rem; overflow-wrap: anywhere; }
.qr-foot { margin: 0; font-size: .85rem; color: var(--muted); }
@media print {
  .topbar, .header, .catbar, .footer, .no-print, .app-banner, .verify-bar, .skip { display: none !important; }
  body { background: #fff !important; }
  .qr-page { padding: 0; }
  .qr-poster { border: 0; max-width: none; margin: 0; padding: 10mm 0 0; }
  .qr-brand { width: 70mm; }
  .qr-name { font-size: 26pt; }
  .qr-code { width: 120mm; }
  .qr-scan { font-size: 16pt; }
  .qr-link { font-size: 13pt; }
}
.in-app [data-print] { display: none; }

/* Messages inbox */
.inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.inbox li { margin: 0; display: grid; gap: 2px; }
.inbox li.unread { border-color: var(--brand); }
.inbox-last { color: var(--ink, inherit); overflow-wrap: anywhere; }
.msg.sending { opacity: .7; }
.msg.failed { border-color: var(--danger, #b42318); }

/* Registration by business type */
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cat-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 4px; margin: 0; min-width: 0; }
.cat-group legend { font-weight: 800; padding: 0 4px; }
.cat-group .check { margin: 0 0 8px; font-size: .95rem; }
.role-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.role-list li { margin: 0; }

/* Directory */
.dir-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.dir-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0; }
.dir-card .store-logo { flex-shrink: 0; }
.dir-body { min-width: 0; flex: 1; }
.dir-body h3 { margin: 0 0 2px; font-size: 1.05rem; }
.dir-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dir-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.dir-index .panel { margin: 0; }
.dir-index h2 a { color: inherit; }
.dir-index .links { columns: 2; column-gap: 16px; padding: 0; list-style: none; margin: 0; }
.dir-index .links li { break-inside: avoid; margin-bottom: 4px; font-size: .92rem; }
@media (max-width: 520px) { .dir-index .links { columns: 1; } .dir-card { flex-direction: column; } }
.cat-group.flat { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); column-gap: 16px; }
.cat-group.flat legend { grid-column: 1 / -1; }
.auth-card { min-width: 0; max-width: 100%; box-sizing: border-box; }
.auth-card h1, .auth-card p, .auth-card .alert { overflow-wrap: anywhere; }

/* Home: headline and shortcuts to every section */
.home-intro { padding: 18px 0 6px; }
.home-intro h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 6px; }
.home-intro > p { margin: 0 0 14px; max-width: 760px; }
.quick-go { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.quick-go li { margin: 0; }
.quick-go a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); text-decoration: none; height: 100%; }
.quick-go a:hover, .quick-go a:focus-visible { border-color: var(--brand); }
.quick-go a .i { width: 28px; height: 28px; color: var(--brand); flex-shrink: 0; }
.quick-go strong { display: block; }
.quick-go .small { color: var(--muted); }
.quick-go .go-join { background: var(--brand-soft); border-color: var(--brand); }
.how-steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 6px; }
.setup-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.setup-list li { display: flex; gap: 8px; align-items: center; }
.setup-list li.done { color: var(--muted); }
.setup-list li.done .i { color: var(--forest, #0a7a4c); }
.topbar .trust-line a { text-decoration: underline; font-weight: 700; }
@media (max-width: 600px) { .quick-go { grid-template-columns: 1fr 1fr; gap: 8px; } .quick-go a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; } .quick-go .go-join-li { grid-column: 1 / -1; } }

/* ---------- App mode: inside the Android app, or opened from the Home Screen ---------- */
.tabbar, .app-footer, .app-back { display: none; }
.app-mode .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(10, 26, 58, .08); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; color: #4a5672; font-size: .74rem; font-weight: 700; text-decoration: none !important; }
.tabbar a .i { width: 24px; height: 24px; }
.tabbar a[aria-current=page] { color: var(--brand); }
.tabbar a[aria-current=page]::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.tabbar .count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--deal); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; }
.app-mode body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
.app-mode .catbar, .app-mode .footer, .app-mode .app-banner, .app-mode .head-actions, .app-mode .role-bar { display: none !important; }
.app-mode .app-footer { display: block; text-align: center; font-size: .8rem; color: var(--muted); padding: 18px 16px 10px; }
.app-mode .header { padding-top: env(safe-area-inset-top); }
.app-mode .header-row { flex-wrap: nowrap; min-height: 60px; gap: 10px; padding: 8px 0; }
.app-mode .header .wrap.header-row { padding-left: 12px; padding-right: 12px; }
.app-mode .logo .wordmark { display: none; }
.app-mode .logo .logo-mark { height: 34px; }
.app-mode .search { order: 0; flex-basis: auto; flex: 1; max-width: none; }
.app-mode .search select { display: none; }
.app-mode .search input { border-radius: 12px 0 0 12px; min-height: 44px; border-left: 1.5px solid var(--line-2); }
.app-mode .app-back:not([hidden]) { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--bg); color: var(--navy); cursor: pointer; }
.app-mode .app-back .i { width: 22px; height: 22px; }
.app-mode .dash-side { padding-bottom: 12px; }
.app-mode .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
/* Feels like an app: no grey flash on tap, no accidental text selection on buttons and tabs. */
.app-mode a, .app-mode button { -webkit-tap-highlight-color: transparent; }
.app-mode .tabbar, .app-mode .btn { -webkit-user-select: none; user-select: none; }
@media (min-width: 900px) { .app-mode .tabbar { left: 50%; transform: translateX(-50%); max-width: 640px; border: 1px solid var(--line); border-radius: 16px 16px 0 0; } }
.push-nudge { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 135; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px; max-width: 560px; margin: 0 auto; }
.push-nudge[hidden] { display: none; }
/* Top bar: the store name and tagline */
.topbar .trust-line { display: block; letter-spacing: .01em; }
.topbar .trust-line strong { color: #fff; font-weight: 800; }

/* Digital books: upload progress */
.upload-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.upload-progress progress { flex: 1; height: 12px; accent-color: var(--brand, #0b5cd6); }
p.danger[data-upload-status] { color: var(--danger); font-weight: 600; }

/* ---------- Display settings (free for everyone) ---------- */
html[data-ts] { font-size: calc(100% * var(--ts, 1)); }
html[data-ts] body { font-size: 1rem; }
.topbar .a11y { margin-right: auto; }
.topbar .trust-line { flex: 1 1 auto; min-width: 0; }
.a11y { position: relative; }
.a11y-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.a11y-btn:hover { background: rgba(255,255,255,.12); }
.dash-side .a11y-btn { border-color: currentColor; color: inherit; margin: 4px 0; }
.a11y-panel { position: absolute; z-index: 300; top: calc(100% + 8px); left: 0; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px; font-size: 1rem; text-align: left; }
.dash-side .a11y-panel { top: auto; bottom: calc(100% + 8px); }
.a11y-panel h2 { font-size: 1.1rem; margin: 0 0 4px; }
.a11y-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; border: 0; padding: 0; }
.a11y-row .lbl { width: 100%; margin: 0; }
.a11y-checks { display: grid; gap: 4px; }
.a11y-panel .check { margin: 0; }
@media (max-width: 700px) { .topbar .wrap { flex-wrap: wrap; } .a11y-panel { position: fixed; left: 16px; right: 16px; top: 60px; width: auto; max-height: calc(100vh - 80px); overflow: auto; } .dash-side .a11y-panel { top: 60px; bottom: auto; } }
/* Reading magnifier: a large copy of the text under the pointer or focus, at the bottom of the screen. */
.a11y-mag { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; background: #fff; color: #000; border-top: 4px solid #000; padding: 12px 56px 12px 16px; max-height: 40vh; overflow: auto; box-shadow: 0 -8px 24px rgba(0,0,0,.25); font-size: calc(2rem * var(--mag, 1)); line-height: 1.35; font-weight: 600; pointer-events: none; }
.a11y-mag-close { position: absolute; top: 8px; right: 8px; pointer-events: auto; min-width: 44px; min-height: 44px; border-radius: 8px; border: 2px solid #000; background: #fff; font-size: 0; cursor: pointer; }
.a11y-mag-close::before { content: '×'; font-size: 28px; line-height: 1; }
html[data-magnifier] body { padding-bottom: 42vh; }
html[data-magnifier] .a11y-mag:empty, html[data-magnifier] .a11y-mag[data-empty] { display: none; }
/* High contrast */
html[data-contrast="high"] { --text: #000; --muted: #1f2937; --faint: #1f2937; --line: #1f2937; --line-2: #000; --bg: #fff; --brand: #0039a6; --brand-dark: #002a7a; --deal: #8a2d00; --ok: #00512f; --danger: #9b0000; --warn: #5c3600; }
html[data-contrast="high"] a:not(.btn) { text-decoration: underline; }
html[data-contrast="high"] .btn, html[data-contrast="high"] .input, html[data-contrast="high"] .panel, html[data-contrast="high"] .pcard, html[data-contrast="high"] .box { border: 2px solid #000 !important; }
html[data-contrast="high"] .muted, html[data-contrast="high"] .hint { color: #1f2937 !important; }
/* Links */
html[data-underline] a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-links] a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
html[data-links] :focus-visible, html[data-links] :focus { outline: 4px solid #e9a90e !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #0a1a3a !important; }
/* Spacing (WCAG text spacing) */
html[data-spacing] body { line-height: 1.8 !important; letter-spacing: .06em; word-spacing: .12em; }
html[data-spacing] p { margin-bottom: 1.2em; }
/* Reduce motion */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* Dark display: the page is drawn dark and photos are kept in their real colours. */
html[data-dark] { background: #fff; filter: invert(1) hue-rotate(180deg); }
html[data-dark] img, html[data-dark] video, html[data-dark] picture, html[data-dark] canvas, html[data-dark] iframe, html[data-dark] .shop-banner, html[data-dark] [style*="background-image"] { filter: invert(1) hue-rotate(180deg); }
html[data-dark] .a11y-mag { filter: none; }
/* Large text: keep the search box and skip link inside the screen */
.search { min-width: 0; }
.search input { width: 100%; min-width: 0; }
.skip { top: auto; bottom: 100%; } .skip:focus { top: 12px; bottom: auto; }
/* Small controls get a 24 by 24 pixel touch area at least (WCAG 2.2 target size) */
/* Slide dots: the visible bar stays thin, the touch area is 28 by 24 pixels */
.dots button { height: 24px; background: transparent !important; position: relative; }
.dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); }
.dots button[aria-current=true]::before { background: #fff; }
.dots { bottom: 6px; }
.quick-go li, .quick-go a > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { html[data-ts] .quick-go { grid-template-columns: 1fr; } }
/* Large text on small screens: let long words wrap and stack two-column blocks */
html[data-ts] main *, html[data-ts] .header * { overflow-wrap: anywhere; }
html[data-ts] .slide, html[data-ts] .slide-inner, html[data-ts] .promise > div, html[data-ts] .promise > div > span, html[data-ts] .rail-head, html[data-ts] .rail-head > * { min-width: 0; }
@media (max-width: 600px) { html[data-ts] .promise { grid-template-columns: 1fr; } html[data-ts] .rail-head { flex-wrap: wrap; } html[data-ts] .slide-inner { max-width: 100%; } }
html[data-ts] .btn { white-space: normal; height: auto; } html[data-ts] .verified { flex-wrap: wrap; }

/* In the app: a slim bar that keeps only the Display settings button */
.app-mode .topbar .trust-line, .app-mode .topbar .hide-sm { display: none; }
.app-mode .topbar .wrap { justify-content: flex-end; padding: 4px 12px; }
.app-mode .topbar .a11y { margin-right: 0; }
.app-mode .topbar .a11y-panel { left: auto; right: 0; }
@media (max-width: 700px) { .app-mode .topbar .a11y-panel { left: 16px; right: 16px; } }

/* Security Centre */
.sec-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sec-checks li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sec-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sec-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; background: var(--surface); }
.sec-card.is-current { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.sec-card h3 { font-size: 1rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sec-card dl.kv { margin-bottom: 10px; font-size: .92rem; }
.sec-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-box { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; margin: 10px 0; max-width: 240px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.setup-key, .backup-codes code { font-size: 1.05rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding-left: 24px; margin: 14px 0; }
.sec-links a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Native app (version 2 and later): the app draws the top bar and bottom menu itself ---------- */
.native-shell .header, .native-shell .catbar, .native-shell .footer, .native-shell .tabbar,
.native-shell .push-nudge, .native-shell .role-bar, .native-shell .app-banner, .native-shell .app-back { display: none !important; }
.native-shell .topbar { background: transparent; border: 0; padding: 0; min-height: 0; }
.native-shell .topbar .wrap { padding: 0; min-height: 0; }
.native-shell .topbar .trust-line, .native-shell .topbar .hide-sm, .native-shell .topbar .a11y-btn { display: none !important; }
/* Display settings open from the app's menu, as a sheet over the page. */
.native-shell .topbar .a11y-panel:not([hidden]) { position: fixed; top: 8px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 16px); overflow: auto; z-index: 400; }
.native-shell body { padding-bottom: 0; }
.native-shell .toast { bottom: 16px; }
/* The short footer (Help, Returns, Terms, Privacy, Register your business) stays at the end of each page. */
.native-shell .app-footer { display: block; padding-bottom: 20px; }

/* Greeting for signed-in members */
.greet { margin: 4px 0 14px; }
.greet-line { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.greet-place { margin: 4px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Guided photo taking for verification (screen-reader friendly) */
.gc-open { margin-top: 6px; }
.photo-status { margin: 6px 0 0; }
.photo-status.ok { color: var(--ok); font-weight: 700; }
.photo-status.warn { color: var(--warn); font-weight: 700; }
.photo-results { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 0 0 14px; }
.gc-on body { overflow: hidden; }
.gc-dialog { position: fixed; inset: 0; z-index: 500; background: rgba(6, 14, 34, .86); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 12px; }
.gc-dialog[hidden] { display: none; }
.gc-box { background: var(--surface); color: var(--text); border-radius: var(--r); padding: 16px; width: min(560px, 100%); }
.gc-box h2 { margin: 0 0 6px; font-size: 1.15rem; }
.gc-steps { margin: 0 0 10px; }
.gc-live { min-height: 3em; font-size: 1.15rem; font-weight: 800; color: var(--navy); background: var(--brand-soft); border-radius: var(--r-sm); padding: 10px 12px; margin: 0 0 10px; }
.gc-video { width: 100%; max-height: 46vh; background: #000; border-radius: var(--r-sm); object-fit: contain; }
.gc-opts { display: grid; gap: 6px; margin: 10px 0; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-note { margin: 10px 0 0; }

/* How this page works */
.page-guide { background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 14px; }
.page-guide summary { font-weight: 800; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.page-guide ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }

/* Full-screen app update offer */
.upd-wrap { position: fixed; inset: 0; z-index: 2000; background: var(--bg, #fff); overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: max(24px, env(safe-area-inset-top)) 18px 24px; }
.upd-wrap[hidden] { display: none; }
html.upd-open, html.upd-open body { overflow: hidden; }
.upd-box { width: 100%; max-width: 520px; padding-top: 4vh; }
.upd-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.upd-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.upd-ic .i { width: 32px; height: 32px; }
.upd-box h2 { font-size: 1.5rem; margin: 0 0 8px; outline: none; }
.upd-sub { font-size: 1.05rem; margin: 20px 0 6px; }
.upd-rel { margin: 10px 0 4px; }
.upd-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.upd-actions { display: grid; gap: 10px; margin-top: 26px; }
.upd-actions .btn { width: 100%; justify-content: center; }

/* Share menu */
.share { position: relative; display: inline-block; }
.share-menu { position: absolute; z-index: 60; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 12px; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.share-item { display: block; width: 100%; text-align: left; padding: 10px 10px; min-height: 44px; border: 0; background: none; border-radius: 8px; color: inherit; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.share-item:hover, .share-item:focus-visible { background: var(--brand-soft); }
.share-status { margin: 6px 0 0; }
.share-status:empty { display: none; }
@media (max-width: 560px) { .share-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; } }

/* Always-visible share buttons */
.share-bar { margin: 12px 0 18px; }
.share-bar-h { font-size: 1rem; margin: 0 0 8px; }
.share-bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sb-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.sb-btn:hover, .sb-btn:focus-visible { background: var(--brand-soft); }
.sb-wa { background: #0b7a3e; border-color: #0b7a3e; color: #fff; }
.sb-wa:hover, .sb-wa:focus-visible { background: #096634; }
.sb-fb { background: #1767d2; border-color: #1767d2; color: #fff; }
.sb-fb:hover, .sb-fb:focus-visible { background: #1257b5; }
.sb-native { background: #0b57d0; border-color: #0b57d0; color: #fff; }
.sb-native:hover, .sb-native:focus-visible { background: #0947ab; }
/* Long category names and empty lists never push the page sideways on phones */
section[aria-labelledby="list-h"] { min-width: 0; }
.list-head > div:first-child { min-width: 0; flex: 1 1 200px; }
.list-head h1 { overflow-wrap: anywhere; }
.shop-info .box ul a, .cat-guide a { text-decoration: underline; }
.empty .btn { white-space: normal; max-width: 100%; text-align: center; }
.pd-meta a, a[href$="about#badges"] { text-decoration: underline; }
/* Product cards: one size, one layout. Every line has a fixed height, so cards line up in rows and columns,
   and the button always sits at the bottom. Text that does not fit is shortened on screen only. */
.pgrid { grid-auto-rows: 1fr; align-items: stretch; }
.pcard { height: 100%; }
.pcard-body { display: grid; grid-template-rows: 2.76em 1.6rem 1.5rem 1.2rem auto; align-content: start; gap: 4px; padding: 10px 12px 12px; }
.pcard-name { font-size: .92rem; font-weight: 600; line-height: 1.38; min-height: 0; height: 2.76em; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.pcard-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; min-width: 0; }
.pcard-price .price { font-size: 1.05rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.pcard-price .was { font-size: .78rem; color: var(--muted); text-decoration: line-through; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.pcard-tags { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; min-width: 0; }
.pcard-tags .badge { font-size: .7rem; padding: 2px 7px; flex-shrink: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pcard-tags .stars { flex-shrink: 0; font-size: .74rem; }
.pcard .store { font-size: .78rem; line-height: 1.2rem; height: 1.2rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .store .verified { display: inline-flex; vertical-align: -2px; }
.pcard .add { margin-top: 6px; align-self: end; width: 100%; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-body { grid-template-rows: 2.76em 1.6rem 1.5rem 1.2rem 1fr; }
@media (max-width: 520px) { .pcard-body { padding: 8px 9px 10px; } .pcard-name { font-size: .86rem; } .pcard-price .price { font-size: .98rem; } }
/* The price is never shortened; the old (crossed-out) price gives way, and is hidden if there is no room. */
.pcard-price { flex-wrap: wrap; row-gap: 0; height: 1.6rem; overflow: hidden; }
.pcard-price .price { flex-shrink: 0; overflow: visible; text-overflow: clip; }
.pcard-price .was { min-width: 0; }

/* Receipt */
.receipt { background: var(--card, #fff); border: 1px solid var(--line, #d9dee7); border-radius: 12px; padding: 22px; }
.receipt-brand { margin: 0 0 4px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.receipt-meta { display: grid; gap: 8px; margin: 14px 0 0; }
.receipt-meta dt { font-weight: 600; font-size: .85rem; }
.receipt-meta dd { margin: 0; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th, .receipt-table td { padding: 8px 6px; border-bottom: 1px solid var(--line, #d9dee7); text-align: left; vertical-align: top; }
.receipt-table .num { text-align: right; white-space: nowrap; }
.receipt-sum { margin-top: 14px; max-width: 360px; margin-left: auto; }
.receipt-total th, .receipt-total td { font-size: 1.1rem; font-weight: 700; }
@media print { .receipt { border: 0; padding: 0; } .receipt-page { max-width: none !important; padding: 0 !important; } }

/* "Are you sure?" box */
.ask-box { border: 0; border-radius: 14px; padding: 22px; max-width: min(92vw, 420px); width: 100%; box-shadow: 0 18px 50px rgba(6, 14, 34, .45); background: var(--surface, #fff); color: var(--text, #111); }
.ask-box::backdrop { background: rgba(6, 14, 34, .6); }
.ask-box h2 { margin: 0 0 8px; font-size: 1.2rem; }
.ask-box p { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.45; }
.ask-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ask-row .btn { min-height: 48px; flex: 1 1 140px; }

/* Tap-to-fill reasons in admin forms */
.quick-reasons { margin: 0 0 14px; }
.quick-reasons-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-reason { cursor: pointer; min-height: 44px; text-align: left; align-items: center; font: inherit; font-size: .9rem; line-height: 1.3; }
.quick-reason[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Bigger tap targets on phones and in the app (at least 44 by 44 pixels) */
@media (max-width: 760px) {
  .dots button { width: 44px; height: 44px; }
  .dots button::before { top: 19px; left: 8px; right: 8px; }
  .dots { bottom: 0; gap: 0; }
  .pd-meta a[href="#reviews"], .side-row a, .panel h2 > a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* What was picked in a file box */
.file-picked { margin-top: 4px; }
.file-picked .file-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin: 0 6px 6px 0; border: 1px solid var(--line); }
.file-picked.file-bad { color: var(--danger); font-weight: 600; }

.saving-status { margin: 10px 0 0; font-weight: 600; }

/* Get our app link in the top bar */
.topbar .app-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }

/* Shipping price list rows */
.rate-rows { display: grid; gap: 8px; }
.rate-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.3fr auto; gap: 8px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.rate-row .field { margin: 0; }
.rate-row label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
@media (max-width: 640px) { .rate-row { grid-template-columns: 1fr 1fr; } .rate-row .field:first-child { grid-column: 1 / -1; } }
.rate-out { grid-column: 1 / -1; margin: 0; }
.rate-row.band-row { grid-template-columns: 2fr 1fr 1fr auto; }
@media (max-width: 640px) { .rate-row.band-row { grid-template-columns: 1fr 1fr; } }
.rate-out:empty { display: none; }
.fx-calc summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.fx-convert { margin-top: 12px; }

/* Shipping cost calculator */
.calc-parcels { display: grid; gap: 10px; }
.calc-parcel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.calc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.calc-grid .field { margin: 0; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
.calc-tbl { margin: 8px 0; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc-table caption { text-align: left; }
.calc-table th, .calc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc-table thead th { font-size: .85rem; color: var(--muted); }
.calc-table tfoot th, .calc-table tfoot td { font-weight: 800; border-bottom: 0; }
@media (max-width: 600px) {
  .calc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .calc-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .calc-table th, .calc-table td { display: block; border: 0; padding: 3px 0; }
  .calc-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
  .calc-table td.calc-empty { display: none; }
}
#calc-result:focus { outline: 3px solid var(--brand); outline-offset: 4px; }

/* Shipment tracking timeline */
.ship-steps { list-style: none; margin: 0; padding: 0; }
.ship-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--muted); }
.ship-steps li.done { color: var(--text); }
.ship-dot { flex: 0 0 18px; height: 18px; margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.ship-steps li.done .ship-dot { background: var(--forest, #0a7a52); border-color: var(--forest, #0a7a52); }
.ship-steps li.now .ship-dot { box-shadow: 0 0 0 4px rgba(10, 122, 82, .2); }
.ship-mark { max-width: 100%; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; padding: 10px 14px; border: 2px dashed var(--line-2); border-radius: 10px; display: inline-block; }
.ship-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ship-tiles a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: inherit; min-height: 44px; }
.ship-tiles a:hover, .ship-tiles a:focus-visible { border-color: var(--brand); text-decoration: none; }
.ship-tiles .v { display: block; font-size: 1.5rem; font-weight: 800; }
.ship-tiles .k { font-size: .88rem; color: var(--muted); }
.ship-live { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.file-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.file-list .file-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

/* ---- Home page, modern layout (Nov 2026) ---- */
/* Round quick links: icon in a circle, name under it. One row that scrolls sideways on phones. */
.quick-go { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.quick-go a { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; border-radius: 16px; justify-content: flex-start; }
.quick-go a .i { width: 26px; height: 26px; padding: 13px; box-sizing: content-box; border-radius: 50%; background: var(--brand-soft); }
.quick-go strong { font-size: .86rem; line-height: 1.25; }
.quick-go .small { font-size: .74rem; }
@media (max-width: 640px) {
  .quick-go { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .quick-go li { flex: 0 0 104px; scroll-snap-align: start; }
}
/* Trust strip: five promises. */
.promise { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .promise { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr 1fr; } }
/* Popular searches. */
.pop-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.pop-search .chip { padding: 5px 12px; font-size: .8rem; }
/* Category grid with the most common kinds under each. */
.cat-tile-x { padding: 14px 10px; gap: 6px; }
.cat-tile-x .cat-main { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.cat-tile-x .cat-main:hover { color: var(--brand); text-decoration: none; }
.cat-kids { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 400; font-size: .78rem; }
.cat-kids a { color: var(--muted); }
.cat-kids a:hover { color: var(--brand); }
.cat-tile-x:hover { color: inherit; }
/* Flash-sale cards: how many are left, from the real stock. */
.stockbar { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 2px 0; }
.stockbar span { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #f59e0b); border-radius: 99px; }
/* "Similar items" under every card. */
.pcard .similar { display: block; text-align: center; color: var(--muted); padding-top: 2px; }
.pcard .similar:hover, .pcard .similar:focus-visible { color: var(--brand); }
/* A shop's own shelf on the home page. */
.shop-row .rail-head h2 .verified { font-weight: 600; font-size: .78rem; margin-left: 6px; }
/* Footer: follow us. */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social a { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; font-size: .82rem; color: inherit; }
@media (max-width: 640px) {
  .quick-go { margin-bottom: 8px; }
  .quick-go li { flex: 0 0 92px; }
  .quick-go a { padding: 10px 6px; gap: 6px; height: auto; }
  .quick-go a .i { padding: 10px; width: 22px; height: 22px; }
  .quick-go strong { font-size: .78rem; }
  .quick-go .small { display: none; }
  .home-top { padding-top: 6px; }
  /* Promises: one row to swipe through. */
  .promise { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; }
  .promise div { flex: 0 0 72%; scroll-snap-align: start; }
  .cat-kids { display: none; }
  .home-top > nav { display: none; }
}

/* ===== Hero banners made from real store items, photo category tiles, compact about (2026-11) ===== */
.hero { min-height: 360px; }
.hero .slide { padding: 40px 44px 40px 52px; align-items: center; }
.hero .slide.navy { background: radial-gradient(120% 140% at 85% 30%, #1d3a7a 0%, #0b1b3f 55%, #071230 100%); }
.hero .slide.orange { background: radial-gradient(120% 140% at 85% 30%, #ea580c 0%, #c2410c 50%, #7c2d12 100%); }
.hero .slide.teal { background: radial-gradient(120% 140% at 85% 30%, #12877d 0%, #0b6b63 50%, #053f3a 100%); }
.slide-inner { max-width: 46%; }
.slide:not(.has-pics) .slide-inner { max-width: 620px; }
.slide-eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.slide-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; max-width: 15ch; margin: 0 0 12px; }
.slide-inner .slide-sub { font-size: 1.06rem; line-height: 1.45; max-width: 36ch; margin: 0 0 20px; opacity: .95; }
.slide-inner .btn { box-shadow: 0 6px 18px rgba(0,0,0,.22); font-weight: 750; }
.slide-proof { margin: 14px 0 0; opacity: .9; }
.slide-pics { right: 32px; display: grid; grid-template-columns: 240px 140px; grid-template-rows: auto auto; gap: 12px; align-items: end; }
.slide-pics figure, .slide-pics figure:nth-child(2), .slide-pics figure:nth-child(3) { transform: none; width: auto; border-radius: 14px; box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.slide-pics figure.lead { grid-row: 1 / span 2; }
.slide-pics img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.slide-pics figure.lead img { width: 240px; }
.slide-pics figure:not(.lead) img { width: 140px; }
.slide-pics.n1 { grid-template-columns: 240px; }
.slide-pics figcaption { padding: 8px 10px 10px; }
.slide-pics .sp-price { font-weight: 800; font-size: .95rem; color: #0b1b3f; }
.slide-pics .sp-off { background: #dc2626; color: #fff; border-radius: 6px; padding: 0 5px; font-size: .74rem; }
.slide-pics .sp-shop { color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .slide-pics { grid-template-columns: 200px 120px; } .slide-pics figure.lead img { width: 200px; } .slide-pics figure:not(.lead) img { width: 120px; } }
@media (max-width: 900px) and (min-width: 761px) { .slide-pics figure:not(.lead) { display: none; } .slide-pics { grid-template-columns: 200px; } }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero .slide { position: absolute; flex-direction: column; align-items: stretch; justify-content: center; padding: 22px 18px 44px 26px; gap: 14px; }
  .hero .slide.on { position: relative; }
  .slide-inner, .slide:not(.has-pics) .slide-inner { max-width: 100%; }
  .slide-inner h2 { font-size: 1.6rem; }
  .slide-inner .slide-sub { font-size: .96rem; margin-bottom: 14px; }
  .slide-proof { display: none; }
  .slide-pics, .slide-pics.n1 { display: flex; position: static; transform: none; gap: 8px; }
  .slide-pics figure, .slide-pics figure.lead { flex: 1 1 0; min-width: 0; box-shadow: 0 8px 18px rgba(0,0,0,.22); }
  .slide-pics figure:not(.lead) { display: block; }
  .slide-pics img, .slide-pics figure.lead img, .slide-pics figure:not(.lead) img { width: 100%; }
  .slide-pics figcaption { padding: 5px 6px 7px; font-size: .72rem; }
  .slide-pics .sp-price { font-size: .82rem; }
}
.cat-tile-x.has-photo { padding: 10px 10px 12px; }
.cat-photo { display: block; width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #f6f7f9; }
.cat-photo img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.cat-tile-x .cat-main:hover .cat-photo img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .cat-tile-x .cat-main:hover .cat-photo img { transform: none; } }
.home-about { margin: 22px 0 8px; padding: 14px 2px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.home-about h2 { font-size: .95rem; margin: 0 0 4px; color: var(--text); }
.home-about p { margin: 0 0 4px; max-width: 900px; }
@media (min-width: 761px) {
  .hero { min-height: 380px; }
  .slide-pics { grid-template-columns: 220px 120px; align-items: center; }
  .slide-pics figure.lead img { width: 220px; }
  .slide-pics figure:not(.lead) img { width: 120px; }
  .slide-pics figure:not(.lead) figcaption { padding: 6px 8px 8px; font-size: .74rem; }
}
.slide-eyebrow { letter-spacing: .04em; font-size: .74rem; }
@media (max-width: 760px) { .slide-pics { align-items: flex-end; } .slide-pics .sp-price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .slide-pics .sp-off { font-size: .66rem; } }
.slide-pics figure { position: relative; }
@media (max-width: 760px) { .slide-pics .sp-off { position: absolute; top: 6px; left: 6px; font-size: .72rem; padding: 1px 6px; } .slide-pics .sp-price { overflow: visible; } }
.cat-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 14px 16px; }
.cat-more .chip { min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .cat-more { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; } .cat-more > * { flex-shrink: 0; white-space: nowrap; scroll-snap-align: start; } }
.app-social .social { justify-content: center; margin-top: 12px; }
.app-social .social a { min-height: 40px; align-items: center; }
.footer .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.footer .btn-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer .pay-line { color: #b6c3de; flex-basis: 100%; }
.fx-approx { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pd-price .fx-approx, #pd-approx { font-size: .95rem; margin-top: 4px; }
.dest-link { font-weight: 700; }
