/* Product Overzicht met Filters */

.po-wrap {
	--po-accent: #e05a5a;
	--po-cols: 3;
	--po-min-card: 270px;
	--po-text: #2f2f2f;
	--po-muted: #8a8a8a;
	--po-border: #e4e4e4;
	--po-radius: 14px;
	--po-gap: 28px;
	color: var(--po-text);
	width: 100%;
}
.po-wrap *,
.po-wrap *::before,
.po-wrap *::after { box-sizing: border-box; }

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

/* Layout ---------------------------------------------------------------- */
.po-wrap .po-form {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	margin: 0;
}
.po-wrap.po-no-sidebar .po-form { grid-template-columns: minmax(0, 1fr); }
.po-main { min-width: 0; transition: opacity .2s; }
.po-wrap.is-loading .po-main { opacity: .45; pointer-events: none; }
.po-wrap.is-loading .po-sidebar { pointer-events: none; }

/* Sidebar / filters ------------------------------------------------------ */
.po-filter-block {
	padding: 0 0 22px;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--po-border);
}
.po-filter-block:last-of-type { border-bottom: 0; margin-bottom: 0; }

.po-wrap .po-filter-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 12px;
	padding: 0;
	color: var(--po-text);
	text-transform: none;
	letter-spacing: 0;
}

.po-wrap .po-term-list,
.po-wrap .po-term__children { list-style: none; margin: 0; padding: 0; }
.po-wrap .po-term-list { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.po-wrap .po-term__children { padding-left: 20px; }
.po-wrap .po-term__children[hidden] { display: none; }
.po-wrap .po-term { margin: 0; padding: 0; }
.po-wrap .po-term::before { content: none; }

.po-term__row { display: flex; align-items: center; gap: 6px; }

.po-wrap .po-check {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	padding: 5px 0;
	margin: 0;
	font-size: .95rem;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
}
.po-wrap .po-check input {
	width: 17px; height: 17px;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--po-accent);
	cursor: pointer;
}
.po-check__label { flex: 1; min-width: 0; }
.po-check__count { color: var(--po-muted); font-size: .85rem; }
.po-check:hover .po-check__label { color: var(--po-accent); }

.po-wrap .po-term__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px; height: 26px;
	padding: 0; margin: 0;
	border: 0; border-radius: 4px;
	background: none;
	box-shadow: none;
	color: var(--po-muted);
	cursor: pointer;
}
.po-wrap .po-term__toggle:hover { background: #f4f4f4; color: var(--po-text); }
.po-wrap .po-term__toggle::before {
	content: "";
	width: 7px; height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s;
}
.po-term.is-open > .po-term__row > .po-term__toggle::before { transform: rotate(-135deg) translate(-2px, -2px); }

/* Prijsslider */
.po-range { position: relative; height: 28px; margin: 4px 2px 8px; }
.po-range__track {
	position: absolute;
	left: 0; right: 0; top: 50%;
	height: 4px;
	transform: translateY(-50%);
	border-radius: 4px;
	background: linear-gradient(to right,
		var(--po-border) var(--from, 0%),
		var(--po-accent) var(--from, 0%),
		var(--po-accent) var(--to, 100%),
		var(--po-border) var(--to, 100%));
}
.po-wrap .po-range input[type="range"] {
	position: absolute;
	left: 0; top: 0;
	z-index: 2;
	width: 100%; height: 28px;
	margin: 0; padding: 0;
	border: 0; box-shadow: none;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.po-range input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.po-range input[type="range"]::-moz-range-track { background: transparent; border: 0; }
.po-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 18px; height: 18px;
	margin-top: 5px;
	border-radius: 50%;
	border: 2px solid var(--po-accent);
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
	cursor: grab;
}
.po-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 14px; height: 14px;
	border-radius: 50%;
	border: 2px solid var(--po-accent);
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
	cursor: grab;
}
.po-range input[type="range"]:focus { outline: none; }
.po-range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--po-accent); outline-offset: 2px; }
.po-range input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--po-accent); outline-offset: 2px; }

.po-price__values { display: flex; justify-content: space-between; font-size: .9rem; color: var(--po-text); }

.po-wrap .po-apply {
	margin-top: 16px;
	padding: 10px 18px;
	border: 1px solid var(--po-accent);
	border-radius: 6px;
	background: var(--po-accent);
	color: #fff;
	cursor: pointer;
}

/* Mobiele filterknop */
.po-wrap .po-filter-toggle { display: none; }

/* Toolbar ---------------------------------------------------------------- */
.po-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 20px;
}
.po-wrap .po-result-count { margin: 0; color: var(--po-muted); font-size: .95rem; }
.po-sort-wrap { margin: 0; margin-left: auto; }
.po-wrap .po-sort {
	min-width: 220px;
	padding: 9px 38px 9px 14px;
	border: 1px solid var(--po-border);
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 11px;
	color: var(--po-text);
	font: inherit;
	font-size: .95rem;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.po-wrap .po-sort:focus { outline: none; border-color: var(--po-accent); }

/* Actieve filters */
.po-wrap .po-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.po-wrap .po-chips li { margin: 0; padding: 0; }
.po-wrap .po-chips li::before { content: none; }
.po-wrap .po-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--po-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--po-accent);
	font-size: .88rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.po-wrap .po-chip:hover { background: var(--po-accent); color: #fff; }
.po-chip__x { font-size: 1.15em; line-height: 1; }
.po-wrap .po-chip--reset { border-color: transparent; color: var(--po-muted); text-decoration: underline; }
.po-wrap .po-chip--reset:hover { background: none; color: var(--po-text); }

/* Grid & kaart ------------------------------------------------------------ */
/* Maximaal --po-cols kolommen, maar een kaart wordt nooit smaller dan --po-min-card:
   bij te weinig ruimte schuiven er automatisch kaarten door naar de volgende rij. */
.po-wrap .po-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--po-min-card, 270px), (100% - (var(--po-cols) - 1) * var(--po-gap)) / var(--po-cols))), 1fr));
	gap: var(--po-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.po-wrap .po-grid__item { margin: 0; padding: 0; display: flex; }
.po-wrap .po-grid__item::before { content: none; }

.po-card {
	container: po-card / inline-size;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 28px 32px 32px;
	border: 1px solid var(--po-border);
	border-radius: var(--po-radius);
	background: #fff;
	transition: box-shadow .25s, border-color .25s;
}
.po-card:hover { border-color: #d6d6d6; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }

.po-card__badge {
	position: absolute;
	top: 16px; left: 16px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--po-accent);
	color: #fff;
	font-size: .78rem;
	line-height: 1.3;
}

.po-wrap .po-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	margin: 0 0 20px;
	overflow: hidden;
}
.po-wrap .po-card__image img {
	display: block;
	width: auto; height: auto;
	max-width: 100%; max-height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform .35s ease;
}
.po-card:hover .po-card__image img { transform: scale(1.03); }

.po-card__body { display: flex; flex-direction: column; flex: 1; }

.po-wrap .po-card__brand {
	margin: 0 0 6px;
	color: var(--po-accent);
	font-size: 1.1rem;
	line-height: 1.3;
}
.po-wrap .po-card__title {
	margin: 0 0 18px;
	padding: 0;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}
.po-wrap .po-card__title a { color: var(--po-text); text-decoration: none; }
.po-wrap .po-card__title a:hover { color: var(--po-accent); }

.po-wrap .po-card__price {
	margin: 0 0 24px;
	color: #111;
	font-size: 1.2rem;
	line-height: 1.3;
}
.po-wrap .po-card__price del { color: var(--po-muted); font-size: .85em; margin-right: 6px; opacity: 1; }
.po-wrap .po-card__price ins { text-decoration: none; color: var(--po-accent); background: none; }

.po-card__actions { margin-top: auto; }

.po-wrap a.po-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 0;
	padding: 14px 26px;
	border: 1px solid var(--po-accent);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--po-accent);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	max-width: 100%;
	transition: background-color .2s, color .2s;
	cursor: pointer;
}
.po-wrap a.po-btn:hover,
.po-wrap a.po-btn:focus-visible { background: var(--po-accent); color: #fff; }
.po-wrap a.po-btn::after { display: none; } /* thema-iconen van WooCommerce verbergen */
.po-btn__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.po-wrap a.po-btn.loading { opacity: .65; pointer-events: none; }
.po-wrap a.po-btn.loading .po-btn__icon { animation: po-pulse .9s ease-in-out infinite; }
.po-wrap a.po-btn.added .po-btn__icon { animation: po-pop .4s ease; }
.po-wrap .added_to_cart {
	display: block;
	margin-top: 10px;
	color: var(--po-accent);
	font-size: .9rem;
	text-decoration: underline;
}

@keyframes po-pulse { 50% { opacity: .3; } }
@keyframes po-pop { 50% { transform: scale(1.25); } }

/* Leeg & paginering ------------------------------------------------------- */
.po-empty {
	padding: 48px 24px;
	border: 1px dashed var(--po-border);
	border-radius: var(--po-radius);
	color: var(--po-muted);
	text-align: center;
}
.po-empty p { margin: 0 0 16px; }

.po-pagination { margin-top: 40px; }
.po-wrap .po-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0; padding: 0;
	border: 0;
	list-style: none;
}
.po-wrap .po-pagination ul.page-numbers li { margin: 0; padding: 0; border: 0; }
.po-wrap .po-pagination ul.page-numbers li::before { content: none; }
.po-wrap .po-pagination a.page-numbers,
.po-wrap .po-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	border: 1px solid var(--po-border);
	border-radius: 8px;
	background: #fff;
	color: var(--po-text);
	font-size: 1rem;
	text-decoration: none;
}
.po-wrap .po-pagination a.page-numbers:hover { border-color: var(--po-accent); color: var(--po-accent); }
.po-wrap .po-pagination span.current { border-color: var(--po-accent); background: var(--po-accent); color: #fff; }
.po-wrap .po-pagination span.dots { border: 0; background: none; }

/* Responsive -------------------------------------------------------------- */
/* Alles reageert op de breedte van het overzicht zelf (niet van het scherm),
   zodat het ook klopt in een smalle Elementor-kolom of -container. */
.po-wrap { container: po-wrap / inline-size; }

/* Smalle kaart: compacter */
@container po-card (max-width: 330px) {
	.po-wrap .po-card__title { font-size: 1.35rem; }
	.po-wrap .po-card__brand { font-size: 1rem; }
	.po-wrap .po-card__price { font-size: 1.1rem; }
	.po-wrap a.po-btn { gap: 10px; padding: 12px 18px; font-size: 1rem; }
	.po-btn__icon { width: 20px; height: 20px; }
}
@container po-card (max-width: 300px) {
	.po-wrap a.po-btn { width: 100%; }
}

@container po-wrap (max-width: 860px) {
	.po-wrap .po-form { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.po-wrap .po-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		margin: 0 0 16px;
		padding: 10px 18px;
		border: 1px solid var(--po-border);
		border-radius: 8px;
		background: #fff;
		box-shadow: none;
		color: var(--po-text);
		font: inherit;
		font-size: .95rem;
		cursor: pointer;
	}
	.po-wrap .po-filter-toggle svg { width: 18px; height: 18px; }
	.po-filter-toggle__count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px; height: 20px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--po-accent);
		color: #fff;
		font-size: .75rem;
	}
	.po-wrap .po-sidebar {
		display: none;
		padding: 20px;
		border: 1px solid var(--po-border);
		border-radius: var(--po-radius);
		background: #fff;
	}
	.po-wrap.filters-open .po-sidebar { display: block; }
}

@container po-wrap (max-width: 560px) {
	.po-wrap .po-grid { --po-gap: 18px; }
	.po-card { padding: 20px 22px 24px; }
	.po-wrap .po-sort { min-width: 0; width: 100%; }
	.po-sort-wrap { width: 100%; }
}
