/* ==========================================================
   Pop-up "Toegevoegd aan je winkelmand" — Siera Rose
   1. Laag en venster
   2. Kop
   3. Product
   4. Gratis verzending
   5. Subtotaal en knoppen
   6. Suggesties
   7. Mobiel (onderaan uitschuivend)
   ========================================================== */


/* ==========================================================
   1. LAAG EN VENSTER
   ========================================================== */

html.siera-popup-open,
html.siera-popup-open body {
	overflow: hidden !important;
}

html.siera-popup-open body {
	padding-right: var(--siera-scrollbalk, 0px);
}

.siera-popup[hidden] {
	display: none !important;
}

.siera-popup {
	position: fixed;
	inset: 0;
	z-index: 1000000; /* boven de Divi-header, het megamenu en de onderbalk */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: 'Archivo', sans-serif;
	color: rgb(32, 30, 29);
	-webkit-font-smoothing: antialiased;
}

.siera-popup__achtergrond {
	position: absolute;
	inset: 0;
	background: rgba(32, 30, 29, .5);
	opacity: 0;
	transition: opacity .3s ease;
	cursor: pointer;
}

.siera-popup__venster {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 60px rgba(32, 30, 29, .22);
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
	outline: none;
}

.siera-popup.is-open .siera-popup__achtergrond {
	opacity: 1;
}

.siera-popup.is-open .siera-popup__venster {
	opacity: 1;
	transform: none;
}

.siera-popup__inhoud {
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.siera-popup *,
.siera-popup *::before,
.siera-popup *::after {
	box-sizing: border-box;
}

.siera-popup a {
	color: inherit;
	text-decoration: none;
}

.siera-popup .siera-popup__venster:focus,
.siera-popup .siera-popup__venster:focus-visible {
	outline: none;
}

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


/* ==========================================================
   2. KOP
   ========================================================== */

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

html body .siera-popup h2.siera-popup__titel {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-family: "Libre Baskerville", serif !important;
	font-size: 20px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	color: rgb(32, 30, 29);
}

.siera-popup__vink {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgb(236, 48, 19);
	color: #fff;
}

.siera-popup__vink svg {
	stroke-width: 2.5;
}

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

html body .siera-popup button.siera-popup__sluit {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -8px -10px -8px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgb(32, 30, 29);
	cursor: pointer;
	transition: background-color .2s ease;
}

html body .siera-popup button.siera-popup__sluit:hover {
	background: rgb(243, 242, 242);
}


/* ==========================================================
   3. PRODUCT
   ========================================================== */

.siera-popup__product {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 22px 28px;
}

.siera-popup__beeld {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: rgb(236, 233, 231);
}

.siera-popup__beeld img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
}

.siera-popup__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	min-width: 0;
}

.siera-popup a.siera-popup__naam {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: rgb(32, 30, 29);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

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

.siera-popup__kenmerken {
	font-size: 13px;
	line-height: 1.4;
	color: rgb(120, 115, 112);
}

.siera-popup__prijs {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin-top: 2px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.siera-popup__prijs del {
	font-weight: 400;
	color: rgb(168, 163, 161);
}

.siera-popup__prijs ins {
	text-decoration: none;
	color: rgb(236, 48, 19);
}

.siera-popup__aantal {
	font-size: 13px;
	font-weight: 400;
	color: rgb(120, 115, 112);
}

.siera-popup__voorraad {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.4;
	color: rgb(120, 115, 112);
}

.siera-popup__voorraad::before {
	content: "";
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgb(46, 139, 87);
}

.siera-popup__voorraad--nabestelling::before {
	background: rgb(224, 150, 40);
}


/* ==========================================================
   4. GRATIS VERZENDING
   ========================================================== */

.siera-popup__verzending {
	margin: 0 28px;
	padding: 13px 16px 15px;
	background: rgb(234, 231, 229);
}

html body .siera-popup p.siera-popup__verzending-tekst {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 11px;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: rgb(32, 30, 29);
}

.siera-popup__verzending-tekst svg {
	flex-shrink: 0;
}

.siera-popup__verzending-tekst strong {
	font-weight: 600;
}

.siera-popup__balk {
	height: 3px;
	overflow: hidden;
	background: rgba(32, 30, 29, .12);
}

.siera-popup__balk span {
	display: block;
	height: 100%;
	background: rgb(236, 48, 19);
	transform-origin: left;
	animation: siera-popup-balk .8s .25s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes siera-popup-balk {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}


/* ==========================================================
   5. SUBTOTAAL EN KNOPPEN
   ========================================================== */

.siera-popup__mand {
	padding: 20px 28px 24px;
}

html body .siera-popup p.siera-popup__subtotaal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	color: rgb(32, 30, 29);
}

.siera-popup__stuks {
	color: rgb(120, 115, 112);
}

.siera-popup__subtotaal strong {
	font-size: 17px;
	font-weight: 700;
}

.siera-popup__knoppen {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 10px;
}

html body .siera-popup button.siera-popup__verder,
html body .siera-popup a.siera-popup__naar-mand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border-radius: 0;
	font-family: 'Archivo', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

html body .siera-popup button.siera-popup__verder {
	border: 1px solid rgb(190, 185, 182);
	background: #fff;
	color: rgb(32, 30, 29);
}

html body .siera-popup button.siera-popup__verder:hover {
	border-color: rgb(32, 30, 29);
}

html body .siera-popup a.siera-popup__naar-mand {
	border: 1px solid rgb(32, 30, 29);
	background: rgb(32, 30, 29);
	color: #fff;
}

html body .siera-popup a.siera-popup__naar-mand:hover {
	border-color: rgb(236, 48, 19);
	background: rgb(236, 48, 19);
}

.siera-popup__naar-mand svg {
	transition: transform .2s ease;
}

.siera-popup__naar-mand:hover svg {
	transform: translateX(3px);
}

.siera-popup a.siera-popup__afrekenen {
	display: block;
	width: max-content;
	margin: 14px 0 0 auto;
	font-size: 13px;
	color: rgb(120, 115, 112);
	text-decoration: underline;
	text-underline-offset: 3px;
}

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


/* ==========================================================
   6. SUGGESTIES
   ========================================================== */

.siera-popup__suggesties {
	padding: 22px 28px 26px;
	background: rgb(243, 242, 242);
}

html body .siera-popup h3.siera-popup__suggesties-titel {
	margin: 0 0 14px;
	padding: 0;
	font-family: "Libre Baskerville", serif !important;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	color: rgb(32, 30, 29);
}

html body .siera-popup ul.siera-popup__rij {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.siera-popup li.siera-popup__kaart {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.siera-popup li.siera-popup__kaart::before {
	display: none;
}

.siera-popup__kaart-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.siera-popup__kaart-beeld {
	display: block;
	overflow: hidden;
	margin-bottom: 6px;
	aspect-ratio: 1;
	background: #fff;
}

.siera-popup__kaart-beeld img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.siera-popup__kaart-link:hover .siera-popup__kaart-beeld img {
	transform: scale(1.05);
}

.siera-popup__kaart-naam {
	overflow: hidden;
	font-size: 13px;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
}

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

.siera-popup__kaart-prijs {
	font-size: 13px;
	font-weight: 600;
}

.siera-popup__kaart-prijs del {
	margin-right: 4px;
	font-weight: 400;
	color: rgb(168, 163, 161);
}

.siera-popup__kaart-prijs ins {
	text-decoration: none;
	color: rgb(236, 48, 19);
}

/* Snel toevoegen: rond plusje rechtsboven op de foto */
html body .siera-popup a.siera-popup__plus {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: rgb(32, 30, 29);
	box-shadow: 0 1px 4px rgba(32, 30, 29, .15);
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

html body .siera-popup a.siera-popup__plus:hover {
	background: rgb(32, 30, 29);
	color: #fff;
	transform: scale(1.06);
}

html body .siera-popup a.siera-popup__plus.loading,
html body .siera-popup a.siera-popup__plus.is-bezig {
	opacity: .6;
	pointer-events: none;
}

/* WooCommerce zet "Bekijk winkelwagen" achter de knop: niet nodig, de pop-up doet dat */
.siera-popup a.added_to_cart,
ul.products li.product .siera-kaart-acties a.added_to_cart {
	display: none !important;
}


/* ==========================================================
   7. MOBIEL: SCHUIFT VAN ONDER IN BEELD
   ========================================================== */

@media (max-width: 767px) {

	.siera-popup {
		align-items: flex-end;
		padding: 0;
	}

	.siera-popup__venster {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		transform: translateY(100%);
		transition: opacity .2s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
	}

	/* Greepje bovenaan, zoals een bottom sheet */
	.siera-popup__venster::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 36px;
		height: 4px;
		margin-left: -18px;
		border-radius: 2px;
		background: rgb(218, 215, 214);
	}

	.siera-popup__kop {
		padding: 22px 18px 14px;
	}

	html body .siera-popup h2.siera-popup__titel {
		gap: 10px;
		font-size: 17px !important;
	}

	.siera-popup__vink {
		width: 24px;
		height: 24px;
	}

	.siera-popup__product {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 14px;
		padding: 16px 18px;
	}

	.siera-popup a.siera-popup__naam {
		font-size: 15px;
	}

	.siera-popup__verzending {
		margin: 0 18px;
	}

	.siera-popup__mand {
		padding: 16px 18px 20px;
	}

	.siera-popup__knoppen {
		grid-template-columns: 1fr;
	}

	/* Belangrijkste knop bovenaan, onder je duim */
	html body .siera-popup a.siera-popup__naar-mand {
		order: -1;
	}

	html body .siera-popup button.siera-popup__verder,
	html body .siera-popup a.siera-popup__naar-mand {
		min-height: 48px;
	}

	.siera-popup a.siera-popup__afrekenen {
		margin: 12px auto 0;
	}

	.siera-popup__suggesties {
		padding: 18px 0 calc(22px + env(safe-area-inset-bottom));
	}

	html body .siera-popup h3.siera-popup__suggesties-titel {
		padding: 0 18px;
	}

	/* Suggesties horizontaal swipen */
	html body .siera-popup ul.siera-popup__rij {
		display: flex;
		gap: 12px;
		padding: 0 18px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 18px;
		scrollbar-width: none;
	}

	html body .siera-popup ul.siera-popup__rij::-webkit-scrollbar {
		display: none;
	}

	.siera-popup li.siera-popup__kaart {
		flex: 0 0 38%;
		min-width: 0;
		scroll-snap-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.siera-popup__achtergrond,
	.siera-popup__venster,
	.siera-popup__balk span,
	.siera-popup__kaart-beeld img {
		transition: opacity .15s ease !important;
		animation: none !important;
		transform: none !important;
	}
}
