/* =========================================================================
   Site header — one header for both flavors (mondo + mk).

   Loaded after the per-flavor stacks (css/app.css + style*.css), which hold
   no header rules:
   - sticky bar,
   - search panel opens ABOVE the bar while the bar slides down, overlaying
     the banner/page instead of pushing content down,
   - flexbox menu row: any number of top-level items spaces out evenly,
   - donate button = menu item with class "btn-donate" (color per flavor),
   - mobile menu: fixed full-screen, the page behind stays put.
   ========================================================================= */

/* --- header bar ---------------------------------------------------------- */
.site-header {
	box-sizing: border-box;
	position: sticky;
	top: 0;
	width: 100%;
	/* above the hero slider (z:1) and mondo's positioned .site-content */
	z-index: 1000;
}
/* In-page anchors (the /meie/ sub-menu's #juhatus etc.) and focused elements scroll to just below the sticky
   77px header instead of under it. */
html {
	scroll-padding-top: 77px;
}
.site-header .row {
	position: relative;
}
.site-header .upper-menu {
	box-sizing: border-box;
	position: relative;
	background: #FFF;
	padding: 0 15px;
	box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2);
	min-height: 77px;
	/* slides down to make room for the search panel above it */
	transition: transform 0.2s;
}
.site-header a {
	padding-bottom: 0;
}
.site-header a:hover {
	border-bottom: 0;
}
.site-header .logo {
	/* flex-center: several child-site logos are not square (height:auto img
	   is shorter than the 60px box) and sat at the top of the box without this */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: none;
}
.site-header .logo svg {
	display: block;
	width: 100%;
	height: 100%;
}
/* max-sizing, no distortion: child-site logo PNGs come in all ratios — the
   talkpeacefully dove is taller than wide (width:100% would make it 88px,
   spilling out of the 77px bar), the mk one is 90x98. Fit the box on both axes. */
.site-header .logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

/* --- search panel: opens ABOVE the bar; the bar slides down over the page
       (the header keeps its 77px flow height, so content never moves) ------ */
.site-header .search {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 77px;
	background: #EEEEEE;
	transform: translateY(-100%);
	visibility: hidden;
	/* keep the panel visible while it slides shut, hide it after */
	transition: transform 0.2s, visibility 0s 0.2s;
}
.site-header.search-active .search {
	transform: translateY(0);
	/* visible instantly (no transition) so the search box can take focus
	   synchronously in the toggle's click handler */
	visibility: visible;
	transition: transform 0.2s;
}
.site-header.search-active .upper-menu {
	transform: translateY(77px);
}
.search .row {
	vertical-align: middle;
	text-align: center;
	padding-top: 10px;
}
.search .search-box {
	font-family: 'Bebas Neue Regular';
	font-size: 2.5em;
	line-height: 1.1em;
	border: none;
	background: none;
	height: 70px;
	color: #000;
	box-shadow: none;
	text-align: center;
	text-transform: uppercase;
	/* Fills the header row instead of the ~20-character default the size
	   attribute gives an input, so a long query keeps growing outwards on a
	   wide screen rather than scrolling inside a 316px box. The field draws
	   nothing, so the only thing its width decides is when the text scrolls.
	   border-box beats the normalize's content-box for search fields (css/app.css), which
	   would otherwise add the padding on top of the 100%. */
	box-sizing: border-box;
	width: 100%;
	/* the side gutters are where the clear button goes when the query is long
	   enough to end flush against the text area */
	padding: 5px 1.75rem;
}
/* Clear button, sitting just behind the last glyph of the query ("GHANA x").
   Its left/top are written by js/app.js (the query is centred, so the end of
   the string is a moving target); everything below is only the box it draws in.

   The cross is two stroked lines, not the letter x: a glyph would carry its
   own font's baseline and x-height into a field whose font can differ per
   flavour, and there would be nothing to align it to. */
.search .search-field {
	position: relative;
	/* block, not inline-block: a shrink-to-fit wrapper would resolve the
	   field's width: 100% against the field's own intrinsic width */
	display: block;
}
.search .search-clear {
	position: absolute;
	/* left/top from JS are the centre of the cross, not its corner */
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	/* box stays far bigger than the cross it holds: a 40px tap target */
	width: 1em;
	height: 1em;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	line-height: 0;
	cursor: pointer;
	color: rgb(111, 111, 111);
	/* matches .search-box, so the cross scales with the query text */
	font-size: 2.5em;
}
.search .search-clear[hidden] {
	display: none;
}
.search .search-clear svg {
	display: block;
	/* deliberately small beside the caps — a secondary affordance, not a
	   letter in the query. JS reads this rendered width back, so the space
	   before the cross follows any change here on its own. */
	width: 0.3333em;
	height: 0.3333em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.search ::-webkit-input-placeholder { color: #454545; }
.search ::-moz-placeholder { color: #454545; }
.search :-ms-input-placeholder { color: #454545; }
.search ::placeholder { color: #454545; }

/* --- header icons --------------------------------------------------------- */
.site-header .fa {
	font-size: 1.5em;
}
/* The four toggles are <button> in this theme and stay <i> in the six mk child
   themes, which override header.php but share this file.

   NEVER put font, font-family, font-size or line-height in this block: an #id
   selector (1,0,0) beats FontAwesome's .fa (0,1,0), and .fa sets the whole
   `font` shorthand (css/app.css, no !important), so overriding it turns
   the glyph into a blank box. The rest of the button reset is already global
   in css/app.css (normalize and reset) — nothing to repeat. */
#search-toggle,
#search-close,
#menu-toggle,
#menu-toggle-times {
	cursor: pointer;
	/* buttons are text-align:center by UA rule, <i> is start. In the fixed
	   20px slot these sit in, centring puts the narrow fa-times ~2px right of
	   where fa-bars sat, and the open/close swap reads as a jitter. */
	text-align: inherit;
	/* css/app.css uppercases every button — a no-op on private-use glyphs,
	   but off so a labelled toggle never surprises us later */
	text-transform: none;
	/* no double-tap-zoom hesitation on the control that must feel instant */
	touch-action: manipulation;
}
/* :focus-visible cannot match a non-focusable <i>, so the child themes that
   still ship <i> markup are untouched by this */
#search-toggle:focus-visible,
#search-close:focus-visible,
#menu-toggle:focus-visible,
#menu-toggle-times:focus-visible {
	outline: 2px solid currentColor;
	/* the glyph overflows the 20px box; keep the ring clear of it */
	outline-offset: 3px;
}
#search-close {
	display: none;
	color: #000;
}
.search-active .upper-menu #search-close { display: inline-block; }
.search-active .upper-menu #search-toggle { display: none; }
#header_calendar i {
	font-size: 1.4em;
}
#header_cart span {
	font-size: 18px;
	color: #555;
	font-weight: 700;
}
/* social icons: a tight group of equal-width slots — glyph widths differ
   (facebook is narrow, instagram wide), so each anchor is a fixed 30px slot
   with the icon centered in it */
#header_social {
	display: inline-flex;
	align-items: center;
}
#header_social a {
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
}
#header_icons #header_social i {
	display: block;
	float: none;
	margin: 0;
	padding: 0;
}

/* language switch (desktop dropdown) */
#lang_switch {
	position: relative;
	background: #fff;
	margin: 0;
}
#lang_switch ul {
	margin: 0;
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 100%;
	background: #fff;
	box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2);
}
#lang_switch.down ul {
	display: block;
}
#lang_switch ul li {
	display: block;
	padding: 0;
}
#lang_switch ul li a,
#cur_lang {
	display: block;
	padding: 3px 10px;
	font-family: "Bebas Neue Regular";
	font-size: 16px;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
}
#cur_lang:hover {
	background: #eee;
}
#cur_lang::after {
	font-family: FontAwesome;
	content: " \f0d7";
}

/* mobile language row (inside the mobile menu) */
#mob_lang_ul {
	display: none;
	border-bottom: 1px solid #ccc;
}
#mob_lang_ul > li {
	float: left;
	/* min-, not fixed: the labels are centred in the box, and a fixed width
	   that does not fit a longer language name would need widening by hand,
	   pushing that one label out of the row's rhythm. Shrink-to-fit with a
	   50px floor keeps every 2-letter code on the same 50px grid and lets a
	   longer name grow its own box instead.

	   `width: auto` is load-bearing, not decorative: the mobile block sets
	   `.site-header .upper-menu ul li { width: 100% }` (0,2,2), so dropping
	   the width declaration here lets that through and each language fills
	   the whole row. */
	width: auto;
	min-width: 50px;
	text-transform: uppercase;
}
#mob_lang_ul > li a {
	padding-left: 7px !important;
	padding-right: 7px !important;
}
#mob_lang_ul > li a.active {
	background-color: #fff;
}
/* Narrowest screens drop the current language, same 379px cutoff the bar uses
   to drop the social icons (mobile section below). Keep the two in step if
   either moves. */
@media (max-width: 379px) {
	ul#mob_lang_ul a.active { display: none; }
}

/* --- donate button (menu item with class btn-donate) ----------------------- */
.site-header ul li.btn-donate > a {
	box-sizing: border-box;
	display: inline-block;
	padding: 0.6em 1em;
	background-color: #f7c7d6; /* mk pink */
}
body.flavor-mondo .site-header ul li.btn-donate > a {
	background-color: #F2AF1C; /* mondo yellow */
}
.site-header ul li.btn-donate:hover {
	background-color: transparent;
}
.site-header ul li.btn-donate > a:hover {
	background-color: rgb(238, 238, 238);
}

/* --- menu item state/color helpers ---------------------------------------- */
.main.menu > li.red > a {
	font-weight: 600;
}
ul.menu.main > li.current-menu-item.not_active > a {
	background: initial;
	font-weight: 400;
}
.site-header nav ul li {
	text-align: center;
}

/* =========================================================================
   Desktop (≥64em): flex bar — logo | evenly spaced menu | icons
   ========================================================================= */
@media screen and (min-width: 64em) {
	.site-header .upper-menu > .row {
		display: flex;
		align-items: stretch;
		min-height: 77px;
	}
	.site-header .logo-link {
		flex: 0 0 auto;
		align-self: center;
	}
	.site-header nav {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
	}
	#mob_lang_ul {
		display: none;
	}
	/* the menu itself: items share the leftover space evenly no matter how
	   many there are */
	.site-header nav > ul.menu {
		flex: 1 1 auto;
		display: flex;
		align-items: stretch;
		justify-content: space-evenly;
		flex-wrap: wrap;
		margin: 0;
		width: auto;
	}
	.site-header nav > ul.menu > li {
		display: flex;
		align-items: stretch;
		position: relative;
		padding: 0;
		transition: background 0.2s;
	}
	/* the link fills the whole item, so the entire hovered area is clickable */
	.site-header nav > ul.menu > li:not(.btn-donate) > a {
		display: flex;
		align-items: center;
		padding: 0 15px;
	}
	.site-header nav > ul.menu > li.btn-donate {
		align-items: center;
	}
	.site-header nav > ul.menu > li:hover,
	.site-header ul .active {
		background: #EEEEEE;
	}
	.site-header nav > ul.menu > li.btn-donate:hover {
		background: transparent;
	}
	/* the section you are in (top level: an ancestor or parent of the page counts); in a dropdown only the page
	   itself, not its parent page (/en/shop/ "Products" on every English shop page) */
	.site-header nav > ul.menu > li.current-page-ancestor > a,
	.site-header nav > ul.menu > li.current-menu-parent > a,
	.site-header .current-menu-item > a,
	.site-header .current_page_item > a {
		font-weight: 900;
	}

	/* dropdowns */
	.site-header ul li ul {
		width: 300px;
		position: absolute;
		top: 100%;
		left: 50%;
		margin: 0 0 0 -150px;
		display: none;
		padding: 15px 0 10px 0;
		background: #fff;
		box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2);
	}
	.site-header ul li:hover ul {
		display: block;
	}
	.site-header ul li ul h2 {
		margin: 26px 0 8px 0;
	}
	.site-header ul li ul li {
		padding: 0;
		padding-bottom: 0.5em;
		width: 100%;
	}
	.site-header ul li ul li:hover {
		background: #FFF;
	}
	.site-header ul li ul li a {
		padding-bottom: 1px;
		display: inline-block;
	}
	.site-header ul li ul li a:hover {
		border-bottom: 1px solid;
		padding-bottom: 0px;
	}
	.site-header ul li ul li.green:first-child, .site-header ul li ul li.blue:first-child,
	.site-header ul li ul li.red:first-child, .site-header ul li ul li.yellow:first-child {
		margin-top: -15px;
	}
	.site-header ul li ul li.green:last-child, .site-header ul li ul li.blue:last-child,
	.site-header ul li ul li.red:last-child, .site-header ul li ul li.yellow:last-child {
		margin-bottom: -10px;
	}
	.site-header ul li ul li.green a:hover, .site-header ul li ul li.blue a:hover,
	.site-header ul li ul li.yellow a:hover, .site-header ul li ul li.red a:hover {
		border: 0;
		padding-bottom: 1px;
	}

	/* icons block as flex row */
	#header_icons {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		margin-left: 15px;
	}
	#header_icons > * {
		margin-left: 12px;
	}
	#header_icons > :first-child {
		margin-left: 0;
	}
	#menu-toggle,
	#menu-toggle-times {
		display: none;
	}
}

/* =========================================================================
   Mobile (<64em): compact bar + full-screen menu (mk model)
   ========================================================================= */
@media screen and (max-width: 63.9375em) {
	.site-header .upper-menu {
		padding: 0;
	}
	.site-header .logo {
		position: absolute;
		top: 8px;
		left: 15px;
	}
	.site-header ul .menu {
		width: 100vw;
		margin: 0;
	}
	/* menu items hidden until the menu is opened */
	.site-header .upper-menu ul li {
		display: none;
		width: 100%;
		background: #FFF;
	}
	/* donate button stays visible in the bar (if the menu has one);
	   absolute against the .row, whose in-flow height is 0 on mobile — so
	   position from the top of the 77px bar, not with top:50%. The button
	   centers in the free strip between the logo (ends ~90px) and the icons
	   block (widest case, mk: search+calendar+cart+socials+burger ≈ 200px). */
	.site-header:not(.opened) nav ul li.btn-donate {
		display: block;
		position: absolute;
		top: 19px;
		left: 90px;
		right: 200px;
		text-align: center;
		white-space: nowrap;
		width: auto;
		background: transparent;
	}
	/* very narrow screens: logo + donate + full icon row don't fit, so drop
	   the social icons from the bar — only when a donate button is present.
	   Same cutoff hides the current language in the menu's language row (above). */
	@media (max-width: 379px) {
		.site-header:not(.opened):has(li.btn-donate) #header_social {
			display: none;
		}
		.site-header:not(.opened) nav ul li.btn-donate {
			right: 130px;
		}
	}
	.site-header:not(.opened) nav ul li.btn-donate > a {
		padding: 0.7rem !important;
	}

	/* icons pinned right */
	#header_icons {
		display: block;
		position: absolute;
		right: 10px;
		top: 27px;
	}
	/* <button> in this theme, still <i> in the six mk child headers */
	#header_icons i,
	#header_icons button {
		position: static;
		float: left;
		margin-right: 15px;
	}
	#header_icons #header_cart i {
		margin-right: 3px;
	}
	#search-toggle, #header_calendar, #header_calendar i,
	#header_cart, #header_cart i, #header_cart span {
		display: inline-block;
		vertical-align: middle;
	}
	#header_calendar, #header_cart {
		float: left;
	}
	#lang_switch {
		display: none;
	}
	#header_social {
		float: left;
		/* slight gap between the cart and the social group */
		margin-left: 10px;
	}
	/* --- tap targets ------------------------------------------------------
	   The glyphs are only ~20x24px (.fa is `14px/1` scaled to 1.5em), far
	   under the ~44px a thumb wants, and the hamburger was the worst of them.
	   Each control gets a transparent ::after that reaches out into the empty
	   bar around it, so the whitespace above and below is clickable and no
	   icon moves a pixel. It is absolutely positioned, so it contributes
	   nothing to the float layout.

	   14px is the most the vertical gives: the icon row sits at top 27px and
	   is ~24px tall, so this spans 13px..65px inside the 77px bar. Growing
	   sideways is only safe on the menu toggles — the rest sit 15px apart or
	   less, and the donate button's right edge is ~10px from the first one. */
	#header_icons #search-toggle,
	#header_icons #search-close,
	#header_icons #header_calendar,
	#header_icons #header_cart,
	#header_icons #header_social a,
	#header_icons #menu-toggle,
	#header_icons #menu-toggle-times {
		/* anchors the ::after below. Two ids (2,0,0) deliberately: both the
		   rule above and all six child style.css copies pin
		   `#header_icons button { position: static }` at (1,0,1), and the
		   children load after this file. No offsets, so nothing shifts. */
		position: relative;
	}
	#header_icons #search-toggle::after,
	#header_icons #search-close::after,
	#header_icons #header_calendar::after,
	#header_icons #header_cart::after,
	#header_icons #header_social a::after,
	#header_icons #menu-toggle::after,
	#header_icons #menu-toggle-times::after {
		content: "";
		position: absolute;
		top: -14px;
		bottom: -14px;
		left: 0;
		right: 0;
	}
	#menu-toggle, #menu-toggle-times {
		margin: 0 0 0 20px;
		width: 20px;
		float: left;
	}
	/* the hamburger has room sideways too: 20px of margin on its left, and on
	   its right 25px of clear bar here (15px on the child sites, whose
	   margin-right is 5px). 10px each way leaves a gap on both. */
	#header_icons #menu-toggle::after,
	#header_icons #menu-toggle-times::after {
		left: -10px;
		right: -10px;
	}
	#menu-toggle-times {
		display: none;
	}
	.opened #menu-toggle {
		display: none;
	}
	.opened #menu-toggle-times {
		display: block;
	}
	.search-active #search-close {
		display: inline-block;
	}

	/* --- opened menu: fixed full-screen, page behind does not scroll ------ */
	.site-header.opened {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		max-height: 100%;
		overflow-y: scroll;
		overscroll-behavior: contain;
		z-index: 10000;
	}
	/* hard scroll lock for the page behind the opened menu */
	html:has(.site-header.opened) {
		overflow: hidden;
	}
	.opened .logo {
		display: none;
	}
	.opened .upper-menu {
		background: #EEE;
	}
	.opened .upper-menu ul {
		padding: 20px 0;
		background: #eee;
	}
	.opened .upper-menu ul li {
		display: block;
		background: #EEE;
		padding: 0;
	}
	.opened .upper-menu ul li a {
		color: #000;
		font-size: 1em;
	}
	.opened .upper-menu nav > ul > li > a {
		font-weight: 900;
	}
	.site-header nav ul li a {
		padding: 15px !important;
		display: block;
		margin: 0;
	}
	.site-header nav ul li ul a {
		padding: 0.4rem 1rem !important;
	}
	.site-header a:hover {
		background: #fff;
		border: 0 !important;
	}
	ul.menu.main li.current-menu-item > a { background: #fff; }
	ul.menu.main li.current_page_item > a { background: #fff; }
	ul.menu.main li.current_page_item > a > h2 { background: #fff; }
	/* top level only, as on desktop: in the opened submenu only the page itself is bold */
	ul.menu.main > li.current_page_ancestor > a { font-weight: 900; }
	ul.menu.main > li.current_page_parent > a { font-weight: 900; }
	ul.menu.main > li > a { text-transform: uppercase; font-weight: 900; }

	/* submenus rendered inline in the list */
	.site-header ul li ul {
		display: block !important;
		position: relative;
		left: 0;
		top: 0;
		width: 100%;
		box-shadow: none;
		margin: 0;
		padding: 0 !important;
	}
	.site-header ul li ul h2,
	.site-header ul li ul a {
		font-size: 1em;
		font-family: "Raleway Mondo Regular", Helvetica, Roboto, Arial, sans-serif;
		text-transform: none;
		margin: 0;
		line-height: 25px;
	}
	.site-header ul li ul li a {
		display: block;
	}
	.site-header ul li ul li.green:first-child { margin-top: 0px; }
	.site-header ul li ul li.red:last-child { margin-bottom: 0px; }
	.empty {
		display: none !important;
	}

	/* donate inside the opened menu: plain centered item */
	.site-header.opened ul li.btn-donate {
		margin-bottom: 10px;
	}
	.site-header.opened ul li.btn-donate > a {
		background-color: unset;
	}
	body.flavor-mk .site-header.opened ul li.btn-donate > a {
		color: #EB1C24 !important;
	}

	/* fixed top rows of the opened menu: [lang bar] + icons, and the search
	   panel above them when active */
	.opened #mob_lang_ul {
		position: fixed;
		/* opaque: menu items scrolling under the fixed rows must not show through */
		background: #EEE;
		top: 0;
		left: 0;
		height: 77px;
		width: 100%;
		display: block;
		margin: 0;
		padding-left: 5px;
		padding-top: 12px;
		z-index: 1;
		border-top: 1px solid rgb(204, 204, 204);
	}
	.opened.search-active #mob_lang_ul {
		top: 77px;
	}
	.opened #header_icons {
		position: fixed;
		z-index: 2;
	}
	.opened.search-active #header_icons {
		top: 104px;
	}
	.opened ul.menu.main {
		margin-top: 70px;
	}
	.opened.search-active ul.menu.main {
		margin-top: 147px;
	}
	.opened .search {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		transform: none;
		transition: none;
		z-index: 1;
	}
	.opened:not(.search-active) .search {
		display: none;
	}
	/* in the opened menu the search overlays the top rows instead of
	   pushing the full-screen menu container down */
	.site-header.opened.search-active .upper-menu {
		transform: none;
	}
}

/* =========================================================================
   Sticky title + sub-menu rows: opt-in WPBakery row classes (Row → Extra
   class name). "sticky-desktop" keeps the row under the header from 64em up,
   "sticky-mobile" below it (the header's own breakpoint) as a one-line bar
   whose links swipe sideways, "sticky-mobile-large" below it as the full
   bar with every link, wrapped. A desktop and a mobile class together =
   always.
   Products get both from wc_inc/wc_functions.php, the shop category pages
   only sticky-mobile (on desktop the main menu's POOD dropdown has the same
   links). Besides rows: the cart-with-items head (mondo_shop_page_head() in
   woocommerce/cart/cart.php), a title + sub-menu block inside a padded
   column; its bar spans the surrounding row like the others and keeps the
   block's own inset (--sub-menu-inset-left/-right) as padding.

   js/app.js adds "sub-menu-stuck" (fixed under the header, compact) once
   the sub-menu's links reach the place they have in the bar, or at the
   latest once the row's bottom meets the bar's bottom, and keeps it to the
   end of the page (fixed, not sticky: a sticky row could not leave its
   WPBakery wrapper, which on product pages ends above the related
   products). The compact bar:
   - above the links: the gap between two lines of the sub-menu in the page
     (--sub-menu-row-gap: 8.6px = its 25.6px line minus the 17px link box with
     its underline, measured on desktop and mobile alike), plus 7px on desktop
     and 2px on mobile (--sub-menu-gap: 15.6px / 10.6px);
   - below the text: the same gap, then a 1px line; the header's shadow
     falls on the bar from above ("the bar's edges", below);
   - the heading is as tall as an active sub-menu item, cap top to the
     bottom of its underline, and shrinks into it from its full size when
     the bar takes over, and a click on it scrolls back to the top; on
     mobile it is hidden.
   The fixed bar leaves the flow, so app.js gives the row's parent the
   padding-top that keeps the content below exactly where it was: the page
   under it never moves. It also takes the row's own left and width
   (--sub-menu-left, --sub-menu-width). Where the row was, a .sub-menu-fill
   box in the row's own colour scrolls away with the page, so that padding
   never shows the page background when the bar takes over before the row
   has scrolled away.
   ========================================================================= */
.sticky-desktop,
.sticky-mobile,
.sticky-mobile-large {
	--sub-menu-top: 77px;
	--sub-menu-row-gap: 8.6px;
	--sub-menu-gap: calc(var(--sub-menu-row-gap) + 7px);
}
@media screen and (max-width: 63.9375em) {
	.sticky-desktop,
	.sticky-mobile,
	.sticky-mobile-large {
		--sub-menu-gap: calc(var(--sub-menu-row-gap) + 2px);
	}
}
.site-content .sub-menu-stuck {
	position: fixed;
	top: var(--sub-menu-top);
	left: var(--sub-menu-left);
	width: var(--sub-menu-width);
	box-sizing: border-box;
	margin: 0 !important;
	/* inside .site-content's z:100 context: over the page and the footer, under the header */
	z-index: 50;
	background-color: #FFF !important;
	padding-top: var(--sub-menu-gap) !important;
	padding-bottom: var(--sub-menu-gap) !important;
}
.site-content .sub-menu-stuck > .wpb_column > .vc_column-inner {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.site-content .sub-menu-stuck .wpb_content_element {
	margin-bottom: 0 !important;
}
/* An active sub-menu item (Raleway 16px caps on a 16px line, 1px underline under the line) measures 14.4px from
   its cap top to the bottom of its underline. Bebas caps are 0.70em, so 20.5px gives the same height; on the
   items' 16px line its baseline sits 2px above that underline bottom, hence the 2px shift. */
.site-content .sub-menu-stuck h1 {
	font-size: 20.5px;
	line-height: 16px;
	margin: 0;
	position: relative;
	top: 2px;
}
/* in the bar the heading takes the page back to the top (js/app.js) */
.site-content .sub-menu-stuck h1,
.site-content .sub-menu-stuck h1 a {
	cursor: pointer;
}
/* Desktop: when the bar takes over, the heading starts at its full size where it stood on the page
   (--sub-menu-title-size/-height/-shift, set by app.js) and shrinks into the bar; only while app.js keeps
   "sub-menu-entering" on the row. Leaving the bar is instant: the row is back in the page then, and growing
   it would push the page around. */
@keyframes sub-menu-title-in {
	from {
		font-size: var(--sub-menu-title-size);
		line-height: var(--sub-menu-title-height);
		transform: translateY(var(--sub-menu-title-shift, 0px));
	}
}
@media (prefers-reduced-motion: no-preference) {
	.site-content .sub-menu-stuck.sub-menu-entering h1 {
		animation: sub-menu-title-in 0.3s ease-out;
	}
}
/* one 16px line box per row of links (17px with the underline), so the paddings above are the distance to the links;
   wrapped rows the same gap apart, as in the page */
.site-content .sub-menu-stuck .sub-menu {
	margin-top: 0;
}
.site-content .sub-menu-stuck .sub-menu ul.menu {
	line-height: 16px;
	margin-top: calc(-1 * var(--sub-menu-row-gap));
	margin-bottom: 0;
}
.site-content .sub-menu-stuck .sub-menu ul.menu > li {
	line-height: 16px;
	margin-top: var(--sub-menu-row-gap);
	vertical-align: top;
}
/* Appended to body by app.js, placed over the stuck row's margin in page coordinates (the row's own left and
   width: on wide screens the content column is narrower than the window); just under .site-content (z:100),
   so it only shows where the page is transparent and never covers content. */
.sub-menu-fill {
	position: absolute;
	z-index: 99;
	display: none;
	pointer-events: none;
}
.sub-menu-fill.is-shown {
	display: block;
}
/* an element that is not a row (the cart head) keeps its inset inside the row-wide bar */
.site-content .sub-menu-stuck:not(.vc_row) {
	padding-left: var(--sub-menu-inset-left, 0px) !important;
	padding-right: var(--sub-menu-inset-right, 0px) !important;
}
@media screen and (max-width: 63.9375em) {
	.site-content .sub-menu-stuck:not(.vc_row) > h1 {
		display: none;
	}
	.site-content .sub-menu-stuck:not(.vc_row) > .sub-menu {
		width: 100%;
	}
	/* the one-line track brings its own gutters */
	.site-content .sticky-mobile.sub-menu-stuck:not(.vc_row) {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
/* mobile: the bar is the sub-menu alone. The heading's column is hidden and the sub-menu's takes the full
   width, so where the two sit side by side (768px up) the right-aligned links stay where they were. */
@media screen and (max-width: 63.9375em) {
	.site-content .sub-menu-stuck > .wpb_column:not(:has(.sub-menu)) {
		display: none;
	}
	.site-content .sub-menu-stuck > .wpb_column:has(.sub-menu) {
		width: 100%;
	}
}
/* sticky-mobile: one line, the links in a track that swipes sideways. The track runs to the screen edges (the
   column's 35px gutter moves into its own padding, so the first link still starts at the gutter), its scrollbar is
   hidden, and app.js fades the edge(s) where more links wait (.sub-menu-more-left/-right). Each link's box already
   holds its 1px underline, so the clipping overflow leaves it whole. Links keep their usual 14px spacing (10px
   margin + the space between inline items). */
@media screen and (max-width: 63.9375em) {
	.site-content .sticky-mobile.sub-menu-stuck > .wpb_column,
	.site-content .sticky-mobile.sub-menu-stuck > .wpb_column > .vc_column-inner {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	/* the widget box must take the bar's width (some shop menus make it a shrink-wrapped inline-block, which grew
	   to all the links and sat 5px low on a text line) */
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu .widget {
		display: block;
		margin: 0;
	}
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu {
		display: flex;
		flex-wrap: nowrap;
		column-gap: 14px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		margin: 0;
		padding: 0 2.1875rem;
	}
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu::-webkit-scrollbar {
		display: none;
	}
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu > li {
		flex: none;
		margin: 0;
	}
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu.sub-menu-more-right {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
	}
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu.sub-menu-more-left {
		-webkit-mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent);
	}
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu.sub-menu-more-left.sub-menu-more-right {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	}
}
/* where the sub-menu column sits beside the title (768px up) its links are right-aligned: so in the bar, as long
   as they fit */
@media screen and (min-width: 768px) and (max-width: 63.9375em) {
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu > li:first-child {
		margin-left: auto;
	}
}
/* the theme's gutter on the narrowest phones */
@media screen and (max-width: 350px) {
	.site-content .sticky-mobile.sub-menu-stuck .sub-menu ul.menu {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}
/* the bar's edges: the header's shadow falls on it from above, and a 1px line at its bottom in the lightest step of
   that shadow that still reads as a line on white (#f1f1f1: the shadow runs #d4d4d4 at the header's edge, then
   #eaeaea, #f1f1f1, #f7f7f7, #fbfbfb down to white 8px below). The gap above the links starts where that shadow
   ends, not under it; 3px more below.
   Other edges, kept for switching back (app.js still sets --sub-menu-line and html.sub-menu-bar-stuck for them):
   - desktop, a line in the page colour under the bar:
     @media screen and (min-width: 64em) { .site-content .sub-menu-stuck { border-bottom: 1px solid var(--sub-menu-line, #000); } }
   - mobile: the bar hangs under the header, a grey line between the two and the header's shadow under the bar, the
     header's own shadow off meanwhile:
     @media screen and (max-width: 63.9375em) {
         .site-content .sub-menu-stuck { border-top: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2); }
         .sub-menu-bar-stuck .site-header:not(.opened):not(.search-active) .upper-menu { box-shadow: none; }
     }
     (to switch: restore that block, and limit the border-bottom and paddings below to desktop) */
.site-content .sub-menu-stuck {
	border-bottom: 1px solid #f1f1f1;
	padding-top: calc(8px + var(--sub-menu-gap)) !important;
	padding-bottom: calc(var(--sub-menu-gap) + 3px) !important;
}
@media screen and (max-width: 63.9375em) {
	/* a page whose title row stays on screen needs no second copy of its sub-menu further down (the shop category
	   pages repeat theirs under the products) */
	#wpb-content-root:has(> .sticky-mobile, > .sticky-mobile-large) > .vc_row:not(.sticky-mobile):not(.sticky-mobile-large) .vc_wp_custommenu.sub-menu {
		display: none;
	}
	/* most of them have it alone in a row of its own, which would stay behind as 70px of empty white: it collapses,
	   keeping its bottom margin (the blue band before the footer) */
	#wpb-content-root:has(> .sticky-mobile, > .sticky-mobile-large) > .vc_row:not(.sticky-mobile):not(.sticky-mobile-large):has(.vc_wp_custommenu.sub-menu):not(:has(.wpb_wrapper > :not(.vc_wp_custommenu))) > .wpb_column > .vc_column-inner {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}
