/* Catalogus: winkel en categorieën (stap 7b). Maten volgen het ontwerp "Categorie". */

.dps-shop { padding-bottom: var(--dps-space-7); }

/* Kop */
.dps-shop__head { display: flex; flex-direction: column; gap: 14px; padding-top: var(--dps-space-4); }
.dps-breadcrumb { font-size: var(--dps-fs-13); color: var(--dps-text-muted); }
.dps-breadcrumb a { color: var(--dps-primary); }
.dps-breadcrumb__sep { margin-inline: 6px; }
.dps-shop__intro { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: end; }
.dps-shop__intro-text { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.dps-shop__title { font-size: var(--dps-fs-38); line-height: 1.05; }
.dps-shop__desc { color: var(--dps-text-2); }
.dps-shop__desc > :last-child { margin-bottom: 0; }
.dps-shop__help { font-weight: 600; font-size: var(--dps-fs-14); }

.dps-shop__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dps-shop__pills a { font-family: var(--dps-font-head); font-size: var(--dps-fs-14); font-weight: 600; padding: 8px 14px; border-radius: var(--dps-r-pill); text-decoration: none; background: var(--dps-surface); color: var(--dps-text); border: 1px solid var(--dps-line); }
.dps-shop__pills a:hover { border-color: var(--dps-line-strong); }
.dps-shop__pills a[aria-current] { background: var(--dps-primary); border-color: var(--dps-primary); color: #FFFFFF; }

.dps-shop__notices:empty { display: none; }
.dps-shop__notices { padding-top: var(--dps-space-4); }

/* Lichaam: filters + resultaten */
.dps-shop__body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: var(--dps-space-4); }
.dps-shop__results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Filterpaneel */
.dps-filters { flex: 1 1 260px; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--dps-surface); border: 1px solid var(--dps-line); border-radius: var(--dps-r-lg); }
.dps-filters.is-loading { opacity: .6; }
.dps-filters__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dps-filters__title { font-family: var(--dps-font-head); font-size: var(--dps-fs-20); }
.dps-filters__reset { font-size: var(--dps-fs-14); font-weight: 600; }
.dps-filters__close { display: none; }
.dps-filters__submit { display: none; }

.dps-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--dps-stock-bg); color: #24520F; font-family: inherit; font-weight: 600; font-size: var(--dps-fs-15); cursor: pointer; }
.dps-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dps-switch__track { flex: none; width: 46px; height: 26px; padding: 3px; border-radius: var(--dps-r-pill); background: var(--dps-line-strong); display: flex; transition: background-color .15s ease; }
.dps-switch__track::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: transform .15s ease; }
.dps-switch input:checked + .dps-switch__track { background: var(--dps-green); }
.dps-switch input:checked + .dps-switch__track::before { transform: translateX(20px); }
.dps-switch input:focus-visible + .dps-switch__track { outline: 2px solid var(--dps-primary); outline-offset: 2px; }

.dps-facet { border: 0; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--dps-line-soft); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dps-facet:last-of-type { border-bottom: 0; padding-bottom: 0; }
.dps-facet legend { font-family: var(--dps-font-head); font-weight: 700; font-size: var(--dps-fs-16); padding: 0 0 8px; }
.dps-facet__opts { display: flex; flex-wrap: wrap; gap: 8px; }

.dps-chip { position: relative; display: inline-flex; font-weight: 600; cursor: pointer; }
.dps-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dps-chip span { font-family: var(--dps-font-head); font-size: var(--dps-fs-14); padding: 7px 12px; border-radius: var(--dps-r-pill); border: 1.5px solid #C9D4DC; background: var(--dps-surface); color: var(--dps-text); }
.dps-chip:hover span { border-color: var(--dps-primary); }
.dps-chip input:checked + span { background: var(--dps-primary); border-color: var(--dps-primary); color: #FFFFFF; }
.dps-chip input:focus-visible + span { outline: 2px solid var(--dps-primary); outline-offset: 2px; }

/* Werkbalk */
.dps-shop__toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.dps-shop__filter-btn { display: none; }
.dps-shop__count { font-size: var(--dps-fs-15); }
.dps-shop__sort { display: flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 400; font-size: var(--dps-fs-14); color: var(--dps-text-2); }
.dps-shop__sort select { width: auto; font-size: var(--dps-fs-14); padding: 8px 10px; border-width: 1.5px; border-color: var(--dps-line-strong); }

.dps-shop__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dps-shop__chips a { display: inline-flex; gap: 6px; font-family: var(--dps-font-head); font-size: var(--dps-fs-13); font-weight: 600; padding: 6px 10px; border-radius: var(--dps-r-pill); background: #E3EAF4; color: var(--dps-primary); text-decoration: none; }
.dps-shop__chips a:hover { background: var(--dps-surface-tint); }

/* Vaste producten bovenaan (0.48.0, inc/vast.php) */
.dps-vast { padding: 16px; border-radius: var(--dps-r-md); background: var(--dps-surface-tint); }
.dps-vast__title, .dps-vast__rest { margin: 0 0 12px; font-size: var(--dps-fs-18); line-height: 1.2; }
.dps-vast__rest { margin: 0; }
@media (min-width: 900px) { .dps-grid--vast { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Productraster en kaart */
.dps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dps-card-product { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; background: var(--dps-surface); border: 1px solid var(--dps-line); border-radius: var(--dps-r-md); }
.dps-card-product.is-model { border: 2px solid #7EBC52; }
.dps-card-product__img { display: block; }
.dps-card-product__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.dps-card-product .dps-pill { align-self: flex-start; font-size: var(--dps-fs-12); padding: 3px 8px; }
.dps-card-product__title { font-size: 19px; line-height: 1.15; }
.dps-card-product__title a { color: var(--dps-text); text-decoration: none; }
.dps-card-product__title a:hover { color: var(--dps-primary); text-decoration: underline; }
.dps-card-product__specs { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--dps-fs-13); color: var(--dps-text-2); }
.dps-card-product__specs b { font-family: var(--dps-font-head); font-size: var(--dps-fs-18); color: var(--dps-primary); }
/* Tekstkenmerken (materiaal, voeding …): kleiner en donker, zodat ze niet concurreren met de getallen (0.35.0). */
.dps-card-product__specs .is-text b { font-size: var(--dps-fs-14); color: var(--dps-text); }
.dps-card-product__buy { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.dps-card-product__price { font-family: var(--dps-font-head); font-weight: 700; font-size: var(--dps-fs-20); }
.dps-card-product__price del { font-size: var(--dps-fs-14); font-weight: 400; color: var(--dps-text-muted); }
.dps-card-product__price .dps-price__quote { font-size: var(--dps-fs-16); }
.dps-card-product__stock { font-size: var(--dps-fs-13); font-weight: 600; color: var(--dps-stock); }
.dps-card-product__stock.dps-stock--backorder { color: var(--dps-warn); }
.dps-card-product__stock.dps-stock--lead { color: var(--dps-text-2); font-weight: 400; }
.dps-card-product__stock.dps-stock--out { color: var(--dps-danger); }
.dps-card-product__actions { display: flex; gap: 6px; }
.dps-card-product__actions .dps-btn { flex: 1 1 auto; }
.dps-card-product__actions .dps-btn--outline { flex: 0 0 auto; }
.dps-card-product__actions .dps-btn:only-child { flex: 1 1 auto; }

/* Leeg resultaat */
.dps-shop__empty { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 28px; background: var(--dps-surface); border: 1px solid var(--dps-line); border-radius: var(--dps-r-lg); }
.dps-shop__empty b { font-family: var(--dps-font-head); font-size: 22px; }
.dps-shop__empty p { margin: 0; color: var(--dps-text-2); }

/* Paginering */
.dps-pagination ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dps-pagination a, .dps-pagination span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--dps-r); border: 1px solid var(--dps-line); background: var(--dps-surface); font-family: var(--dps-font-head); font-weight: 600; text-decoration: none; color: var(--dps-text); }
.dps-pagination .current { background: var(--dps-primary); border-color: var(--dps-primary); color: #FFFFFF; }
.dps-pagination .dots { border: 0; background: transparent; }

/* ---- Mobiel ---- */
@media (max-width: 767px) {
	.dps-shop__title { font-size: var(--dps-fs-38); }
	.dps-shop__pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-inline: calc(-1 * var(--dps-gutter)); padding-inline: var(--dps-gutter); }
	.dps-shop__pills a { flex: none; }
	.dps-shop__filter-btn { display: inline-flex; }

	/* Filterpaneel als volledig scherm */
	.dps-filters { display: none; }
	.dps-filters[data-open="true"] { display: flex; position: fixed; inset: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100000; max-width: none; border-radius: 0; border: 0; overflow-y: auto; padding: 18px var(--dps-gutter) 96px; }
	.dps-filters__close { display: inline-flex; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--dps-surface-tint); font-size: 24px; line-height: 1; cursor: pointer; }
	.dps-filters__submit { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--dps-gutter); background: var(--dps-surface); border-top: 1px solid var(--dps-line); }
	.dps-filters__submit .dps-btn { width: 100%; }

	.dps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dps-card-product { padding: 10px; gap: 6px; }
	.dps-card-product__title { font-size: var(--dps-fs-15); }
	.dps-card-product__specs span:nth-child(n+3) { display: none; }
	.dps-card-product__actions .dps-btn--outline:not(:only-child) { display: none; }
	.dps-card-product__actions .dps-btn { font-size: var(--dps-fs-13); padding: 9px 6px; }
}
.dps-no-scroll, .dps-no-scroll body { overflow: hidden; }

/* Filters overzichtelijker (0.40.0): aantallen, Aansturing als lijst, "Meer filters" en "Toon alle" ingeklapt. */
.dps-chip__n { font-size: var(--dps-fs-12); font-weight: 500; color: var(--dps-text-muted); margin-left: 2px; }
.dps-chip input:checked + span .dps-chip__n { color: rgba(255, 255, 255, .8); }
.dps-facet__opts--list { flex-direction: column; align-items: flex-start; gap: 6px; }
.dps-facets-more { border-top: 1px solid var(--dps-line-soft); padding-top: 12px; display: flex; flex-direction: column; }
.dps-facets-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--dps-font-head); font-weight: 700; font-size: var(--dps-fs-16); color: var(--dps-primary); padding: 4px 0; }
.dps-facets-more > summary::-webkit-details-marker { display: none; }
.dps-facets-more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 auto; transition: transform .15s; }
.dps-facets-more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.dps-facets-more[open] > summary { margin-bottom: 14px; }
.dps-facets-more__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--dps-primary); color: #fff; font-size: var(--dps-fs-12); display: inline-flex; align-items: center; justify-content: center; }
.dps-facets-more .dps-facet { margin-bottom: 16px; }
.dps-facets-more .dps-facet:last-child { border-bottom: 0; margin-bottom: 0; }
.dps-facet__more > summary { list-style: none; cursor: pointer; font-size: var(--dps-fs-13); font-weight: 600; color: var(--dps-primary); text-decoration: underline; text-underline-offset: 2px; width: fit-content; }
.dps-facet__more > summary::-webkit-details-marker { display: none; }
.dps-facet__more[open] > summary { margin-bottom: 8px; }

/* Pompkopzoeker (0.67.0, inc/pompkop.php) */
.dps-pkf { margin-top: 8px; margin-bottom: 20px; }
.dps-pkf__box { background: var(--dps-surface); border: 1px solid var(--dps-line); border-radius: var(--dps-r-lg, 12px); padding: 20px 24px; }
.dps-pkf__title { margin: 0 0 4px; font-size: var(--dps-fs-20); }
.dps-pkf__intro { margin: 0 0 14px; color: var(--dps-text-muted); font-size: var(--dps-fs-14); }
.dps-pkf__form { display: grid; grid-template-columns: minmax(200px, 1.4fr) auto minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(90px, .6fr) minmax(110px, .7fr) auto; gap: 10px; align-items: end; }
.dps-pkf__field { display: flex; flex-direction: column; gap: 5px; font-size: var(--dps-fs-13); font-weight: 600; min-width: 0; }
.dps-pkf__field input, .dps-pkf__field select { font-size: var(--dps-fs-14); font-weight: 400; padding: 10px; min-width: 0; }
.dps-pkf__or { align-self: center; padding-top: 18px; color: var(--dps-text-muted); font-size: var(--dps-fs-13); }
.dps-pkf__result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dps-line-faint); max-width: 640px; }
.dps-pkf__answer { margin: 0 0 8px; font-weight: 600; }
.dps-pkf__miss { margin: 14px 0 0; color: var(--dps-text-muted); font-size: var(--dps-fs-14); }
@media (max-width: 1100px) {
	.dps-pkf__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dps-pkf__field--q { grid-column: 1 / -1; }
	.dps-pkf__or { grid-column: 1 / -1; padding: 0; }
	.dps-pkf__btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.dps-pkf__box { padding: 16px; }
	.dps-pkf__form { grid-template-columns: minmax(0, 1fr); }
	.dps-pkf__field input, .dps-pkf__field select { font-size: 16px; }
}
