/**
 * Productkaart + productarchief (winkel, categorieën), ontwerp G
 * (verbeterplan/ontwerpen/g-complete-webshop.html: .kaart en
 * data-view="categorie").
 *
 * Geladen via inc/enqueue-product-categorie.php (prioriteit 1000, ná
 * design-tokens.css) op shop-, categorie-, product-, zoek- en 404-pagina's en
 * via het filter cs_pc_laad_css op de homepage.
 *
 * 1. Productkaart (li.product.cs-kaart): overal waar de kaart staat
 *    (archief, homepage, "Past bij", zoeken). Gescoped op ul.products en de
 *    kaartklassen, niet op body-klassen.
 * 2. Archief (.cs-shop): kruimelpad, kop, filters, werkbalk, raster,
 *    paginering, lege staat. Raster: 4 kolommen, ≤1240px 3, ≤820px 2.
 *    Filters: sidebar; ≤1080px een lade (alleen met JavaScript, html.cs-js).
 * 3. Toast na "In winkelwagen" (inc/assets/shop.js).
 *
 * Alleen tokens uit design-tokens.css (geen losse kleurwaarden). Selectors
 * op de kaart zijn bewust specifiek (ul.products li.product.cs-kaart …):
 * woocommerce.css stijlt dezelfde elementen met (0,3,3).
 * De stijlen van de losse productpagina staan in product-detail.css.
 *
 * Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
 */

/* ==========================================================================
   1. Productkaart
   ========================================================================== */

/* WooCommerce's float-raster neutraliseren (woocommerce-layout.css zet
   width:22.05%/48%, float en marges, deels met attribuutselectors). */
ul.products li.product.cs-kaart:not(#cs) {
	float: none;
	clear: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative;
	text-align: left;
	font-family: var(--font-tekst);
	color: var(--kleur-inkt);
	min-width: 0;
}

ul.products li.product.cs-kaart .cs-kaart__beeld {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	margin: 0 0 10px;
	border-radius: var(--radius);
	background: var(--kleur-vlak);
	overflow: hidden;
}

ul.products li.product.cs-kaart .cs-kaart__beeld img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 9%;
	object-fit: contain;
	mix-blend-mode: multiply;
	box-shadow: none;
	border-radius: 0;
	transition: transform .2s ease-out;
}

@media (hover: hover) {
	ul.products li.product.cs-kaart:hover .cs-kaart__beeld img {
		transform: scale(1.03);
	}
}

/* Badges linksboven */
ul.products li.product.cs-kaart .cs-kaart__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

ul.products li.product.cs-kaart .cs-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--radius-rond);
	background: var(--kleur-wit);
	box-shadow: 0 0 0 1px var(--kleur-lijn);
	color: var(--kleur-inkt);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

ul.products li.product.cs-kaart .cs-badge--best {
	background: var(--kleur-badge);
	box-shadow: none;
	color: var(--kleur-badge-tekst);
}

ul.products li.product.cs-kaart .cs-badge--nieuw {
	background: var(--kleur-inkt);
	box-shadow: none;
	color: var(--kleur-wit);
}

ul.products li.product.cs-kaart .cs-badge--sale {
	background: var(--kleur-sale);
	box-shadow: none;
	color: var(--kleur-wit);
}

/* functions.php injecteert via JavaScript nog een oud NEW/SALE-label in
   kaarten; deze kaart toont de badges zelf. */
ul.products li.product.cs-kaart .codex-product-new-label {
	display: none !important;
}

ul.products li.product.cs-kaart .cs-kaart__merk {
	margin: 0;
	color: var(--kleur-zacht);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
}

ul.products li.product.cs-kaart .cs-kaart__naam {
	margin: 0;
	padding: 0;
	color: var(--kleur-inkt);
	font-family: var(--font-tekst);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-wrap: pretty;
	overflow-wrap: break-word;
}

ul.products li.product.cs-kaart .cs-kaart__link {
	color: inherit;
	text-decoration: none;
}

/* De naamlink dekt de hele kaart; de knop ligt erboven (z-index). */
ul.products li.product.cs-kaart .cs-kaart__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: var(--radius);
}

ul.products li.product.cs-kaart .cs-kaart__link:hover {
	color: var(--kleur-groen);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Focus: één ring om de hele kaart in plaats van om de tekst. De globale
   ring (toegankelijkheid.css) gebruikt !important, vandaar hier ook. */
ul.products li.product.cs-kaart .cs-kaart__link:focus-visible {
	outline: none !important;
	text-decoration: underline;
}

ul.products li.product.cs-kaart .cs-kaart__link:focus-visible::after {
	outline: 3px solid var(--kleur-focus, var(--kleur-groen-donker));
	outline-offset: 4px;
}

ul.products li.product.cs-kaart .cs-kaart__meta {
	margin: 0;
	color: var(--kleur-zacht);
	font-size: 14px;
	line-height: 1.4;
}

/* Prijs + knop onderaan, ook als titels 1 of 3 regels zijn. */
ul.products li.product.cs-kaart .cs-kaart__onder {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

ul.products li.product.cs-kaart .cs-kaart__prijs {
	margin: 0;
	color: var(--kleur-inkt);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}

ul.products li.product.cs-kaart .cs-kaart__prijs .amount,
ul.products li.product.cs-kaart .cs-kaart__prijs bdi {
	color: inherit;
}

/* "vanaf € 31,50": zelfde maat en gewicht als de prijs (zoals in G). */
ul.products li.product.cs-kaart .cs-kaart__vanaf {
	font: inherit;
}

ul.products li.product.cs-kaart .cs-kaart__prijs del {
	margin-right: 6px;
	color: var(--kleur-zacht);
	font-size: 15px;
	font-weight: 500;
	opacity: 1;
}

ul.products li.product.cs-kaart .cs-kaart__prijs ins {
	color: var(--kleur-sale);
	background: none;
	text-decoration: none;
}

/* Knop: groen, volle breedte, 44px. Geen .button-klasse (zie loop/add-to-cart.php). */
ul.products li.product.cs-kaart .cs-kaart__knop {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius-rond);
	background: var(--kleur-groen);
	box-shadow: none;
	color: var(--kleur-wit);
	font-family: var(--font-tekst);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease-out, transform .15s ease-out;
}

ul.products li.product.cs-kaart .cs-kaart__knop:hover,
ul.products li.product.cs-kaart .cs-kaart__knop:focus {
	background: var(--kleur-groen-donker);
	color: var(--kleur-wit);
}

ul.products li.product.cs-kaart .cs-kaart__knop:active {
	transform: scale(.98);
}

ul.products li.product.cs-kaart .cs-kaart__knop.loading {
	cursor: progress;
	pointer-events: none;
}

ul.products li.product.cs-kaart .cs-kaart__knop.loading::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: cs-draai .7s linear infinite;
}

@keyframes cs-draai {
	to { transform: rotate(360deg); }
}

/* Knoptekst: "Toevoegen aan winkelwagen" alleen als die op één regel past,
   anders "Toevoegen" (de toegankelijke naam blijft de lange tekst via
   aria-label). Gemeten bij 15px Figtree 700: lange tekst 198px + 2×16px
   padding = 230px; daaronder de korte variant. */
ul.products li.product.cs-kaart .cs-kaart__onder {
	container-type: inline-size;
}

ul.products li.product.cs-kaart .cs-kaart__knop-tekst {
	white-space: nowrap;
}

ul.products li.product.cs-kaart .cs-kaart__knop-kort {
	display: none;
}

@container (max-width: 229px) {
	ul.products li.product.cs-kaart .cs-kaart__knop-lang {
		display: none;
	}

	ul.products li.product.cs-kaart .cs-kaart__knop-kort {
		display: inline;
	}
}

/* Bezig met toevoegen: spinner in het midden, tekst onzichtbaar (zelfde maat). */
ul.products li.product.cs-kaart .cs-kaart__knop.loading .cs-kaart__knop-tekst {
	visibility: hidden;
}

ul.products li.product.cs-kaart .cs-kaart__knop.loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -8px;
}

/* Knop of aantal-kiezer: dezelfde plek, dezelfde hoogte (44px). */
ul.products li.product.cs-kaart .cs-kaart__koop {
	position: relative;
	z-index: 1;
	margin: 0;
}

ul.products li.product.cs-kaart .cs-kaart__koop [hidden] {
	display: none !important;
}

ul.products li.product.cs-kaart .cs-stepper {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 1px;
	border: 1px solid var(--kleur-veldrand);
	border-radius: var(--radius-rond);
	background: var(--kleur-wit);
}

ul.products li.product.cs-kaart .cs-stepper__knop,
ul.products li.product.cs-kaart .cs-stepper__knop:hover,
ul.products li.product.cs-kaart .cs-stepper__knop:focus {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-rond);
	background: transparent;
	box-shadow: none;
	color: var(--kleur-inkt);
	font-family: var(--font-tekst);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

ul.products li.product.cs-kaart .cs-stepper__knop:hover {
	background: var(--kleur-vlak);
}

ul.products li.product.cs-kaart .cs-stepper__knop[aria-disabled="true"] {
	color: var(--kleur-zacht);
	cursor: not-allowed;
}

ul.products li.product.cs-kaart .cs-stepper__veld {
	box-sizing: border-box;
	flex: 1 1 auto;
	width: 40px;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--kleur-inkt);
	font-family: var(--font-tekst);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

ul.products li.product.cs-kaart .cs-stepper__veld::-webkit-inner-spin-button,
ul.products li.product.cs-kaart .cs-stepper__veld::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

ul.products li.product.cs-kaart .cs-stepper:focus-within {
	border-color: var(--kleur-inkt);
}

/* Foutmelding (bv. te weinig voorraad): kort boven de kiezer, zonder dat de
   kaart verspringt. */
ul.products li.product.cs-kaart .cs-kaart__melding {
	position: absolute;
	right: 0;
	bottom: calc(100% + 6px);
	left: 0;
	z-index: 2;
	margin: 0;
	padding: 8px 10px;
	border-radius: var(--radius-klein, 8px);
	background: var(--kleur-wit);
	box-shadow: 0 0 0 1px var(--kleur-sale), 0 6px 16px color-mix(in srgb, var(--kleur-inkt) 18%, transparent);
	color: var(--kleur-sale);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
}

/* WooCommerce zet na het toevoegen een link "Bekijk winkelwagen" naast de
   knop; die zou de kaart verlengen. De toast heeft dezelfde link. */
ul.products li.product.cs-kaart .added_to_cart {
	display: none;
}

@media (max-width: 820px) {
	ul.products li.product.cs-kaart .cs-kaart__naam {
		font-size: 16px;
	}

	ul.products li.product.cs-kaart .cs-kaart__prijs {
		font-size: 18px;
	}
}

@media (max-width: 400px) {
	ul.products li.product.cs-kaart .cs-kaart__knop {
		padding: 0 8px;
		font-size: 14.5px;
	}

	ul.products li.product.cs-kaart .cs-badge {
		padding: 2px 8px;
		font-size: 12px;
	}
}

/* ==========================================================================
   2. Archief
   ========================================================================== */

.cs-shop {
	background: var(--kleur-pagina, var(--kleur-wit));
	color: var(--kleur-inkt);
	font-family: var(--font-tekst);
	padding-bottom: clamp(40px, 5vw, 72px);
}

.cs-shop .cs-shop__wrap {
	box-sizing: border-box;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 40px);
}

.cs-shop .woocommerce-notices-wrapper:empty {
	display: none;
}

/* --- Kruimelpad --- */
.cs-shop .cs-kruimel {
	padding-block: 18px 8px;
	color: var(--kleur-zacht);
	font-size: 14px;
	line-height: 1.5;
}

.cs-shop .cs-kruimel__lijst {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-shop .cs-kruimel__lijst li {
	margin: 0;
	padding: 0;
}

.cs-shop .cs-kruimel__lijst li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--kleur-zacht);
	opacity: .6;
}

.cs-shop .cs-kruimel a {
	display: inline-block;
	padding-block: 2px;
	color: inherit;
	text-decoration: none;
}

.cs-shop .cs-kruimel a:hover {
	color: var(--kleur-groen-donker);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-shop .cs-kruimel [aria-current="page"] {
	color: var(--kleur-inkt);
}

/* --- Kop --- */
.cs-shop .cs-shop__kop {
	padding-bottom: 24px;
}

.cs-shop .cs-shop__titel {
	margin: 0;
	color: var(--kleur-kop);
	font-family: var(--font-koppen);
	font-size: clamp(30px, 2vw + 18px, 46px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: auto;
}

.cs-shop .cs-shop__sub {
	margin: 6px 0 0;
	color: var(--kleur-zacht);
	font-size: 18px;
	font-weight: 500;
}

.cs-shop .cs-shop__intro {
	max-width: 62ch;
	margin-top: 10px;
	color: var(--kleur-zacht);
}

.cs-shop .cs-shop__intro p,
.cs-shop .cs-shop__meer-tekst p {
	margin: 0 0 .7em;
}

.cs-shop .cs-shop__intro > :last-child,
.cs-shop .cs-shop__meer-tekst > :last-child {
	margin-bottom: 0;
}

.cs-shop .cs-shop__meer {
	max-width: 62ch;
	margin-top: 4px;
}

.cs-shop .cs-shop__meer summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--kleur-groen-donker);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.cs-shop .cs-shop__meer summary::-webkit-details-marker {
	display: none;
}

.cs-shop .cs-shop__meer summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .15s ease-out;
}

.cs-shop .cs-shop__meer[open] summary::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.cs-shop .cs-shop__meer summary:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-shop .cs-shop__meer-tekst {
	padding-bottom: 8px;
	color: var(--kleur-zacht);
}

/* --- Indeling: filters links, raster rechts --- */
.cs-shop--filters .cs-shop__cat {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.cs-shop .cs-shop__resultaten {
	min-width: 0;
	scroll-margin-top: calc(var(--cs-header-hoogte, 0px) + 12px);
}

/* --- Algemene knop (archief) --- */
.cs-shop .cs-knop {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--radius-rond);
	background: var(--kleur-groen);
	color: var(--kleur-wit);
	font-family: var(--font-tekst);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease-out;
}

.cs-shop .cs-knop:hover,
.cs-shop .cs-knop:focus {
	background: var(--kleur-groen-donker);
	border-color: transparent;
	color: var(--kleur-wit);
}

.cs-shop .cs-knop--breed {
	width: 100%;
}

/* --- Filters --- */
.cs-shop .cs-filters {
	box-sizing: border-box;
	position: sticky;
	top: calc(var(--cs-header-hoogte, 16px) + 8px);
	display: grid;
	gap: 8px;
	align-content: start;
	max-height: calc(100vh - var(--cs-header-hoogte, 16px) - 24px);
	margin-left: -6px;
	padding: 0 6px 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

/* Hoger dan het scherm (shop.js meet): gewoon meescrollen. */
.cs-shop .cs-filters.cs-filters--lang {
	position: static;
	max-height: none;
	overflow: visible;
}

/* Op desktop: kop alleen voor schermlezers, geen sluitknop/lade-voet. */
.cs-shop .cs-filters__kop {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cs-shop .cs-filters__sluit,
.cs-shop .cs-filters__voet {
	display: none;
}

.cs-shop .cs-filters__titel {
	margin: 0;
	color: var(--kleur-inkt);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.cs-shop .cs-filters__form {
	margin: 0;
}

.cs-js .cs-shop .cs-filters__toepassen,
.cs-js .cs-shop .cs-sorteer__knop {
	display: none;
}

.cs-shop .cs-filters__toepassen {
	margin-top: 16px;
}

.cs-shop .cs-fgroep {
	min-width: 0;
	margin: 0;
	padding: 0 0 16px;
	border: 0;
	border-bottom: 1px solid var(--kleur-lijn);
}

.cs-shop .cs-fgroep + .cs-fgroep {
	padding-top: 16px;
}

/* float: de legend gedraagt zich dan als gewone kop binnen de padding. */
.cs-shop .cs-fgroep__titel {
	float: left;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
	color: var(--kleur-inkt);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.cs-shop .cs-fgroep__titel + * {
	clear: both;
}

.cs-shop .cs-fgroep__tussenkop {
	clear: both;
	margin: 10px 0 0;
	color: var(--kleur-zacht);
	font-size: 13px;
	font-weight: 700;
}

.cs-shop .cs-vink {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 3px 0;
	color: var(--kleur-inkt);
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}

.cs-shop .cs-vink input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--kleur-groen);
	cursor: pointer;
}

.cs-shop .cs-vink__tekst {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cs-shop .cs-vink__sub {
	color: var(--kleur-zacht);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
}

.cs-shop .cs-vink__aantal {
	margin-left: auto;
	padding-left: 8px;
	color: var(--kleur-zacht);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
	.cs-shop .cs-vink:not(.is-uit):hover .cs-vink__tekst {
		color: var(--kleur-groen-donker);
	}
}

.cs-shop .cs-vink.is-uit {
	opacity: .5;
	cursor: not-allowed;
}

.cs-shop .cs-vink.is-uit input {
	cursor: not-allowed;
}

.cs-shop .cs-hulp {
	margin-top: 8px;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--kleur-groen-licht);
	font-size: 15px;
	line-height: 1.5;
}

.cs-shop .cs-hulp p {
	margin: 0 0 6px;
}

.cs-shop .cs-hulp strong {
	display: block;
	margin-bottom: 2px;
}

.cs-shop .cs-hulp a {
	display: inline-block;
	padding-block: 4px;
	color: var(--kleur-groen-donker);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-shop .cs-hulp a:hover {
	color: var(--kleur-inkt);
}

/* --- Werkbalk --- */
.cs-shop .cs-werkbalk {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 16px;
}

.cs-shop .cs-werkbalk__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cs-shop .cs-werkbalk__aantal {
	margin: 0 6px 0 0;
	font-weight: 700;
}

.cs-shop .cs-werkbalk__aantal:focus {
	outline: none;
}

.cs-shop .cs-werkbalk__chips:empty {
	display: none;
}

.cs-shop .cs-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-shop .cs-chips li {
	margin: 0;
}

.cs-shop .cs-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--radius-rond);
	background: var(--kleur-groen-licht);
	color: var(--kleur-groen-donker);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.cs-shop .cs-chip:hover,
.cs-shop .cs-chip:focus {
	background: color-mix(in srgb, var(--kleur-groen) 14%, var(--kleur-groen-licht));
	color: var(--kleur-groen-donker);
}

.cs-shop .cs-wis {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	color: var(--kleur-zacht);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cs-shop .cs-wis:hover {
	color: var(--kleur-inkt);
}

/* Knop "Filters": alleen bij de lade (≤1080px, met JavaScript). */
.cs-shop .cs-filterknop {
	display: none;
}

.cs-shop .cs-filterknop,
.cs-shop .cs-filterknop:hover,
.cs-shop .cs-filterknop:focus {
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-rond);
	background: var(--kleur-wit);
	box-shadow: inset 0 0 0 2px var(--kleur-inkt);
	color: var(--kleur-inkt);
	font-family: var(--font-tekst);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.cs-shop .cs-filterknop:hover {
	background: var(--kleur-vlak);
}

.cs-shop .cs-filterknop__aantal {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--radius-rond);
	background: var(--kleur-groen);
	color: var(--kleur-wit);
	font-size: 12.5px;
	font-weight: 800;
}

.cs-shop .cs-filterknop__aantal[hidden] {
	display: none;
}

/* Sorteren */
.cs-shop .cs-sorteer {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.cs-shop .cs-sorteer__label {
	color: var(--kleur-zacht);
	font-size: 14.5px;
	font-weight: 500;
	white-space: nowrap;
}

.cs-shop .cs-sorteer__keuze {
	box-sizing: border-box;
	height: 44px;
	max-width: 100%;
	padding: 0 12px;
	border: 1px solid var(--kleur-veldrand);
	border-radius: var(--radius-klein);
	background-color: var(--kleur-wit);
	color: var(--kleur-inkt);
	font-family: var(--font-tekst);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.cs-shop .cs-sorteer__knop,
.cs-shop .cs-sorteer__knop:hover,
.cs-shop .cs-sorteer__knop:focus {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--kleur-inkt);
	border-radius: var(--radius-rond);
	background: var(--kleur-wit);
	color: var(--kleur-inkt);
	font-weight: 700;
}

/* --- Raster --- */
.cs-shop .cs-shop__lijst ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-shop .cs-shop__lijst ul.products::before,
.cs-shop .cs-shop__lijst ul.products::after {
	content: none;
	display: none;
}

.cs-shop .cs-shop__resultaten.is-laden .cs-shop__lijst {
	opacity: .5;
	transition: opacity .15s ease-out;
}

/* --- Lege staat --- */
.cs-shop .cs-leeg {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--kleur-vlak);
	text-align: center;
}

.cs-shop .cs-leeg p {
	margin: 0;
	color: var(--kleur-zacht);
}

.cs-shop .cs-leeg .cs-leeg__titel {
	color: var(--kleur-kop);
	font-size: 19px;
	font-weight: 800;
}

.cs-shop .cs-leeg .woocommerce-info {
	margin: 0;
}

/* --- Paginering --- */
.cs-shop .cs-paginering {
	margin-top: 40px;
}

.cs-shop .cs-paginering__lijst {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-shop .cs-paginering__lijst li {
	margin: 0;
}

.cs-shop .cs-paginering .page-numbers {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--radius-rond);
	box-shadow: inset 0 0 0 1px var(--kleur-veldrand);
	color: var(--kleur-inkt);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.cs-shop .cs-paginering a.page-numbers:hover {
	background: var(--kleur-vlak);
	color: var(--kleur-inkt);
}

.cs-shop .cs-paginering .page-numbers.current {
	background: var(--kleur-groen);
	box-shadow: none;
	color: var(--kleur-wit);
}

.cs-shop .cs-paginering .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	box-shadow: none;
}

/* --- Achtergrond van de lade + scroll-lock --- */
.cs-scherm {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: color-mix(in srgb, var(--kleur-inkt) 40%, transparent);
}

html.cs-vast,
html.cs-vast body {
	overflow: hidden;
}

/* --- Breekpunten --- */
@media (max-width: 1240px) {
	.cs-shop .cs-shop__lijst ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1080px) {
	.cs-shop--filters .cs-shop__cat {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	/* Zonder JavaScript: filters gewoon boven het raster. */
	.cs-shop .cs-filters {
		position: static;
		max-height: none;
		overflow: visible;
		margin-left: 0;
		padding: 0;
	}

	/* Met JavaScript: lade van links. */
	.cs-js .cs-shop .cs-filterknop {
		display: inline-flex;
	}

	.cs-js .cs-shop .cs-filters {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1001;
		width: min(380px, 88vw);
		max-height: none;
		margin: 0;
		padding: 16px 20px 0;
		overflow-y: auto;
		background: var(--kleur-wit);
		box-shadow: 0 0 40px color-mix(in srgb, var(--kleur-inkt) 25%, transparent);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .2s ease-out, visibility 0s linear .2s;
	}

	.cs-js .cs-shop .cs-filters.is-open {
		transform: none;
		visibility: visible;
		transition: transform .2s ease-out, visibility 0s linear 0s;
	}

	.cs-js .cs-shop .cs-filters:focus {
		outline: none;
	}

	.cs-js .cs-shop .cs-filters__kop {
		position: static;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: auto;
		height: auto;
		margin-bottom: 4px;
		overflow: visible;
		clip: auto;
		white-space: normal;
	}

	.cs-js .cs-shop .cs-filters__sluit,
	.cs-js .cs-shop .cs-filters__sluit:hover,
	.cs-js .cs-shop .cs-filters__sluit:focus {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: var(--radius-rond);
		background: var(--kleur-vlak);
		color: var(--kleur-inkt);
		cursor: pointer;
	}

	.cs-js .cs-shop .cs-filters__sluit:hover {
		background: var(--kleur-lijn);
	}

	.cs-js .cs-shop .cs-filters__voet {
		display: block;
		position: sticky;
		bottom: 0;
		z-index: 1;
		margin: 8px -20px 0;
		padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
		background: var(--kleur-wit);
		box-shadow: 0 -1px 0 var(--kleur-lijn);
	}
}

@media (max-width: 820px) {
	.cs-shop .cs-shop__lijst ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
}

@media (max-width: 560px) {
	.cs-shop .cs-werkbalk__sorteer,
	.cs-shop .cs-sorteer {
		width: 100%;
	}

	.cs-shop .cs-sorteer__keuze {
		flex: 1;
		min-width: 0;
	}

	.cs-shop .cs-shop__sub {
		font-size: 16px;
	}

	.cs-shop .cs-leeg {
		padding: 24px 16px;
	}
}

/* ==========================================================================
   3. Toast (inc/assets/shop.js)
   ========================================================================== */

.cs-toast {
	box-sizing: border-box;
	position: fixed;
	left: 50%;
	bottom: calc(var(--cs-toast-onder, 24px) + env(safe-area-inset-bottom, 0px));
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 12px 18px 12px 14px;
	border-radius: 12px;
	background: var(--kleur-inkt);
	box-shadow: 0 10px 30px color-mix(in srgb, var(--kleur-inkt) 30%, transparent);
	color: var(--kleur-wit);
	font-family: var(--font-tekst);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s;
}

.cs-toast.is-zichtbaar {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
	transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear 0s;
}

.cs-toast svg {
	flex: none;
	color: var(--kleur-amber);
}

.cs-toast .cs-toast__link,
.cs-toast .cs-toast__link:hover,
.cs-toast .cs-toast__link:focus {
	flex: none;
	margin-left: 4px;
	padding-block: 6px;
	color: var(--kleur-wit);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.cs-toast {
		flex-wrap: wrap;
		row-gap: 2px;
	}

	.cs-toast__tekst {
		flex: 1 1 calc(100% - 28px);
	}

	.cs-toast .cs-toast__link {
		margin-left: 28px;
	}
}

/* ==========================================================================
   4. Minder beweging
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	ul.products li.product.cs-kaart .cs-kaart__beeld img,
	ul.products li.product.cs-kaart .cs-kaart__knop,
	.cs-shop .cs-filters,
	.cs-js .cs-shop .cs-filters,
	.cs-js .cs-shop .cs-filters.is-open,
	.cs-shop .cs-shop__meer summary::after,
	.cs-shop .cs-shop__resultaten.is-laden .cs-shop__lijst,
	.cs-toast,
	.cs-toast.is-zichtbaar {
		transition: none;
	}

	ul.products li.product.cs-kaart:hover .cs-kaart__beeld img,
	ul.products li.product.cs-kaart .cs-kaart__knop:active {
		transform: none;
	}

	ul.products li.product.cs-kaart .cs-kaart__knop.loading::after {
		animation: none;
	}
}
