/* Vislokaal filters (Claude) 2026-10-16. Alleen geladen op categoriepagina's in filtermodus. */

body.vl-filters {
	--vlf-blue: #3A5896;
	--vlf-blue-dark: #2E4881;
	--vlf-text: #2D2D2D;
	--vlf-muted: #5F6478;
	--vlf-line: #C3CDDA;
	--vlf-soft: #E4EEF4;
	--vlf-softer: #F3F7FA;
	--vlf-focus: #F8B840;
	--vlf-gold: #B8995A;
}

/* ---------- oude elementen weg in filtermodus ---------- */
body.vl-filters .catalog-ordering,
body.vl-filters .filter_section,
body.vl-filters #product-ajax,
body.vl-filters .woocommerce-pagination,
body.vl-filters .woocommerce-result-count,
body.vl-filters .woocommerce-ordering {
	display: none !important;
}

/* ---------- grid ---------- */
body.vl-filters.tax-product_cat .allproducts {
	display: flex !important;
	flex-wrap: wrap;
	box-sizing: border-box;
	max-width: 1188px;
	width: 100%;
	margin: 0 auto 8px !important;
}
body.vl-filters.tax-product_cat .allproducts .product {
	box-sizing: border-box;
	padding: 0 12px 24px;
}
body.vl-filters .allproducts .product.vlf-hidden,
body.vl-filters .allproducts .product.vlf-more-hidden {
	display: none !important;
}
body.vl-filters .allproducts .wrap-inner {
	position: relative;
}

/* ---------- container ---------- */
.vlf {
	box-sizing: border-box;
	max-width: 1188px;
	width: 100%;
	margin: 8px auto 0;
	padding: 0 12px;
	font-family: Roboto, Arial, sans-serif;
	color: var(--vlf-text);
}
.vlf *,
.vlf-sheetwrap * {
	box-sizing: border-box;
}
.vlf:not(.is-ready) .vlf-ui {
	min-height: 60px;
}
.vlf button,
.vlf-sheetwrap button,
.vlf-morewrap button {
	font-family: Roboto, Arial, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	box-shadow: none;
}
.vlf-ic {
	flex: none;
	transition: transform .15s ease;
}

/* ---------- subcategorieen ---------- */
.vlf-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 4px 0 12px;
}
.vlf-cat {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--vlf-line);
	border-radius: 999px;
	background: #fff;
	color: var(--vlf-blue-dark) !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}
.vlf-cat:hover {
	background: var(--vlf-soft);
	border-color: var(--vlf-blue);
}
.vlf-cat.is-catch {
	border-color: var(--vlf-gold);
	background: var(--vlf-gold);
	color: #fff !important;
}
.vlf-cat.is-catch:hover {
	background: #A6884B;
	border-color: #A6884B;
}

/* ---------- balk ---------- */
.vlf-bar {
	position: -webkit-sticky;
	position: sticky;
	top: var(--vlf-top, 0px);
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--vlf-soft);
	padding: 10px 0;
}
.vlf-desk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.vlf-label {
	font-size: 14px;
	color: var(--vlf-muted);
	margin-right: 4px;
}
.vlf-dd {
	position: relative;
}
.vlf-fbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px 0 14px;
	border: 1px solid var(--vlf-line);
	border-radius: 6px;
	background: #fff;
	color: var(--vlf-text);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}
.vlf-fbtn:hover {
	border-color: var(--vlf-blue);
}
.vlf-fbtn.is-active {
	border-color: var(--vlf-blue);
	background: var(--vlf-soft);
	color: var(--vlf-blue-dark);
}
.vlf-fbtn[aria-expanded="true"] .vlf-ic,
.vlf-acchd[aria-expanded="true"] .vlf-ic {
	transform: rotate(180deg);
}
.vlf-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--vlf-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.vlf-n[hidden] {
	display: none;
}

/* ---------- uitklappaneel (desktop) ---------- */
.vlf-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	width: 300px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	padding: 10px 12px 12px;
	background: #fff;
	border: 1px solid var(--vlf-line);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(46, 72, 129, .16);
}
.vlf-panel[hidden] {
	display: none;
}
.vlf-dd[data-f="soort"] .vlf-panel,
.vlf-dd[data-f="herkomst"] .vlf-panel {
	width: 440px;
}
.vlf-dd[data-f="soort"] .vlf-opts,
.vlf-dd[data-f="herkomst"] .vlf-opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
}
.vlf-hint {
	margin: 2px 4px 8px;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--vlf-muted);
}
.vlf-opts {
	display: grid;
	gap: 2px;
}
.vlf-opts:not(.is-all) .vlf-extra {
	display: none;
}
.vlf-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 6px 6px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--vlf-text);
	cursor: pointer;
	user-select: none;
}
.vlf-opt:hover {
	background: var(--vlf-softer);
}
.vlf-opt input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--vlf-blue);
	cursor: pointer;
}
.vlf-opt.is-on .vlf-lab {
	font-weight: 600;
	color: var(--vlf-blue-dark);
}
.vlf-opt.is-off {
	opacity: .45;
	cursor: default;
}
.vlf-opt.is-off:hover {
	background: none;
}
.vlf-opt.is-off input {
	cursor: default;
}
.vlf-lab {
	flex: 1;
	min-width: 0;
}
.vlf-cnt {
	margin-left: auto;
	font-size: 13px;
	color: var(--vlf-muted);
	font-variant-numeric: tabular-nums;
}
.vlf-pfoot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--vlf-soft);
}
.vlf-link {
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--vlf-blue);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.vlf-link:hover {
	color: var(--vlf-blue-dark);
}
.vlf-link:disabled {
	color: #9AA3B5;
	text-decoration: none;
	cursor: default;
}
.vlf-moreopts {
	display: block;
	margin: 6px 6px 0;
}
.vlf-moreopts[hidden] {
	display: none;
}
.vlf-done {
	height: 36px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px;
	background: var(--vlf-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.vlf-done:hover {
	background: var(--vlf-blue-dark);
}

/* ---------- aantal en sorteren ---------- */
.vlf-right {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.vlf-count {
	font-size: 14px;
	color: var(--vlf-muted);
	white-space: nowrap;
}
.vlf-sortlab {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: var(--vlf-muted);
}
.vlf-selwrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.vlf-sort {
	-webkit-appearance: none;
	appearance: none;
	height: 40px;
	min-width: 180px;
	margin: 0;
	padding: 0 34px 0 12px;
	border: 1px solid var(--vlf-line);
	border-radius: 6px;
	background: #fff;
	color: var(--vlf-text);
	font-family: Roboto, Arial, sans-serif;
	font-size: 15px;
	cursor: pointer;
}
.vlf-selwrap .vlf-ic {
	position: absolute;
	right: 12px;
	top: 50%;
	margin-top: -7px;
	pointer-events: none;
}

/* ---------- chips ---------- */
.vlf-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px 0 4px;
}
.vlf-chips[hidden],
.vlf-dchips[hidden] {
	display: none;
}
.vlf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 10px 4px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--vlf-soft);
	color: var(--vlf-blue-dark);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.vlf-chip:hover {
	background: #D5E3EC;
}

/* ---------- mobiel: knoppen en snelle filters (verborgen op desktop) ---------- */
.vlf-mob,
.vlf-quick,
.vlf-mcount {
	display: none;
}
.vlf-quick {
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 10px 0 2px;
}
.vlf-quick::-webkit-scrollbar {
	display: none;
}
.vlf-q {
	flex: none;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--vlf-line);
	border-radius: 999px;
	background: #fff;
	color: var(--vlf-text);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}
.vlf-q[aria-pressed="true"] {
	border-color: var(--vlf-blue);
	background: var(--vlf-blue);
	color: #fff;
}
.vlf-q:disabled {
	opacity: .4;
	cursor: default;
}
.vlf-mbtn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--vlf-line);
	border-radius: 6px;
	background: #fff;
	color: var(--vlf-text);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	min-width: 0;
}
.vlf-mbtn span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.vlf-mbtn.is-active {
	border-color: var(--vlf-blue);
	background: var(--vlf-soft);
	color: var(--vlf-blue-dark);
}

/* ---------- leeg, meer, schermlezer ---------- */
.vlf-empty {
	padding: 40px 16px 24px;
	text-align: center;
	color: var(--vlf-muted);
	font-size: 16px;
}
.vlf-empty[hidden] {
	display: none;
}
.vlf-empty p {
	margin: 0 0 8px;
	padding: 0;
}
.vlf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.vlf-morewrap {
	max-width: 1188px;
	margin: 0 auto;
	padding: 4px 12px 32px;
	text-align: center;
}
.vlf-morewrap[hidden] {
	display: none;
}
.vlf-morebtn {
	width: 100%;
	max-width: 360px;
	height: 48px;
	padding: 0 24px;
	border: 1px solid var(--vlf-blue);
	border-radius: 6px;
	background: #fff;
	color: var(--vlf-blue);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.vlf-morebtn:hover {
	background: var(--vlf-soft);
}

/* ---------- labels op de productkaart ---------- */
.vlf-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	pointer-events: none;
}
.vlf-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	background: #fff;
	color: var(--vlf-blue-dark);
	font-family: Roboto, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.vlf-badge.is-catch {
	background: var(--vlf-gold);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .02em;
	font-size: 11px;
}

/* ---------- onderpanelen (mobiel) ---------- */
.vlf-sheetwrap {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	font-family: Roboto, Arial, sans-serif;
	color: #2D2D2D;
}
.vlf-sheetwrap[hidden] {
	display: none;
}
.vlf-scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 30, 50, .45);
}
.vlf-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 88vh;
	max-height: 88dvh;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
	animation: vlf-up .2s ease-out;
}
@keyframes vlf-up {
	from { transform: translateY(24px); opacity: .6; }
	to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.vlf-sheet { animation: none; }
	.vlf-ic { transition: none; }
}
.vlf-grab {
	width: 40px;
	height: 4px;
	margin: 8px auto 0;
	border-radius: 2px;
	background: #C3CDDA;
}
.vlf-shead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 8px 4px 16px;
	border-bottom: 1px solid #E4EEF4;
}
.vlf-shead h2 {
	margin: 0;
	padding: 0;
	font-family: Roboto, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #2D2D2D;
}
.vlf-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #2D2D2D;
	cursor: pointer;
}
.vlf-dchips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 16px 0;
}
.vlf-sbody {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0 16px;
}
.vlf-acc {
	border-bottom: 1px solid #E4EEF4;
}
.vlf-acchd {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 12px 0;
	border: 0;
	background: none;
	color: #2D2D2D;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.vlf-acchd .vlf-ic {
	margin-left: auto;
}
.vlf-accbody {
	padding: 0 0 12px;
}
.vlf-accbody[hidden] {
	display: none;
}
.vlf-sheetwrap .vlf-opt {
	min-height: 44px;
	font-size: 16px;
}
.vlf-sheetwrap .vlf-opt input {
	width: 20px;
	height: 20px;
}
.vlf-sfoot {
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid #E4EEF4;
	background: #fff;
}
.vlf-sec {
	flex: none;
	height: 48px;
	padding: 0 18px;
	border: 1px solid #C3CDDA;
	border-radius: 6px;
	background: #fff;
	color: #2D2D2D;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.vlf-pri {
	flex: 1;
	height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: #3A5896;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.vlf-pri:disabled {
	background: #9AA3B5;
	cursor: default;
}
.vlf-sortlist {
	padding: 8px 16px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.vlf-sortlist .vlf-opt input {
	accent-color: #3A5896;
}
body.vlf-noscroll {
	overflow: hidden;
}

/* ---------- focus ---------- */
.vlf button:focus-visible,
.vlf input:focus-visible,
.vlf select:focus-visible,
.vlf a:focus-visible,
.vlf-sheetwrap button:focus-visible,
.vlf-sheetwrap input:focus-visible,
.vlf-morewrap button:focus-visible {
	outline: 3px solid #F8B840;
	outline-offset: 2px;
}

/* ---------- tablet ---------- */
@media (min-width: 768px) {
	.vlf-sheet {
		left: 50%;
		right: auto;
		width: 440px;
		transform: translateX(-50%);
		border-radius: 16px 16px 0 0;
		animation: none;
	}
}

/* ---------- mobiel ---------- */
@media (max-width: 767px) {
	.vlf {
		margin-top: 4px;
	}
	.vlf:not(.is-ready) .vlf-ui {
		min-height: 120px;
	}
	.vlf-cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -12px;
		padding: 4px 12px 10px;
	}
	.vlf-cats::-webkit-scrollbar {
		display: none;
	}
	.vlf-bar {
		top: 0;
		margin: 0 -12px;
		padding: 8px 12px;
		box-shadow: 0 2px 6px rgba(46, 72, 129, .06);
	}
	.vlf-desk {
		display: none;
	}
	.vlf-mob {
		display: flex;
		gap: 8px;
	}
	.vlf-quick {
		display: flex;
		margin: 0 -12px;
		padding: 10px 12px 2px;
	}
	.vlf-mcount {
		display: block;
		margin: 10px 0 0;
		padding: 0;
		font-size: 14px;
		color: var(--vlf-muted);
	}
	.vlf-chips {
		padding-top: 8px;
	}

	/* twee kolommen op mobiel */
	body.vl-filters.tax-product_cat .allproducts {
		margin: 0 auto 8px !important;
		padding: 0 6px;
	}
	body.vl-filters.tax-product_cat .allproducts .product {
		width: 50% !important;
		max-width: 50% !important;
		flex: 0 0 50%;
		padding: 0 6px 16px !important;
	}
	body.vl-filters .allproducts .product .wrap-inner {
		height: 100%;
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
	body.vl-filters .allproducts .product .woocommerce-LoopProduct-link {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		text-align: left !important;
		padding-bottom: 4px;
	}
	body.vl-filters .allproducts .product .et_shop_image {
		display: block !important;
		max-width: 100% !important;
		text-align: center !important;
	}
	body.vl-filters .allproducts .product h2.woocommerce-loop-product__title,
	body.vl-filters .allproducts .product .shop_attrbt,
	body.vl-filters .allproducts .product .fusion-price-rating,
	body.vl-filters .allproducts .product .fusion-price-rating .price {
		text-align: left !important;
		width: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.vl-filters .allproducts .product .fusion-price-rating {
		padding-right: 44px !important;
		min-height: 38px;
		display: flex !important;
		align-items: center;
	}
	body.vl-filters .allproducts .product .add_to_cart_button {
		right: 8px !important;
		bottom: 10px !important;
		top: auto !important;
		width: 38px !important;
		height: 38px !important;
	}
	body.vl-filters .allproducts .product img {
		max-width: 100% !important;
		height: auto !important;
	}
	body.vl-filters .allproducts .product h2.woocommerce-loop-product__title {
		font-size: 16px !important;
		line-height: 1.25 !important;
		word-break: break-word;
		hyphens: auto;
	}
	body.vl-filters .allproducts .product .shop_attrbt {
		font-size: 12px !important;
		line-height: 1.35 !important;
	}
	body.vl-filters .allproducts .product .price,
	body.vl-filters .allproducts .product .price * {
		font-size: 18px !important;
	}
	.vlf-badges {
		top: 6px;
		left: 6px;
	}
	.vlf-badge {
		padding: 3px 6px;
		font-size: 11px;
	}
	.vlf-badge.is-catch {
		font-size: 10px;
	}
}
