/* ==========================================================
   PRODUCTFILTER — [siera_filter]
   ========================================================== */

.siera-filter {
	font-family: 'Archivo', sans-serif;
	color: rgb(32, 30, 29);
}

.siera-filter__groep {
	margin: 0 0 26px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.siera-filter__titel {
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: rgb(32, 30, 29);
}

/* Verborgen checkbox, maar wel bereikbaar met toetsenbord */
.siera-filter input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: 0;
}

/* Vinkjes (kleur en prijs) */
.siera-filter__optie {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.3;
	cursor: pointer;
}

.siera-filter__vak {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border: 1px solid rgb(168, 163, 161);
	background: #fff;
	transition: .3s ease all;
}

.siera-filter__optie:hover .siera-filter__vak {
	border-color: rgb(32, 30, 29);
}

.siera-filter__optie input:checked + .siera-filter__vak {
	background: rgb(32, 30, 29);
	border-color: rgb(32, 30, 29);
}

/* Kleurvakjes tonen de kleur zelf */
.siera-filter__groep--kleur .siera-filter__vak {
	background: var(--swatch, rgb(236, 233, 231));
	border-color: rgba(32, 30, 29, .25);
}

.siera-filter__groep--kleur input:checked + .siera-filter__vak {
	background: var(--swatch, rgb(236, 233, 231));
	border-color: rgb(32, 30, 29);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(32, 30, 29);
}

.siera-filter input:focus-visible + .siera-filter__vak,
.siera-filter input:focus-visible + span {
	outline: 2px solid rgb(236, 48, 19);
	outline-offset: 2px;
}

/* Knoppen (lengte) */
.siera-filter__knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.siera-filter__knop {
	position: relative;
	cursor: pointer;
}

.siera-filter__knop span {
	display: inline-block;
	padding: 7px 10px;
	border: 1px solid rgb(218, 215, 214);
	font-size: 12px;
	line-height: 1;
	transition: .3s ease all;
}

.siera-filter__knop:hover span {
	border-color: rgb(32, 30, 29);
}

.siera-filter__knop input:checked + span {
	background: rgb(32, 30, 29);
	border-color: rgb(32, 30, 29);
	color: #fff;
}

/* Filters wissen */
.siera-filter__wissen {
	display: inline-block;
	font-size: 12px;
	color: rgb(32, 30, 29);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: .3s ease all;
}

.siera-filter__wissen:hover {
	color: rgb(236, 48, 19);
}

/* ==========================================================
   FILTERBALK — [siera_filterbalk]
   ========================================================== */

.siera-balk {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-family: 'Archivo', sans-serif;
}

.siera-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.siera-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: rgb(236, 233, 231);
	font-size: 12px;
	line-height: 1;
	color: rgb(32, 30, 29);
	transition: .3s ease all;
}

.siera-chip:hover {
	color: rgb(236, 48, 19);
}

/* ---------- Sorteerknop ---------- */
.siera-sortering {
	position: relative;
	flex-shrink: 0;
	font-family: 'Archivo', sans-serif;
}

.siera-sortering .siera-sortering__knop {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgb(32, 30, 29);
	border-radius: 0;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	color: rgb(32, 30, 29);
	cursor: pointer;
	transition: .4s ease all;
}

.siera-sortering .siera-sortering__knop:hover,
.siera-sortering.is-open .siera-sortering__knop {
	border-color: rgb(236, 48, 19);
}

.siera-sortering .siera-sortering__knop:focus-visible {
	outline: 2px solid rgb(236, 48, 19);
	outline-offset: 2px;
}

.siera-sortering__waarde {
	font-weight: 600;
}

.siera-sortering__pijl {
	margin-left: 4px;
	transition: transform .25s ease;
}

.siera-sortering.is-open .siera-sortering__pijl {
	transform: rotate(180deg);
}

/* ---------- Uitklaplijst ---------- */
.siera-sortering .siera-sortering__lijst {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 50;
	min-width: 100%;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgb(218, 215, 214);
	box-shadow: 0 10px 30px rgba(32, 30, 29, .08);
	outline: none;
	animation: siera-lijst-open .18s ease;
}

.siera-sortering .siera-sortering__lijst[hidden] {
	display: none;
}

@keyframes siera-lijst-open {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.siera-sortering .siera-sortering__optie {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 10px 16px;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	color: rgb(32, 30, 29);
	cursor: pointer;
	transition: background .15s ease;
}

.siera-sortering .siera-sortering__optie::before {
	display: none; /* geen opsommingstekens van het thema */
}

.siera-sortering .siera-sortering__optie.is-actief {
	background: rgb(243, 242, 242);
}

.siera-sortering .siera-sortering__optie.is-gekozen {
	font-weight: 600;
}

.siera-sortering__vinkje {
	flex-shrink: 0;
	color: rgb(236, 48, 19);
	visibility: hidden;
}

.siera-sortering__optie.is-gekozen .siera-sortering__vinkje {
	visibility: visible;
}

/* Tijdens het laden de producten iets vervagen */
body.siera-filter-laden .et_pb_shop,
body.siera-filter-laden ul.products {
	opacity: .5;
	transition: opacity .2s ease;
}

/* ==========================================================
   AANTAL PRODUCTEN — [siera_aantal_producten]
   ========================================================== */

.siera-aantal {
	font-family: 'Archivo', sans-serif;
	font-size: 13px;
	color: rgb(120, 115, 112);
}

/* ==========================================================
   MEER LADEN — [siera_meer_laden]
   ========================================================== */

.siera-verborgen,
.siera-meer[hidden],
.siera-meer [hidden] {
	display: none !important;
}

.siera-meer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	clear: both;
	width: 100%;
	margin-top: 36px;
	font-family: 'Archivo', sans-serif;
}

.siera-meer .siera-meer__teller {
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: rgb(120, 115, 112);
}

.siera-meer__knop {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid rgb(32, 30, 29);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: rgb(32, 30, 29);
	transition: .4s ease all;
}

.siera-meer__knop:hover {
	background: rgb(32, 30, 29);
	color: #fff;
}

.siera-meer__knop.is-laden {
	opacity: .6;
	pointer-events: none;
}

/* ==========================================================
   MOBIEL
   ========================================================== */

@media (max-width: 980px) {
	.siera-balk {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.siera-meer {
		flex-direction: column;
		gap: 12px;
	}

	/* Op mobiel staat de knop links, dus de lijst naar rechts laten uitklappen */
	.siera-sortering .siera-sortering__lijst {
		left: 0;
		right: auto;
	}
}

/* ==========================================================
   MOBIEL — balk "Filter | Sorteer" en schuifpanelen
   ========================================================== */

/* Op desktop verborgen */
@media (min-width: 981px) {
	.siera-mobielbalk,
	.siera-paneel,
	.siera-overlay {
		display: none !important;
	}
}

.siera-paneel[hidden],
.siera-overlay[hidden] {
	display: none !important;
}

/* Pagina niet laten scrollen als een paneel open is */
html.siera-paneel-open,
html.siera-paneel-open body {
	overflow: hidden;
}

/* ---------- Balk ---------- */
.siera-mobielbalk {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* over de volle schermbreedte, ook binnen een smallere Divi-rij */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	border-top: 1px solid rgb(218, 215, 214);
	border-bottom: 1px solid rgb(218, 215, 214);
	font-family: 'Archivo', sans-serif;
}

.siera-mobielbalk .siera-mobielbalk__knop {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	color: rgb(32, 30, 29);
	cursor: pointer;
}

.siera-mobielbalk .siera-mobielbalk__knop + .siera-mobielbalk__knop {
	border-left: 1px solid rgb(218, 215, 214);
}

.siera-mobielbalk .siera-mobielbalk__knop:focus-visible {
	outline: 2px solid rgb(236, 48, 19);
	outline-offset: -2px;
}

/* ---------- Donkere laag ---------- */
.siera-overlay {
	position: fixed;
	inset: 0;
	z-index: 100005;
	background: rgba(32, 30, 29, .45);
	opacity: 0;
	transition: opacity .3s ease;
}

.siera-overlay.is-open {
	opacity: 1;
}

/* ---------- Panelen ---------- */
.siera-paneel {
	position: fixed;
	z-index: 100010;
	display: flex;
	flex-direction: column;
	background: #fff;
	font-family: 'Archivo', sans-serif;
	color: rgb(32, 30, 29);
	transition: transform .3s ease;
}

/* Filter: schuift van links in beeld */
.siera-paneel--links {
	top: 0;
	bottom: 0;
	left: 0;
	width: min(360px, 88vw);
	transform: translateX(-100%);
}

/* Sorteer: schuift van onderen in beeld */
.siera-paneel--onder {
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 80vh;
	transform: translateY(100%);
	padding-bottom: env(safe-area-inset-bottom);
}

.siera-paneel.is-open {
	transform: none;
}

.siera-paneel__kop {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	border-bottom: 1px solid rgb(218, 215, 214);
}

.siera-paneel .siera-paneel__titel {
	margin: 0;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: rgb(32, 30, 29);
}

.siera-paneel .siera-paneel__sluit {
	display: flex;
	margin: -6px;
	padding: 6px;
	border: 0;
	background: transparent;
	color: rgb(32, 30, 29);
	cursor: pointer;
}

.siera-paneel__inhoud {
	flex: 1;
	overflow-y: auto;
	padding: 24px 20px;
}

/* In het paneel staat "Wissen" onderin, dus de losse link verbergen */
.siera-paneel .siera-filter__wissen {
	display: none;
}

.siera-paneel .siera-filter__groep {
	margin: 0 0 28px;
}

.siera-paneel .siera-filter__titel {
	font-size: 14px;
}

.siera-paneel .siera-filter__optie {
	margin-bottom: 12px;
	font-size: 14px;
}

.siera-paneel .siera-filter__vak {
	width: 18px;
	height: 18px;
}

.siera-paneel .siera-filter__knop span {
	padding: 10px 14px;
	font-size: 13px;
}

.siera-paneel__voet {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid rgb(218, 215, 214);
}

.siera-paneel .siera-paneel__wissen,
.siera-paneel .siera-paneel__toon {
	min-height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgb(32, 30, 29);
	border-radius: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: .4s ease all;
}

.siera-paneel .siera-paneel__wissen {
	background: #fff;
	color: rgb(32, 30, 29);
}

.siera-paneel .siera-paneel__toon {
	background: rgb(32, 30, 29);
	color: rgb(243, 242, 242);
}

.siera-paneel .siera-paneel__toon:hover {
	background: rgb(236, 48, 19);
	border-color: rgb(236, 48, 19);
}

/* Sorteeropties */
.siera-sorteerlijst {
	overflow-y: auto;
}

.siera-sorteerlijst .siera-sorteerlijst__optie {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid rgb(236, 233, 231);
	border-radius: 0;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.2;
	text-align: left;
	color: rgb(32, 30, 29);
	cursor: pointer;
}

.siera-sorteerlijst .siera-sorteerlijst__optie:last-child {
	border-bottom: 0;
}

.siera-sorteerlijst .siera-sorteerlijst__optie.is-gekozen {
	font-weight: 600;
}

.siera-sorteerlijst__vinkje {
	color: rgb(236, 48, 19);
	visibility: hidden;
}

.siera-sorteerlijst__optie.is-gekozen .siera-sorteerlijst__vinkje {
	visibility: visible;
}

/* ---------- Mobiel: desktop-sortering weg, "Meer laden" breed ---------- */
@media (max-width: 980px) {
	/* Geen lege ruimte boven de filterbalk:
	   de sectie en rij waar de balk in staat beginnen direct bovenaan */
	.et_pb_section:has(.siera-mobielbalk) {
		padding-top: 0 !important;
	}

	.et_pb_row:has(.siera-mobielbalk) {
		padding-top: 0 !important;
	}

	.et_pb_column:has(.siera-mobielbalk) .et_pb_module:has(.siera-mobielbalk) {
		margin-top: 0 !important;
	}

	.siera-balk .siera-sortering {
		display: none;
	}

	/* Zonder actieve filters is het blok onder de mobiele balk leeg: helemaal weg */
	.siera-balk:not(:has(.siera-chip)) {
		display: none !important;
	}

	.siera-balk {
		margin-top: 16px;
	}

	.siera-chips:empty {
		display: none;
	}

	.siera-meer .siera-meer__teller {
		display: none;
	}

	.siera-meer .siera-meer__knop {
		display: block;
		width: 100%;
		padding: 15px 20px;
		text-align: center;
	}
}

/* ==========================================================
   VERBETERINGEN CATEGORIEPAGINA
   ========================================================== */

/* ---------- Geen sterren in de productkaartjes ----------
   Alleen producten mét reviews hebben sterren, waardoor de prijs
   bij die kaartjes lager staat en de rij scheef loopt. */
body.tax-product_cat ul.products li.product .star-rating,
body.post-type-archive-product ul.products li.product .star-rating {
	display: none !important;
}

/* ---------- SEO-tekst onderaan — [siera_seo_tekst] ---------- */
.siera-seo-tekst {
	max-width: 760px;
	margin-top: 24px;
	padding-top: 48px;
	border-top: 1px solid rgb(218, 215, 214);
	font-family: 'Archivo', sans-serif;
	font-size: 15px;
	line-height: 1.8;
	color: rgb(90, 86, 84);
}

.siera-seo-tekst h2,
.siera-seo-tekst h3 {
	margin: 32px 0 10px;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-weight: 700;
	line-height: 1.3;
	color: rgb(32, 30, 29);
}

.siera-seo-tekst h2 {
	font-size: 22px;
}

.siera-seo-tekst h3 {
	font-size: 18px;
}

.siera-seo-tekst > :first-child {
	margin-top: 0;
}

.siera-seo-tekst p {
	margin: 0 0 14px;
	padding: 0;
}

.siera-seo-tekst a {
	color: rgb(32, 30, 29);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.siera-seo-tekst a:hover {
	color: rgb(236, 48, 19);
}

.siera-seo-tekst ul,
.siera-seo-tekst ol {
	margin: 0 0 14px;
	padding-left: 20px;
}

/* ---------- Intro met "Lees meer" (alleen mobiel) ---------- */
.siera-lees-meer {
	display: none;
}

@media (max-width: 980px) {
	.siera-intro-inklapbaar:not(.is-open):not(.siera-intro-kort) {
		position: relative;
		max-height: 4.9em; /* ± 3 regels */
		overflow: hidden;
	}

	/* Tekst loopt zacht weg onderaan */
	.siera-intro-inklapbaar:not(.is-open):not(.siera-intro-kort)::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 1.4em;
		background: linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255));
		pointer-events: none;
	}

	.siera-lees-meer {
		display: inline-block;
		margin: 8px 0 0;
		padding: 0;
		border: 0;
		background: none;
		font-family: 'Archivo', sans-serif;
		font-size: 13px;
		font-weight: 600;
		color: rgb(32, 30, 29);
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}

	.siera-lees-meer[hidden] {
		display: none;
	}

	.siera-lees-meer:hover {
		color: rgb(236, 48, 19);
	}

	/* SEO-tekst op mobiel */
	.siera-seo-tekst {
		padding-top: 32px;
		font-size: 14px;
	}

	.siera-seo-tekst h2 {
		margin-top: 24px;
		font-size: 19px;
	}
}


/* ==========================================================
   PRODUCTRASTER OP ARCHIEFPAGINA'S (categorie, tag en winkel)
   Divi zet de producten standaard naast elkaar met "float".
   Bij titels van verschillende lengte (1 of 2 regels) blijven
   producten dan haken en ontstaan er gaten. Een raster voorkomt dat.
   (#page-container staat er dubbel in: zo winnen deze regels van de
   zware Divi Theme Builder-regels die de breedte op 47% zetten)
   ========================================================== */

html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop ul.products,
html body.tax-product_tag #page-container#page-container .et_pb_module.et_pb_shop ul.products,
html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 0 !important;
	padding: 0 !important;
}

html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop .columns-4 ul.products,
html body.tax-product_tag #page-container#page-container .et_pb_module.et_pb_shop .columns-4 ul.products,
html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop .columns-4 ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Onzichtbare hulpelementen tellen anders mee als leeg vakje */
html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop ul.products::before,
html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop ul.products::after,
html body.tax-product_tag #page-container#page-container .et_pb_module.et_pb_shop ul.products::before,
html body.tax-product_tag #page-container#page-container .et_pb_module.et_pb_shop ul.products::after,
html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop ul.products::before,
html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop ul.products::after {
	content: none !important;
	display: none !important;
}

html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop ul.products li.product:nth-child(n),
html body.tax-product_tag #page-container#page-container .et_pb_module.et_pb_shop ul.products li.product:nth-child(n),
html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop ul.products li.product:nth-child(n),
html body.woocommerce-page.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop ul.products li.product:nth-child(n),
html body.woocommerce-page.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop ul.products li.product:nth-child(n) {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

@media (max-width: 980px) {
	html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop ul.products,
	html body.tax-product_tag #page-container#page-container .et_pb_module.et_pb_shop ul.products,
	html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop ul.products,
	html body.tax-product_cat #page-container#page-container .et_pb_module.et_pb_shop .columns-4 ul.products,
	html body.post-type-archive-product #page-container#page-container .et_pb_module.et_pb_shop .columns-4 ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}
}
