/*
 * Teak Lifestyle Productfilter
 * Huisstijl: DM Sans (UI, uppercase microtype), DM Serif Display (accenten),
 * creme #F3F2ED, haarlijnen #E5E2DA, teakbruin #8B6F52 / #5C4433, charcoal #1E1A16.
 */

.tlpf-root {
	--tlpf-cream: #f3f2ed;
	--tlpf-hairline: #e5e2da;
	--tlpf-teak: #8b6f52;
	--tlpf-teak-dark: #5c4433;
	--tlpf-charcoal: #1e1a16;
	--tlpf-body: #666666;
	--tlpf-sans: "DM Sans", "Open Sans", Arial, sans-serif;
	--tlpf-serif: "DM Serif Display", Georgia, serif;
	font-family: var(--tlpf-sans);
	color: var(--tlpf-body);
	font-size: 14px;
	line-height: 1.5;
}

.tlpf-root *,
.tlpf-results * {
	box-sizing: border-box;
}

/* Mobiele togglebalk (op desktop verborgen) */
.tlpf-mobile-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	background: var(--tlpf-cream);
	border: 1px solid var(--tlpf-hairline);
	color: #000;
	font-family: var(--tlpf-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 13px 16px;
	cursor: pointer;
}

.tlpf-mobile-toggle svg {
	transition: transform 0.2s ease-out;
}

.tlpf-root.tlpf-open .tlpf-mobile-toggle svg {
	transform: rotate(180deg);
}

/* Secties */
.tlpf-section {
	padding: 18px 0;
	border-bottom: 1px solid var(--tlpf-hairline);
}

.tlpf-heading {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--tlpf-teak);
	margin-bottom: 12px;
}

/* Sorteren */
.tlpf-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tlpf-hairline);
	background: #fff;
	color: #000;
	font-family: var(--tlpf-sans);
	font-size: 14px;
	appearance: auto;
}

.tlpf-select:focus-visible {
	outline: 2px solid var(--tlpf-teak);
	outline-offset: 1px;
}

/* Prijsschuif */
.tlpf-price-values {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	color: #000;
	font-family: var(--tlpf-serif);
	font-size: 16px;
}

.tlpf-range {
	position: relative;
	height: 24px;
}

.tlpf-range-track,
.tlpf-range-fill {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 2px;
	border-radius: 2px;
}

.tlpf-range-track {
	left: 0;
	right: 0;
	background: var(--tlpf-hairline);
}

.tlpf-range-fill {
	background: var(--tlpf-teak-dark);
}

.tlpf-range input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.tlpf-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--tlpf-teak-dark);
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(30, 26, 22, 0.2);
}

.tlpf-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--tlpf-teak-dark);
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(30, 26, 22, 0.2);
}

.tlpf-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--tlpf-charcoal);
	outline-offset: 2px;
}

/* Checkboxen. Divi zet met ID-selectors bolletjes en inspring op elke ul/li;
   daarom ook hier expliciet dichtgetimmerd. */
.tlpf-cats {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tlpf-cats li {
	list-style: none !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
}

.tlpf-cats li::marker {
	content: "" !important;
}

.tlpf-cats li::before {
	content: none !important;
	display: none !important;
}

.tlpf-cats label,
.tlpf-check {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	color: var(--tlpf-body);
	font-size: 14px;
	margin: 0 0 10px;
}

.tlpf-cats input,
.tlpf-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.tlpf-box {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 1px solid #c9c4b8;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.tlpf-cats input:checked + .tlpf-box,
.tlpf-check input:checked + .tlpf-box {
	background: var(--tlpf-teak-dark);
	border-color: var(--tlpf-teak-dark);
}

.tlpf-cats input:checked + .tlpf-box::after,
.tlpf-check input:checked + .tlpf-box::after {
	content: "";
	width: 10px;
	height: 6px;
	border-left: 2px solid #f3f2ed;
	border-bottom: 2px solid #f3f2ed;
	transform: rotate(-45deg) translate(1px, -1px);
}

.tlpf-cats input:focus-visible + .tlpf-box,
.tlpf-check input:focus-visible + .tlpf-box {
	outline: 2px solid var(--tlpf-teak);
	outline-offset: 2px;
}

.tlpf-cat-name {
	flex: 1 1 auto;
}

.tlpf-cat-count {
	color: #a39f94;
	font-size: 12.5px;
}

/* Chips met actieve filters */
.tlpf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 0 4px;
}

.tlpf-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tlpf-cream);
	border: 1px solid var(--tlpf-hairline);
	color: var(--tlpf-charcoal);
	font-size: 12.5px;
	padding: 5px 10px;
	cursor: pointer;
	font-family: var(--tlpf-sans);
}

.tlpf-chip::after {
	content: "\00d7";
	font-size: 14px;
	color: var(--tlpf-teak);
}

.tlpf-chip:hover {
	border-color: var(--tlpf-teak);
}

/* Voet */
.tlpf-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}

.tlpf-count {
	font-size: 13px;
	color: var(--tlpf-body);
}

.tlpf-clear {
	background: none;
	border: 0;
	padding: 0;
	color: var(--tlpf-teak-dark);
	font-family: var(--tlpf-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.tlpf-clear:hover {
	color: var(--tlpf-charcoal);
}

/* ===== Resultatengrid (vervangt het originele grid bij actieve filters) =====
 * Dit grid landt midden in Divi's content-containers, waar ID-selectors
 * (#main-content h3, #left-area ul li, ...) elke nette class overtroeven.
 * Daarom is alles hier hard dichtgetimmerd met !important. */

.tlpf-results {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: "DM Sans", "Open Sans", Arial, sans-serif;
}

.tlpf-grid {
	display: grid !important;
	/* minmax(0,1fr): kolommen mogen krimpen onder de tekstbreedte,
	   anders duwen lange woorden het grid buiten beeld op mobiel. */
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 28px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.tlpf-grid .tlpf-card {
	display: block !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: 0 !important;
	background: none !important;
	text-decoration: none !important;
	color: inherit !important;
}

.tlpf-grid .tlpf-imgwrap {
	position: relative !important;
	display: block !important;
	background: #f3f2ed;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tlpf-grid .tlpf-imgwrap img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.tlpf-grid .tlpf-badge {
	position: absolute !important;
	top: 14px !important;
	left: 14px !important;
	z-index: 5 !important;
	margin: 0 !important;
	background: #5c4433;
	color: #f3f2ed !important;
	font-family: "DM Serif Display", Georgia, serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.2px !important;
	padding: 7px 12px !important;
	max-width: calc(100% - 28px) !important;
	pointer-events: none;
}

.tlpf-grid .tlpf-badge--uitverkocht {
	background: #1e1a16;
}

.tlpf-grid .tlpf-card h3 {
	font-family: "DM Sans", "Open Sans", Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	color: #000 !important;
	margin: 16px 0 6px !important;
	padding: 0 !important;
	line-height: 1.4 !important;
}

.tlpf-grid .tlpf-price {
	font-family: "DM Sans", "Open Sans", Arial, sans-serif !important;
	color: #666 !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tlpf-grid .tlpf-price del {
	color: #a39f94 !important;
	margin-right: 8px !important;
}

.tlpf-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 16px;
	color: #666;
}

.tlpf-empty strong {
	display: block;
	font-family: "DM Serif Display", Georgia, serif;
	font-weight: 500;
	font-size: 22px;
	color: #000;
	margin-bottom: 8px;
}

/* ===== Mobiel: filter onder de producten, ingeklapt ===== */

@media (max-width: 980px) {
	.tlpf-mobile-toggle {
		display: flex;
	}

	.tlpf-root {
		margin: 28px 0 8px;
	}

	.tlpf-panel {
		display: none;
		border: 1px solid var(--tlpf-hairline);
		border-top: 0;
		padding: 0 16px;
		background: #fff;
	}

	.tlpf-root.tlpf-open .tlpf-panel {
		display: block;
	}

	.tlpf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 18px !important;
	}
}

@media (max-width: 980px) and (min-width: 641px) {
	.tlpf-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}
