/* NoPOS Shop storefront. Colours and type follow the NoPOS website (apps/site/styles.css). Mobile first. */
:root {
  --field: #e9eef4;
  --ink: #16213a;
  --ink-2: #22304f;
  --ink-soft: #4a5672;
  --paper: #fffef9;
  --white: #ffffff;
  --line: #cfd8e4;
  --line-soft: #e3e9f0;
  --ok: #1c8b57;
  --ok-deep: #136a42;
  --ok-tint: #e3f3ea;
  --warn: #e3a21a;
  --warn-tint: #fdf3dc;
  --info: #2c5fb3;
  --info-tint: #e4ecf8;
  --stop: #c9372c;
  --stop-tint: #fbe7e5;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1280px;
  --gutter: 16px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 4px 16px rgba(22, 33, 58, .06);
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--warn); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

/* ───── top bar, header, nav ───── */
.topbar { background: var(--ink); color: #dfe5f0; font-size: .8rem; }
.topbar .wrap { display: flex; gap: 8px 28px; justify-content: safe center; padding-top: 7px; padding-bottom: 7px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.topbar .wrap::-webkit-scrollbar { display: none; }
.topbar span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; }

.header { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.header .wrap { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . tools" "search search search"; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 900px) { .header .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "brand search tools"; gap: 24px; padding-top: 16px; padding-bottom: 16px; } }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .tag { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--ok); color: var(--white); padding: 2px 6px; border-radius: 4px; }
.search { grid-area: search; display: flex; }
.search input { flex: 1; min-width: 0; height: 46px; border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 0 14px; background: var(--white); font-size: 1rem; }
.search input::placeholder { color: #7d879c; }
.search button { height: 46px; padding: 0 18px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--ink); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.search button:hover { background: var(--ink-2); }
.tools { grid-area: tools; display: flex; align-items: center; gap: 4px; }
.tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.tool:hover { background: var(--field); }
.tool svg { flex: none; }
.tool .lbl { display: none; }
@media (min-width: 640px) { .tool .lbl { display: inline; } }
.cart-tool { position: relative; }
.cart-count { position: absolute; top: 0; left: 24px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--ok); color: var(--white); font: 700 .7rem/19px var(--sans); text-align: center; padding: 0 5px; }
.cart-total { font-family: var(--mono); font-weight: 600; margin-left: 6px; }

.catnav { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.catnav .wrap { display: flex; align-items: stretch; gap: 4px; }
.allcats { position: static; }
.allcats > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); font-weight: 700; font-size: .9rem; padding: 10px 14px; margin: 6px 8px 6px 0; border-radius: 6px; cursor: pointer; white-space: nowrap; user-select: none; }
.allcats > summary::-webkit-details-marker { display: none; }
.allcats[open] > summary { background: var(--ok-deep); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--ink); box-shadow: 0 18px 30px rgba(22, 33, 58, .18); }
.mega .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 28px; padding-top: 20px; padding-bottom: 24px; }
.mega h3 a { text-decoration: none; font-size: .98rem; }
.mega h3 a:hover { color: var(--ok-deep); text-decoration: underline; }
.mega ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mega li a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.mega li a:hover { color: var(--ink); text-decoration: underline; }
.toplinks { display: flex; overflow-x: auto; scrollbar-width: none; align-items: center; }
.toplinks::-webkit-scrollbar { display: none; }
.toplinks a { padding: 14px 12px; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.toplinks a:hover, .toplinks a[aria-current="page"] { border-bottom-color: var(--ok); }
.toplinks a.deal { color: var(--stop); }

/* ───── generic bits ───── */
main { min-height: 50vh; }
.section { padding-top: 28px; padding-bottom: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head a { font-weight: 600; font-size: .92rem; color: var(--ok-deep); }
.crumbs { font-size: .82rem; color: var(--ink-soft); padding: 14px 0 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; background: var(--ok); color: var(--white); line-height: 1.2; }
.btn:hover { background: var(--ok-deep); }
.btn[disabled], .btn.disabled { background: #a7b1c2; cursor: not-allowed; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--field); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-in { background: var(--ok-tint); color: var(--ok-deep); }
.st-low { background: var(--warn-tint); color: #8a5d00; }
.st-order { background: var(--info-tint); color: var(--info); }
.st-out { background: var(--stop-tint); color: var(--stop); }
.notice { border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; background: var(--field); border-left: 4px solid var(--ink); }
.notice.ok { background: var(--ok-tint); border-color: var(--ok); }
.notice.bad { background: var(--stop-tint); border-color: var(--stop); }
.notice.warn { background: var(--warn-tint); border-color: var(--warn); }
.card-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ───── hero banners ───── */
.hero { padding-top: 16px; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; position: relative; min-height: 240px; background: var(--ink) center/cover no-repeat; color: var(--white); display: flex; align-items: flex-end; text-decoration: none; }
@media (min-width: 720px) { .slide { min-height: 340px; align-items: center; } }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 33, 58, .92) 0%, rgba(22, 33, 58, .55) 55%, rgba(22, 33, 58, 0) 100%); }
.slide-text { position: relative; z-index: 1; padding: 24px; max-width: 560px; }
@media (min-width: 720px) { .slide-text { padding: 40px 48px; } }
.slide h2 { font-size: clamp(1.5rem, 3.6vw, 2.6rem); max-width: 18ch; }
.slide p { color: #dfe5f0; margin: 10px 0 18px; font-size: 1.05rem; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0 0; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--ink); width: 26px; border-radius: 5px; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service { background: var(--white); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.service strong { display: block; font-size: .95rem; }
.service svg { flex: none; color: var(--ok); }

/* ───── category tiles ───── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; align-items: center; gap: 12px; background: var(--field); border-radius: var(--radius); padding: 12px; text-decoration: none; transition: transform .12s; }
.tile:hover { transform: translateY(-2px); background: #dfe6ee; }
.tile img { width: 64px; height: 64px; object-fit: contain; flex: none; border-radius: 8px; background: var(--white); }
.tile span { min-width: 0; overflow-wrap: break-word; hyphens: auto; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.tile small { display: block; color: var(--ink-soft); font-weight: 500; font-size: .8rem; }
@media (max-width: 639px) { .tile { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; } .tile img { width: 56px; height: 56px; } }

/* ───── product cards ───── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid.wide { }
@media (min-width: 1100px) { .grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rail { scrollbar-width: thin; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
@media (min-width: 720px) { .rail { grid-auto-columns: minmax(200px, 23%); gap: 16px; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 64px) / 5); } }
.rail > * { scroll-snap-align: start; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line); }
.pcard .img { display: block; aspect-ratio: 1; border-radius: 8px; background: var(--field); overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: contain; }
.pcard .save { position: absolute; top: 16px; left: 16px; background: var(--stop); color: var(--white); font: 700 .74rem var(--mono); padding: 3px 7px; border-radius: 5px; }
.pcard .brandname { margin-top: 10px; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pcard h3 { font-size: .92rem; font-weight: 600; line-height: 1.3; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; }
.pcard h3 a:hover { text-decoration: underline; }
.price { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.was { color: var(--ink-soft); text-decoration: line-through; font-size: .85rem; font-weight: 500; margin-left: 6px; }
.pcard .price-row { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.pcard .price-row .was { margin-left: 0; }
.pcard .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.pcard form { position: relative; z-index: 1; margin-top: 10px; }
.pcard .btn { width: 100%; min-height: 40px; padding: 8px 10px; font-size: .88rem; }

/* ───── listing ───── */
.listing { display: grid; gap: 20px; padding-bottom: 40px; }
@media (min-width: 900px) { .listing { grid-template-columns: 250px 1fr; gap: 28px; } }
.listing-head { padding: 4px 0 14px; }
.listing-head p { margin: 6px 0 0; color: var(--ink-soft); max-width: 70ch; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subcats a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; text-decoration: none; font-size: .88rem; font-weight: 600; background: var(--white); }
.subcats a:hover { border-color: var(--ink); }
.filters > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .filters > summary { display: none; } }
.filter-body { display: grid; gap: 18px; padding: 14px 2px; }
.fgroup h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); color: var(--ink-soft); margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ok); }
.check small { color: var(--ink-soft); margin-left: auto; }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: .9rem; }
.toolbar select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--white); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; padding: 0 10px; }
.pager [aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-soft); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }

/* ───── product page ───── */
.product { display: grid; gap: 24px; padding: 8px 0 24px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; } }
.gallery .main { aspect-ratio: 1; background: var(--field); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs a { flex: none; width: 72px; height: 72px; border: 2px solid var(--line-soft); border-radius: 8px; overflow: hidden; background: var(--field); }
.thumbs a[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo .brandname { font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); text-decoration: none; }
.pinfo h1 { margin: 6px 0 8px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.sku { font: .8rem var(--mono); color: var(--ink-soft); }
.buybox { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 16px 0; padding: 16px 0; display: grid; gap: 12px; }
.buybox .price { font-size: 2rem; }
.buybox .save { display: inline-block; background: var(--stop); color: var(--white); font: 700 .78rem var(--mono); padding: 3px 8px; border-radius: 5px; margin-left: 8px; vertical-align: middle; }
.vatnote { font-size: .82rem; color: var(--ink-soft); }
.addrow { display: flex; gap: 10px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 52px; flex: none; }
.qty button { width: 40px; border: 0; background: var(--field); cursor: pointer; font-size: 1.2rem; font-weight: 700; }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addrow .btn { flex: 1; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks svg { flex: none; color: var(--ok); margin-top: 2px; }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; }
.tabs a { padding: 12px 14px; text-decoration: none; font-weight: 700; font-size: .95rem; border-bottom: 3px solid transparent; white-space: nowrap; color: var(--ink-soft); }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ok); }
.tabpanel { padding: 20px 0 8px; max-width: 80ch; }
.js .tabpanel[hidden] { display: none; }
.specs { width: 100%; border-collapse: collapse; font-size: .94rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs th { width: 38%; background: var(--field); font-weight: 600; }
.prose h2 { font-size: 1.25rem; margin: 20px 0 8px; }
.prose h3 { margin: 16px 0 6px; }
.prose ul { padding-left: 20px; }

/* ───── cart and checkout ───── */
.cart { display: grid; gap: 24px; padding: 8px 0 40px; align-items: start; }
@media (min-width: 900px) { .cart { grid-template-columns: 1fr 360px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cline { display: grid; grid-template-columns: 72px 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .cline { grid-template-columns: 88px 1fr auto auto; align-items: center; } }
.cline img { width: 72px; height: 72px; object-fit: contain; background: var(--field); border-radius: 8px; grid-row: span 3; }
@media (min-width: 640px) { .cline img { width: 88px; height: 88px; grid-row: auto; } }
.cline h3 { font-size: .98rem; }
.cline h3 a { text-decoration: none; }
.cline .qty { height: 40px; justify-self: start; }
.cline .ltotal { font-weight: 800; font-family: var(--mono); text-align: right; }
.cline .problem { color: var(--stop); font-weight: 600; font-size: .85rem; }
.summary { position: sticky; top: 12px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-family: var(--mono); font-weight: 600; }
.summary .grand { font-size: 1.2rem; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; font-family: var(--sans); }
.summary .vat { font-size: .82rem; }
.mini { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; font-size: .88rem; }
.mini li { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.mini span { font-family: var(--mono); font-weight: 600; }

.form { display: grid; gap: 20px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; min-width: 0; }
legend { font-weight: 800; padding: 0 6px; font-size: 1.05rem; }
.fields { display: grid; gap: 12px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--white); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: 4px; }
.field .err { font-size: .82rem; color: var(--stop); font-weight: 600; margin-top: 4px; }
.field.bad input, .field.bad select { border-color: var(--stop); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ok); background: var(--ok-tint); }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ok); flex: none; }
.choice .grow { flex: 1; }
.choice strong { display: block; }
.choice small { color: var(--ink-soft); }
.choice .fee { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.js [data-when-collect][hidden], .js [data-when-delivery-separate][hidden] { display: none; }

/* ───── account, order ───── */
.narrow { max-width: 460px; margin: 0 auto; padding: 24px 0 48px; }
.twocol { display: grid; gap: 24px; padding: 16px 0 48px; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; } }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-family: var(--mono); font-weight: 600; }
.table .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.status { font-weight: 700; font-size: .8rem; padding: 3px 9px; border-radius: 99px; background: var(--field); white-space: nowrap; }
.status.paid, .status.packed { background: var(--ok-tint); color: var(--ok-deep); }
.status.shipped, .status.delivered { background: var(--info-tint); color: var(--info); }
.status.pending_payment { background: var(--warn-tint); color: #8a5d00; }
.status.cancelled, .status.refunded { background: var(--stop-tint); color: var(--stop); }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0; }
.bank dt { color: var(--ink-soft); }
.bank dd { margin: 0; font-weight: 700; font-family: var(--mono); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 18px; list-style: none; padding: 0; }
.steps li { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--field); color: var(--ink-soft); }
.steps li.done { background: var(--ok-tint); color: var(--ok-deep); }
.steps li.now { background: var(--ink); color: var(--white); }

/* ───── footer ───── */
.footer { background: var(--ink); color: #c3cbe0; margin-top: 48px; font-size: .9rem; }
.footer .cols { display: grid; gap: 28px; padding: 40px 0 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer .about { grid-column: auto; } }
.footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--white); font-family: var(--mono); margin-bottom: 12px; }
.footer a { color: #dfe5f0; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer .brand { color: var(--white); margin-bottom: 10px; }
.footer .legal { border-top: 1px solid var(--ink-2); padding: 16px 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; }
.paylogos { display: flex; gap: 8px; flex-wrap: wrap; }
.paylogos span { border: 1px solid #3a4a6e; border-radius: 5px; padding: 3px 8px; font: 600 .72rem var(--mono); color: #dfe5f0; }
.brands-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .brands-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brands-strip a { display: flex; align-items: center; justify-content: center; height: 64px; border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-soft); background: var(--white); padding: 8px; }
.brands-strip a:hover { border-color: var(--ink); color: var(--ink); }
.brands-strip img { max-height: 40px; width: auto; }

.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%); background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 60; transition: transform .25s, visibility .25s; visibility: hidden; max-width: calc(100% - 32px); font-size: .92rem; }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.toast a { color: #8fe0b5; font-weight: 700; white-space: nowrap; }

/* ───── print (invoice) ───── */
.invoice { max-width: 820px; margin: 0 auto; padding: 28px 20px; background: var(--white); }
.invoice header { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 16px; margin-bottom: 18px; }
.invoice .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; font-size: .92rem; }
.invoice .totals { margin-left: auto; max-width: 320px; }
.printbar { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 16px; }
@media print {
  .printbar, .no-print { display: none !important; }
  body { background: #fff; }
  .invoice { padding: 0; }
}
