/**
 * Groomzo v2 — header (richting A: pine statement).
 * Mobile-first; uitsluitend merk-tokens voor kleur/type/raster/radius.
 * Cart-teller en side-cart komen uit de fk_cart_menu-shortcode (FunnelKit,
 * eigen event-updates — hier alleen vormgeving).
 */

.gzv-header {
	font-family: var(--gz-sans);
	-webkit-font-smoothing: antialiased;
}
.gzv-header *, .gzv-header *::before, .gzv-header *::after { box-sizing: border-box; }

/* Skip-link: onzichtbaar tot Tab-focus. Voorkomt navigatie doorlopen
   voor toetsenbord/screen-reader users; SEO-a11y-verplichting (WCAG 2.4.1). */
.skip-link {
	position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
	z-index: 100001;
}
.skip-link:focus, .skip-link:focus-visible {
	position: fixed; left: 16px; top: 16px; width: auto; height: auto; overflow: visible;
	background: var(--gz-pine); color: var(--gz-ivory);
	padding: 10px 18px; border-radius: 6px;
	font-family: var(--gz-sans); font-size: 14px; font-weight: 600;
	text-decoration: none; box-shadow: 0 8px 20px rgba(23, 33, 27, .3);
	outline: 2px solid var(--gz-amber); outline-offset: 2px;
}
.gzv-header a { color: inherit; text-decoration: none; }
.gzv-header ul { margin: 0; padding: 0; list-style: none; }
.gzv-header button { font: inherit; }

/* Raster = header content-box, sluit aan op --gz-grid (1280) */
.gzv-inner {
	max-width: var(--gz-grid);
	margin: 0 auto;
	padding-inline: var(--gz-gutter);
}

/* ---------- Announcement bar: dennengroen + ivoor ---------- */
.gzv-bar { background: var(--gz-pine); color: var(--gz-ivory); }
.gzv-bar-inner { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 40px; }
.gzv-bar-usps { display: flex; gap: 22px; font-size: 12.5px; letter-spacing: .01em; }
.gzv-bar-usps li { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.gzv-bar-usps svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--gz-amber); }
.gzv-bar-social { display: none; gap: 16px; font-size: 12px; }
.gzv-bar-social a { color: var(--gz-ivory); opacity: .78; transition: opacity .15s, color .15s; }
.gzv-bar-social a:hover, .gzv-bar-social a:focus-visible { opacity: 1; color: var(--gz-amber); }

/* ---------- Main header: crème-card ---------- */
.gzv-main { background: var(--gz-card); border-bottom: 1px solid var(--gz-line); }
.gzv-main-inner { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.gzv-left { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.gzv-logo { display: flex; align-items: center; }
.gzv-logo .custom-logo-link { display: inline-flex; }
.gzv-logo img { display: block; height: 40px; width: auto; }
.gzv-logo > a { font-family: var(--gz-disp); font-size: 26px; font-weight: 620; color: var(--gz-pine); }

/* Burger (mobiel) — !important: Elementor Kit (.elementor-kit-4 button)
   forceert anders navy achtergrond + 100px pill + witte kleur. */
.gzv-burger {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 4.5px;
	width: 42px; height: 42px; padding: 0 !important; border: 0 !important;
	background: none !important; border-radius: 0 !important;
	box-shadow: none !important;
	min-height: 0 !important; min-width: 0 !important; cursor: pointer;
}
.gzv-burger span { display: block; width: 21px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--gz-pine); transition: transform .2s, opacity .2s; }
.gzv-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.gzv-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gzv-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Navigatie ---------- */
.gzv-nav {
	position: fixed; inset: 0 auto 0 0; z-index: 999;
	width: min(84vw, 340px);
	background: var(--gz-card);
	border-right: 1px solid var(--gz-line);
	box-shadow: var(--gz-shadow);
	padding: 18px var(--gz-gutter) 26px;
	overflow-y: auto;
	transform: translateX(-102%);
	transition: transform .25s ease;
	display: flex; flex-direction: column; gap: 6px;
}
.gzv-nav[data-open] { transform: translateX(0); }
.gzv-close {
	align-self: flex-end; width: 40px; height: 40px; border: 0 !important; border-radius: var(--gz-r-sm) !important;
	background: none !important; box-shadow: none !important; color: var(--gz-pine) !important; font-size: 26px; line-height: 1; cursor: pointer;
	padding: 0 !important; min-height: 0 !important; min-width: 0 !important;
}
.gzv-menu { display: flex; flex-direction: column; }
.gzv-menu > li > a {
	display: block; padding: 12px 4px;
	font-size: 16.5px; font-weight: 600; color: var(--gz-pine);
	border-bottom: 1px solid var(--gz-line);
}
.gzv-menu > li > a:hover, .gzv-menu > li > a:focus-visible { color: var(--gz-moss); }
.gzv-menu > li.current-menu-item > a,
.gzv-menu > li.current-menu-parent > a { color: var(--gz-pine); text-decoration: underline; text-decoration-color: var(--gz-amber); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.gzv-menu ul { display: none; padding: 2px 0 10px 12px; }
.gzv-menu li[data-sub-open] > ul { display: block; }
.gzv-menu ul a { display: block; padding: 8px 2px; font-size: 15px; color: var(--gz-body); }
.gzv-menu ul a:hover { color: var(--gz-moss); }

/* Hond & Kat in het Shop-submenu (ul = [Hond, Kat]; andere menu's hebben
   1-item submenu's — daarom :has()-scope op 2+ items): paw + kat als
   mask-icoon vóór de link, desktop-dropdown én drawer. */
.gzv-menu li.menu-item-has-children:has(> ul > li:nth-child(2)) > ul > li:nth-child(1) > a::before,
.gzv-menu li.menu-item-has-children:has(> ul > li:nth-child(2)) > ul > li:nth-child(2) > a::before {
	content: "";
	display: inline-block;
	width: 16px; height: 16px;
	margin-right: 9px; vertical-align: -3px;
	background-color: var(--gz-moss);
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}
.gzv-menu li.menu-item-has-children:has(> ul > li:nth-child(2)) > ul > li:nth-child(1) > a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='4' r='2'/%3E%3Ccircle cx='18' cy='8' r='2'/%3E%3Ccircle cx='20' cy='16' r='2'/%3E%3Cpath d='M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='4' r='2'/%3E%3Ccircle cx='18' cy='8' r='2'/%3E%3Ccircle cx='20' cy='16' r='2'/%3E%3Cpath d='M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z'/%3E%3C/svg%3E");
}
.gzv-menu li.menu-item-has-children:has(> ul > li:nth-child(2)) > ul > li:nth-child(2) > a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.42 2.26A9.06 9.06 0 0 1 12 5Z'/%3E%3Cpath d='M8 14v1M16 14v1'/%3E%3Ccircle cx='9' cy='9' r='1'/%3E%3Ccircle cx='15' cy='9' r='1'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.42 2.26A9.06 9.06 0 0 1 12 5Z'/%3E%3Cpath d='M8 14v1M16 14v1'/%3E%3Ccircle cx='9' cy='9' r='1'/%3E%3Ccircle cx='15' cy='9' r='1'/%3E%3C/svg%3E");
}

.gzv-nav-extra { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.gzv-nav-account { font-size: 15px; font-weight: 600; color: var(--gz-pine); }
.gzv-drawer-social { display: flex; gap: 14px; font-size: 13px; }
.gzv-drawer-social a { color: var(--gz-body); }

/* ---------- Acties rechts ---------- */
.gzv-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gzv-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: var(--gz-r-sm);
	background: none; color: var(--gz-pine); cursor: pointer; transition: color .15s, background .15s;
}
.gzv-icon:hover { color: var(--gz-moss); background: var(--gz-moss-soft); }

/* Taalwisselaar: compacte pillen — PLL geeft bare <li>'s (soms met ul),
   dus style de container zelf, niet een eventuele ul. */
.gzv-lang { display: flex; align-items: center; gap: 2px; }
.gzv-lang ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gzv-lang li { list-style: none; }
.gzv-lang li a, .gzv-lang li span {
	display: inline-block; padding: 5px 8px; border-radius: 999px;
	font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--gz-body);
}
.gzv-lang li a:hover { background: var(--gz-moss-soft); color: var(--gz-pine); }
.gzv-lang li.current-lang a, .gzv-lang li.current-lang span,
.gzv-lang li.current-language a, .gzv-lang li.current-language span { background: var(--gz-pine); color: var(--gz-ivory); }
.gzv-lang-drawer { display: none; }

/* Valuta: pill-trigger + kaart-uitklap (desktop), pillen-grid (drawer).
   Zelfde vocabulary als de taalwisselaar. */
.gzv-currency { position: relative; }
.gzv-cur-pill {
	display: inline-flex; align-items: center; gap: 5px;
	font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--gz-body) !important; background: transparent !important;
	border: 0 !important; box-shadow: none !important;
	padding: 5px 10px !important; min-height: 0 !important; min-width: 0 !important;
	cursor: pointer; border-radius: 999px;
}
.gzv-cur-pill svg { transition: transform .2s; opacity: .7; }
.gzv-cur-pill:hover { background: var(--gz-moss-soft) !important; color: var(--gz-pine) !important; }
.gzv-currency.is-open .gzv-cur-pill { background: var(--gz-pine) !important; color: var(--gz-ivory) !important; }
.gzv-currency.is-open .gzv-cur-pill svg { transform: rotate(180deg); }
.gzv-cur-pill:focus-visible { outline: 2px solid var(--gz-moss); outline-offset: 1px; }

.gzv-cur-menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
	min-width: 148px; max-height: min(500px, 82vh); overflow-y: auto;
	margin: 0; padding: 7px !important; list-style: none;
	background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--gz-r-md);
	box-shadow: var(--gz-shadow);
	opacity: 0; visibility: hidden; transform: translateY(5px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.gzv-currency.is-open .gzv-cur-menu { opacity: 1; visibility: visible; transform: none; }
.gzv-cur-opt {
	display: flex; align-items: center; gap: 9px;
	padding: 5px 10px; border-radius: var(--gz-r-sm);
	font-size: 12.5px; font-weight: 500; color: var(--gz-body); cursor: pointer; white-space: nowrap;
}
.gzv-cur-opt:hover, .gzv-cur-opt:focus-visible { background: var(--gz-moss-soft); color: var(--gz-pine); outline: none; }
.gzv-cur-opt.is-aan { color: var(--gz-pine); font-weight: 700; background: var(--gz-moss-soft); }
.gzv-cur-sym { color: var(--gz-moss); font-size: 12.5px; min-width: 20px; }
.gzv-cur-opt.is-aan .gzv-cur-sym { color: var(--gz-amber); }

/* Drawer-variant: native select (opent het OS-kieswiel op mobiel) gestyled
   als dezelfde pill — geen popup nodig, geen clipping in de scroll-drawer. */
.gzv-cur-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gz-muted); width: 100%; }
.gzv-currency-drawer { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gzv-cur-select {
	appearance: none; -webkit-appearance: none;
	font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--gz-pine) !important;
	background: var(--gz-moss-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2322392C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 9px;
	border: 1px solid var(--gz-line); border-radius: 999px;
	padding: 8px 34px 8px 14px; margin: 0; cursor: pointer; min-height: 0;
}
.gzv-cur-select:focus-visible { outline: 2px solid var(--gz-moss); outline-offset: 1px; }
.gzv-drawer-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (min-width: 1024px) { .gzv-currency-drawer { display: none; } }

/* Cart (fk_cart_menu-shortcode): alleen vormgeving, telling is van FunnelKit.
   Badge zweeft op de rechterbovenhoek van het icoon (klassieke badge-positie);
   anker = de 22px icon-container, blijft binnen de 44px-clip → geen overflow. */
.gzv-cart { display: inline-flex; color: var(--gz-pine); width: 44px; height: 44px; overflow: hidden; }
.gzv-cart .fkcart-shortcode-container { position: relative !important; }
.gzv-cart .fkcart-shortcode-count, .gzv-cart .fkcart-item-count {
	position: absolute !important;
	top: -6px; right: -7px;
	z-index: 2;
}
.gzv-cart .fkcart-shortcode-container,
.gzv-cart .fkcart-mini-toggler { display: inline-flex !important; align-items: center; gap: 4px; cursor: pointer; background: none !important; border: 0 !important; padding: 0 !important; }
.gzv-cart svg { width: 22px; height: 22px; color: var(--gz-pine); }
.gzv-cart .fkcart-shortcode-count, .gzv-cart .fkcart-item-count {
	min-width: 19px; height: 19px; padding: 0 5px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; background: var(--gz-amber); color: var(--gz-pine-deep);
	font-size: 11.5px; font-weight: 700; line-height: 1;
}

/* Scrim bij open drawer */
.gzv-scrim {
	position: fixed; inset: 0; z-index: 998;
	background: rgba(23, 33, 27, .5);
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.gzv-scrim[data-open] { opacity: 1; pointer-events: auto; }
html.gzv-lock, html.gzv-lock body { overflow: hidden; }

/* ---------- Desktop (vanaf 1024) ---------- */
@media (min-width: 1024px) {
	.gzv-bar-inner { justify-content: space-between; min-height: 42px; }
	.gzv-bar-social { display: flex; }
	.gzv-main-inner { min-height: 84px; gap: 56px; }
	.gzv-logo img { height: 48px; }
	/* Menu naar beneden zodat letter-bottoms samenvallen met wordmark-bodem. */
	.gzv-nav { margin-top: 4px; }

	.gzv-burger, .gzv-close, .gzv-nav-extra { display: none; }
	.gzv-nav {
		position: static; width: auto; inset: auto;
		background: none; border: 0; box-shadow: none; padding: 0;
		transform: none; overflow: visible;
	}
	.gzv-menu { flex-direction: row; gap: 26px; }
	.gzv-menu > li > a { padding: 6px 0; border-bottom: 0; font-size: 15px; font-weight: 500; }
	.gzv-menu > li.current-menu-item > a { text-underline-offset: 9px; }

	/* Dropdown: hover + keyboard/focus */
	.gzv-menu > li { position: relative; }
	.gzv-menu ul {
		position: absolute; top: calc(100% + 10px); left: -14px; z-index: 20;
		min-width: 190px; padding: 8px !important;
		background: var(--gz-card); border: 1px solid var(--gz-line); border-radius: var(--gz-r-md);
		box-shadow: var(--gz-shadow);
		display: block; visibility: hidden; opacity: 0; transform: translateY(4px);
		transition: opacity .15s, transform .15s, visibility .15s;
	}
	.gzv-menu > li:hover > ul,
	.gzv-menu > li:focus-within > ul { visibility: visible; opacity: 1; transform: translateY(0); }
	.gzv-menu ul a { padding: 9px 12px; border-radius: var(--gz-r-sm); white-space: nowrap; }
	.gzv-menu ul a:hover { background: var(--gz-moss-soft); color: var(--gz-pine); }
}

/* Mobiel: één USP tegelijk, doorlopend rotend (JS in header.js) — drie
   naast elkaar overflowen vanaf ~600px. Taal + valuta in de drawer.
   Rij = 3 rasterkolommen: burger | logo gecentreerd | acties. */
@media (max-width: 1023px) {
	.gzv-main-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
	.gzv-left { display: contents; }
	.gzv-burger { justify-self: start; }
	.gzv-logo { justify-self: center; }
	.gzv-actions { justify-self: end; margin-left: 0; }
	.gzv-actions .gzv-lang, .gzv-actions .gzv-currency, .gzv-actions .gzv-account { display: none; } /* account + taal + valuta zitten in de drawer */
}
@media (max-width: 767px) {
	.gzv-bar-usps { position: relative; display: block; width: 100%; height: 18px; font-size: 12px; }
	/* no-JS fallback: alleen de eerste USP */
	.gzv-bar-usps li { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; opacity: 0; }
	.gzv-bar-usps li:first-child { opacity: 1; }
	/* met JS (gzv-rotating): fade-rotatie door alle USP's */
	.gzv-bar-usps.gzv-rotating li {
		opacity: 0; transform: translateY(7px);
		transition: opacity .45s ease, transform .45s ease;
		pointer-events: none;
	}
	.gzv-bar-usps.gzv-rotating li:first-child { opacity: 0; }
	.gzv-bar-usps.gzv-rotating li.is-aan { opacity: 1; transform: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.gzv-bar-usps li { transition: none; transform: none; }
}
