/* ==========================================================
   MOBIEL MEGAMENU — Siera Rose
   1. Algemeen (skiplink, focus)
   2. Mobiele header: menu + zoeken links, logo midden, favorieten + tas rechts
   3. Menu-paneel
   4. Categorie-tegels
   5. Lijst
   6. Subschermen
   7. Extra links en USP
   8. Zoekpaneel op mobiel
   ========================================================== */


/* ==========================================================
   1. ALGEMEEN
   ========================================================== */

/* "Direct naar de inhoud": alleen zichtbaar bij tabben */
.siera-skiplink {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000000;
	padding: 12px 18px;
	background: rgb(32, 30, 29);
	font-family: 'Archivo', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform .2s ease;
}

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

/* Duidelijke focusrand voor toetsenbordgebruikers in de header en het menu */
#main-header a:focus-visible,
#main-header button:focus-visible,
.siera-menu a:focus-visible,
.siera-menu button:focus-visible {
	outline: 2px solid rgb(236, 48, 19) !important;
	outline-offset: 2px;
}

/* Lege winkelmand: geen rood bolletje met "0" */
#main-header .second-menu__count.is-leeg {
	display: none !important;
}

/* Hamburgerknop: alleen op mobiel */
.siera-menuknop {
	display: none;
}

/* Pagina niet laten scrollen achter het open menu */
html.siera-menu-open,
html.siera-menu-open body {
	overflow: hidden !important;
}


/* ==========================================================
   2. MOBIELE HEADER
   ========================================================== */

@media (max-width: 980px) {

	#main-header {
		padding: 0 !important;
	}

	#main-header .container.et_menu_container {
		display: grid !important;
		grid-template-columns: auto auto minmax(0, 1fr) auto auto;
		align-items: center;
		column-gap: 6px;
		width: 92% !important;
		max-width: none !important;
		min-height: 64px;
		margin: 0 auto;
		padding: 0 !important;
		text-align: left;
	}

	#main-header .container.et_menu_container::before,
	#main-header .container.et_menu_container::after {
		display: none !important;
	}

	/* Divi-navigatie opent zijn inhoud in het raster; alles behalve onze knop verbergen */
	#main-header #et-top-navigation {
		display: contents !important;
	}

	#main-header #et-top-navigation > *:not(.siera-menuknop) {
		display: none !important;
	}

	/* Eigen iconen-menu ook in het raster */
	#main-header .second-menu {
		display: contents !important;
	}

	/* Alle icoonknoppen even groot: 36 × 44 met het icoon in het midden.
	   De ruimte tussen de iconen is een gat in het raster, dus daar klik je niet per ongeluk op.
	   Werkt op de elementen zelf, dus ook als je oude CSS andere breedtes of marges geeft. */
	#main-header .siera-menuknop,
	#main-header .second-menu > a,
	#main-header .second-menu > button {
		position: relative !important;
		top: auto !important;
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		width: 36px !important;
		min-width: 0 !important;
		height: 44px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		line-height: 0 !important;
		color: rgb(32, 30, 29) !important;
		cursor: pointer;
	}

	#main-header .siera-menuknop svg,
	#main-header .second-menu > a > svg,
	#main-header .second-menu > button > svg {
		display: block !important;
		flex-shrink: 0;
		width: 22px !important;
		height: 22px !important;
		margin: 0 !important;
	}

	#main-header .siera-menuknop svg {
		width: 24px !important;
		height: 24px !important;
	}

	/* Links: menu tegen de rand, zoeken ernaast */
	#main-header .siera-menuknop {
		grid-column: 1;
		grid-row: 1;
		margin-left: -6px !important; /* icoon gelijk met de rand */
	}

	#main-header .second-menu > :nth-child(1) {
		grid-column: 2;
		grid-row: 1;
	}

	/* Logo in het midden */
	#main-header .logo_container {
		position: static !important;
		grid-column: 3;
		grid-row: 1;
		display: flex !important;
		justify-content: center;
		align-items: center;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
	}

	#main-header .logo_container .logo_helper {
		display: none;
	}

	#main-header .logo_container a {
		display: block;
	}

	#main-header .logo_container #logo {
		display: block;
		width: auto !important;
		max-width: 100%;
		max-height: 42px !important;
		margin: 0 auto !important;
	}

	/* Rechts: favorieten en winkelmandje, gespiegeld aan de linkerkant
	   (account staat in het menu) */
	#main-header .second-menu > :nth-child(2) {
		grid-column: 4;
		grid-row: 1;
	}

	#main-header .second-menu > :nth-child(3) {
		display: none !important;
	}

	#main-header .second-menu > :nth-child(4) {
		grid-column: 5;
		grid-row: 1;
		margin-right: -7px !important; /* icoon gelijk met de rand */
	}

	/* Rood bolletje rechtsboven op het tasje */
	#main-header .second-menu .second-menu__count {
		position: absolute !important;
		top: 5px !important;
		right: -1px !important;
		bottom: auto !important;
		left: auto !important;
		display: flex !important;
		justify-content: center;
		align-items: center;
		width: 17px !important;
		height: 17px !important;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 50%;
		background: rgb(236, 48, 19);
		font-family: 'Archivo', sans-serif;
		font-size: 10px !important;
		font-weight: 600;
		line-height: 1 !important;
		color: #fff;
		transform: none !important;
	}

	#main-header .second-menu .second-menu__count.is-leeg {
		display: none !important;
	}
}


/* ==========================================================
   3. MENU-PANEEL
   ========================================================== */

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

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

.siera-menu {
	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: 'Archivo', sans-serif;
	color: rgb(32, 30, 29);
}

.siera-menu__paneel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	transform: translateX(-100%);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.siera-menu.is-open .siera-menu__paneel {
	transform: none;
}

/* Zoekveld + sluitknop */
.siera-menu__kop {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	padding-top: max(14px, env(safe-area-inset-top));
}

.siera-menu .siera-menu__zoek {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgb(32, 30, 29);
	border-radius: 0;
	background: #fff;
	font-family: 'Archivo', sans-serif;
	font-size: 16px;
	line-height: 1;
	color: rgb(120, 115, 112);
	text-align: left;
	cursor: text;
}

.siera-menu .siera-menu__zoek svg {
	flex-shrink: 0;
	color: rgb(32, 30, 29);
}

.siera-menu .siera-menu__zoek span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.siera-menu .siera-menu__sluit {
	display: flex;
	flex-shrink: 0;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	margin: 0 -8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgb(32, 30, 29);
	cursor: pointer;
}

/* Scrollbare inhoud */
.siera-menu__inhoud {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-bottom: max(24px, env(safe-area-inset-bottom));
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}

.siera-menu__paneel.sub-open .siera-menu__inhoud {
	transform: translateX(-24%);
	opacity: 0;
}

/* Blokken met een lichtgrijze scheiding ertussen, zoals in het ontwerp */
.siera-menu__blok {
	margin: 0;
	padding: 20px 16px;
	list-style: none;
}

.siera-menu__blok + .siera-menu__blok {
	border-top: 8px solid rgb(243, 242, 242);
}

.siera-menu h3.siera-menu__titel,
.siera-menu h3.siera-menu__subtitel {
	margin: 0 0 14px;
	padding: 0;
	font-family: "Libre Baskerville", serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: rgb(32, 30, 29);
}

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


/* ==========================================================
   4. CATEGORIE-TEGELS
   Twee naast elkaar, de rest schuif je opzij
   ========================================================== */

.siera-menu__blok--tegels {
	padding-right: 0;
}

.siera-menu ul.siera-menu__tegels {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 16px - 8px) / 2.12);
	gap: 8px;
	margin: 0;
	padding: 0 16px 4px 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.siera-menu ul.siera-menu__tegels::-webkit-scrollbar {
	display: none;
}

.siera-menu ul.siera-menu__tegels li {
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}

.siera-menu ul.siera-menu__tegels li::before {
	display: none;
}

.siera-menu__tegel {
	display: block;
	color: rgb(32, 30, 29) !important;
	text-decoration: none;
}

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

.siera-menu__tegel-img,
.siera-menu__tegel-leeg {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s ease;
}

.siera-menu__tegel:hover .siera-menu__tegel-img {
	transform: scale(1.04);
}

.siera-menu__tegel-naam {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.3;
}

.siera-menu__tegel[aria-current="page"] .siera-menu__tegel-naam {
	font-weight: 600;
}


/* ==========================================================
   5. LIJST
   ========================================================== */

.siera-menu__blok--lijst {
	padding-top: 8px;
	padding-bottom: 8px;
}

.siera-menu ul.siera-menu__lijst {
	margin: 0;
	padding: 0;
	list-style: none;
}

.siera-menu ul.siera-menu__lijst li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.siera-menu ul.siera-menu__lijst li::before {
	display: none;
}

.siera-menu .siera-menu__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 0;
	border: 0;
	background: transparent;
	font-family: 'Archivo', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	color: rgb(32, 30, 29) !important;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: color .3s ease;
}

.siera-menu .siera-menu__item svg {
	flex-shrink: 0;
	color: rgb(120, 115, 112);
	transition: transform .3s ease, color .3s ease;
}

.siera-menu .siera-menu__item:hover,
.siera-menu .siera-menu__item[aria-current="page"] {
	color: rgb(236, 48, 19) !important;
}

.siera-menu .siera-menu__item:hover svg {
	color: rgb(236, 48, 19);
	transform: translateX(3px);
}

.siera-menu .siera-menu__item--alles {
	font-weight: 600;
}


/* ==========================================================
   6. SUBSCHERMEN
   ========================================================== */

.siera-menu__sub {
	position: absolute;
	top: 76px;
	right: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 16px max(24px, env(safe-area-inset-bottom));
	background: #fff;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

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

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

.siera-menu .siera-menu__terug {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0 0 8px -4px;
	padding: 0 4px;
	border: 0;
	background: transparent;
	font-family: 'Archivo', sans-serif;
	font-size: 14px;
	color: rgb(120, 115, 112);
	cursor: pointer;
}

.siera-menu .siera-menu__terug:hover {
	color: rgb(32, 30, 29);
}

.siera-menu .siera-menu__sub .siera-menu__lijst {
	border-top: 1px solid rgb(218, 215, 214);
}

.siera-menu .siera-menu__sub .siera-menu__lijst li {
	border-bottom: 1px solid rgb(218, 215, 214);
}


/* ==========================================================
   7. EXTRA LINKS EN USP
   ========================================================== */

.siera-menu ul.siera-menu__extra {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.siera-menu ul.siera-menu__extra li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.siera-menu ul.siera-menu__extra li::before {
	display: none;
}

.siera-menu__extra a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	font-size: 15px;
	color: rgb(32, 30, 29) !important;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: color .3s ease;
}

.siera-menu__extra a:hover {
	color: rgb(236, 48, 19) !important;
}

.siera-menu__extra svg {
	flex-shrink: 0;
}

.siera-menu p.siera-menu__usp {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 16px;
	padding: 14px 0 0;
	border-top: 1px solid rgb(218, 215, 214);
	font-size: 12px;
	line-height: 1.4;
	color: rgb(120, 115, 112);
}

.siera-menu__usp svg {
	flex-shrink: 0;
	color: rgb(236, 48, 19);
}


/* ==========================================================
   8. ZOEKPANEEL OP MOBIEL
   Volledig scherm, zelfde stijl als het menu:
   zoekveld met rand + sluitknop, resultaten eronder
   ========================================================== */

@media (max-width: 980px) {

	html body #main-header .zoek {
		position: fixed !important;
		inset: 0 !important;
		z-index: 999999 !important;
		display: flex;
		flex-direction: column;
		height: 100vh;
		height: 100dvh;
		background: #fff;
		text-align: left !important;
	}

	html body.zoek-open {
		overflow: hidden !important;
	}

	/* De header moet boven de USP-balk en de WordPress-adminbalk komen,
	   anders valt het zoekveld eronder en kun je niet typen of sluiten */
	html body.zoek-open #main-header {
		z-index: 1000001 !important;
	}

	html body.zoek-open #et-main-area::before {
		display: none !important;
	}

	/* Bovenste balk */
	html body #main-header .zoek__balk {
		flex-shrink: 0;
		height: auto !important;
		padding: 14px 16px !important;
		padding-top: max(14px, env(safe-area-inset-top)) !important;
		border-bottom: 1px solid rgb(218, 215, 214);
	}

	html body #main-header .zoek__balk-inner {
		display: flex !important;
		align-items: center;
		gap: 12px !important;
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	html body #main-header .zoek__logo,
	html body #main-header .zoek__wissen,
	html body #main-header .zoek__submit,
	html body #main-header .zoek__sluiten-tekst {
		display: none !important;
	}

	/* Zoekveld met rand, zoals in het menu */
	html body #main-header .zoek__form {
		display: flex !important;
		flex: 1;
		align-items: center;
		gap: 10px !important;
		min-width: 0;
		height: 48px;
		margin: 0 !important;
		padding: 0 14px !important;
		border: 1px solid rgb(32, 30, 29) !important;
		background: #fff;
	}

	html body #main-header .zoek__icoon {
		flex-shrink: 0;
		width: 18px;
		height: 18px;
	}

	html body #main-header .zoek__veld {
		flex: 1;
		min-width: 0;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		font-family: 'Archivo', sans-serif !important;
		font-size: 16px !important; /* 16px voorkomt inzoomen op de iPhone */
		line-height: 1.2 !important;
		color: rgb(32, 30, 29) !important;
	}

	html body #main-header .zoek__veld::placeholder {
		color: rgb(120, 115, 112);
		opacity: 1;
	}

	/* Sluitknop: alleen het kruisje, 44 × 44 */
	html body #main-header .zoek__sluiten {
		display: flex !important;
		flex-shrink: 0;
		justify-content: center;
		align-items: center;
		width: 44px;
		height: 44px;
		margin: 0 -8px 0 0 !important;
		padding: 0 !important;
		color: rgb(32, 30, 29);
	}

	html body #main-header .zoek__sluiten svg {
		width: 24px;
		height: 24px;
	}

	/* Resultaten vullen de rest van het scherm en scrollen zelf */
	html body #main-header .zoek__resultaten {
		position: static !important;
		flex: 1;
		max-height: none !important;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		border-top: 0 !important;
	}

	html body #main-header .zoek__grid {
		display: flex !important;
		flex-direction: column;
		align-items: stretch !important;
		gap: 0 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 0 max(24px, env(safe-area-inset-bottom)) !important;
	}

	/* Blokken met dezelfde grijze scheiding als in het menu */
	html body #main-header .zoek__producten,
	html body #main-header .zoek__zijkant .zoek__blok {
		margin: 0 !important;
		padding: 20px 16px !important;
	}

	html body #main-header .zoek__producten {
		order: -1;
	}

	html body #main-header .zoek__zijkant {
		border-top: 8px solid rgb(243, 242, 242);
	}

	html body #main-header .zoek__zijkant .zoek__blok:not([hidden]) ~ .zoek__blok:not([hidden]) {
		border-top: 1px solid rgb(218, 215, 214);
	}

	html body #main-header .zoek .zoek__label {
		margin: 0 0 12px !important;
		text-align: left;
	}

	html body #main-header .zoek__kop {
		margin-bottom: 14px !important;
	}

	html body #main-header .zoek .zoek__melding {
		font-size: 14px;
		text-align: left;
		color: rgb(120, 115, 112);
	}

	/* Populaire zoektermen: grotere knoppen, makkelijk te tikken */
	html body #main-header .zoek__populair {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px !important;
	}

	html body #main-header .zoek__chip {
		min-height: 40px;
		padding: 0 16px !important;
		font-size: 14px !important;
	}

	/* Suggesties en categorieën als nette tikbare regels */
	html body #main-header .zoek__suggesties button,
	html body #main-header .zoek__categorieen a {
		width: 100%;
		min-height: 44px;
		display: flex;
		align-items: center;
		font-size: 16px !important;
	}

	/* Productresultaten: 2 naast elkaar */
	html body #main-header .zoek__lijst {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px 12px !important;
	}

	html body #main-header .zoek__info {
		flex-direction: column;
		gap: 4px;
		margin-top: 10px;
	}

	html body #main-header .zoek__naam {
		font-size: 14px;
	}
}


/* ==========================================================
   Minder beweging als de bezoeker dat heeft ingesteld
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
	.siera-menu__paneel,
	.siera-menu__inhoud,
	.siera-menu__sub,
	.siera-menu__tegel-img,
	.siera-skiplink {
		transition: none !important;
	}
}
