/* EBRI Product Filters – compact scrollable checkbox lists */

/* Layout: filters links, producten rechts */
.ebri-product-filters-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.ebri-product-filters-wrap__sidebar {
	flex: 0 0 auto;
	width: 280px;
	min-width: 0;
}

.ebri-product-filters-wrap__main {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 768px) {
	.ebri-product-filters-wrap {
		flex-direction: column;
	}
	.ebri-product-filters-wrap__sidebar {
		width: 100%;
	}
}

.ebri-product-filters {
	--ebri-pf-radius: 8px;
	--ebri-pf-space: 0.75rem;
	--ebri-pf-border: 1px solid rgba(0, 0, 0, 0.08);
	--ebri-pf-bg: #fff;
	--ebri-pf-bg-section: #fafafa;
	--ebri-pf-text: #1a1a1a;
	--ebri-pf-muted: #5c5c5c;
	--ebri-pf-accent: #1a1a1a;
	--ebri-pf-scroll-h: 280px;
	margin-bottom: 1.25rem;
	padding: var(--ebri-pf-space);
	background: var(--ebri-pf-bg);
	border: var(--ebri-pf-border);
	border-radius: var(--ebri-pf-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ebri-product-filters__heading {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ebri-pf-text);
}

.ebri-product-filters__form {
	display: block;
}

.ebri-product-filters__sections {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 0.625rem;
}

/* Onder elkaar, allemaal dezelfde breedte (100% van de container) */
.ebri-product-filters__section {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	width: 100%;
	min-width: 0;
}

.ebri-product-filters__section-title {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ebri-pf-muted);
	line-height: 1.2;
	padding-bottom: 0.5rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


/* Scrollbaar blok */
.ebri-product-filters__scroll {
	max-height: var(--ebri-pf-scroll-h);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.25rem 0.25rem 0.25rem 0;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	background: #fff;
}

/* Stijl voor de scrollbar (modern, smal) */
.ebri-product-filters__scroll::-webkit-scrollbar {
	width: 8px;
}

.ebri-product-filters__scroll::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.ebri-product-filters__scroll::-webkit-scrollbar-thumb {
	background: #c4c4c4;
	border-radius: 4px;
}

.ebri-product-filters__scroll::-webkit-scrollbar-thumb:hover {
	background: #a0a0a0;
}

/* Groep per hoofdattribuut (soort) bij Eigenschappen */
.ebri-product-filters__attr-group {
	margin-bottom: 1rem;
}

.ebri-product-filters__attr-group:last-child {
	margin-bottom: 0;
}

.ebri-product-filters__attr-kind {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ebri-pf-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ebri-product-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebri-product-filters__item {
	margin: 0;
	padding: 0;
}

.ebri-product-filters__label-cb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.5rem;
	margin: 0 0 1px 0;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--ebri-pf-text);
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.12s ease;
}

.ebri-product-filters__label-cb:hover {
	background: #f5f5f5;
}

.ebri-product-filters__checkbox {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--ebri-pf-accent);
	cursor: pointer;
}

.ebri-product-filters__label-text {
	flex: 1;
	min-width: 0;
}

.ebri-product-filters__count {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--ebri-pf-muted);
}

.ebri-product-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	padding-top: 0.5rem;
	border-top: var(--ebri-pf-border);
	margin-top: 0.375rem;
}

.ebri-product-filters__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #fff;
	background: var(--ebri-pf-accent);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.ebri-product-filters__submit:hover {
	opacity: 0.9;
}

.ebri-product-filters__submit:active {
	transform: scale(0.98);
}

.ebri-product-filters__reset {
	font-size: 0.75rem;
	color: var(--ebri-pf-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.ebri-product-filters__reset:hover {
	color: var(--ebri-pf-text);
	text-decoration: underline;
}

/* Geen resultaten melding (buiten de filterbox, bij de producten) */
.ebri-product-filters__no-results {
	margin: 1rem 0;
	padding: 1rem;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	font-size: 0.9375rem;
	color: #495057;
}

/* Productgrid (bij show_products="1") */
.ebri-product-grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 0;
}

.ebri-product-grid--col-1 { grid-template-columns: 1fr; }
.ebri-product-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
.ebri-product-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
.ebri-product-grid--col-4 { grid-template-columns: repeat(4, 1fr); }
.ebri-product-grid--col-5 { grid-template-columns: repeat(5, 1fr); }
.ebri-product-grid--col-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
	.ebri-product-grid--col-4,
	.ebri-product-grid--col-5,
	.ebri-product-grid--col-6 { grid-template-columns: repeat(2, 1fr); }
	.ebri-product-grid--col-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.ebri-product-grid { grid-template-columns: 1fr; }
}

.ebri-product-card {
	background: #fff;
	border: 1px solid #042330;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease;
}

.ebri-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ebri-product-card__link {
	display: block;
	padding: 1.25rem;
	text-decoration: none;
	color: inherit;
}

.ebri-product-card__image {
	position: relative;
	aspect-ratio: 1;
	background: #f6f7f9;
	border-radius: 6px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.ebri-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ebri-product-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.75rem;
	color: #9ca3af;
}

.ebri-product-card__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.ebri-product-card__excerpt {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ebri-pf-muted, #5c5c5c);
	margin-bottom: 0.75rem;
}

.ebri-product-card__btn {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--ebri-pf-accent, #1a1a1a);
	border: 1px solid currentColor;
	border-radius: 6px;
	padding: 0.5rem 1rem;
	transition: background 0.15s ease, color 0.15s ease;
}

.ebri-product-card__link:hover .ebri-product-card__btn {
	background: var(--ebri-pf-accent, #1a1a1a);
	color: #fff;
}

.ebri-product-grid__pagination {
	margin-top: 1.5rem;
	text-align: center;
}

.ebri-product-grid__pagination .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebri-product-grid__pagination a.page-numbers,
.ebri-product-grid__pagination span.page-numbers {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	font-size: 0.875rem;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	color: inherit;
}

.ebri-product-grid__pagination a.page-numbers:hover {
	background: #f0f0f0;
}

.ebri-product-grid__pagination span.current {
	background: var(--ebri-pf-accent, #1a1a1a);
	color: #fff;
	border-color: transparent;
}

/* Related products – "Bekijk ook" */
.ebri-related-products {
	margin: 2rem 0;
}

.ebri-related-products__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ebri-pf-text, #1a1a1a);
}

.ebri-related-products .ebri-product-grid {
	margin-top: 0;
}

/* Productcategorieën-lijst */
.ebri-product-categories-list {
	margin: 1rem 0;
}

.ebri-product-categories-list__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ebri-pf-text, #1a1a1a);
}

.ebri-product-categories-list__ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ebri-product-categories-list__li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ebri-product-categories-list__li:last-child {
	border-bottom: none;
}

.ebri-product-categories-list__link {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	color: inherit;
	text-decoration: none;
}

.ebri-product-categories-list__link:hover {
	text-decoration: underline;
}

.ebri-product-categories-list__count {
	font-size: 0.8125rem;
	color: var(--ebri-pf-muted, #5c5c5c);
	margin-left: 0.25rem;
}

/* Merken-grid – fallback (lege state) */
.ebri-brands-grid--empty {
	margin: 2rem 0;
}

/* Merken-slider */
.ebri-brands-slider {
	margin: 2rem 0;
}

.ebri-brands-slider__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ebri-pf-text, #1a1a1a);
}

.ebri-brands-slider__wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ebri-brands-slider__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 0.25rem 0.5rem 0.5rem;
	margin: 0 -0.5rem;
	flex: 1 1 auto;
	min-width: 0;
	scrollbar-width: none;
}

.ebri-brands-slider__track::-webkit-scrollbar {
	display: none;
}

.ebri-brands-slider__slide {
	flex: 0 0 auto;
	width: 280px;
	max-width: 85vw;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
	border: 1px solid #042330;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ebri-brands-slider__slide .ebri-product-card__link {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ebri-brands-slider__slide .ebri-product-card {
	height: 100%;
	background: #fff;
	color: #1a1a1a;
}

.ebri-brands-slider__slide .ebri-product-card__link {
	height: 100%;
	color: #1a1a1a;
}

.ebri-brands-slider__slide .ebri-product-card__title {
	color: #1a1a1a;
	font-weight: 600;
}

.ebri-brands-slider__slide .ebri-product-card__btn {
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.ebri-brands-slider__slide .ebri-product-card__link:hover .ebri-product-card__btn {
	background: #1a1a1a;
	color: #fff;
}

.ebri-brands-slider__slide .ebri-product-card__placeholder {
	color: #6b7280;
}

/* Merken-kaart (slider + grid): logo contain, witte kaart */
.ebri-brand-card {
	background: #fff;
}

.ebri-brand-card .ebri-product-card__link {
	display: block;
	height: 100%;
	color: #1a1a1a;
}

.ebri-brand-card .ebri-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	background: #fff;
	aspect-ratio: 1;
	border-radius: 6px;
	margin-bottom: 0;
	overflow: hidden;
}

.ebri-brand-card .ebri-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.ebri-brand-card .ebri-product-card__placeholder {
	color: #6b7280;
}

/* Logo contain: slider-slide erft bovenstaande via .ebri-brand-card */
.ebri-brands-slider__slide .ebri-product-card__image {
	margin-bottom: 0;
}

.ebri-brands-slider__prev,
.ebri-brands-slider__next {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #4cc8f4;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	color: #4cc8f4;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ebri-brands-slider__prev:hover,
.ebri-brands-slider__next:hover {
	background: #4cc8f4;
	color: #fff;
	box-shadow: 0 4px 12px rgba(76, 200, 244, 0.35);
}

.ebri-brands-slider__prev:focus,
.ebri-brands-slider__next:focus {
	outline: 2px solid #4cc8f4;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.ebri-brands-slider__prev,
	.ebri-brands-slider__next {
		width: 36px;
		height: 36px;
		font-size: 1rem;
	}
	.ebri-brands-slider__slide {
		width: 260px;
	}
}

/* Merken-grid */
.ebri-brands-block--grid {
	margin: 2rem 0;
}

.ebri-brands-block__title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ebri-pf-text, #1a1a1a);
}

/* Merken-grid: zelfde blokken als producten (.ebri-product-card), logo contain via .ebri-brand-card */
