/*
Theme Name: Badman Tegels
Theme URI: https://bad-man.be/
Author: Badman bv
Author URI: https://bad-man.be/
Description: Licht en snel klassiek WooCommerce-thema voor de zwembadshop van Badman bv. Tegelwand-look in aqua en wit, marineblauwe knoppen, de probleemzoeker 'Wat doet je water?', licht en donker volgens de systeeminstelling. Geen paginabouwer, geen externe lettertypes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: badman-tegels
Tags: e-commerce, custom-colors, accessibility-ready, translation-ready, one-column, two-columns
*/

/* ---------- Lettertypes (lokaal, latin-subset) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(assets/fonts/unbounded.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/nunito.woff2) format("woff2"); }

/* ---------- Kleuren: lichte en donkere variant ---------- */
:root {
  --paper: #e8f8f8;      /* pagina en voeg */
  --card: #ffffff;       /* witte tegel */
  --tile: #7fd6dd;       /* aqua tegel */
  --tile2: #9be6e8;      /* lichte aqua tegel */
  --ink: #08485a;        /* tekst */
  --soft: #2d6a79;       /* bijtekst */
  --tile-ink: #08485a;   /* tekst op aqua */
  --btn: #0a3d62;        /* marineblauwe knop */
  --btn-fg: #ffffff;
  --ok: #0a6b43;
  --err: #b3261e;
  --warn-bg: #fff4cf;
  --warn-ink: #5c4000;
  --disp: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --voeg: 4px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #06262d; --card: #0c3640; --tile: #0b4a57; --tile2: #0e5562; --ink: #dff6f8; --soft: #9fd0d7; --tile-ink: #dff6f8; --btn: #4fd8e8; --btn-fg: #06262d; --ok: #7be3ae; --err: #ff9d94; --warn-bg: #3a3000; --warn-ink: #ffe28a; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); padding-inline: 1rem; padding-block: 1rem 2rem; overflow-wrap: break-word; }
.shop { max-width: 76rem; margin-inline: auto; display: grid; gap: var(--voeg); min-width: 0; }
.shop * { min-width: 0; }
.app { display: grid; gap: var(--voeg); align-content: start; outline: none; }
.app > * { margin: 0; }
.shop h1, .shop h2, .shop h3, .shop p, .shop dl, .shop dd, .shop ul, .shop ol { margin: 0; padding: 0; }
.shop img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(.shop) button, :where(.shop) input, :where(.shop) select, :where(.shop) textarea { font: inherit; color: inherit; }
:where(.shop) button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.app:focus, h1:focus { outline: none; }
.sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--btn); color: var(--btn-fg); padding: .7rem 1rem; font-weight: 800; border-radius: 3px; }
.skip:focus { top: 1rem; }
.soft { color: var(--soft); }
.hint { font-size: .9rem; }

h1, .h1 { font: 800 clamp(1.5rem, 4.4vw, 2.5rem)/1.1 var(--disp); letter-spacing: -.035em; text-wrap: balance; }
h2.h2 { font: 700 1.2rem/1.2 var(--disp); letter-spacing: -.02em; text-wrap: balance; }

/* ---------- Tegels ---------- */
.tile { background: var(--card); padding: clamp(1rem, 3vw, 1.6rem); }
.tile.aqua { background-color: var(--tile); color: var(--tile-ink); }
.aqua .soft { color: var(--tile-ink); }
/* tegelwand op aqua vlakken: voegen met CSS-verlopen, geen afbeelding */
.hero .tile.aqua, .tile.aqua.empty, .hulp-kop {
  background-image: linear-gradient(90deg, var(--paper) 3px, transparent 3px), linear-gradient(var(--paper) 3px, transparent 3px), linear-gradient(135deg, var(--tile2), var(--tile) 55%, var(--tile));
  background-size: 54px 54px, 54px 54px, 100% 100%;
  background-position: -2px -2px, -2px -2px, 0 0;
}
.hero .tile.aqua > *, .tile.aqua.empty > *, .hulp-kop > * { background: var(--tile); padding: .1rem .5rem; width: fit-content; max-width: 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-color-scheme: dark) {
  .hero .tile.aqua, .tile.aqua.empty, .hulp-kop { background-image: linear-gradient(90deg, var(--paper) 3px, transparent 3px), linear-gradient(var(--paper) 3px, transparent 3px), linear-gradient(135deg, var(--tile2), var(--tile) 55%, var(--tile)); }
}
.empty { display: grid; gap: .8rem; justify-items: start; }
.empty ul { padding-left: 1.2rem; display: grid; gap: .2rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pri { font: 800 1.15rem/1.1 var(--disp); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pri del { font-size: .75em; opacity: .65; }
.pri ins { text-decoration: none; }
.pri small, .price small, .woocommerce-price-suffix { display: block; font: 600 .72rem/1.2 var(--body); letter-spacing: 0; color: var(--soft); margin-top: .2rem; }
.todo { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: .05rem .5rem; font-size: .9rem; font-weight: 700; }
.stk { font-size: .85rem; font-weight: 800; display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); }
.stk::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; flex: none; }
.stk.bst { color: var(--soft); }
.stk.bst::before { background: none; box-shadow: inset 0 0 0 2px currentColor; }
.stk.uit { color: var(--err); }
.ph { background: #fff; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }

/* ---------- Knoppen ---------- */
.btn, .button, button.button, input.button, input[type="submit"], .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, #respond input#submit {
  background: var(--btn); color: var(--btn-fg); border: 0; border-radius: 3px; padding: .65rem 1.1rem; font: 800 .95rem/1.2 var(--body);
  min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:hover, .button:hover, input[type="submit"]:hover { filter: brightness(1.12); text-decoration: none; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.wide, .wc-proceed-to-checkout .button, #place_order { width: 100%; }
.button.disabled, .button:disabled, button.button.disabled { opacity: .5; cursor: not-allowed; }
a.added_to_cart { font-weight: 700; font-size: .9rem; padding-top: .3rem; display: inline-block; }
.button.loading { opacity: .6; }

/* ---------- Kop ---------- */
.hd { background: var(--card); padding: .8rem 1rem; display: grid; gap: .6rem 1rem; align-items: center; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo cart" "search search" "hl hl"; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: .6rem; font: 800 1.35rem/1 var(--disp); letter-spacing: -.03em; text-decoration: none; color: var(--ink); justify-self: start; }
.logo-img { max-height: 2.4rem; width: auto; }
.strook { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 1.4rem; height: 1.4rem; flex: none; }
.strook i { display: block; background: var(--tile); }
.strook i:nth-child(2) { background: var(--tile2); }
.strook i:nth-child(3) { background: var(--tile2); }
.strook i:nth-child(4) { background: var(--ink); }
.hd .zoekform { grid-area: search; }
.hd input[type="search"], .zoek input[type="search"], .zoekform input[type="search"] { width: 100%; background: var(--paper); color: var(--ink); border: 2px solid var(--tile); border-radius: 3px; padding: .6rem .8rem; min-height: 2.75rem; }
input::placeholder { color: var(--soft); opacity: 1; }
.hl { grid-area: hl; }
.hl .menu, .ft .menu { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; font-weight: 600; font-size: .95rem; }
.cartb { grid-area: cart; background: var(--btn); color: var(--btn-fg); border: 0; border-radius: 3px; padding: .55rem .9rem; font: 800 .95rem var(--body); min-height: 2.75rem; display: inline-flex; gap: .5rem; align-items: center; white-space: nowrap; text-decoration: none; }
.cartb .cnt { background: var(--card); color: var(--ink); min-width: 1.6rem; text-align: center; border-radius: 2px; padding: 0 .35rem; font-variant-numeric: tabular-nums; }
.cartb .tot { font-weight: 600; }
@media (min-width: 62rem) {
  .hd { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo search hl cart"; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
  .admin-bar .hd { top: 32px; }
  .hd .zoekform { max-width: 30rem; }
}

/* categoriebalk */
.nv ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--voeg); }
.nv a { background: var(--tile); color: var(--tile-ink); padding: .7rem .9rem; font: 700 .85rem/1.2 var(--disp); letter-spacing: -.02em; text-decoration: none; display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; min-height: 3rem; height: 100%; }
.nv a small { font: 600 .8rem var(--body); letter-spacing: 0; flex: none; }
.nv a:hover { background: var(--tile2); }
.nv a[aria-current="page"] { background: var(--btn); color: var(--btn-fg); }
.nv a:focus-visible { outline-offset: -5px; }

/* ---------- Startpagina: probleemzoeker ---------- */
.hero { display: grid; gap: var(--voeg); grid-template-columns: minmax(0, 1fr); }
.hero .tile { display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.probs { display: grid; gap: var(--voeg); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb { background: var(--tile); color: var(--tile-ink); padding: .8rem .75rem; text-align: left; text-decoration: none; font: 700 .8rem/1.25 var(--disp); letter-spacing: -.02em; min-height: 5.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; overflow-wrap: anywhere; }
.pb i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--w); box-shadow: 0 0 0 2px var(--tile-ink); display: block; flex: none; }
.pb:hover { background: var(--tile2); }
.pb[aria-current="true"] { background: var(--btn); color: var(--btn-fg); }
.pb[aria-current="true"] i { box-shadow: 0 0 0 2px var(--btn-fg); }
.pb.all { background: var(--card); color: var(--ink); justify-content: flex-end; }
.pb.all:hover { background: var(--tile2); }
.pb:focus-visible { outline-offset: -5px; }
@media (min-width: 40rem) { .probs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }

#adv { display: grid; gap: var(--voeg); }
.adv { display: grid; gap: 1rem 1.6rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.adv .tip { margin-top: .5rem; }
.adv .ms { list-style: none; display: grid; gap: var(--voeg); grid-template-columns: minmax(0, 1fr); }
.adv .leeg-staat { background: var(--paper); padding: .8rem 1rem; }
@media (min-width: 64rem) { .adv { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .adv .ms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.js .adv-panel:not(.is-open) { display: none; }
.mini { background: var(--paper); padding: .6rem; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .3rem .8rem; align-items: center; }
.mini .ph { width: 4.5rem; grid-row: span 2; }
.mini .nm { font-weight: 800; font-size: .9rem; line-height: 1.25; }
.mini .nm a { text-decoration: none; }
.mini .buy { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.mini .button { min-height: 2.4rem; padding: .4rem .8rem; font-size: .88rem; }

/* ---------- Productraster ---------- */
ul.products { list-style: none; display: grid; gap: var(--voeg); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; }
@media (min-width: 40rem) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 62rem) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); display: grid; grid-template-rows: auto 1fr; margin: 0; float: none; width: auto; position: relative; }
.card .in { padding: .7rem; display: flex; flex-direction: column; gap: .4rem; }
.card .nm { font-weight: 800; font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card .nm a { text-decoration: none; }
.card .unit { font-size: .82rem; }
.card .buy { margin-top: auto; padding-top: .3rem; display: grid; gap: .5rem; }
.card .button { width: 100%; min-height: 2.5rem; padding: .45rem .6rem; font-size: .9rem; }
@media (min-width: 40rem) { ul.products.feat .card.big { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 39.99rem) { ul.products.feat .card.big { grid-column: span 2; } .feat .card.big .ph { aspect-ratio: 4 / 3; } }
.feat .card.big .nm { font: 800 1.15rem/1.2 var(--disp); letter-spacing: -.03em; -webkit-line-clamp: 3; line-clamp: 3; }
.feat .card.big .pri { font-size: 1.6rem; }
.related ul.products, .up-sells ul.products { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .related ul.products, .up-sells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related, .up-sells { display: grid; gap: var(--voeg); grid-column: 1 / -1; }
.related > h2, .up-sells > h2 { font: 700 1.2rem/1.2 var(--disp); letter-spacing: -.02em; background: var(--card); padding: clamp(1rem, 3vw, 1.6rem); margin: 0; }
.onsale { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: var(--btn); color: var(--btn-fg); font: 800 .75rem var(--body); padding: .2rem .55rem; border-radius: 999px; }

.cats { display: grid; gap: var(--voeg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat { background: var(--card); text-decoration: none; padding: .7rem; display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; align-content: start; }
.cat:hover { background: var(--tile2); }
.cat .tx { grid-column: span 2; display: grid; gap: .2rem; }
.cat h3 { font: 700 1.05rem var(--disp); letter-spacing: -.02em; }
.trust { display: grid; gap: var(--voeg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust .tile { background: var(--tile2); color: var(--tile-ink); font-weight: 800; display: flex; gap: .6rem; align-items: baseline; padding-block: .9rem; }
.trust .tile::before { content: "\2713"; font-weight: 800; }

/* ---------- Categoriepagina ---------- */
.top { display: grid; gap: .8rem; }
.ctl { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.ctl label { font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }
select, .ctl select { background: var(--paper); color: var(--ink); border: 2px solid var(--tile); border-radius: 3px; padding: .45rem .6rem; min-height: 2.5rem; max-width: 100%; }
.ctl input[type="checkbox"], input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; accent-color: var(--btn); }
.chip { display: inline-flex; gap: .5rem; align-items: center; background: var(--tile2); color: var(--tile-ink); padding: .2rem .3rem .2rem .7rem; font-weight: 600; border-radius: 999px; }
.chip a { background: var(--btn); color: var(--btn-fg); border-radius: 999px; padding: .15rem .7rem; font-weight: 800; text-decoration: none; }
.term-beschrijving p { margin: 0; }
.woocommerce-pagination ul.page-numbers, .navigation .nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--voeg); justify-content: center; padding: 0; margin: 0; }
.woocommerce-pagination, .pagination { background: var(--card); padding: .8rem; }
.page-numbers { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .8rem; align-items: center; justify-content: center; background: var(--paper); font-weight: 800; text-decoration: none; }
.page-numbers.current { background: var(--btn); color: var(--btn-fg); }
.woocommerce-breadcrumb.crumbs, .crumbs { font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; }
.crumbs span[aria-hidden] { color: var(--soft); }

/* ---------- Productpagina ---------- */
.single-product div.product { display: grid; gap: var(--voeg); grid-template-columns: minmax(0, 1fr); align-items: start; position: relative; }
@media (min-width: 48rem) { .single-product div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.single-product div.product > * { grid-column: 1 / -1; margin: 0; }
@media (min-width: 48rem) {
  .single-product div.product > .woocommerce-product-gallery { grid-column: 1; }
  .single-product div.product > .summary { grid-column: 2; }
}
.woocommerce-product-gallery { background: #fff; position: relative; margin: 0; width: auto; float: none; opacity: 1 !important; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img, .woocommerce-product-gallery img.wp-post-image { width: 100%; height: auto; max-height: 34rem; object-fit: contain; margin-inline: auto; padding: 4%; }
.woocommerce-product-gallery__trigger { position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 2.5rem; height: 2.5rem; background: var(--btn); color: var(--btn-fg); border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: "\2922"; font-size: 1.1rem; }
.flex-control-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: var(--voeg); padding: .5rem; margin: 0; background: var(--paper); }
.flex-control-thumbs li { width: 4.5rem; background: #fff; }
.flex-control-thumbs img { cursor: pointer; opacity: .6; padding: 4px; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; }
.single-product .summary { background: var(--card); padding: clamp(1rem, 3vw, 1.6rem); display: flex; flex-direction: column; gap: 1rem; }
.summary > * { margin: 0; }
.product_title { font: 800 clamp(1.4rem, 3.4vw, 2rem)/1.15 var(--disp); letter-spacing: -.035em; }
.summary .price { font: 800 2.2rem/1 var(--disp); letter-spacing: -.04em; margin: 0; }
.summary .price del { font-size: .55em; opacity: .65; }
.summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description p { margin: 0 0 .6rem; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.2rem; font-size: .95rem; }
.facts dt { color: var(--soft); font-weight: 600; }
.facts dd { font-weight: 800; overflow-wrap: anywhere; }
.facts a { text-decoration: none; }
form.cart { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 0; }
form.cart .single_add_to_cart_button { flex: 1 1 10rem; }
.quantity input.qty { width: 4.5rem; min-height: 2.75rem; text-align: center; background: var(--paper); border: 2px solid var(--tile); border-radius: 3px; padding: .4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
table.variations { width: 100%; border-collapse: collapse; margin-bottom: .6rem; }
table.variations th, table.variations td { text-align: left; padding: .3rem 0; display: block; }
table.variations th { font-weight: 800; }
.reset_variations { font-size: .9rem; }
.woocommerce-variation-price .price { font-size: 1.4rem; }
.tile.gegevens > :last-child { margin-bottom: 0; }
.gegevens table { border-collapse: collapse; width: 100%; }
.gegevens th, .gegevens td { text-align: left; padding: .4rem .6rem .4rem 0; border-bottom: 1px solid var(--paper); vertical-align: top; }
.gegevens h2 { font: 700 1.2rem/1.2 var(--disp); letter-spacing: -.02em; margin: 0 0 .6rem; }

/* ---------- Meldingen, formulieren ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .alert { list-style: none; background: var(--tile2); color: var(--tile-ink); padding: .7rem 1rem; font-weight: 700; border-left: 6px solid var(--btn); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin: 0 0 var(--voeg); }
.woocommerce-error, .alert { border-left-color: var(--err); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], textarea, select.input-text, .input-text {
  background: var(--paper); color: var(--ink); border: 2px solid var(--tile); border-radius: 3px; padding: .6rem .8rem; min-height: 2.75rem; width: 100%;
}
textarea { min-height: 7rem; }
.form-row { display: grid; gap: .3rem; margin: 0 0 1rem; }
.form-row label { font-weight: 800; }
.form-row .required { color: var(--err); text-decoration: none; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select, input[aria-invalid="true"] { border-color: var(--err); }
.form-row .optional { font-weight: 400; color: var(--soft); }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 800; padding: 0; margin-bottom: .4rem; }
.woocommerce-input-wrapper { display: block; }
.select2-container .select2-selection--single { height: 2.75rem; background: var(--paper); border: 2px solid var(--tile); border-radius: 3px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); padding-left: .8rem; line-height: 1.5; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 2.5rem; }
.select2-dropdown { background: var(--card); color: var(--ink); border: 2px solid var(--tile); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--btn); color: var(--btn-fg); }
.select2-search input { background: var(--paper); color: var(--ink); }

/* ---------- Mand en afrekenen ---------- */
.wc-inhoud { display: grid; gap: var(--voeg); }
.wc-inhoud > .woocommerce { display: grid; gap: var(--voeg); align-items: start; }
.woocommerce-cart-form, .cart_totals, #customer_details, #order_review, .woocommerce-order, .woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-form-login, .woocommerce-form-register, .woocommerce-form-coupon, .woocommerce-checkout-review-order { background: var(--card); padding: clamp(1rem, 3vw, 1.6rem); }
.woocommerce-form-login-toggle .woocommerce-info, .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0; }
@media (min-width: 62rem) {
  .woocommerce-cart .wc-inhoud > .woocommerce { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .woocommerce-cart .cart-collaterals { position: sticky; top: 5.5rem; }
}
.cart-collaterals { display: grid; gap: var(--voeg); }
.cart-collaterals .cross-sells { display: none; }
.cart-collaterals .cart_totals { width: auto; float: none; }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3, .woocommerce-order h2, .woocommerce-MyAccount-content h2, .woocommerce-column__title { font: 700 1.2rem/1.2 var(--disp); letter-spacing: -.02em; margin: 0 0 .8rem; }

table.shop_table { width: 100%; border-collapse: collapse; margin: 0; }
table.shop_table th, table.shop_table td { text-align: left; padding: .7rem .5rem .7rem 0; border-bottom: 2px solid var(--paper); vertical-align: middle; }
table.shop_table thead th { font-weight: 800; font-size: .9rem; color: var(--soft); }
table.shop_table .product-thumbnail { width: 5rem; }
table.shop_table .product-thumbnail img { width: 4.5rem; height: 4.5rem; object-fit: contain; background: #fff; padding: 4px; }
table.shop_table .product-name a { font-weight: 800; text-decoration: none; }
table.shop_table .product-remove a.remove { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--paper); color: var(--err); text-decoration: none; font-size: 1.3rem; font-weight: 800; }
table.shop_table .product-subtotal, table.shop_table .product-total, table.shop_table td.product-price { font-variant-numeric: tabular-nums; }
table.shop_table tr.order-total th, table.shop_table tr.order-total td, .cart_totals .order-total td { font-weight: 800; font-size: 1.1rem; }
table.shop_table td.actions { padding-right: 0; }
.actions .coupon { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.actions .coupon input { flex: 1 1 10rem; width: auto; }
.wc-proceed-to-checkout { padding-top: .8rem; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }
@media (max-width: 47.99rem) {
  table.shop_table_responsive thead { display: none; }
  table.shop_table_responsive tr { display: block; border-bottom: 2px solid var(--paper); padding-block: .5rem; }
  table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 0; padding: .35rem 0; text-align: right; }
  table.shop_table_responsive td::before { content: attr(data-title); font-weight: 800; text-align: left; }
  table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.actions::before { content: none; }
  table.shop_table_responsive td.product-thumbnail { display: block; }
  table.shop_table_responsive td.actions { display: block; text-align: left; }
}

form.checkout { display: grid; gap: var(--voeg); align-items: start; grid-template-columns: minmax(0, 1fr); }
#customer_details .col-1, #customer_details .col-2 { width: auto; float: none; margin-bottom: 1rem; }
#customer_details .col-2:empty { display: none; }
.woocommerce-checkout #order_review_heading { background: var(--card); padding: clamp(1rem, 3vw, 1.6rem) clamp(1rem, 3vw, 1.6rem) 0; margin: 0; }
.woocommerce-checkout #order_review { padding-top: .8rem; }
@media (min-width: 62rem) {
  form.checkout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "klant kop" "klant bestelling"; grid-template-rows: auto 1fr; }
  form.checkout #customer_details { grid-area: klant; grid-row: 1 / span 2; }
  form.checkout #order_review_heading { grid-area: kop; }
  form.checkout #order_review { grid-area: bestelling; position: sticky; top: 5.5rem; }
}
.woocommerce-checkout-payment, #payment { margin-top: 1rem; }
#payment ul.wc_payment_methods { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: var(--voeg); }
#payment .wc_payment_method { background: var(--paper); border: 2px solid var(--tile); padding: .7rem .8rem; }
#payment .wc_payment_method > label { font-weight: 800; display: inline-flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
#payment .wc_payment_method img { max-height: 1.6rem; width: auto; display: inline-block; }
#payment .payment_box { margin-top: .6rem; font-size: .92rem; }
#payment .payment_box p { margin: 0 0 .5rem; }
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { font-size: .9rem; margin-bottom: .8rem; }
.woocommerce-terms-and-conditions-checkbox-text, .woocommerce-form__label-for-checkbox { display: inline-flex; gap: .5rem; align-items: flex-start; font-weight: 600; }
#place_order { min-height: 3.2rem; font-size: 1.02rem; }
.woocommerce-order ul.order_details { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.woocommerce-order ul.order_details li { font-size: .9rem; color: var(--soft); }
.woocommerce-order ul.order_details li strong { display: block; color: var(--ink); font-size: 1rem; }
.woocommerce-thankyou-order-received { font: 800 1.2rem var(--disp); }
.woocommerce-MyAccount-navigation ul { list-style: none; display: grid; gap: .3rem; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: .5rem .7rem; text-decoration: none; font-weight: 700; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--btn); color: var(--btn-fg); }
.woocommerce-account .wc-inhoud > .woocommerce { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .woocommerce-account.logged-in .wc-inhoud > .woocommerce { grid-template-columns: 14rem minmax(0, 1fr); } }
.u-columns { display: grid; gap: var(--voeg); }
@media (min-width: 48rem) { .u-columns { grid-template-columns: 1fr 1fr; } }

/* ---------- Gewone pagina's en tekst ---------- */
.inhoud { max-width: 100%; }
.inhoud > *:first-child { margin-top: 0; }
.inhoud h2 { font: 800 clamp(1.2rem, 3vw, 1.6rem)/1.15 var(--disp); letter-spacing: -.02em; margin: 1.6rem 0 .6rem; }
.inhoud h3 { font: 700 1.1rem/1.25 var(--disp); letter-spacing: -.02em; margin: 1.2rem 0 .5rem; }
.inhoud p, .inhoud ul, .inhoud ol, .inhoud dl { margin: 0 0 .9rem; }
.inhoud ul, .inhoud ol { padding-left: 1.3rem; }
.inhoud li { margin-bottom: .25rem; }
.inhoud table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.inhoud th, .inhoud td { border: 1px solid var(--paper); padding: .4rem .6rem; text-align: left; }
.inhoud img { height: auto; }
.inhoud .alignwide, .inhoud .alignfull { max-width: 100%; }
.inhoud blockquote { margin: 1rem 0; padding: .4rem 1rem; border-left: 6px solid var(--tile); }
.inhoud figure { margin: 0 0 1rem; }
.inhoud .wp-caption-text, .inhoud figcaption { font-size: .9rem; color: var(--soft); }

/* ---------- Hulp-pagina ---------- */
.hulp { display: grid; gap: var(--voeg); }
.hulp-kop { display: grid; gap: .8rem; }
.hulp-kop h1 { max-width: 20ch; }
.hulp-kop > .zoek { width: min(100%, 36rem); padding: 0; background: none; }
.hulp-kop p { max-width: 40rem; font-size: 1.05rem; }
.hulp .cols { display: grid; gap: var(--voeg); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 62rem) { .hulp .cols { grid-template-columns: 15rem minmax(0, 1fr); } .hulp .toc { position: sticky; top: 5.5rem; } }
.toc b { font: 700 .95rem var(--disp); display: block; margin-bottom: .5rem; }
.toc ul { list-style: none; display: grid; gap: .1rem; }
@media (max-width: 61.99rem) { .toc ul { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.toc a { display: block; padding: .3rem .4rem; text-decoration: none; font-size: .95rem; }
.toc a:hover { background: var(--paper); }
.hulp-inhoud { display: grid; gap: var(--voeg); align-content: start; }
.hulp-inhoud section.blok { background: var(--card); padding: clamp(1rem, 3vw, 1.8rem); scroll-margin-top: 5.5rem; }
.hulp-inhoud section.blok[hidden], .hulp-inhoud details[hidden] { display: none; }
.hulp-inhoud section.blok h2 { margin-top: 0; }
.hulp-inhoud .lead, .lead { color: var(--soft); max-width: 46rem; }
.hulp-inhoud .leeg { border: 2px dashed var(--tile); padding: 1.2rem; background: var(--card); }
.hulp-inhoud .leeg[hidden] { display: none; }
ol.stap { counter-reset: s; list-style: none; padding: 0 !important; margin: 0 0 .9rem; display: grid; gap: .6rem; }
ol.stap li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .7rem; align-items: start; margin: 0; }
ol.stap li::before { content: counter(s); background: var(--btn); color: var(--btn-fg); border-radius: 50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; font: 700 .9rem var(--disp); }
.doel { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; background: var(--paper); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.doel b { font: 800 1.6rem var(--disp); }
.warn, .waarschuwing { background: var(--paper); border-left: 6px solid var(--err); padding: .9rem 1.1rem; margin: 1rem 0; }
.warn b:first-child, .waarschuwing b:first-child { color: var(--err); }
.hulp-inhoud details { border-top: 1px solid var(--paper); }
.hulp-inhoud details:first-of-type { border-top: 0; }
.hulp-inhoud summary { cursor: pointer; padding: .8rem .2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.hulp-inhoud summary::-webkit-details-marker { display: none; }
.hulp-inhoud summary::after { content: "+"; font: 700 1.3rem var(--disp); }
.hulp-inhoud details[open] > summary::after { content: "\2212"; }
.hulp-inhoud details > .inhoud, .hulp-inhoud details > p, .hulp-inhoud details > ol, .hulp-inhoud details > ul { max-width: 46rem; }
.hulp-inhoud details > *:not(summary):last-child { margin-bottom: 1rem; }
.prob { display: grid; gap: .9rem; }
.prob details { background: var(--paper); padding: 0 1rem; border: 0; }
.prob .oorzaak { color: var(--soft); margin: 0 0 .6rem; }
.prob .ms { list-style: none; padding: 0; display: grid; gap: var(--voeg); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: .8rem 0 1rem; }
.prob .mini { background: var(--card); }
dl.woorden { display: grid; gap: .6rem 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { dl.woorden { grid-template-columns: 11rem minmax(0, 1fr); } }
dl.woorden dt { font-weight: 800; }
dl.woorden dd { margin: 0 0 .4rem; }

/* ---------- Voet ---------- */
.ft { background: var(--card); padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 1rem 2rem; grid-template-columns: minmax(0, 1fr); font-size: .95rem; }
.ft address { font-style: normal; }
.ft .menu { flex-direction: column; align-items: flex-start; gap: .4rem; }
.voetmenu { grid-column: 1 / -1; }
@media (min-width: 40rem) { .ft { grid-template-columns: repeat(3, minmax(0, 1fr)); } .voetmenu { grid-column: auto; } }

/* ---------- Beweging en afdrukken ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .hd, .nv, .ft, .skip, .cartb { display: none !important; } body { background: #fff; color: #000; padding: 0; } .tile { padding: 0; } }
