/* Bladeren en filteren (vergelijk.html), "Begin hier" en productpagina-uitleg. Mobiel eerst. */
.lead { max-width: 640px; font-size: 1.05rem; }
.small { font-size: .85rem; }
.browse-top h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.h-sec { font: 800 1.35rem var(--display); font-style: normal; text-transform: none; margin: 28px 0 12px; }
.btn, .chip, .info, select, input { min-height: 44px; }   /* ruime tikdoelen op mobiel */
.chip { min-height: 40px; }


/* spellen en sets */
.game-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.game-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); }
.game-card:hover { border-color: var(--blue-2); color: var(--text); }
.game-card small, .set-card small { display: block; color: var(--muted); }
.set-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.set-card { flex: 0 0 168px; scroll-snap-align: start; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); align-content: start; }
.set-card:hover { border-color: var(--blue-2); color: var(--text); }
.set-card b { font-size: .95rem; line-height: 1.25; }

/* indeling */
.browse-layout { display: grid; gap: 20px; grid-template-columns: 1fr; }
.filter-toggle { width: 100%; margin-bottom: 14px; }
.filters-wrap { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.filters-wrap.open { display: block; }
.fgroup { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { font: 800 .8rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.fgroup h3 label { font: inherit; }
.fgroup summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.opt label { display: flex; align-items: center; gap: 10px; flex: 1; min-height: 44px; cursor: pointer; }
.opt input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--blue); flex: none; }
.info { width: 28px; height: 28px; min-height: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--cyan); font: italic 700 .85rem Georgia, serif; cursor: pointer; flex: none; }
.info:hover, .info[aria-expanded="true"] { background: rgba(56,189,248,.15); border-color: var(--cyan); }
.tip { flex-basis: 100%; margin: 0 0 8px 30px; padding: 10px 12px; background: var(--bg-2); border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; font-size: .88rem; color: var(--muted); }
.range { display: flex; gap: 10px; flex-wrap: wrap; }
.range label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.range input { width: 92px; }
.fgroup select { width: 100%; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.sortbox { white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.active-chips { margin-bottom: 8px; }
.chip.on { background: rgba(30,107,255,.18); border-color: var(--blue); color: #fff; }

/* productkaarten: op mobiel een compacte lijst, vanaf tablet een raster */
.browse .products { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.browse .product { flex-direction: row; gap: 12px; padding: 10px; align-items: stretch; }
.browse .product .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tbadge { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(56,189,248,.4); border-radius: 99px; padding: 2px 9px; }
.browse .product .n { font-size: .98rem; overflow-wrap: anywhere; }
.product .kort { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: auto; }
.product .bp small { font: 600 .75rem var(--font); color: var(--muted); }
.product .per { font-size: .82rem; color: var(--yellow); font-weight: 700; }
.product .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; }
.product .ok { color: #4ade80; font-weight: 700; }
.product .out { color: #fbbf24; font-weight: 700; }
@media (min-width: 640px) {
  .browse .products { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
  .browse .product { flex-direction: column; padding: 14px; }
}
@media (min-width: 900px) {
  .filter-toggle { display: none; }
  .browse-layout { grid-template-columns: 270px 1fr; align-items: start; }
  .filters-wrap { display: block; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; margin-bottom: 0; }
}
.empty { padding: 28px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 14px; }
.gloss-box { margin: 28px 0 16px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--card); }
.gloss-box summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.gloss-box dt { font-weight: 800; margin-top: 10px; }
.gloss-box dd { margin: 2px 0 0; color: var(--muted); }
dialog { background: var(--card-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px; max-width: min(560px, calc(100% - 32px)); padding: 20px; }
dialog::backdrop { background: rgba(0,0,0,.65); }
dialog h2 { font: 800 1.4rem var(--display); font-style: normal; text-transform: none; }

/* productpagina */
.what { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 0 14px 14px 0; padding: 12px 16px; margin: 14px 0; }
.what h2, .what h3 { font: 800 .8rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin: 0 0 4px; font-style: normal; }
.what p { margin: 0 0 6px; }
.what p:last-child { margin: 0; }
.type-pill { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(56,189,248,.4); border-radius: 99px; padding: 2px 9px; vertical-align: middle; }
.deal { font-size: 1.1rem; font-weight: 700; margin: 6px 0 14px; }
.deal .save { color: #4ade80; }
.shoplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shoprow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); align-items: center; }
.shoprow.best { border-color: #22c55e; background: rgba(34,197,94,.08); }
.shoprow .shop b { font-size: 1.05rem; }
.shoprow .price { font: 800 1.4rem var(--display); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shoprow .sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--muted); }
.shoprow .diff { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.shoprow .diff:empty { display: none; }
.shoprow .go { grid-column: 1 / -1; }
.shoprow .go .btn { width: 100%; }
.tagbest { display: inline-block; background: #22c55e; color: #052e12; font-weight: 800; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 2px 10px; margin-left: 8px; }
.stock-ok { color: #4ade80; font-weight: 700; } .stock-out { color: #fbbf24; font-weight: 700; }
@media (min-width: 700px) {
  .shoprow { grid-template-columns: 1.3fr auto 1.9fr 1.3fr auto; }
  .shoprow .sub { grid-column: auto; } .shoprow .diff { grid-column: auto; text-align: right; } .shoprow .diff:empty { display: block; } .shoprow .go { grid-column: auto; } .shoprow .go .btn { width: auto; }
}
.perbooster { color: var(--yellow); font-weight: 700; }
.perbooster .info { margin-left: 4px; }

/* ritme van de startpagina */
.browse-top { padding: 48px 0 8px; }
.browse-top section { padding-block: 0; }
.product .unk { color: var(--muted); font-weight: 700; }
.search-hint { margin: -4px 0 6px; font-size: .88rem; color: var(--muted); }
.search-hint a { margin-left: 8px; }

.pro-eerder{margin-top:6px;font-size:.78rem;color:var(--muted,#9aa3b8)}
.pro-note{color:var(--muted,#9aa3b8)}
.pro-note a{text-decoration:underline}

/* ---- Begin hier (v2): uitnodigend blok met vier keuzekaarten ---- */
.begin { position: relative; margin: 24px 0 8px; padding: 22px 14px 16px; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 100% at 0% 0%, rgba(30,107,255,.26), transparent 62%), radial-gradient(100% 100% at 100% 100%, rgba(123,60,255,.22), transparent 60%), var(--bg-2); }
.begin-head h2 { font: 800 clamp(1.45rem, 5vw, 2.1rem) var(--display); font-style: normal; text-transform: none; margin: 0 0 6px; letter-spacing: -.01em; }
.begin-head p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 52ch; }
.begin-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.begin-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; border-radius: 16px; color: var(--text);
  background: rgba(10, 16, 36, .78); border: 1px solid var(--line-2); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.begin-card:hover, .begin-card:focus-visible { transform: translateY(-2px); border-color: var(--blue-2); background: rgba(18, 28, 60, .92); box-shadow: 0 14px 30px -16px rgba(30,107,255,.8); color: var(--text); }
.begin-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.begin-card .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -10px rgba(79,91,255,.9); }
.begin-card .txt { min-width: 0; }
.begin-card .txt b { display: block; font-size: 1.03rem; line-height: 1.25; margin-bottom: 2px; }
.begin-card .txt span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.38; }
.begin-card .arr { flex: none; margin-left: auto; color: var(--cyan); transition: transform .18s ease; }
.begin-card:hover .arr, .begin-card:focus-visible .arr { transform: translateX(3px); }
.begin-foot { margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
@media (min-width: 640px) { .begin { padding: 28px 24px 20px; } .begin-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 1000px) {
  .begin { padding: 34px 32px 22px; }
  .begin-grid { grid-template-columns: repeat(4, 1fr); }
  .begin-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; min-height: 0; }
  .begin-card .arr { margin-left: 0; align-self: flex-end; margin-top: auto; }
}
@media (prefers-reduced-motion: reduce) { .begin-card, .begin-card .arr { transition: none; } .begin-card:hover { transform: none; } }

/* ---- productplaatjes: één licht vak, 1:1, nooit afgesneden ---- */
.pimg { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; padding: 10px; overflow: hidden; border-radius: 14px;
  background: linear-gradient(180deg, #f8f9fc 0%, #eceff6 100%); box-shadow: inset 0 0 0 1px rgba(20, 30, 70, .08); isolation: isolate; }
.pimg::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 5%; height: 7%; z-index: 0; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20,30,70,.2), transparent 70%); }
.pimg-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.pimg.ph { align-content: center; gap: 2px; }
.pimg.ph::after { display: none; }
.ph-art { width: 62%; height: auto; aspect-ratio: 1; }
.ph-label { font: 700 .72rem/1.2 var(--font); color: #2a3470; text-align: center; padding: 0 4px; }
.ph-label:empty { display: none; }
.pimg.sm { padding: 5px; border-radius: 10px; }
.pimg.sm .ph-label { display: none; }
.pimg.big { max-width: 340px; padding: 18px; border-radius: 18px; }
.pimg.big .ph-label { font-size: .95rem; }
.browse .product .pimg { flex: none; width: 96px; align-self: flex-start; padding: 6px; border-radius: 10px; }
.browse .product .pimg .ph-label { display: none; }
@media (min-width: 640px) { .browse .product .pimg { width: 100%; padding: 12px; border-radius: 14px; } .browse .product .pimg .ph-label { display: block; font-size: .8rem; } }
.game-card .pimg { width: 64px; flex: none; }
.set-card .pimg { width: 100%; }
.set-card .pimg .ph-label, .game-card .pimg .ph-label { display: none; }
a.product .pimg { margin-bottom: 4px; }
.detail .pimg.big { width: 100%; }
