
/* Native header wins — hide Theme Builder header (My Account widget, duplicate nav). */
body:has(#lec-hdr) .elementor-location-header,
body:has(#lec-hdr) header.elementor.elementor-location-header {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}
:root {
	--lhdr-topbar-bg:   #F7F3EC;
	--lhdr-topbar-text: #6A5E4A;
	--lhdr-bg:          #ffffff;
	--lhdr-border:      #EDE6D8;
	--lhdr-link:        #18140E;
	--lhdr-link-hover:  #9A7B2F;
	--lhdr-drop-bg:     #ffffff;
	--lhdr-drop-border: #EDE6D8;
	--lhdr-mobile-bg:   #18140E;
	--lhdr-mobile-text: #F7F3EC;
	--lhdr-logo-h:      52px;
}
/* Reset */
.lec-hdr,
.lec-hdr * { box-sizing: border-box; }

/* One stacking context for the whole header — keeps cream topbar + white main on the same plane */
.lec-hdr {
	position: relative;
	z-index: 10060;
	pointer-events: auto;
}
.lec-hdr a[href] {
	cursor: pointer;
	pointer-events: auto;
}

/* Top bar */
.lec-topbar {
	position: relative;
	z-index: 1;
	background: var(--lhdr-topbar-bg);
	border-bottom: 1px solid var(--lhdr-border);
	font-size: 11.5px;
	font-family: "Jost", sans-serif;
	letter-spacing: .5px;
}
.lec-topbar-inner {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 7px clamp(16px, 3vw, 48px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.lec-topbar a {
	color: var(--lhdr-topbar-text);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.lec-topbar a:hover { color: var(--lhdr-link-hover); }
.lec-topbar-socials { display: flex; gap: 12px; }

/* Main header — tall bar; not sticky (avoids covering WooCommerce notices / site alerts) */
.lec-hdr-main {
	background: var(--lhdr-bg);
	border-bottom: 1px solid var(--lhdr-border);
	position: relative;
	z-index: 1;
}
/* When WP admin bar is visible, keep dropdowns usable (admin bar ~99999) */
html.admin-bar .lec-nav ul ul {
	z-index: 100000;
}
html.admin-bar .lec-mobile-nav {
	z-index: 99990;
}
.lec-hdr-inner {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 48px);
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 106px;
	height: auto;
	overflow: visible;
}
/* Logo */
.lec-hdr-logo { flex-shrink: 0; display: flex; align-items: center; }
.lec-hdr-logo img { height: var(--lhdr-logo-h); width: auto; display: block; }
/*
 * WooCommerce’s frontend stylesheet applies to body.woocommerce-page img (and similar).
 * On cart/checkout/account the body gets those classes, so img { height: auto; max-width: 100% }
 * matches the header logo too and overrides the rule above — logo jumps to intrinsic (full) size.
 */
body.woocommerce-page .lec-hdr .lec-hdr-logo img,
body.woocommerce-cart .lec-hdr .lec-hdr-logo img,
body.woocommerce-checkout .lec-hdr .lec-hdr-logo img {
	height: var(--lhdr-logo-h) !important;
	max-height: var(--lhdr-logo-h) !important;
	width: auto !important;
}
.lec-hdr-logo span {
	font-family: "Cormorant Garamond", serif;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 2px;
	color: var(--lhdr-link);
	line-height: 1.3;
}

/* Nav — thin, all caps (#lec-hdr scope + !important resists Elementor global menu CSS on mixed pages) */
#lec-hdr .lec-nav { flex: 1; display: flex; justify-content: flex-end; overflow: visible; }
.lec-nav { flex: 1; display: flex; justify-content: flex-end; overflow: visible; }
#lec-hdr .lec-nav > ul,
.lec-nav > ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}
.lec-nav > ul > li { position: relative; }
.lec-nav > ul > li > a {
	display: block;
	padding: 12px 16px;
	font-family: "Jost", sans-serif;
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lhdr-link);
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s;
}
.lec-nav > ul > li > a:hover,
.lec-nav > ul > li.current-menu-item > a,
.lec-nav > ul > li.current-menu-parent > a { color: var(--lhdr-link-hover); }

/* Dropdown */
.lec-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--lhdr-drop-bg);
	border: 1px solid var(--lhdr-drop-border);
	border-top: 2px solid var(--lhdr-link-hover);
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	list-style: none;
	padding: 8px 0;
	margin: 0;
	z-index: 9999;
}
.lec-nav ul ul ul {
	top: 0;
	left: 100%;
	border-top: 1px solid var(--lhdr-drop-border);
}
/* Deeper tiers (great-grandchildren+) — same flyout to the right */
.lec-nav ul ul ul ul {
	top: 0;
	left: 100%;
	border-top: 1px solid var(--lhdr-drop-border);
}
.lec-nav li:hover > ul { display: block; }
.lec-nav ul ul li a {
	display: block;
	padding: 9px 18px;
	font-family: "Jost", sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.02em;
	color: var(--lhdr-link);
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.lec-nav ul ul li a:hover {
	background: #F7F3EC;
	color: var(--lhdr-link-hover);
}

/* Login nav — text label only (no user/key icon from theme or menu plugins) */
#lec-hdr .lec-nav-login-text-only > a svg,
#lec-hdr .lec-nav-login-text-only > a img,
#lec-hdr .lec-nav-login-text-only > a i,
#lec-hdr .lec-nav-login-text-only > a .e-font-icon-svg,
#lec-hdr .lec-nav-login-text-only > a .elementor-icon,
#lec-hdr .lec-nav-login-text-only > a .menu-icon,
#lec-hdr .lec-nav-login-text-only > a .dashicons,
#lec-hdr .menu-item-98808 > a svg,
#lec-hdr .menu-item-98808 > a img,
#lec-hdr .menu-item-98808 > a i,
.lec-mobile-nav-panel .lec-nav-login-text-only > a svg,
.lec-mobile-nav-panel .lec-nav-login-text-only > a img,
.lec-mobile-nav-panel .lec-nav-login-text-only > a i,
.lec-mobile-nav-panel .menu-item-98808 > a svg,
.lec-mobile-nav-panel .menu-item-98808 > a img,
.lec-mobile-nav-panel .menu-item-98808 > a i {
	display: none !important;
}
#lec-hdr .lec-nav-login-text-only > a::before,
#lec-hdr .lec-nav-login-text-only > a::after,
#lec-hdr .menu-item-98808 > a::before,
#lec-hdr .menu-item-98808 > a::after,
.lec-mobile-nav-panel .lec-nav-login-text-only > a::before,
.lec-mobile-nav-panel .lec-nav-login-text-only > a::after,
.lec-mobile-nav-panel .menu-item-98808 > a::before,
.lec-mobile-nav-panel .menu-item-98808 > a::after {
	content: none !important;
	display: none !important;
	background: none !important;
	background-image: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Cart + CTAs — keep above page chrome; links must never feel “flat” / image-like */
.lec-hdr-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	position: relative;
	z-index: 5;
	pointer-events: auto;
}
.lec-hdr-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--lhdr-link);
	display: flex;
	align-items: center;
	text-decoration: none;
	position: relative;
	transition: color .2s, transform .2s ease;
}
.lec-hdr-btn:hover { color: var(--lhdr-link-hover); transform: translateY(-1px); }
.lec-hdr-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* Wallet follows the bag; the account icon replaces the desktop Portal text link. */
.lec-hdr-btn--wallet,
.lec-hdr-btn--portal { color: #9A7B2F; }
.lec-hdr-btn--wallet:hover,
.lec-hdr-btn--portal:hover { color: #7A6020; }
@media (min-width: 992px) { #lec-hdr .lec-nav-login-text-only { display: none !important; } }

/* Search — gold icon only (no border/background box), same footprint as cart */
.lec-hdr-btn.lec-hdr-btn--search {
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	outline: none;
	padding: 8px;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	color: #9A7B2F;
	-webkit-appearance: none;
	appearance: none;
}
.lec-hdr-btn.lec-hdr-btn--search:hover {
	transform: translateY(-1px);
	background: none !important;
	color: #7A6020;
}
.lec-hdr-btn.lec-hdr-btn--search svg {
	width: 22px;
	height: 22px;
}

/* Currency / country flag — before search */
.lec-hdr-currency-wrap {
	position: relative;
	display: flex;
	align-items: center;
	align-self: center;
	flex-shrink: 0;
}
.lec-hdr-btn.lec-hdr-btn--currency {
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	padding: 6px 8px;
	min-width: 36px;
	min-height: 40px;
	display: flex;
	align-items: center;
	align-self: center;
	justify-content: center;
	gap: 5px;
}
.lec-hdr-btn.lec-hdr-btn--currency:hover {
	background: none !important;
	transform: translateY(-1px);
}
.lec-hdr-currency-flag {
	font-size: 20px;
	line-height: 1;
	display: block;
}
.lec-hdr-currency-code {
	font-family: "Jost", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	color: var(--lhdr-link-hover, #7A6020);
}
.lec-hdr-currency-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 260px;
	max-width: min(92vw, 320px);
	max-height: min(70vh, 420px);
	overflow-y: auto;
	background: #fff;
	border: none;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(24, 20, 14, 0.12);
	z-index: 100070;
	padding: 6px 0;
	-webkit-overflow-scrolling: touch;
}
.lec-hdr-currency-menu[hidden] {
	display: none !important;
}
.lec-hdr-currency-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	text-decoration: none;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	padding: 8px 16px;
	font-family: "Jost", sans-serif;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	color: var(--lhdr-link);
	-webkit-appearance: none;
	appearance: none;
}
.lec-hdr-currency-option-flag {
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
}
.lec-hdr-currency-option-text {
	flex: 1;
	min-width: 0;
}
.lec-hdr-currency-option:hover {
	background: #F7F3EC !important;
	color: var(--lhdr-link-hover);
}
.lec-hdr-currency-option.is-active {
	font-weight: 600;
	color: var(--lhdr-link-hover);
}
.lec-hdr-currency-loading {
	margin: 0;
	padding: 10px 16px;
	font-family: "Jost", sans-serif;
	font-size: 12px;
	color: #6A5E4A;
}
.lec-hdr-currency-list {
	display: flex;
	flex-direction: column;
}

/* FounderLab — primary CTA next to cart (real <a>; motion + shadow so it reads as a button) */
a.lec-hdr-btn.lec-hdr-cta {
	padding: 8px 14px;
	font-family: "Jost", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff !important;
	background: #9A7B2F !important;
	border-radius: 999px;
	white-space: nowrap;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(24, 20, 14, 0.12);
	transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
	will-change: transform;
	-webkit-tap-highlight-color: transparent;
}
a.lec-hdr-btn.lec-hdr-cta:hover {
	background: #18140E !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(24, 20, 14, 0.22);
}
a.lec-hdr-btn.lec-hdr-cta:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(24, 20, 14, 0.18);
}
@media (max-width: 520px) {
	/* The mobile drawer keeps the primary action available. */
	#lec-hdr .lec-hdr-inner { flex-direction: column; gap: 4px; padding-block: 8px; }
	#lec-hdr .lec-hdr-actions { margin-inline: auto; }
	#lec-hdr .lec-hdr-actions > .lec-hdr-cta { display: none !important; }
}
.lec-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	background: #9A7B2F;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
	font-family: "Jost", sans-serif;
	line-height: 1;
}
.lec-cart-count:empty,
.lec-cart-count[data-count="0"] { display: none; }

/*
 * Hamburger — gold fill, three white bars, zero border.
 * Theme (hello-biz / block CSS) styles generic button {} with pink outline + white fill;
 * #id + !important is required so our header control is not overridden.
 */
#lec-hamburger.lec-hamburger {
	display: none;
	box-sizing: border-box;
	width: 44px;
	height: 40px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	background: #B89A5A !important;
	background-color: #B89A5A !important;
	color: #fff !important;
	border: 0 !important;
	border-width: 0 !important;
	border-color: transparent !important;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
}
#lec-hamburger.lec-hamburger:hover,
#lec-hamburger.lec-hamburger:focus,
#lec-hamburger.lec-hamburger:focus-visible,
#lec-hamburger.lec-hamburger:active {
	background: #A88949 !important;
	background-color: #A88949 !important;
	border: 0 !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
#lec-hamburger.lec-hamburger:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.95) !important;
	outline-offset: 2px;
}
#lec-hamburger.lec-hamburger span {
	display: block;
	width: 20px;
	height: 2px;
	background: #ffffff !important;
	background-color: #ffffff !important;
	transition: transform .25s, opacity .25s;
	border-radius: 1px;
	flex-shrink: 0;
}

/* Mobile nav: dim backdrop + cream panel from the right (60%) */
.lec-mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100050;
	flex-direction: row;
	align-items: stretch;
	overflow: hidden;
}
.lec-mobile-nav.open { display: flex; }
/* Never show the drawer in document flow unless opened (avoids “spilled” duplicate list under header) */
#lec-hdr .lec-mobile-nav:not(.open) {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
#lec-hdr .lec-mobile-nav.open {
	display: flex !important;
	visibility: visible !important;
	pointer-events: auto !important;
}
.lec-mobile-nav-backdrop {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-width: 0 !important;
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	/* Frosted glass — !important prevents theme's pink button{} from bleeding through */
	background: rgba(255, 255, 255, 0.22) !important;
	background-color: rgba(255, 255, 255, 0.22) !important;
	backdrop-filter: blur(14px) saturate(1.15);
	-webkit-backdrop-filter: blur(14px) saturate(1.15);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	color: transparent !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.lec-mobile-nav-backdrop {
		background: rgba(24, 20, 14, 0.18) !important;
		background-color: rgba(24, 20, 14, 0.18) !important;
	}
}
.lec-mobile-nav-panel {
	flex: 0 0 60%;
	width: 60%;
	max-width: min(420px, 100vw);
	min-width: 0;
	background: #F7F3EC;
	overflow-y: auto;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	padding: 56px 0 32px;
	position: relative;
}
.lec-mobile-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	color: #18140E;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.65;
	padding: 8px;
}
.lec-mobile-close:hover { opacity: 1; }
.lec-mobile-nav-panel > ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.lec-mobile-nav-panel > ul > li > a {
	display: block;
	padding: 14px 24px 14px 22px;
	color: #18140E;
	text-decoration: none;
	font-family: "Jost", sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .02em;
	border-bottom: 1px solid rgba(24, 20, 14, 0.08);
}
.lec-mobile-nav-panel > ul > li > a:hover { color: #9A7B2F; }
.lec-mobile-nav-panel ul ul {
	display: none;
	background: rgba(24, 20, 14, 0.04);
}
.lec-mobile-nav-panel ul ul li a {
	display: block;
	padding: 10px 24px 10px 36px;
	color: #2a2620;
	text-decoration: none;
	font-family: "Jost", sans-serif;
	font-size: 14px;
	font-weight: 400;
	border-bottom: 1px solid rgba(24, 20, 14, 0.06);
}
.lec-mobile-nav-panel ul ul li a:hover { color: #9A7B2F; }
/* Non-clickable menu labels (custom item with # only, no children) */
.lec-mobile-nav-panel .menu-item:not(.menu-item-has-children) > a[href="#"],
.lec-mobile-nav-panel .menu-item:not(.menu-item-has-children) > a[href=""] {
	pointer-events: none;
	cursor: default;
	color: #18140E;
	text-decoration: underline;
	text-decoration-color: rgba(24, 20, 14, 0.28);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}
.lec-mobile-nav-panel .menu-item:not(.menu-item-has-children) > a[href="#"]:hover,
.lec-mobile-nav-panel .menu-item:not(.menu-item-has-children) > a[href=""]:hover {
	color: #18140E;
	text-decoration-color: rgba(24, 20, 14, 0.35);
}
.lec-mobile-has-sub > a::after { content: " +"; opacity: .45; font-weight: 400; }
.lec-mobile-has-sub.open > a::after { content: " −"; opacity: .65; }
.lec-mobile-has-sub.open > ul { display: block; }
/* Level 3 items (e.g. Pods sub-pages) — show when grandparent is open */
.lec-mobile-nav-panel ul ul ul li a {
	padding-left: 48px;
	font-size: 13px;
}
/* Level 4+ items */
.lec-mobile-nav-panel ul ul ul ul li a {
	padding-left: 60px;
	font-size: 13px;
}

/* Hamburger + slide-out: phones & tablets; full nav from 992px up (desktop) */
@media (max-width: 991px) {
	/* Must target #lec-hdr — bare .lec-nav loses to #lec-hdr .lec-nav { display:flex } above */
	#lec-hdr .lec-nav {
		display: none !important;
		visibility: hidden !important;
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		clip-path: inset(50%) !important;
		pointer-events: none !important;
		border: 0 !important;
	}
	#lec-hamburger.lec-hamburger { display: flex !important; }

	/* Mobile/tablet order: Portal, Wallet, Bag, Search, Currency, Menu. */
	.lec-hdr-actions { margin-left: auto; }
	.lec-hdr-actions > .lec-hdr-btn--portal { order: 1; }
	.lec-hdr-actions > .lec-hdr-btn--wallet { order: 2; }
	.lec-hdr-actions > .lec-hdr-btn--cart { order: 3; }
	.lec-hdr-actions > .lec-hdr-btn--search { order: 4; }
	.lec-hdr-actions > .lec-hdr-currency-wrap,
	.lec-hdr-actions > [id^="lec-hdr-currency"] { order: 5; }
	#lec-hamburger.lec-hamburger { order: 6; }
}
@media (max-width: 767px) {
	.lec-hdr-inner { min-height: 72px; }
	.lec-topbar-inner { padding: 5px 16px; }
	/* Remove backdrop-filter blur on mobile — prevents iOS Safari compositing bleed onto portal */
	.lec-mobile-nav-backdrop {
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		background: rgba(24, 20, 14, 0.72) !important;
		background-color: rgba(24, 20, 14, 0.72) !important;
	}
}
@media (max-width: 600px) {
	.lec-topbar-inner { justify-content: center; }
	.lec-topbar-socials { display: none; }
}
@media (max-width: 375px) {
	/* Keep the mobile action row within 360px Android screens without altering its order or tap targets. */
	.lec-hdr-inner { padding-left: 12px; padding-right: 12px; }
	.lec-hdr-actions { gap: 3px; }
}
