:root {
  color-scheme: light;     /* light only, no dark mode */
  --red: #ee1515;          /* Poké Ball red */
  --red-deep: #c40c0c;
  --yellow: #ffcb05;       /* logo yellow */
  --yellow-ink: #2a2100;
  --blue: #3b4cca;         /* logo blue */
  --navy: #2a3a9e;

  --bg: #f3f5fb;
  --surface: #ffffff;
  --text: #1b2140;
  --muted: #5d6585;
  --line: #e2e6f1;
  --chip: #edf0f9;
  --row-hover: rgba(255, 203, 5, 0.13);
  --shadow: 0 1px 2px rgba(27, 42, 99, 0.06), 0 4px 14px rgba(27, 42, 99, 0.06);

  --accent: var(--red);
  --accent-ink: #ffffff;
  --good: #198a4a;
  --warn: #b97b00;
  --bad: #d4243f;
  --radius: 10px;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1, h2, .brand { font-weight: 800; letter-spacing: -0.01em; }

/* Header: red bar with a yellow edge */
header.top {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  padding: 12px 24px;
  background: var(--red);
  border-bottom: 4px solid var(--yellow);
  color: #fff;
}
header.top .brand { text-decoration: none; font-size: 21px; display: flex; align-items: center; gap: 8px; }
header.top .brand .bolt {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); color: var(--yellow-ink); font-size: 17px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
header.top .brand span.y { color: var(--yellow); }
header.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
header.top nav a {
  text-decoration: none; padding: 6px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.85); font-weight: 700;
}
header.top nav a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
header.top nav a.on { background: var(--yellow); color: var(--yellow-ink); }
header.top .spacer { flex: 1; }
header.top .admin { font-size: 13px; color: rgba(255, 255, 255, 0.85); }

main { padding: 24px; flex: 1; width: 100%; }
h1 { font-size: 28px; margin: 0 0 4px; color: var(--navy); }
h2 { font-size: 19px; margin: 28px 0 10px; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.banner { background: var(--chip); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.banner.err { color: var(--bad); border-left-color: var(--bad); white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: 13px; }

form.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
input, select, textarea, button {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px;
}
form.filters input, form.filters select { border-radius: 999px; padding: 8px 14px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255, 203, 5, 0.55); border-color: var(--yellow); }
textarea { width: 100%; font-family: ui-monospace, monospace; font-size: 13px; }
button, .btn {
  cursor: pointer; background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  text-decoration: none; display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
button:hover, .btn:hover { filter: brightness(1.06); }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button[disabled] { opacity: 0.5; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); font-weight: 800;
  white-space: nowrap; background: var(--chip);
}
tbody tr:hover td { background: var(--row-hover); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.ppp { font-weight: 800; font-size: 16px; color: var(--blue); }
td img.thumb { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.title-cell a { text-decoration: none; font-weight: 700; }
.title-cell a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.meta { color: var(--muted); font-size: 13px; }
.chip { display: inline-block; background: var(--yellow); color: var(--yellow-ink); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.av-in_stock { color: var(--good); font-weight: 700; }
.av-out_of_stock { color: var(--bad); }
.av-preorder { color: var(--warn); font-weight: 700; }
.av-unknown { color: var(--muted); }
.down { color: var(--good); font-size: 12px; font-weight: 700; }
.up { color: var(--bad); font-size: 12px; font-weight: 700; }
.st-ok { color: var(--good); }
.st-broken, .st-failed { color: var(--bad); }
.st-generating, .st-pending { color: var(--warn); }
.lowconf { border-bottom: 1px dotted var(--warn); cursor: help; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.f input, label.f select { color: var(--text); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.show-sm { display: none; }

footer.site {
  padding: 18px 24px 26px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
}
footer.site a { color: var(--muted); }

.login { max-width: 360px; margin: 40px auto; }

@media (max-width: 640px) {
  main { padding: 16px; }
  header.top { padding: 10px 16px; gap: 10px; }
  h1 { font-size: 23px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  th, td { padding: 8px; }
  footer.site { padding: 16px; }
}

/* Overview grouped per product */
.pgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 16px; align-items: start; }
.pgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pg-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pg-img { flex: 0 0 64px; height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.pg-img img { width: 100%; height: 100%; object-fit: contain; }
.pg-img span { font-size: 26px; }
.pg-title { flex: 1; min-width: 0; }
.pg-title a { text-decoration: none; font-size: 17px; color: var(--navy); }
.pg-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.pg-best { text-align: right; white-space: nowrap; }
.pg-ppp { font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.pg-ppp span { font-size: 13px; font-weight: 600; color: var(--muted); }
.pg-admin { padding: 6px 16px; background: var(--chip); }
.offers { list-style: none; margin: 0; padding: 4px 0; }
.offer { display: grid; grid-template-columns: minmax(130px, 2fr) minmax(76px, 0.8fr) minmax(90px, 0.9fr) minmax(96px, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; }
.offer + .offer { border-top: 1px dashed var(--line); }
.offer.best { background: var(--row-hover); }

.o-shop { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-price, .o-ppp { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o-ppp { font-weight: 800; color: var(--blue); }
.o-stock { font-size: 13px; white-space: nowrap; }
.o-go { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--red); white-space: nowrap; }
.o-go:hover { text-decoration: underline; }
.pg-more { display: block; padding: 10px 16px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--blue); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .pgroups { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr auto; row-gap: 2px; }
  .o-price { display: none; }
  .o-stock { grid-column: 1; }
  .o-go { text-align: right; }
}

/* Detail page */
.pgroup.detail { margin-bottom: 8px; }
.pg-variants { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.o-title { display: block; font-weight: 400; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.soldout { border-top: 1px solid var(--line); }
details.soldout summary { cursor: pointer; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
details.soldout .offer { opacity: 0.65; }

/* Set blocks on the overview: one line per product */
.set-name { font-size: 18px; color: var(--navy); }
.offer.prod { grid-template-columns: minmax(150px, 1.6fr) minmax(90px, 0.8fr) minmax(0, 1.2fr) minmax(64px, 0.6fr) auto; }
.offer.prod .o-shop { color: var(--text); text-decoration: none; }
.offer.prod .o-shop:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.o-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-count { text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .offer.prod { grid-template-columns: 1fr auto; }
  .offer.prod .o-count { display: none; }
}

/* "Alleen op voorraad" switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line); transition: background .15s; flex: none; }
.switch .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .slider { background: var(--good); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 3px solid rgba(255, 203, 5, 0.55); }
form.filters .switch { padding: 0 6px; }
.list-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.offers:not(.show-all) .offer.is-soldout { display: none; }
.offer.is-soldout { opacity: 0.6; }

/* ---------- Search ---------- */
.searchbar { display: flex; gap: 8px; max-width: 720px; margin: 4px 0 14px; }
.searchbar input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font-size: 16px;
                   color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.searchbar input:focus { outline: none; border-color: var(--blue); }
.searchbar button { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); padding: 10px 22px; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Filter bar ---------- */
.filterbar { display: grid; gap: 10px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-f {
  text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); white-space: nowrap;
  transition: transform .12s, background .12s, border-color .12s;
}
.chip-f:hover { border-color: var(--yellow); transform: translateY(-1px); }
.chip-f.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg a.on { background: var(--red); color: #fff; }
.filter-selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-selects select { border-radius: 999px; padding: 7px 12px; font-size: 14px; }
.active-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip-x { text-decoration: none; background: var(--chip); border-radius: 999px; padding: 2px 10px; color: var(--text); font-weight: 700; }
.chip-x:hover { background: var(--row-hover); }

/* ---------- Cards (no hover effects) ---------- */
.pgroup { position: relative; }
.deal { display: inline-block; margin-left: 6px; vertical-align: 2px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
        background: var(--yellow); color: var(--yellow-ink); }
.ticon { display: inline-block; width: 1.5em; }
.savings { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--good); }
@media (prefers-reduced-motion: reduce) {
  .chip-f { transition: none; }
}

@media (max-width: 640px) {
  .searchbar button { padding: 10px 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .seg { overflow-x: auto; max-width: 100%; }
}

@media (max-width: 640px) {
  .savings { flex-basis: 100%; }
  .pg-variants .btn { padding: 6px 12px; }
}

/* ---------- Home: set cards, three side by side ---------- */
.pgroups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pgroups { grid-template-columns: 1fr; } }
.pgroup.home { display: flex; flex-direction: column; }
/* Set header: a band in the set's own colour (from its product photos) with the cut-out product on it. */
.pg-cover { --h: 228; --s: 25%; position: relative; display: grid; place-items: center; height: 200px; padding: 16px 12px;
            background: #f5f6f8; border-bottom: 1px solid var(--line);
            text-decoration: none; overflow: hidden; }
.pg-cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pg-cover img.cut { filter: drop-shadow(0 3px 4px rgba(20, 25, 60, .14)); }
.pg-cover img.tile { width: auto; max-width: 100%; background: #fff; border-radius: 10px; padding: 6px;
                     box-shadow: 0 4px 14px rgba(20, 25, 60, .15); }
.pg-cover > span:first-child { font-size: 48px; }
.pg-cover .deal { position: absolute; top: 10px; left: 10px; margin: 0; }
.pgroup.home .pg-head { padding: 12px 14px; }
.pgroup.home .set-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer.prod { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 10px; padding: 7px 14px; }

.p-thumb { width: 44px; height: 44px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
           display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.p-thumb img { width: 100%; height: 100%; object-fit: contain; }
.p-thumb span { font-size: 20px; }
.p-main { min-width: 0; text-decoration: none; color: var(--text); }
.p-main .meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-main strong { font-size: 14px; }
.p-main:hover strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.offer.prod .o-go { font-size: 18px; line-height: 1; padding: 2px 4px; }
.pgroup.home .pg-more { margin-top: auto; }
@media (max-width: 640px) {
  .offer.prod { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
  .p-thumb { width: 40px; height: 40px; }
  .pg-cover { height: 160px; }
}
/* Composed header: the set's products fanning out from the biggest one in the middle. Each photo gets a zone
   (--x centre, --w width, --h height, --b lift, in % of the header) and is fitted into it with object-fit. */
.pg-cover .stack { position: relative; width: 100%; height: 100%; max-width: 500px; }
.pg-cover .stack img { position: absolute; left: calc(var(--x) * 1% - var(--w) * .5%); bottom: calc(var(--b) * 1%);
                       width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); object-fit: contain;
                       object-position: center bottom; transform: rotate(var(--r));
                       filter: drop-shadow(0 3px 4px rgba(20, 25, 60, .16)); }

/* Admin: choose photos */
.ph-section { margin-bottom: 14px; }
.ph-section:hover { transform: none; }
.ph-auto { margin-left: auto; }
.ph-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.ph-choice { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ph-choice button { width: 132px; height: 112px; padding: 8px; border-radius: 10px; cursor: pointer;
                    background: hsl(228 25% 95%); border: 2px solid var(--line); }
.ph-choice button:hover { border-color: var(--blue); }
.ph-choice.on button { border: 3px solid var(--red); background: hsl(0 80% 96%); }
.ph-choice img { width: 100%; height: 100%; object-fit: contain; }
.ph-choice img.cut { filter: drop-shadow(0 3px 5px rgba(20, 25, 60, .2)); }
.soon { font-weight: 800; color: var(--red); }
.ph-section .ph-grid { max-height: 300px; overflow-y: auto; }
.o-review { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--warn); text-decoration: none; }
.o-review:hover { text-decoration: underline; }
.o-warn { display: block; margin-top: 3px; width: fit-content; font-size: 12px; font-weight: 800; color: #8a2a00;
          background: #ffe9d6; border-radius: 6px; padding: 1px 7px; }
.o-reviews { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-top: 2px; }
.o-reviews .o-review { margin-top: 0; }
.o-tp { font-size: 12px; text-decoration: none; }
.o-tp:hover { text-decoration: underline; color: var(--text); }

/* ---------- Product page ---------- */
.d-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; gap: 28px; align-items: center;
          padding: 18px 20px; border-bottom: 1px solid var(--line); }
/* The product stands free on the page, no box around it */
.d-photo { min-height: 160px; display: flex; align-items: center; justify-content: center; }
/* A fixed max-height in px, not %: Safari doesn't shrink an image to a % of its flex container */
.d-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 220px; object-fit: contain; }
.d-photo img.cut { filter: drop-shadow(0 8px 14px rgba(20, 25, 60, .25)); }
.d-photo img.tile { width: auto; max-width: 100%; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 4px 14px rgba(20, 25, 60, .15); }
.d-photo span { font-size: 56px; }
.d-kicker { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.d-info h1 { margin: 2px 0 10px; font-size: 32px; color: var(--navy); line-height: 1.1; }
.d-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.d-stat { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.d-stat.good { background: #e3f5ea; color: var(--good); }
.d-variants { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.d-variants a { text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.d-variants a:hover { color: var(--text); }
.d-variants a.on { background: var(--red); color: #fff; }
.d-best { min-width: 250px; padding: 16px 18px; border-radius: 12px; background: #fff8dc; border: 2px solid var(--yellow); text-align: left; }
.d-label { font-size: 13px; font-weight: 800; color: var(--yellow-ink); text-transform: uppercase; letter-spacing: .02em; }
.d-ppp { font-size: 36px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.d-ppp span { font-size: 15px; font-weight: 700; color: var(--muted); }
.d-go { display: block; margin-top: 12px; text-align: center; background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; }
.d-best .o-warn { margin-top: 8px; }

.detail .list-bar { background: var(--surface); }
/* Shop table: header row + rows on the same grid */
/* Flat rows: one line each */
.detail .offer, .offer-head { display: grid; grid-template-columns: minmax(0, 1fr) 190px 128px 88px 170px 116px;
                              gap: 22px; align-items: center; padding: 7px 20px; }
.offer-head { padding-top: 8px; padding-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line);
              font-size: 12px; font-weight: 700; color: var(--muted); }
.offer-head span:nth-child(4), .offer-head span:nth-child(5) { text-align: right; }
.detail .offer + .offer { border-top: 1px solid var(--line); }
.detail .offer.best { background: #fffbea; }
.detail .offer.best .o-shop::before { content: none; }
.detail .o-shop { display: flex; gap: 10px; align-items: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.detail .o-shop .o-warn { margin: 0; flex: none; }
.o-logo { position: relative; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line);
          background: var(--chip); display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--muted); overflow: hidden; }
.o-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.o-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.o-shopname { font-size: 15px; font-weight: 800; }
.o-name .o-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-badge { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 11px; font-weight: 800; padding: 1px 8px;
           border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); }
.o-rev { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.score { display: inline-block; min-width: 42px; text-align: center; font-size: 12px; font-weight: 800; padding: 1px 6px;
         border-radius: 6px; text-decoration: none; }
.score.hi { background: #e3f5ea; color: var(--good); }
.score.mid { background: #fff1d6; color: #9a6400; }
.score.lo { background: #fde4e7; color: var(--bad); }
.o-tp { font-size: 12px; color: var(--muted); text-decoration: none; }
.o-rev .meta { overflow: hidden; text-overflow: ellipsis; }
.o-tp:hover { text-decoration: underline; color: var(--text); }
.detail .o-price { text-align: right; color: var(--muted); }
.detail .o-ppp { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.o-ppp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.o-ppp-row strong { font-size: 15px; color: var(--blue); }
.bar { display: block; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--good); }
.detail .o-stock { text-align: left; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill.av-in_stock { background: #eef9f2; color: var(--good); border-color: #cdebd8; }
.pill.av-preorder { background: #fff6e3; color: #9a6400; border-color: #f3dfae; }
.pill.av-out_of_stock { background: #fdeef0; color: var(--bad); border-color: #f6cdd3; }
.pill.av-unknown { background: var(--chip); color: var(--muted); }
.detail .o-go { justify-self: end; padding: 5px 12px; border-radius: 8px; background: var(--red); color: #fff; font-size: 13px; }
.detail .o-go:hover { background: var(--red-deep); text-decoration: none; }
.chart-card { height: 300px; }

@media (max-width: 1100px) {
  .detail .offer, .offer-head { grid-template-columns: minmax(0, 1fr) 170px 120px 84px 150px 110px; gap: 14px; }
}
@media (max-width: 1000px) {
  .d-hero { grid-template-columns: 180px minmax(0, 1fr); }
  .d-trend { grid-column: 1 / -1; }
  .d-photo img { max-height: 180px; }
}
@media (max-width: 640px) {
  .d-hero { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .d-photo img { max-height: 240px; }
  .d-info h1 { font-size: 26px; }
  .offer-head { display: none; }
  .detail .offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "shop ppp" "rev stock" "price go";
                   gap: 4px 10px; padding: 10px 14px; }
  .detail .o-shop { grid-area: shop; flex-wrap: wrap; white-space: normal; row-gap: 4px; }
  .detail .o-name { white-space: normal; flex: 1 1 auto; min-width: 65%; }
  .detail .o-shop .o-warn { margin-left: 36px; }
  .detail .o-ppp { grid-area: ppp; min-width: 110px; }
  .detail .o-rev { grid-area: rev; }
  .detail .o-stock { grid-area: stock; text-align: right; }
  .detail .o-price { grid-area: price; text-align: left; }
  .detail .o-go { grid-area: go; }
  .o-tp { margin-left: 0; }
  .chart-card { height: 240px; }
}
.noreview { display: inline-block; font-size: 12px; font-weight: 800; color: #8a2a00; background: #ffe9d6; border-radius: 6px; padding: 1px 7px; }
.offer-sep { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 10px 18px; background: #fff4e8;
              border-top: 2px solid #f3c99a; border-bottom: 1px solid var(--line); color: #8a2a00; font-size: 13px; }
.offer-sep .meta { color: #8a4a1a; }
.offers:not(.show-all) .offer-sep.all-soldout { display: none; }
.d-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.d-trend { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.d-trend-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.d-trend-head strong { color: var(--blue); font-size: 16px; }
.d-trend-chart { position: relative; flex: 1; min-height: 120px; }
.d-trend-legend { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.d-trend-legend .k { display: inline-block; width: 14px; height: 0; border-top: 2.5px solid var(--red); }
.d-trend-legend .k.mid { border-top: 2px dashed var(--blue); margin-left: 8px; }

/* Coming soon page for visitors outside NL/BE */
.soon-main { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.soon-card { max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; box-shadow: var(--shadow); }
.soon-card h1 { font-size: 26px; color: var(--navy); margin: 10px 0; line-height: 1.2; }
.soon-card h2 { font-size: 18px; color: var(--navy); margin: 0 0 6px; }
.soon-card p { color: var(--muted); margin: 0 0 8px; }
.soon-card hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.soon-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); }
.d-stat.pre { background: #fff1d6; color: #9a6400; }

/* Line icons (templates/_icon_sprite.html) */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; }
.chip-f .ic { color: var(--muted); }
.chip-f.on .ic { color: currentColor; }
.p-thumb .ic-thumb { width: 22px; height: 22px; color: var(--muted); }

/* Filters as dropdowns (all screen sizes): one row on desktop, a two-column grid on phones.
   The type chips and language buttons stay in the HTML, hidden, in case we want them back. */
.filterbar .chips, .filterbar .seg { display: none; }
.filter-row { display: block; }
.filter-selects { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-selects .switch { order: 10; margin-left: auto; }
@media (max-width: 640px) {
  .filter-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-selects select { width: 100%; min-width: 0; padding: 9px 32px 9px 12px; background-position: right 10px center; }
  .filter-selects .switch { margin-left: 0; font-size: 13px; }
}

/* Dropdowns: our own chevron, with room for it, instead of the browser's arrow */
select { -webkit-appearance: none; appearance: none; padding-right: 34px;
         background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6585' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px 14px; }
.filter-selects select { padding-right: 34px; cursor: pointer; }

/* Multi-select dropdowns (static/multiselect.js) */
.ms { position: relative; }
.ms-btn { display: flex; align-items: center; max-width: 240px; padding: 7px 34px 7px 12px; border-radius: 999px; font-size: 14px;
          font-weight: 400; color: var(--text); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6585' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px 14px;
          border: 1px solid var(--line); cursor: pointer; text-align: left; }
.ms-btn:hover { filter: none; border-color: #c9cfe2; }
.ms-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms.has-value .ms-btn { border-color: var(--blue); color: var(--blue); font-weight: 700; }
.ms-panel { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 280px; background: var(--surface);
            border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(27, 42, 99, .14); overflow: hidden; }
.ms-search { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 12px; font-size: 14px; outline: none; }
.ms-search:focus { outline: none; border-color: var(--line); }
.ms-list { max-height: 300px; overflow-y: auto; padding: 4px 0; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.ms-opt:hover { background: var(--chip); }
.ms-opt input { width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.ms-opt[hidden] { display: none; }
.ms-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.ms-foot button { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.ms-clear { background: transparent; color: var(--muted); border-color: var(--line); }
.ms-done { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 640px) {
  .ms-btn { max-width: none; width: 100%; padding: 9px 32px 9px 12px; background-position: right 10px center; }
  .ms-panel { width: min(320px, calc(100vw - 32px)); }
  .filter-selects .ms:nth-of-type(even) .ms-panel { left: auto; right: 0; }
}
.d-kicker a { color: inherit; text-decoration: none; }
.d-kicker a:hover { text-decoration: underline; }
.d-info h1 { display: flex; align-items: center; gap: 10px; }
.d-type-ic { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.6; }
.d-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -2px 0 12px; }
.d-packs { font-size: 18px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 8px; padding: 3px 12px; }
@media (max-width: 640px) {
  .d-type-ic { width: 26px; height: 26px; }
  .d-packs { font-size: 17px; }
}

/* Number of packs as a label next to the product type */
.p-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.p-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk { flex: none; font-size: 12px; font-weight: 800; color: var(--blue); background: #e9ecfb; border-radius: 6px; padding: 1px 7px; }
/* "/pack" after a price: a bit of air and a lighter weight */
.per { margin-left: 3px; font-size: .72em; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
.pg-ppp .per { font-size: 14px; }
@media (max-width: 640px) {
  .p-name { flex-wrap: wrap; row-gap: 2px; }
  .p-name strong { white-space: normal; }
}

/* Set page (one set chosen): hero + a card per product */
.set-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center;
            background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.set-hero-img { height: 240px; background: #f5f6f8; display: grid; place-items: center; padding: 18px; border-right: 1px solid var(--line); }
.set-hero-img .stack { position: relative; width: 100%; height: 100%; max-width: 520px; }
.set-hero-img .stack img { position: absolute; left: calc(var(--x) * 1% - var(--w) * .5%); bottom: calc(var(--b) * 1%);
                           width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); object-fit: contain; object-position: center bottom;
                           transform: rotate(var(--r)); filter: drop-shadow(0 3px 4px rgba(20, 25, 60, .16)); }
.set-hero-img img.single { max-width: 100%; max-height: 200px; object-fit: contain; }
.set-hero-info { padding: 20px 24px 20px 0; }
.set-hero-info h1 { margin: 2px 0 6px; font-size: 34px; color: var(--navy); line-height: 1.1; }
.set-hero-price { margin-top: 10px; }
.set-hero-price strong { font-size: 30px; color: var(--blue); }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
         overflow: hidden; text-decoration: none; color: var(--text); }
.pcard:hover { border-color: #c9cfe2; }
.pcard:hover .p-name strong { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.pcard.best { border-color: var(--yellow); }
.pcard-img { position: relative; height: 170px; background: #f5f6f8; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.pcard-img img { max-width: 100%; max-height: 140px; object-fit: contain; }
.pcard-img img.cut { filter: drop-shadow(0 3px 4px rgba(20, 25, 60, .14)); }
.pcard-img img.tile { background: #fff; border-radius: 8px; padding: 4px; }
.pcard-img .deal { position: absolute; top: 10px; left: 10px; margin: 0; }
.pcard-ic { width: 48px; height: 48px; color: var(--muted); }
.pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.pcard-price strong { font-size: 22px; color: var(--blue); }
@media (max-width: 760px) {
  .set-hero { grid-template-columns: 1fr; gap: 0; }
  .set-hero-img { border-right: 0; border-bottom: 1px solid var(--line); height: 200px; }
  .set-hero-info { padding: 16px; }
  .set-hero-info h1 { font-size: 28px; }
  .pcards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-img { height: 130px; padding: 10px; }
  .pcard-img img { max-height: 110px; }
  .pcard-price strong { font-size: 18px; }
  .pcard-body { padding: 10px; }
}
