/* ==========================================================================
   Header — 1-op-1 met Elementor-header #1866703 (+ megamenu 948ad4f, taalmenu d94d86c, menu-cart 31923966)
   en de headerregels uit snippets 57 (UX nov) en de custom code #1866820.
   Breekpunten oude kit: mobiel ≤767, tablet ≤1024, laptop ≤1440, desktop >1440.
   ========================================================================== */

.aj-header-part { position: sticky; top: 0; z-index: 999; }
.admin-bar .aj-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .aj-header-part { top: 46px; } }

.aj-header { position: relative; background: #fff; border-bottom: 1px solid var(--wp--preset--color--primary, #4077E3); padding: 1.3% 4%; font-family: "Manrope", Sans-serif; line-height: 1.4em; color: #4077E3; }
/* Elementor-kit: containerbreedte max 2000 px (boxed) → op schermen > ±2080 px gecentreerd */
.aj-header__inner { display: flex; flex-direction: row; justify-content: space-between; align-items: center; max-width: 2000px; margin: 0 auto; }
.aj-header__logo { display: block; flex: 0 0 auto; margin: 0 0 0 -5px; line-height: 0; }
.aj-header__logo-img { display: block; width: 250px; max-width: 100%; height: auto; }
.aj-header__right { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 30px; flex: 1 1 auto; }

/* --- topnavigatie (megamenu) ------------------------------------------------ */
.aj-nav { display: flex; align-items: center; }
.aj-nav__toggle { display: none; }
.aj-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.aj-nav__item { margin: 0; padding: 0; }
.aj-nav__title { display: flex; align-items: center; gap: 5px; }
.aj-nav__link { display: inline-flex; color: #4077E3; font-family: "Manrope", Sans-serif; font-weight: 600; font-size: 22px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.aj-nav__link:hover, .aj-nav__link:focus { color: #4077E3; }
/* pijltje schaalt mee met de menutekst (Elementor: 1em van de titel) */
.aj-nav__caret { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; width: 1em; height: 1.2em; padding: 0; margin: 0; border: 0; background: transparent !important; color: #4077E3; cursor: pointer; line-height: 0; }
.aj-nav__caret svg { width: 1em; height: 1em; fill: #4077E3; transition: transform .2s; }
.aj-nav__item--has-mega.is-open .aj-nav__caret svg { transform: rotate(180deg); }
.aj-nav__item--has-mega.is-open > .aj-nav__title .aj-nav__link,
.aj-nav__item--has-mega:hover > .aj-nav__title .aj-nav__link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Webshop-paneel (desktop): volle breedte onder de header */
.aj-mega { position: absolute; left: 0; right: 0; top: 100%; display: none; background: #fff; z-index: 998; }
.aj-nav__item--has-mega.is-open .aj-mega { display: block; animation: aj-fade .5s; }
@keyframes aj-fade { from { opacity: 0; } to { opacity: 1; } }
.aj-mega__inner { padding: 0 4%; border-top: 1px solid #4077E3; border-bottom: 1px solid #4077E3; background: #fff; }
.aj-mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 20px; }
.aj-mega__col { padding: 50px 0; border-right: 1px solid #4077E3; }
.aj-mega__col:last-child { border-right: 0; }
.aj-mega__colinner { display: flex; flex-direction: column; gap: 20px; }
.aj-mega__heading { display: block; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 22px; font-weight: 700; line-height: 22px; text-decoration: none; }
.aj-mega__heading:hover { color: #4077E3; }
.aj-mega__menu, .aj-mega__mobile-menu { margin: 0; padding: 0; list-style: none; }
.aj-mega__menu > li { margin: 0 0 14px; padding: 0 0 2px; line-height: 0; }
.aj-mega__menu > li:last-child { margin-bottom: 0; }
.aj-mega__menu a { display: inline-flex; vertical-align: top; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 18px; font-weight: 400; line-height: 20px; text-decoration: none; }
.aj-mega__menu a:hover { color: #4077E3; }
.aj-mega__mobile { display: none; }

/* --- zoekicoon ---------------------------------------------------------------- */
.aj-header__search { display: inline-flex; align-items: center; justify-content: center; width: 27.5px; height: 22px; margin: 0 -3px -6px -4px; padding: 0; border: 0; background: transparent !important; color: #4077E3; cursor: pointer; line-height: 0; }
.aj-header__search svg { width: 22px; height: 22px; fill: #4077E3; }
.aj-header__search:hover, .aj-header__search:focus { background: transparent !important; }

/* --- taalmenu ----------------------------------------------------------------- */
.aj-lang { position: relative; }
.aj-lang__current { display: inline-flex; align-items: center; gap: 0; padding: 0; margin: 0; border: 0; background: transparent !important; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 22px; font-weight: 600; line-height: 20px; cursor: pointer; }
.aj-lang__current:hover, .aj-lang__current:focus { color: #4077E3 !important; background: transparent !important; }
.aj-lang__flag { width: 18px; height: 12px; margin-right: .3em; display: inline-block; }
.aj-lang__code { color: #4077E3 !important; }
.aj-lang__arrow { display: inline-flex; padding: 5px; margin-left: .3em; line-height: 0; }
.aj-lang__arrow svg { width: .7em; height: .7em; fill: #4077E3; }
.aj-lang__list { position: absolute; top: 100%; left: 0; min-width: 128px; margin: 10px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #4077E3; border-radius: 8px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .11); display: none; z-index: 1000; }
.aj-lang.is-open .aj-lang__list, .aj-lang:hover .aj-lang__list, .aj-lang:focus-within .aj-lang__list { display: block; }
.aj-lang::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.aj-lang__link .aj-lang__flag { margin-right: 6px; }
.aj-lang__link { display: flex; align-items: center; padding: 15px 15px 15px 22px; color: #4077E3; font-family: "Manrope", Sans-serif; font-size: 20px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap; border-radius: 8px; }
.aj-lang__link:hover { color: #4077E3; background: transparent; }

/* --- winkelmand --------------------------------------------------------------- */
.aj-minicart { position: relative; top: -2.7px; margin: 0 0 -9px; }
.aj-minicart__toggle { display: flex; flex-direction: row; align-items: center; color: #4077E3; text-decoration: none; font-size: 22px; line-height: 22px; font-weight: 400; }
.aj-minicart__toggle:hover, .aj-minicart__toggle:focus { color: #4077E3; }
.aj-minicart__icon { display: inline-flex; width: 22px; height: 22px; line-height: 0; }
.aj-minicart__icon svg { width: 22px; height: 22px; fill: #4077E3; }
.aj-minicart__qty { color: #4077E3; font-size: 22px; line-height: 22px; }
.aj-minicart__qty::before { content: "("; }
.aj-minicart__qty::after { content: ")"; }
/* zijpaneel (Elementor menu-cart off-canvas) */
.aj-minicart__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 9998; }
.aj-minicart__panel { position: fixed; top: 0; right: 0; bottom: 0; width: 350px; max-width: 100vw; background: #fff; border: 1px solid #4077E3; border-radius: 10px; padding: 20px; z-index: 9999; overflow: auto; font-family: "Manrope", Sans-serif; font-size: 14px; line-height: 1.6; }
.aj-minicart__panel[hidden] { display: none; }
.aj-minicart__panel .woocommerce-mini-cart__empty-message { text-align: center; color: #4077E3; margin: 0; font-size: 14px; line-height: 22.4px; }
.aj-minicart__panel .woocommerce-mini-cart-item a:not(.remove) { font-size: 16px; font-weight: 700; line-height: 16px; color: #4077E3; }
.aj-minicart__panel .quantity { font-size: 14px; font-weight: 600; color: #5B262C; }
.aj-minicart__panel .woocommerce-mini-cart__total { font-size: 20px; font-weight: 800; text-align: center; color: #4077E3; }
.aj-minicart__panel .woocommerce-mini-cart__buttons .button:not(.checkout) { display: none; }
.aj-minicart__panel .woocommerce-mini-cart__buttons .checkout { display: block; width: 100%; text-align: center; border-radius: 50px !important; font-size: 16px; font-weight: 800; text-transform: uppercase; color: #fff; background: #4077E3 !important; }
.aj-minicart__panel .woocommerce-mini-cart__buttons .checkout:hover { background: #5B262C !important; }

/* screen-reader-only */
.aj-header .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Mediagrenzen: elke max-width staat op N.98px i.p.v. Npx. Bij Windows-schaal 125/150/175% is de vensterbreedte vaak
   fractioneel (bv. 1440,67 px); met max-width:1440px + min-width:1441px gold daar GEEN regel (Chrome-test 23-11: menu op
   2 regels, geen hamburger op 1024,67). N.98 dekt alle fracties van die schalen. Oude syntaxis bewust (geen range-syntax:
   iOS ≤ 16.3 negeert die).
   Marge: elke band hieronder houdt met een vaste scrollbalk (Windows, 15 px) ≥ 20 px vrije ruimte in de menurij
   (tools/nav-sweep.mjs --scrollbar; Chrome-test 23-11: 2 regels rond 1211 px met scrollbalk). */

/* --- desktop 1441–1699 met 6 items (Cadeaugids, prod 20-11): vaste regel Maurits 17-09 — menu boven 1440 op ÉÉN regel.
   Prod laat het menu hier over twee regels lopen (fout op prod, gemeld); hier kleiner tussenruimte zodat het past.
   23-11: band doorgetrokken van 1669 naar 1699 (met scrollbalk was op 1670 maar 9 px over). */
@media (min-width: 1441px) and (max-width: 1699.98px) {
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) { column-gap: clamp(14px, calc(4.6vw - 52px), 26px); }
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) .aj-nav__link { font-size: clamp(17px, calc(1.55vw - 5.5px), 22px); }
}

/* --- laptop 1025–1299 met 6 items: menu op één regel met ≥ 20 px marge (sweep 23-11 met scrollbalk) */
@media (min-width: 1200px) and (max-width: 1299.98px) {
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) { column-gap: 10px; }
}
@media (min-width: 1101px) and (max-width: 1199.98px) {
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) { column-gap: 9px; }
}
@media (min-width: 1025px) and (max-width: 1100.98px) {
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) { column-gap: 5px; }
}
@media (min-width: 1025px) and (max-width: 1049.98px) {
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) { column-gap: 6px; }
	.aj-nav__list:has(> .aj-nav__item:nth-child(6)) .aj-nav__link { font-size: 13.5px; }
}

/* --- desktop breed (>1440): vloeiende menumaat uit snippet 57 --------------- */
@media (min-width: 1441px) {
	/* snippet 57 schaalt alleen de titel; het Elementor-pijltje blijft 22 px (gemeten 1460–1600) */
	.aj-nav__link { font-size: clamp(18px, calc(2.2vw - 14px), 22px); }
}

/* --- laptop (1025–1440) ------------------------------------------------------ */
@media (max-width: 1440.98px) {
	.aj-header { padding: 2% 3%; }
	.aj-header__logo-img { width: 208px; }
	.aj-header__right { gap: 15px; }
	.aj-nav__list { column-gap: 15px; }
	.aj-nav__link, .aj-nav__caret { font-size: 18px; }
	.aj-lang__current { font-size: 18px; }
	.aj-lang__link { font-size: 18px; }
}
@media (min-width: 1025px) and (max-width: 1440.98px) {
	.aj-nav__link, .aj-nav__caret { font-size: clamp(14px, calc(2.22vw - 9.5px), 18px); }
}
@media (min-width: 1025px) and (max-width: 1199.98px) {
	.aj-nav__list { column-gap: 12px; }
}
@media (min-width: 1025px) and (max-width: 1060.98px) {
	html[lang^="de"] .aj-nav__list { column-gap: 6px; } /* 23-11: 8 → 6 px voor ≥ 20 px marge met scrollbalk */
}
@media (min-width: 1025px) and (max-width: 1100.98px) {
	html[lang^="fr"] .aj-nav__list { column-gap: 10px; } /* 23-11: ≥ 20 px marge met scrollbalk */
}
@media (min-width: 1061px) and (max-width: 1100.98px) {
	html[lang^="de"] .aj-nav__list { column-gap: 10px; } /* 23-11: idem (was 19 px op 1070) */
}
/* DE (lange labels, 5 items) boven 1440: bij 1450 met scrollbalk maar 5 px over → kleinere tussenruimte tot 1699 */
@media (min-width: 1441px) and (max-width: 1699.98px) {
	html[lang^="de"] .aj-nav__list { column-gap: 32px; }
}

/* --- tablet + mobiel (≤1024): hamburger + uitklaplijst ----------------------- */
@media (max-width: 1024.98px) {
	.aj-header__logo-img { width: 230px; }
	.aj-header__right { gap: 10px; }
	.aj-header__search { margin: 0; }
	.aj-minicart { margin-bottom: -6px; }
	.aj-nav { position: static; }
	.aj-nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; background: transparent !important; color: #4077E3; cursor: pointer; position: relative; }
	.aj-nav__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
	.aj-nav__toggle svg { width: 22px; height: 22px; fill: #4077E3; }
	.aj-nav__toggle-close { display: none; }
	.aj-nav__toggle[aria-expanded="true"] .aj-nav__toggle-open { display: none; }
	.aj-nav__toggle[aria-expanded="true"] .aj-nav__toggle-close { display: inline-flex; }
	.aj-nav__toggle-open, .aj-nav__toggle-close { display: inline-flex; line-height: 0; }
	.aj-nav__toggle[aria-expanded="false"] .aj-nav__toggle-close { display: none; }
	.aj-nav__list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; background: #fff; z-index: 998; }
	.aj-nav.is-open .aj-nav__list { display: flex; }
	.aj-nav__item { display: flex; flex-direction: column; width: 100%; padding: 0; }
	.aj-nav__title { padding: 9px 20px; }
	.aj-nav__link { font-size: 18px; padding: 11px 0; line-height: 1.2; }
	.aj-nav__caret { position: relative; font-size: 18px; }
	.aj-nav__caret::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
	.aj-nav__item--has-mega:hover > .aj-nav__title .aj-nav__link { text-decoration: none; }
	/* tablet (Elementor n-menu dropdown): paneel 28 px onder de titel, kolommen onder elkaar met rechterrand */
	.aj-mega { position: static; animation: none; margin-top: 28px; }
	.aj-mega__inner { padding: 0 4%; }
	.aj-mega__grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; column-gap: 0; }
	.aj-mega__col, .aj-mega__col:last-child { padding: 0 20px; border-right: 1px solid #4077E3; }
}

/* --- alleen tablet (768–1024): gemeten in Chrome 18 nov — oud: toggle 20×20, items 71,55 px uit elkaar, eerste tekst +1,1 px */
@media (min-width: 768px) and (max-width: 1024.98px) {
	.aj-nav__toggle, .aj-nav__toggle svg { width: 20px; height: 20px; }
	.aj-nav__list { row-gap: 9px; }
	.aj-nav__title { padding: 10px 20px 9px; }
	/* oud: met Webshop open schuift de hele lijst 1 px omhoog (gemeten 768/1024) */
	.aj-nav__item--has-mega.is-open { margin-top: -1px; }
}

/* --- mobiel (≤767) ------------------------------------------------------------ */
@media (max-width: 767.98px) {
	.aj-header { padding: 18px 15px 20px; }
	.aj-header__inner { flex-wrap: nowrap; }
	.aj-header__logo-img { width: 155px; margin-top: .28px; }
	.aj-header__logo { height: 25.08px; } /* oude inline-link: afbeelding 0,28 px ingesprongen */
	.aj-header__right { flex: 0 1 auto; justify-content: center; align-items: flex-end; gap: 5px; }
	.aj-lang { top: 2px; }
	.aj-minicart { top: -6px; }
	/* mobiel (custom CSS van de oude megamenu ≤767): lijst met randen en 20 px padding, item 10 px onderruimte */
	.aj-nav__list { top: calc(100% + 2px); padding: 20px 0; border-top: 1px solid #4077E3; border-bottom: 1px solid #4077E3; }
	.aj-nav__item { padding-bottom: 10px; }
	.aj-nav__title { padding: 0 20px; }
	.aj-mega { margin-top: 0; }
	.aj-mega__grid { display: none; }
	.aj-mega__inner { padding: 0; border: 0; }
	.aj-mega__mobile { display: block; padding: 29px 16px 0; }
	.aj-nav__item--has-mega.is-open { padding-bottom: 11px; } /* oud: items onder het open submenu 1 px lager (gemeten 390) */
	.aj-mega__mobile-menu > li { margin: 0; padding: 0; line-height: 0; }
	.aj-mega__mobile-menu a { display: inline-block; padding: 12px 0; color: #4077E3; font-size: 15px; font-weight: 400; line-height: 20px; text-decoration: none; }
	.aj-lang__current { font-size: 16px; }
	.aj-lang__link { font-size: 13px; padding: 8px; }
	.aj-minicart { margin-bottom: -4px; }
	.aj-minicart__toggle { font-size: 20px; line-height: 20px; }
	.aj-minicart__icon, .aj-minicart__icon svg { width: 20px; height: 20px; }
	.aj-minicart__qty { font-size: 20px; line-height: 20px; }
}
@media (max-width: 389.98px) {
	.aj-header__right { flex-wrap: nowrap; }
}
