/* Aanbiedingenmodule fase 2: opmaak van de aanbiedingen (kaarten, pagina, slider). Alleen geladen als aanbiedingen zichtbaar zijn. */

/* productkaart: de kortingsbadge staat rechtsboven in het fotoblok, het label (b-groen) staat linksboven */
.product.aanb-kaart .prod-image,
.product.aanb-kaart .prod-image-gratis-verzending {
	position: relative;
}
.product .aanb-badge {
	position: absolute;
	top: 0;
	right: 0;
	padding: 6px 10px;
	background-color: #F4BE04;
	color: #000;
	font-size: 14px;
	font-weight: 700;
}
/* actieduur: een regel direct boven de prijsbox (die is absoluut gepositioneerd, hoogte 80px, op mobiel 60px) */
.prijsbox .aanb-duur {
	position: absolute;
	bottom: 100%;
	left: 20px;
	right: 20px;
	height: 22px;
	line-height: 22px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 13px;
	font-weight: 700;
	color: #F18A00;
}
/* de kaart reserveert de extra regel (88px + 22px) */
.product:has(.aanb-duur) {
	padding-bottom: 110px;
}
@media (max-width: 1024px) {
	.prijsbox .aanb-duur {
		left: 10px;
		right: 10px;
	}
}

/* gerelateerde producten (includes/gerelateerde-producten.php): de actieduur staat gewoon onder de prijs */
.rp-price .aanb-duur {
	font-size: 12px;
	font-weight: 700;
	color: #F18A00;
}

/* pagina /aanbiedingen: filter Actie bovenaan in geel (kop en rand #F4BE04, achtergrond #FFF8DC) */
.aanb-filter-actie .filterbox-kop {
	background-color: #F4BE04;
	border-color: #F4BE04;
	color: #000;
}
.aanb-filter-actie .filteropties {
	background-color: #FFF8DC;
	border-color: #F4BE04;
}
.filteropties .aanb-aantal {
	color: #888;
	font-size: 12px;
}
/* tussenkoppen Accu's / Toebehoren in het filter Soort */
.filteropties .aanb-tussenkop {
	margin: 10px 0 6px 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #333;
}
.filteropties .aanb-tussenkop:first-child {
	margin-top: 0;
}
/* schakelaar Alle / Accu's / Toebehoren boven de kaarten */
.aanb-schakelaar {
	float: left;
	display: flex;
	border: solid 1px #d5d5d5;
}
.aanb-schakelaar a {
	display: block;
	padding: 6px 14px;
	color: #000;
	text-decoration: none;
	white-space: nowrap;
	border-left: solid 1px #d5d5d5;
}
.aanb-schakelaar a:first-child {
	border-left: none;
}
.aanb-schakelaar a.actief {
	background-color: #E10916;
	color: #fff;
}
.aanb-schakelaar a.actief .aanb-aantal {
	color: #fff;
}
.aanb-schakelaar .aanb-aantal {
	color: #888;
	font-size: 12px;
}
/* meldingen onder de H1: actie afgelopen, preview op datum */
.aanb-melding {
	margin: 10px 0 0 0;
	padding: 10px 14px;
	border-left: solid 4px #F4BE04;
	background-color: #FFF8DC;
}
.aanb-melding.aanb-datum {
	border-left-color: #000;
	background-color: #F4F4F4;
}
.aanb-geen-resultaat {
	width: 100%;
}
/* lege staat: alles over de volle breedte */
section.aanb-leeg .productencontainer {
	width: 100%;
	float: none;
}
section.aanb-leeg .aanb-subkop {
	margin: 30px 0 15px 0;
	font-size: 18px;
	font-weight: 700;
}
@media (max-width: 743px) {
	.aanb-schakelaar {
		float: none;
		width: 100%;
		box-sizing: border-box;
		margin-bottom: 10px;
	}
	.aanb-schakelaar a {
		flex: 1 1 auto;
		text-align: center;
		padding: 6px 8px;
	}
}

/* ---------------------------------------------------------------- homepage: slider onder de zoekers (includes/aanbiedingen-slider.php) */
.aanb-slider {
	width: 1240px;
	margin: 40px auto 0 auto;
	box-sizing: border-box;
}
.aanb-slider .aanb-slider-kop {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
}
.aanb-slider .aanb-slider-kop h2 {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.2;
}
.aanb-slider .aanb-alle {
	color: #E10916;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.aanb-slider .aanb-alle:hover {
	text-decoration: underline;
}
/* de globale regels voor .swiper en .swiper-slide (logo-slider, css/style.css) gelden hier niet: eigen breedtes (gelijk aan slidesPerView 1.2 / 2.2 / 4
   met 16px ertussen, zie scripts/aanbiedingen-slider.js), gewoon verticaal scrollen en geen onderrand */
.aanb-slider .aanb-swiper {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 0 20px 0 !important;
	touch-action: pan-y;
	cursor: auto;
}
.aanb-slider .aanb-swiper:active {
	cursor: auto;
}
.aanb-slider .aanb-swiper .swiper-wrapper {
	width: 100%;
}
.aanb-slider .aanb-swiper .swiper-slide {
	width: calc((100% - 16px) / 1.2) !important;
	height: auto;
	box-sizing: border-box;
}
@media (min-width: 600px) {
	.aanb-slider .aanb-swiper .swiper-slide {
		width: calc((100% - 32px) / 2.2) !important;
	}
}
@media (min-width: 1000px) {
	.aanb-slider .aanb-swiper .swiper-slide {
		width: calc((100% - 48px) / 4) !important;
	}
}
/* de kaart vult de slide (gelijke hoogte); de prijsbox staat absoluut onderaan de kaart */
.aanb-slider .aanb-swiper .swiper-slide > .product {
	float: none;
	width: 100%;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
}
.aanb-slider .aanb-swiper .swiper-slide > .product:has(.aanb-duur) {
	padding-bottom: 110px;
}
/* pijltjes gecentreerd onder de kaarten */
.aanb-slider .aanb-pijlen {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}
.aanb-slider .aanb-pijlen button {
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #000;
	border: solid 1px #d5d5d5;
	border-radius: 50%;
	cursor: pointer;
}
.aanb-slider .aanb-pijlen button:hover {
	background-color: #E10916;
	border-color: #E10916;
	color: #fff;
}
.aanb-slider .aanb-pijlen button.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}
@media (max-width: 1280px) {
	.aanb-slider {
		width: auto;
		margin: 30px 20px 0 20px;
	}
}
@media (max-width: 743px) {
	.aanb-slider .aanb-slider-kop h2 {
		font-size: 22px;
	}
	.aanb-slider .aanb-alle {
		font-size: 14px;
	}
}

/* homepage: highlight van een actie in plaats van het Amaron-blok (opmaak: .highlight uit css/style.css) */
.aanb-highlight .highlight-tekst .montsterrat30 {
	margin-bottom: 20px;
}

/* productpagina: regels onder de prijs (Aanbieding t/m ..., Je bespaart ...) */
.pr1 .aanb-pp-duur,
.pr1 .aanb-pp-bespaart {
	clear: both;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}
.pr1 .aanb-pp-duur {
	color: #F18A00;
}
.pr1 .aanb-pp-bespaart {
	color: #0F8A02;
}
@media (max-width: 1024px) {
	.pr1 .aanb-pp-duur {
		margin-top: 6px;
	}
}

/* "Mis geen aanbieding": aanmeldblok onderaan /aanbiedingen (en in de lege staat) */
.aanb-aanmeld {
	clear: both;
	max-width: 560px;
	margin: 40px 0 30px 0;
	padding: 24px;
	border: solid 1px #E0E0E0;
	border-top: solid 4px #F4BE04;
	background-color: #FAFAFA;
}
.aanb-aanmeld h2 {
	margin-bottom: 10px;
}
.aanb-aanmeld .aanb-aanmeld-tekst {
	margin-bottom: 14px;
}
.aanb-aanmeld .aanb-melding {
	margin: 0 0 14px 0;
}
.aanb-aanmeld .aanb-aanmeld-fout {
	border-left-color: #E10916;
	background-color: #FDECEC;
	color: #B00000;
	font-weight: 600;
}
.aanb-aanmeld .aanb-aanmeld-ok {
	border-left-color: #17C903;
	background-color: #EEFBEC;
}
.aanb-aanmeld .aanb-aanmeld-preview {
	display: block;
	margin-top: 8px;
	font-size: 0.9em;
	color: #555;
}
.aanb-aanmeld-veld {
	margin-bottom: 14px;
}
.aanb-aanmeld-veld label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
}
.aanb-aanmeld-veld input[type=text],
.aanb-aanmeld-veld input[type=email] {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	box-sizing: border-box;
	border: solid 1px #C8C8C8;
	background-color: #fff;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
}
.aanb-aanmeld-veld input:focus {
	outline: none;
	border-color: #333;
}
/* honeypot: buiten beeld en niet bereikbaar voor mensen */
.aanb-aanmeld-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.aanb-aanmeld-vink label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	cursor: pointer;
}
.aanb-aanmeld-vink input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0 0;
	accent-color: #E10916;
}
.aanb-aanmeld .aanb-aanmeld-klein {
	margin: 8px 0 0 28px;
	font-size: 12px;
	color: #707070;
}
.aanb-aanmeld .aanb-aanmeld-klein a {
	color: #707070;
	text-decoration: underline;
}
.aanb-aanmeld-knop {
	display: block;
	width: 100%;
	height: 48px;
	margin-top: 8px;
	border: 0;
	background-color: #F4BE04;
	color: #000;
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.aanb-aanmeld-knop:hover {
	background-color: #E1AE00;
}
@media (max-width: 743px) {
	.aanb-aanmeld {
		margin: 30px 0 20px 0;
		padding: 18px;
	}
}
