/*! Studio MVP product filter 2.3.2 | Studio MVP | Basisopmaak van de filter: structuur en kleuren via CSS-variabelen, de rest via eigen CSS. */
.smvp-if {
	--smvp-if-accent: #222;
	--smvp-if-accent-text: #fff;
	--smvp-if-text: inherit;
	--smvp-if-heading-color: inherit;
	--smvp-if-border: #ddd;
	--smvp-if-bg: #fff;
	--smvp-if-hover: rgba(0, 0, 0, 0.04);
	--smvp-if-count-bg: rgba(0, 0, 0, 0.06);
	--smvp-if-radius: 4px;
	margin: 0 0 24px;
	color: var(--smvp-if-text);
}

.smvp-if *,
.smvp-if *::before,
.smvp-if *::after {
	box-sizing: border-box;
}

.smvp-if [hidden] {
	display: none !important;
}

.smvp-if__panel {
	margin: 0;
	padding: 0;
}

.smvp-if__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.smvp-if__label {
	display: block;
	float: left;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	color: var(--smvp-if-heading-color);
	font-weight: 700;
}

/* Lijsten zonder bolletjes of inspringing (ook binnen tekstmodules en widgets). */
.smvp-if ul.smvp-if__options,
.smvp-if ul.smvp-if__sub {
	clear: both;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.smvp-if ul.smvp-if__options li,
.smvp-if ul.smvp-if__sub li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.smvp-if ul.smvp-if__options li::before,
.smvp-if ul.smvp-if__options li::marker {
	content: none;
}

/* ---------- Verticaal ---------- */

/* Lijn tussen de filters. */
.smvp-if--vertical .smvp-if__field + .smvp-if__field {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--smvp-if-border);
}

/* Keuzerondje onzichtbaar maar bereikbaar; de hele regel is klikbaar. */
.smvp-if__radio {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0 !important;
	opacity: 0;
}

.smvp-if__choice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 8px;
	border-radius: var(--smvp-if-radius);
	cursor: pointer;
}

.smvp-if__choice:hover {
	background: var(--smvp-if-hover);
}

.smvp-if__choice:has(.smvp-if__radio:focus-visible) {
	outline: 2px solid var(--smvp-if-accent);
	outline-offset: -2px;
}

.smvp-if__text {
	flex: 1 1 auto;
	min-width: 0;
}

.smvp-if__count {
	flex: 0 0 auto;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--smvp-if-count-bg);
	font-size: 0.85em;
	line-height: 1.6;
}

.smvp-if__count:empty {
	display: none;
}

/* Gekozen optie, met kruisje: opnieuw klikken zet de filter uit. */
.smvp-if__choice:has(.smvp-if__radio:checked) {
	color: var(--smvp-if-accent);
	font-weight: 700;
}

.smvp-if__choice:has(.smvp-if__radio:checked) .smvp-if__count {
	background: var(--smvp-if-accent);
	color: var(--smvp-if-accent-text);
}

.smvp-if__choice:has(.smvp-if__radio:checked:not([value=""]))::after {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Categorieboom: hoofdcategorie vet, subcategorieën ingesprongen. */
.smvp-if__field[data-tree] .smvp-if__option--d0 > .smvp-if__choice {
	font-weight: 700;
}

.smvp-if__sub .smvp-if__choice {
	padding-left: 24px;
	font-weight: 400;
}

.smvp-if__sub .smvp-if__sub .smvp-if__choice {
	padding-left: 40px;
}

.smvp-if ul.smvp-if__sub:not(:has(> li:not([hidden]))) {
	display: none;
}

.smvp-if--vertical .smvp-if__actions:has(.smvp-if__reset:not([hidden])) {
	margin-bottom: 12px;
}

/* Checkboxen: zichtbaar vakje in de accentkleur. */
.smvp-if__check {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--smvp-if-accent);
	cursor: pointer;
}

.smvp-if__field--checkbox .smvp-if__choice:has(.smvp-if__check:checked)::after {
	content: none;
}

/* Kleuren: ronde stalen naast elkaar, naam als tooltip. */
.smvp-if__field--color ul.smvp-if__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.smvp-if__choice--swatch {
	padding: 0;
	border-radius: 50%;
}

.smvp-if__choice--swatch:hover {
	background: none;
}

.smvp-if__swatch {
	display: block;
	width: 28px;
	height: 28px;
	border: 1px solid var(--smvp-if-border);
	border-radius: 50%;
	background: var(--smvp-if-swatch, transparent);
}

.smvp-if__swatch--none {
	background: repeating-linear-gradient(45deg, var(--smvp-if-border) 0 2px, transparent 2px 6px);
}

.smvp-if__choice--swatch .smvp-if__text,
.smvp-if__choice--swatch .smvp-if__count {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.smvp-if__choice--swatch:has(.smvp-if__radio:checked) .smvp-if__swatch {
	box-shadow: 0 0 0 2px var(--smvp-if-bg), 0 0 0 4px var(--smvp-if-accent);
}

.smvp-if .smvp-if__choice--swatch:has(.smvp-if__radio:checked:not([value=""]))::after {
	content: none;
}

/* Prijsslider met twee grepen. */
.smvp-if__slider {
	clear: both;
	padding: 8px 4px 0;
}

.smvp-if__slider-track {
	position: relative;
	height: 24px;
}

.smvp-if__slider-track::before,
.smvp-if__slider-fill {
	content: "";
	position: absolute;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
}

.smvp-if__slider-track::before {
	left: 0;
	right: 0;
	background: var(--smvp-if-border);
}

.smvp-if__slider-fill {
	background: var(--smvp-if-accent);
}

.smvp-if__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.smvp-if__range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--smvp-if-bg);
	border-radius: 50%;
	background: var(--smvp-if-accent);
	box-shadow: 0 0 0 1px var(--smvp-if-accent);
	pointer-events: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.smvp-if__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 2px solid var(--smvp-if-bg);
	border-radius: 50%;
	background: var(--smvp-if-accent);
	pointer-events: auto;
	cursor: pointer;
}

.smvp-if__range::-webkit-slider-runnable-track,
.smvp-if__range::-moz-range-track {
	background: none;
}

.smvp-if__slider-values {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.smvp-if__price {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	min-width: 0;
	padding: 0 8px;
	border: 1px solid var(--smvp-if-border);
	border-radius: var(--smvp-if-radius);
	background: var(--smvp-if-bg);
}

.smvp-if__price:focus-within {
	border-color: var(--smvp-if-accent);
}

.smvp-if__price-symbol {
	flex: 0 0 auto;
	opacity: 0.7;
}

.smvp-if .smvp-if__price-input {
	width: 100%;
	min-width: 0;
	height: 36px;
	margin: 0;
	padding: 0 0 0 4px;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	-moz-appearance: textfield;
}

.smvp-if__price-input:focus {
	outline: none;
}

.smvp-if__price-input::-webkit-outer-spin-button,
.smvp-if__price-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* "Bekijk meer" */
.smvp-if__option.is-more {
	display: none !important;
}

.smvp-if__more {
	margin: 6px 0 0;
	padding: 4px 8px;
	border: 0;
	background: none;
	color: var(--smvp-if-accent);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

/* Kleurstaal met afbeelding. */
.smvp-if__swatch--image {
	background: var(--smvp-if-swatch, transparent) var(--smvp-if-swatch-image) center / cover no-repeat;
}

/* Actieve filters als labels. */
.smvp-if ul.smvp-if__active {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px !important;
	padding: 0 !important;
	list-style: none !important;
}

.smvp-if ul.smvp-if__active li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.smvp-if ul.smvp-if__active li::before {
	content: none;
}

.smvp-if__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 10px;
	border: 1px solid var(--smvp-if-border);
	border-radius: 20px;
	background: var(--smvp-if-count-bg);
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	line-height: 1.4;
	cursor: pointer;
}

.smvp-if__chip:hover {
	border-color: var(--smvp-if-accent);
	color: var(--smvp-if-accent);
}

/* Zoekveld [smvp_search]. */
.smvp-if-search {
	--smvp-if-accent: #222;
	--smvp-if-border: #ddd;
	--smvp-if-bg: #fff;
	--smvp-if-radius: 4px;
	position: relative;
	display: flex;
	align-items: center;
	margin: 0 0 16px;
}

.smvp-if-search__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.smvp-if-search__icon {
	position: absolute;
	left: 12px;
	pointer-events: none;
	opacity: 0.6;
}

.smvp-if-search__input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 40px;
	border: 1px solid var(--smvp-if-border);
	border-radius: var(--smvp-if-radius);
	background: var(--smvp-if-bg);
	color: inherit;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.smvp-if-search__input::-webkit-search-cancel-button {
	display: none;
}

.smvp-if-search__input:focus {
	border-color: var(--smvp-if-accent);
	outline: none;
}

.smvp-if-search__clear {
	position: absolute;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.smvp-if-search__clear[hidden] {
	display: none;
}

/* Header-zoekbalk [smvp_header_search]. */
.smvp-if-hs {
	--smvp-if-text: #222;
	--smvp-if-accent: #222;
	--smvp-if-border: #ddd;
	--smvp-if-bg: #fff;
	--smvp-if-hover: rgba(0, 0, 0, 0.04);
	--smvp-if-radius: 4px;
	position: relative;
	width: 100%;
	max-width: 520px;
}

.smvp-if-hs__form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.smvp-if-hs__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.smvp-if-hs__icon {
	position: absolute;
	left: 12px;
	display: flex;
	pointer-events: none;
	opacity: 0.6;
}

.smvp-if-hs__input {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px 8px 40px;
	border: 1px solid var(--smvp-if-border);
	border-radius: var(--smvp-if-radius);
	background: var(--smvp-if-bg);
	color: inherit;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.smvp-if-hs__input,
.smvp-if-hs__results,
.smvp-if-hs__icon {
	color: var(--smvp-if-text);
}

.smvp-if-hs__input::-webkit-search-cancel-button {
	display: none;
}

.smvp-if-hs__input:focus {
	border-color: var(--smvp-if-accent);
	outline: none;
}

.smvp-if-hs.is-loading .smvp-if-hs__icon {
	animation: smvp-if-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes smvp-if-pulse {
	to {
		opacity: 0.2;
	}
}

.smvp-if-hs__open,
.smvp-if-hs__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.smvp-if-hs__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 100001;
	overflow: hidden;
	border: 1px solid var(--smvp-if-border);
	border-radius: var(--smvp-if-radius);
	background: var(--smvp-if-bg);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.smvp-if-hs__results[hidden] {
	display: none;
}

.smvp-if-hs ul.smvp-if-hs__list {
	margin: 0 !important;
	padding: 4px 0 !important;
	list-style: none !important;
}

.smvp-if-hs ul.smvp-if-hs__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smvp-if-hs__item {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	color: inherit !important;
	text-decoration: none !important;
}

.smvp-if-hs__item:hover,
.smvp-if-hs__item.is-active,
.smvp-if-hs__all:hover,
.smvp-if-hs__all.is-active {
	background: var(--smvp-if-hover);
}

.smvp-if-hs__img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: var(--smvp-if-radius);
	object-fit: cover;
	background: var(--smvp-if-hover);
}

.smvp-if-hs__name {
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.smvp-if-hs__price {
	white-space: nowrap;
	font-size: 0.9em;
}

.smvp-if-hs__price del {
	opacity: 0.6;
}

.smvp-if-hs__all {
	display: block;
	padding: 12px;
	border-top: 1px solid var(--smvp-if-border);
	color: var(--smvp-if-accent) !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
}

.smvp-if-hs__empty {
	margin: 0;
	padding: 14px 12px;
}

/* ---------- Horizontaal ---------- */

.smvp-if--horizontal .smvp-if__panel {
	display: grid;
	grid-template-columns: repeat(var(--smvp-if-cols, 3), minmax(0, 1fr));
	gap: 16px;
	align-items: end;
}

.smvp-if--horizontal .smvp-if__field + .smvp-if__field {
	padding-left: 16px;
	border-left: 1px solid var(--smvp-if-border);
}

.smvp-if--horizontal .smvp-if__actions {
	grid-column: 1 / -1;
	order: 99;
}

.smvp-if__select {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--smvp-if-border);
	border-radius: var(--smvp-if-radius);
	background: var(--smvp-if-bg);
	color: inherit;
	font: inherit;
}

/* ---------- Gedeeld ---------- */

.smvp-if a.smvp-if__reset {
	color: var(--smvp-if-accent);
	font-weight: 700;
	text-decoration: underline;
}

.smvp-if__submit,
.smvp-if__apply {
	padding: 10px 20px;
	border: 0;
	border-radius: var(--smvp-if-radius);
	background: var(--smvp-if-accent);
	color: var(--smvp-if-accent-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.smvp-if__status {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.smvp-if__toggle,
.smvp-if__sheet-head,
.smvp-if__sheet-foot {
	display: none;
}

.smvp-if-empty {
	margin: 24px 0 !important;
}

/* ---------- Mobiel: knop en volledig scherm ---------- */

@media (max-width: 980px) {
	.smvp-if {
		clear: both;
	}

	.smvp-if__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		min-height: 48px;
		padding: 10px 16px;
		border: 0;
		border-radius: var(--smvp-if-radius);
		background: var(--smvp-if-accent);
		color: var(--smvp-if-accent-text);
		font: inherit;
		font-weight: 700;
		cursor: pointer;
	}

	.smvp-if .smvp-if__panel {
		display: none;
	}

	.smvp-if.is-open .smvp-if__panel {
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: flex;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 0 16px;
		background: var(--smvp-if-bg);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.smvp-if.is-open .smvp-if__sheet-head {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -16px 16px;
		padding: 12px 16px;
		border-bottom: 1px solid var(--smvp-if-border);
		background: var(--smvp-if-bg);
	}

	.smvp-if__sheet-title {
		color: var(--smvp-if-heading-color);
		font-size: 1.3em;
		font-weight: 700;
	}

	.smvp-if__close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--smvp-if-hover);
		color: inherit;
		cursor: pointer;
	}

	.smvp-if.is-open .smvp-if__sheet-foot {
		position: sticky;
		bottom: 0;
		z-index: 2;
		display: block;
		margin: auto -16px 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--smvp-if-border);
		background: var(--smvp-if-bg);
	}

	.smvp-if__apply {
		display: block;
		width: 100%;
		min-height: 48px;
	}

	.smvp-if__field:last-of-type {
		margin-bottom: 20px;
	}

	.smvp-if--horizontal .smvp-if__field + .smvp-if__field {
		margin-top: 16px;
		padding-top: 16px;
		padding-left: 0;
		border-top: 1px solid var(--smvp-if-border);
		border-left: 0;
	}

	.smvp-if__choice {
		min-height: 44px;
	}

	html.smvp-if-locked,
	html.smvp-if-locked body {
		overflow: hidden !important;
	}

	/* Header-zoekbalk mobiel: alleen vergrootglas, opent een zoekscherm. */
	.smvp-if-hs--icon {
		width: auto;
	}

	.smvp-if-hs--icon .smvp-if-hs__open {
		display: flex;
	}

	.smvp-if-hs--icon .smvp-if-hs__form {
		display: none;
	}

	.smvp-if-hs--icon.is-open .smvp-if-hs__form {
		color: var(--smvp-if-text);
		position: fixed;
		inset: 0;
		z-index: 100000;
		display: flex;
		flex-wrap: wrap;
		align-content: flex-start;
		gap: 8px;
		padding: 12px 16px;
		background: var(--smvp-if-bg);
		overflow-y: auto;
	}

	.smvp-if-hs--icon.is-open .smvp-if-hs__icon {
		top: 12px;
		left: 28px;
		height: 44px;
		align-items: center;
	}

	.smvp-if-hs--icon.is-open .smvp-if-hs__input {
		flex: 1 1 0;
	}

	.smvp-if-hs--icon.is-open .smvp-if-hs__close {
		display: flex;
	}

	.smvp-if-hs--icon.is-open .smvp-if-hs__results {
		position: static;
		flex: 1 0 100%;
		border: 0;
		box-shadow: none;
	}

	.smvp-if-hs__item {
		grid-template-columns: 48px 1fr;
	}

	.smvp-if-hs__img {
		grid-row: span 2;
	}

	.smvp-if-hs__price {
		grid-column: 2;
	}
}
