/* NWP shop: shipping-label neo-brutalism. Mobile first; breakpoints 34 / 48 / 60 rem. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --desk: #dfdfda;
  --lime: #d5fa36;
  --mute: #55574f;
  --line: 3px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-hover: 2px 2px 0 var(--ink);
  --sans: "Archivo", Arial, Helvetica, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { background: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.main { flex: 1; padding-block: 1.5rem 3rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 0.5rem; left: 0.5rem; padding: 0.75rem 1rem; background: var(--lime); border: var(--line) solid var(--ink); font-weight: 700; }

/* ---- typography ---- */
h1, h2, h3, .price {
  font-family: var(--sans);
  font-weight: 900;
  font-stretch: 66%;
  line-height: 0.95;
}
h1 { font-size: clamp(2.25rem, 10vw, 3.75rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 6vw, 2rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p + p { margin-top: 0.75rem; }
.lead { font-size: 1.125rem; max-width: 40rem; }
.muted { color: var(--mute); }
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* An order or return number inside an upper-cased heading or mono line: shown exactly as sent (the ids are case-sensitive). */
.nr { text-transform: none; }
.price { font-size: 1.75rem; font-variant-numeric: lining-nums; letter-spacing: 0.01em; }
.price-lg { font-size: 2.75rem; }
.vat { font-family: var(--mono); font-size: 0.75rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.04em; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 2.5rem 0 1rem; padding-bottom: 0.4rem; border-bottom: var(--line) solid var(--ink); }
.sec:first-child { margin-top: 0; }

/* ---- information pages: plain text, one readable column ---- */
.prose { max-width: 44rem; }
.prose > h2 { margin-top: 2.25rem; font-size: clamp(1.25rem, 5vw, 1.5rem); }
.prose section > h2 { font-size: clamp(1.25rem, 5vw, 1.5rem); }
.prose section { margin-top: 2.25rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose ul > li + li { margin-top: 0.4rem; }
.prose .toc { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding-left: 0; list-style: none; }
.prose .toc > li + li { margin-top: 0; }
/* Legal pages: numbered clauses, a one-column table of contents of the paragraphs, the withdrawal form's blank lines. */
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose ol > li + li { margin-top: 0.4rem; }
.prose li > ul { margin-top: 0.4rem; }
.prose .toc-legal { list-style: none; padding-left: 0; }
.prose .toc-legal > li + li { margin-top: 0.2rem; }
.withdrawal { padding: 1rem; border: var(--line) solid var(--ink); }
.withdrawal .withdrawal-fields { list-style: "– "; }
.withdrawal .withdrawal-fields > li + li { margin-top: 1rem; }
.fill { display: block; height: 1.75rem; border-bottom: 1px dotted var(--ink); }
.facts { border-top: var(--line) solid var(--ink); }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ink); }
.facts dt { font-weight: 700; }
.facts dd { text-align: right; }

/* ---- top bar, header, categories ---- */
/* One line always: below 34rem the Paczkomat fee goes, and on the narrowest phones the type gets smaller. */
.topbar { background: var(--ink); color: var(--paper); padding-block: 0.4rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 0 1rem; white-space: nowrap; }
.topbar-fee { display: none; }
.head { position: relative; border-bottom: var(--line) solid var(--ink); background: var(--paper); }
.head-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "menu logo logo" "search search nav";
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
}
.menu { grid-area: menu; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--lime); }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 25; max-height: calc(100dvh - 8rem); overflow-y: auto; padding: 0.5rem var(--gutter) 1rem; background: var(--paper); border-bottom: var(--line) solid var(--ink); }
.menu-panel ul + ul { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 2px solid var(--ink); }
.menu-panel a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.5rem; font-weight: 600; text-decoration: none; }
.menu-panel a[aria-current="page"] { background: var(--lime); border-bottom: 3px solid var(--ink); }
.logo { grid-area: logo; display: inline-flex; align-items: center; min-height: 2.75rem; justify-self: start; line-height: 0; }
.logo:hover { background: none; }
.logo img { width: 6rem; height: auto; }
.search { grid-area: search; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; min-height: 2.75rem; border-right: 0; }
.search .btn { box-shadow: none; flex: none; min-height: 2.75rem; }
.search .btn:hover, .search .btn:active { transform: none; box-shadow: none; background: var(--ink); color: var(--lime); }
.head-nav { grid-area: nav; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.head-nav .navlink { display: none; }
.navlink { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-decoration: none; padding: 0.4rem 0.25rem; }
.cats { display: none; border-bottom: 1px solid var(--ink); background: var(--paper); }
.cats .wrap { display: flex; gap: 0.25rem 0.5rem; overflow-x: auto; padding-block: 0.5rem; }
.cat { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.5rem; border-bottom: 3px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cat[aria-current="page"] { background: var(--lime); border-bottom-color: var(--ink); }
/* The checkout's slim header: the logo, help on the phone and the way back to the cart. */
.head-co { border-bottom: var(--line) solid var(--ink); background: var(--paper); }
.head-co .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding-block: 0.5rem; }
.head-co nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.head-co nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.6rem 1.25rem;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 700 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { background: var(--paper); box-shadow: var(--shadow-hover); transform: translate(2px, 2px); }
.btn:active { box-shadow: 0 0 0 var(--ink); transform: translate(4px, 4px); }
.btn-lime, .btn-lime:hover { background: var(--lime); }
.btn-ghost, .btn-ghost:hover { background: transparent; }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { background: var(--lime); box-shadow: none; transform: none; }
.btn-ghost:active { transform: none; box-shadow: none; background: var(--ink); color: var(--lime); }
.btn-sm { min-height: 2.75rem; padding: 0.4rem 0.9rem; font-size: 0.9375rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--desk); color: var(--mute); box-shadow: none; transform: none; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; cursor: pointer; }
.linkbtn:hover { background: var(--lime); color: var(--ink); }

/* ---- fields ---- */
.field { display: block; }
.field > .mono { display: block; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.3 var(--sans);
  appearance: none;
}
input[type="search"]::-webkit-search-cancel-button { appearance: none; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--mute); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 5px 5px 0 var(--lime); }
.field-hint { margin-top: 0.3rem; font-size: 0.875rem; color: var(--mute); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; }
.check input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--ink); }

/* ---- chips and notes ---- */
.chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip-new { background: var(--lime); }
.chip-ink { background: var(--ink); color: var(--lime); }
.note { padding: 0.9rem 1rem; border: var(--line) solid var(--ink); }
.note-ok { background: var(--lime); }
.note-warn { background: var(--paper); border-left-width: 1rem; }
.note > .mono { display: block; margin-bottom: 0.2rem; }
/* The added-to-cart confirmation: on paper, so its lime button stands out. */
.note-added { background: var(--paper); border-left: 1rem solid var(--lime); box-shadow: var(--shadow); }
.note-added > * + * { margin-top: 0.4rem; }
.note-added .row { gap: 0.6rem; margin-top: 0.75rem; }
/* The one-shot message above the page keeps off the breadcrumbs, and off its own shadow. */
.main > .note { margin-bottom: 1.25rem; }

/* ---- piece card ---- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.875rem; padding: 0 5px 5px 0; }
.piece {
  display: flex;
  flex-direction: column;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.piece:hover { background: var(--paper); box-shadow: var(--shadow-hover); transform: translate(2px, 2px); }
.piece:active { box-shadow: 0 0 0 var(--ink); transform: translate(4px, 4px); }
.piece-photo { flex: none; position: relative; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: var(--paper); border-bottom: var(--line) solid var(--ink); }
.piece-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.piece-photo .chip { position: absolute; left: 0; top: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-width: 0 var(--line) var(--line) 0; }
@media (max-width: 33.99rem) { .piece-photo .chip { padding-inline: 0.35rem; font-size: 0.6875rem; letter-spacing: 0; } }
.piece-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.65rem 0.75rem; flex: 1; }
.piece-title { font: 600 0.9375rem/1.25 var(--sans); height: 3.75em; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.piece-foot { margin-top: auto; }
.piece-photo .piece-count { right: 0; bottom: 0; left: auto; top: auto; border-width: var(--line) 0 0 var(--line); white-space: nowrap; }

/* ---- home and listings ---- */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; min-height: 2.75rem; padding: 0.4rem 0.9rem; background: var(--lime); color: var(--ink); border: var(--line) solid var(--ink); font-weight: 700; text-decoration: none; }
.banner:hover { background: var(--ink); color: var(--lime); }
.banner + .shelf, .shelf + .shelf { margin-top: 2rem; }
.shelf .sec { align-items: center; margin-top: 0; }
.shelf .sec h2 { min-width: 0; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding-bottom: 0.5rem; margin-bottom: 1rem; border-bottom: var(--line) solid var(--ink); }
.list-intro { margin-bottom: 1rem; }
/* The filters are a GET form around the results: a sidebar from 60rem, below it a panel opened by its link (:target). */
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 1.25rem; }
.list-bar > p { margin-right: auto; }
.list-sort { display: flex; align-items: center; gap: 0.5rem; }
.list-bar select { width: auto; min-height: 2.75rem; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.filters-head a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.facet { margin: 0 0 1.25rem; padding: 0; border: 0; min-width: 0; }
.facet legend { padding: 0; margin-bottom: 0.4rem; }
.facet-opt { align-items: center; min-height: 2.75rem; cursor: pointer; }
.facet-opt input { margin: 0; }
.facet-price { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.results { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; padding: 0; list-style: none; }
.chip-x, .chips-clear { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.3rem 0.75rem; font-weight: 700; }
.chip-x { border: 2px solid var(--ink); background: var(--lime); color: var(--ink); text-decoration: none; }
.chip-x:hover { background: var(--ink); color: var(--lime); }
@media (scripting: enabled) { .no-js { display: none; } }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* ---- condition block ---- */
.condition { border: var(--line) solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.condition-head { padding: 0.7rem 0.9rem; border-bottom: var(--line) solid var(--ink); }
.condition-head b { font: 900 1.25rem/1 var(--sans); font-stretch: 66%; text-transform: uppercase; }
.cells { display: grid; grid-template-columns: 1fr 1fr; }
.cells > div { padding: 0.6rem 0.9rem; border-bottom: 2px solid var(--ink); }
.cells > div:nth-child(odd) { border-right: 2px solid var(--ink); }
.cells dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.cells dd { margin-top: 0.15rem; font-weight: 700; }
.condition-note { padding: 0.8rem 0.9rem; font-size: 0.9375rem; line-height: 1.45; background: #f6f6f1; }

/* ---- piece page ---- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; color: var(--mute); }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--mute); }
.crumbs .crumb-back { display: none; }
.item { display: grid; gap: 1.5rem; margin-top: 1rem; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--desk); border: var(--line) solid var(--ink); }
.gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.own { position: absolute; left: 0; top: 0; padding: 0.2rem 0.55rem; background: var(--ink); color: var(--lime); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.thumbs a { display: block; aspect-ratio: 1 / 1; background: var(--desk); border: 2px solid var(--ink); }
.thumbs a[aria-current="true"] { outline: var(--line) solid var(--ink); outline-offset: 2px; }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.item-info > * + * { margin-top: 1rem; }
/* The product name is a sentence to read, not a poster: normal case and width, like on any shop. */
.item-info h1 { font-size: clamp(1.375rem, 4.5vw, 1.75rem); font-weight: 800; font-stretch: 100%; line-height: 1.2; text-transform: none; }
.item-info h1 + .muted { margin-top: 0.35rem; }
.item-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.stock { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; font-weight: 700; }
.stock a { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* A link in a sentence wraps like text; its padding gives the 44 px tap height without a box of its own. */
.promise a { padding-block: 0.875rem; }
.producer a { padding-block: 0.875rem; }
.item-info form > * + * { margin-top: 0.75rem; }
.qty select { width: 7rem; }
.promise { border-top: 2px solid var(--ink); }
.promise > li { padding: 0.4rem 0; border-bottom: 1px solid var(--ink); }
.promise summary { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; font-weight: 600; cursor: pointer; list-style: none; }
.promise summary::-webkit-details-marker { display: none; }
.promise summary::after { content: "+"; font-weight: 900; }
.promise details[open] summary::after { content: "\2212"; }
.ship { border-top: 2px solid var(--ink); }
.ship li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--ink); }
.promise .ship { border-top-width: 1px; }
.promise .ship li:last-child { border-bottom: 0; }
.item-section { margin-top: 2.5rem; }
.item-section .sec { margin-top: 0; }
.desc { max-width: 44rem; }
.desc > * + * { margin-top: 0.75rem; }
.desc h3, .desc h4 { font-size: 1.125rem; line-height: 1.2; }
.desc ul, .desc ol { padding-left: 1.25rem; }
.desc ul { list-style: disc; }
.desc ol { list-style: decimal; }
.desc img { display: block; max-width: 100%; margin-block: 1rem; }
.params { width: 100%; max-width: 44rem; border-collapse: collapse; }
.params th, .params td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.params th { width: 40%; font-weight: 700; }
.other { max-width: 44rem; }
.other-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.25rem 0.75rem; min-height: 2.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
/* The phone bar sits at the end of the page: it floats at the screen's bottom edge while there is more above it and settles in the flow at the end, so it never covers the last lines. */
.item-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem calc(var(--gutter) * -1) 0; padding: 0.6rem var(--gutter); background: var(--paper); border-top: var(--line) solid var(--ink); }
/* A phone: the breadcrumbs are one „← parent” link, and the thumbnails one row under the photo scrolling sideways, with room for the focus ring. */
@media (max-width: 47.99rem) {
  html:has(.item-bar) { scroll-padding-bottom: 5rem; }
  .crumbs .crumb-back { display: inline-flex; }
  .crumbs ol { display: none; }
  .thumbs { grid-auto-flow: column; grid-auto-columns: 3.5rem; grid-template-columns: none; overflow-x: auto; padding: 0.4rem; margin: 0.35rem -0.4rem 0; }
}

/* ---- cart ---- */
.cart { display: grid; gap: 1.5rem; align-items: start; }
.cart-lines { border-top: var(--line) solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.5rem 0.9rem; padding: 0.9rem 0; border-bottom: 2px solid var(--ink); }
.cart-photo { grid-row: span 2; aspect-ratio: 1 / 1; background: var(--desk); border: 2px solid var(--ink); }
.cart-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-info > * + * { margin-top: 0.35rem; }
.cart-title { font-size: 1.125rem; line-height: 1.2; text-transform: none; }
/* Padding on the inline link gives the 44 px tap height without growing the line. */
.cart-title a { padding-block: 0.75rem; text-decoration: none; }
.cart-title a:hover { text-decoration: underline; }
.cart-acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.cart-qty { display: flex; align-items: center; gap: 0.5rem; }
.cart-qty select { width: auto; min-height: 2.75rem; }
.cart-gone { background: #f6f6f1; }
.cart-sum { border: var(--line) solid var(--ink); background: var(--paper); box-shadow: var(--shadow); padding: 1rem; }
.cart-sum > * + * { margin-top: 0.9rem; }
.sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.3rem 0; }
.sum dt { font-weight: 700; }
.sum dd { margin: 0; font: 900 1.5rem/1.1 var(--sans); font-stretch: 66%; font-variant-numeric: lining-nums; }
.sum > .sum-total { border-top: 2px solid var(--ink); margin-top: 0.3rem; padding-top: 0.6rem; }
.cart-empty { max-width: 32rem; }

/* ---- stage bar ---- */
.stage { display: grid; grid-template-columns: 1fr; border: var(--line) solid var(--ink); background: var(--paper); }
.stage li { padding: 0.6rem 0.9rem; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 0.75rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; }
.stage li:last-child { border-bottom: 0; }
.stage .done { background: var(--ink); color: var(--paper); }
.stage .done::before { content: "✓ "; color: var(--lime); }
.stage .now { background: var(--lime); }
.stage-mini { padding: 0.6rem 0.9rem; border: var(--line) solid var(--ink); background: var(--lime); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

/* ---- checkout ---- */
.co { display: grid; gap: 1.5rem; align-items: start; }
.co-box { border: var(--line) solid var(--ink); background: var(--paper); }
.co-head { padding: 0.6rem 0.9rem; border-bottom: 2px solid var(--ink); font-size: 1.25rem; }
.co-body { padding: 0.9rem; }
.co-two { display: grid; gap: 1rem; }
.co-group { padding-top: 0.75rem; border-top: 2px solid var(--ink); }
.co-sum { padding: 0; }
.co-sum > :not(.co-head) { margin-inline: 1rem; }
.co-sum > :last-child { margin-bottom: 1rem; }
.co-sum > .btn-block { width: calc(100% - 2rem); }
.co-lines li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--ink); }
.co-lines img { display: block; width: 3rem; height: 3rem; object-fit: cover; background: var(--desk); border: 2px solid var(--ink); }
.co-cond { display: block; margin-top: 0.25rem; font-size: 0.875rem; }
.hold-bar { padding: 0.6rem 0.9rem; background: var(--ink); color: var(--lime); }
.hold-bar::before { content: "● "; }
.field-error { margin-top: 0.3rem; font-weight: 700; }
.field-error::before { content: "✕ "; }
input[aria-invalid="true"] { border-width: var(--line); border-left-width: 0.75rem; }
.opts { margin: 0; padding: 0; border: 0; }
.opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem; border: 2px solid var(--ink); cursor: pointer; }
.opt + .opt { margin-top: 0.5rem; }
.opt span { flex: 1; font-weight: 700; }
.opt input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); }
.opt:has(input:checked) { background: var(--lime); }
.point-row { display: grid; gap: 0.5rem; align-items: start; }
/* The lockers near the postcode: the delivery options' look, with the address and the details under the code. */
.opts legend { padding: 0; margin-bottom: 0.5rem; }
.opt .opt-note { display: block; margin-top: 0.15rem; font-weight: 400; text-transform: none; }
/* The company fields follow the tick box: shown once it is ticked, by CSS alone (without CSS they are always there). */
.invoice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.invoice-toggle { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--ink); }
.invoice-fields { grid-column: 1 / -1; }
.invoice-toggle:not(:checked) ~ .invoice-fields { display: none; }
/* The point map (map-picker.js): a dialog over the checkout with the map host's frame filling it. */
.map-dialog { width: min(60rem, calc(100vw - 2 * var(--gutter))); height: min(44rem, calc(100dvh - 2 * var(--gutter))); max-width: none; max-height: none; padding: 0; border: var(--line) solid var(--ink); box-shadow: var(--shadow); background: var(--paper); color: var(--ink); }
.map-dialog[open] { display: flex; flex-direction: column; }
.map-dialog::backdrop { background: rgb(17 17 17 / 0.6); }
.map-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.75rem; border-bottom: var(--line) solid var(--ink); }
.map-dialog-bar h2 { margin: 0; font-size: 0.875rem; }
.map-dialog-frame { flex: 1; width: 100%; min-height: 0; border: 0; }
.co-done { max-width: 40rem; }
.co-done-title { font-size: clamp(1.75rem, 7vw, 2.75rem); }
/* Only the chosen delivery's fields and total, where :has() works. Without it every group shows and every total, each with its method's name. */
@supports selector(:has(*)) {
  .co:has(input[name="method"][value="dpd-courier"]:checked) .co-pickup { display: none; }
  .co:has(input[name="method"][value="inpost-locker"]:checked) .co-courier, .co:has(input[name="method"][value="orlen-point"]:checked) .co-courier { display: none; }
  .co:has(input[name="method"][value="orlen-point"]:checked) .co-near { display: none; }
  .co-total { display: none; }
  .co:has(input[name="method"][value="inpost-locker"]:checked) .co-total[data-method="inpost-locker"] { display: block; }
  .co:has(input[name="method"][value="dpd-courier"]:checked) .co-total[data-method="dpd-courier"] { display: block; }
  .co:has(input[name="method"][value="orlen-point"]:checked) .co-total[data-method="orlen-point"] { display: block; }
}

/* ---- account ---- */
.acc { display: grid; gap: 1.5rem; align-items: start; }
.acc-main { min-width: 0; }
.acc-menu ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding-bottom: 0.75rem; border-bottom: var(--line) solid var(--ink); }
.acc-menu a, .acc-menu .linkbtn { font-weight: 700; }
.acc-menu a[aria-current="page"] { background: var(--lime); text-decoration: none; padding-inline: 0.25rem; }
.acc-title { font-size: clamp(1.75rem, 7vw, 2.75rem); }
.acc-box { border: var(--line) solid var(--ink); background: var(--paper); padding: 0.9rem; }
.acc-box h2 { font-size: 1.25rem; }
.acc-list { border: var(--line) solid var(--ink); background: var(--paper); }
.acc-row { display: grid; gap: 0.4rem 1rem; align-items: center; padding: 0.75rem 0.9rem; border-bottom: 2px solid var(--ink); }
.acc-row:last-child { border-bottom: 0; }
.acc-row .chip { justify-self: start; }
.acc-link { font-weight: 700; }
.acc-sum { font: 900 1.25rem/1.1 var(--sans); font-stretch: 66%; font-variant-numeric: lining-nums; }
.acc-items li, .acc-docs li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--ink); }
.acc-email dd { margin: 0; font-weight: 700; }
.acc-invoice { padding-top: 0.75rem; border-top: 2px solid var(--ink); }
.code { font-size: 1.25rem; font-weight: 700; }

/* ---- style guide helpers ---- */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.swatch { border: var(--line) solid var(--ink); background: var(--paper); }
.swatch i { display: block; height: 3.5rem; border-bottom: var(--line) solid var(--ink); }
.swatch span { display: block; padding: 0.4rem 0.6rem; }
.sw-ink i { background: var(--ink); }
.sw-paper i { background: var(--paper); }
.sw-desk i { background: var(--desk); }
.sw-lime i { background: var(--lime); }
.sw-mute i { background: var(--mute); }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cols { display: grid; gap: 1.5rem; }
.guide > section + section { margin-top: 3rem; }

/* ---- footer ---- */
.foot { background: var(--ink); color: var(--paper); border-top: var(--line) solid var(--ink); padding-block: 2rem 1.5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); overflow-wrap: anywhere; }
.foot a:hover, .foot .linkbtn:hover { background: var(--lime); color: var(--ink); }
.foot :focus-visible { outline-color: var(--lime); }
.foot .linkbtn { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
.foot h2 { margin-bottom: 0.3rem; font-size: 0.75rem; font-weight: 700; font-stretch: 100%; color: var(--lime); }
.foot-trust { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--mute); }
.foot-pay, .foot-ship { margin-top: 0.4rem; }
.foot-end { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--mute); color: var(--paper); }
.foot-end img { width: 6rem; height: auto; }
.foot-co { padding-block: 0.75rem; }
.foot-co ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* ---- breakpoints ---- */
@media (min-width: 34rem) {
  :root { --gutter: 1.5rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(5, 1fr); }
  .stage { grid-template-columns: repeat(5, 1fr); }
  .stage-3 { grid-template-columns: repeat(3, 1fr); }
  .stage-4 { grid-template-columns: repeat(4, 1fr); }
  .co-two { grid-template-columns: 1fr 1fr; }
  .point-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0; align-items: start; }
  .point-row > .field { display: contents; }
  .point-row > .field > * { grid-column: 1; }
  .point-row > .btn { grid-column: 2; grid-row: 2; align-self: stretch; }
  .stage li { padding: 0.6rem 0.25rem; border-bottom: 0; border-right: 2px solid var(--ink); text-align: center; }
  .stage li:last-child { border-right: 0; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .topbar-fee { display: inline; }
  .stage-mini { display: none; }
}
@media (min-width: 48rem) {
  .head-grid { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "menu logo search nav"; gap: 1rem 1.5rem; padding-block: 0.75rem; }
  .head-nav .navlink { display: inline-flex; }
  .search input, .search .btn { min-height: 3rem; }
  .logo img { width: 7.875rem; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .item { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .item-info { position: sticky; top: 1rem; align-self: start; }
  .item-bar { display: none; }
  .cart { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; }
  .co { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; }
  .co-sum { position: sticky; top: 1rem; }
  .acc { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
  .acc-menu ul { display: block; padding-bottom: 0; border-bottom: 0; }
  .acc-menu li + li { margin-top: 0.6rem; }
  .acc-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .piece-title { font-size: 1rem; }
}
@media (min-width: 60rem) {
  .head-grid { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search nav"; }
  .menu { display: none; }
  .cats { display: block; }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .listing { display: grid; grid-template-columns: 15rem minmax(0, 1fr); grid-template-areas: "filters bar" "filters results"; gap: 0 2rem; align-items: start; }
  .list-bar { grid-area: bar; }
  .filters { grid-area: filters; }
  .results { grid-area: results; }
  .filters-open, .filters-head a { display: none; }
  /* The sidebar takes a column's room. */
  .listing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A phone: the header's second row (the search and the cart with its count) sticks, about 63 px of the 115; the first row (the menu and the logo) scrolls away through the negative top. The menu panel hangs from the header's bottom edge. */
@media (max-width: 47.99rem) {
  html { scroll-padding-top: 5rem; }
  .head { position: sticky; top: -3.25rem; z-index: 20; }
  .head-grid { grid-template-rows: 2.75rem auto; }
  .head .search input { min-height: 2.75rem; }
  .search .btn { padding-inline: 0.75rem; }
  .head-nav .btn { padding-inline: 0.6rem; }
}
/* A phone's checkout says the step in one line instead of the stacked bar. */
@media (max-width: 33.99rem) {
  .co-page .stage { display: none; }
}
@media (max-width: 23.99rem) {
  .topbar { font-size: 0.6875rem; letter-spacing: 0; }
  .logo img { width: 5rem; }
}

@media (max-width: 59.99rem) {
  /* A shelf below the desktop width is one row that scrolls sideways. The row keeps room for the focus ring (3 px outline + 3 px offset), which overflow would clip; the negative margin cancels the padding. */
  .grid.shelf-row { grid-auto-flow: column; grid-auto-columns: minmax(10rem, 44%); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 0.4rem 0.4rem 0.5rem; margin: -0.4rem -0.4rem 0; scroll-padding-inline: 0.4rem; }
  .shelf-row > .piece { scroll-snap-align: start; }
  .filters { display: none; }
  .filters:target { display: block; position: fixed; inset: 0; z-index: 30; overflow-y: auto; padding: 1rem var(--gutter) 2rem; background: var(--paper); }
}

/* ---- motion: the shadow shift is switched off ---- */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .piece:hover, .piece:active { transform: none; }
  .btn:hover, .piece:hover { box-shadow: var(--shadow); }
  .btn-ghost:hover { box-shadow: none; }
}

/* The withdrawal form prints as the form alone: no shop header, department bar, footer or notes around it. */
@media print {
  .print-plain .skip, .print-plain .topbar, .print-plain .head, .print-plain .cats, .print-plain .foot, .print-plain .no-print { display: none; }
  .print-plain .main { padding: 0; }
  .print-plain .withdrawal { border: 0; padding: 0; }
  .print-plain a { text-decoration: none; }
}
