/* Site header on landing pages (parts/site-header.php): the look of the Elementor header of the other pages.
   Unlayered, so it wins over the landing styles (layer "landing"). Font: Nunito (the site's Elementor font). */

.zl-site-header {
	position: relative;
	z-index: 60;
	font-family: "Nunito", sans-serif;
	background: #fff;
}
.zl-shapes {
	position: absolute;
	top: 0;
	/* Like the Elementor header: the shapes end at the right edge of a centred 1600 px box (the screen edge below that). */
	right: max(0px, calc((100% - 1600px) / 2));
	display: flex;
	pointer-events: none;
	z-index: 0;
}
.zl-shapes img { display: block; width: min(10vw, 168px); height: auto; } /* scales like the Elementor shapes */
.zl-bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: max(128px, calc(min(10vw, 168px) + 4px)); /* as tall as the corner shapes: the section bar below stays clear of them */
	/* Content in the same centred 1600 px box as the Elementor header, 35 px from the screen edge on smaller screens. */
	padding: 30px max(35px, calc((100% - 1600px) / 2)) 16px;
	box-sizing: border-box;
}
.zl-logo { flex: 0 0 auto; display: block; }
.zl-logo img { display: block; width: 147px; height: auto; }

/* Main menu */
.zl-menu { flex: 0 1 auto; margin-left: clamp(40px, calc(40px + (100vw - 1440px) * .044), 78px); }
.zl-menu__list, .zl-menu__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.zl-menu__list { display: flex; align-items: center; gap: 4px; }
.zl-menu__list > li { position: relative; }
.zl-menu__list > li > a {
	display: block;
	padding: 10px 23px; /* same item spacing as the Elementor menu */
	color: #001733;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .15s ease;
}
.zl-menu__list > li > a:hover,
.zl-menu__list > li:focus-within > a,
.zl-menu__list > li.current-menu-item > a,
.zl-menu__list > li.current-menu-ancestor > a { color: #01808C; }
.zl-menu__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	padding: 12px 0;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 23, 51, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.zl-menu__list > li:hover > .sub-menu,
.zl-menu__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.zl-menu__list .sub-menu a {
	display: block;
	padding: 10px 24px;
	color: #3d3d3d;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}
.zl-menu__list .sub-menu a:hover, .zl-menu__list .sub-menu .current-menu-item > a { color: #01808C; }
.zl-sub-toggle { display: none; }

/* Account, cart, phone menu button */
.zl-icons { display: flex; align-items: center; gap: 18px; margin-left: 8px; }
.zl-icon { position: relative; display: inline-flex; color: #001733; }
.zl-icon:hover { color: #01808C; }
/* Magnifier: product search bar at the top of the window (same look as zorec-shop's on the other pages). */
.zl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zl-qs[hidden] { display: none !important; }
.zl-qs { position: fixed; inset: 0; z-index: 100000; }
.zl-qs__backdrop { position: absolute; inset: 0; background: rgba(0, 23, 51, .35); }
.zl-qs__form { position: relative; display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 22px 24px; background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .15); font-family: 'Poppins', sans-serif; box-sizing: border-box; }
.zl-qs__input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid #e4dfd8; border-radius: 10px; background: #fff; color: #2d2d2d; font: 16px/1.2 'Poppins', sans-serif; box-sizing: border-box; }
.zl-qs__input:focus { border-color: #b83f20; outline: none; }
.zl-qs__submit { flex: 0 0 auto; height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #FF9198 0%, #F85963 100%); color: #fff; font: 500 14px/1 'Poppins', sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.zl-qs__submit:hover { background: linear-gradient(180deg, #F9848C 0%, #EE4A55 100%); }
.zl-qs__close { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #2d2d2d; cursor: pointer; }
.zl-qs__close:hover, .zl-qs__close:focus-visible { background: #f5f4f2; }
@media (max-width: 600px) {
	.zl-qs__form { padding: 14px 12px; gap: 8px; border-radius: 0 0 14px 14px; }
	.zl-qs__submit { padding: 0 14px; }
}
.zl-cart__count {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #e31b23;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}
.zl-cart__count[hidden] { display: none; }
.zl-burger { display: none; }

/* The page's own section links under the header, kept on top while scrolling. */
.zl-subnav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.zl-subnav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: none;
	padding: 8px max(35px, calc((100% - 1600px) / 2)); /* lines up with the header box */
}
.zl-subnav__links { display: flex; gap: 4px; }
.zl-subnav__links a { padding: 8px 14px; border-radius: 50px; color: #666; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.zl-subnav__links a:hover { background: #f5f4f2; color: #2d2d2d; }
.zl-subnav__cta { padding: 10px 22px; font-size: 13px; }

/* Tablets and phones: logo, icons and the menu button on one line; the menu opens as a full-screen panel. */
/* Narrower desktops: tighter menu, so it stays clear of the corner shapes. */
@media (max-width: 1280px) {
	.zl-menu__list > li > a { padding: 10px 12px; font-size: 15px; }
	.zl-menu { margin-left: 16px; }
}
@media (max-width: 1100px) {
	.zl-menu__list > li > a { padding: 10px 9px; font-size: 14px; }
	.zl-shapes img { width: 90px; }
}
@media (max-width: 900px) {
	.zl-bar { min-height: 96px; padding: 30px 24px 0; }
	.zl-logo img { width: 110px; }
	.zl-shapes img { width: 82px; }
	.zl-icons { margin-left: auto; gap: 16px; position: relative; z-index: 2; }
	.zl-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		width: 34px;
		height: 34px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}
	.zl-burger span { display: block; height: 2px; width: 100%; background: #001733; transition: transform .2s ease, opacity .2s ease; }
	.zl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.zl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.zl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.zl-menu {
		position: fixed;
		inset: 0;
		z-index: 1;
		margin: 0;
		padding: 110px 28px 40px;
		background: #fff;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s ease, visibility .2s;
	}
	.zl-menu.is-open { opacity: 1; visibility: visible; }
	.zl-menu__list { flex-direction: column; align-items: stretch; gap: 0; }
	.zl-menu__list > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #eee; }
	.zl-menu__list > li > a { flex: 1 1 auto; padding: 14px 0; font-size: 24px; }
	.zl-sub-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
		color: #001733;
		cursor: pointer;
	}
	.zl-sub-toggle svg { transition: transform .2s ease; }
	.zl-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.zl-menu__list .sub-menu {
		position: static;
		flex: 0 0 100%;
		display: none;
		min-width: 0;
		padding: 0 0 12px 12px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.zl-menu__list li.is-open > .sub-menu { display: block; }
	.zl-menu__list .sub-menu a { padding: 8px 0; font-size: 17px; white-space: normal; }
	body.zl-menu-open { overflow: hidden; }
}
@media (max-width: 780px) {
	.zl-subnav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.zl-menu, .zl-menu__list .sub-menu, .zl-burger span { transition: none; }
}
