/* =================================================================
   File:    07-header.css
   Purpose: Premium header system. Drives:
     • Top bar               (.liqui-topbar)
     • Header shell          (.liqui-header)
     • Logo                  (.liqui-logo, .liqui-logo__mark/__text)
     • Primary menu          (.liqui-menu, .liqui-menu--hover-{style})
     • Action icons          (.liqui-icon-btn, .liqui-cart-count)
     • Animated burger       (.liqui-burger)
     • Inline search field   (.liqui-header__inline-search)
     • Account dropdown      (.liqui-account-dd)
     • Mini-cart preview     (.liqui-cart-preview)
     • Layout variants       (--classic / --centered / --split /
                              --minimal / --shopbar / --transparent)
     • Search overlay
     • Mobile drawer
     • Mobile-drawer sections (category tiles, sectioned menu, contact)

   All colors come from Theme Options via CSS variables
   (--header-bg, --header-text, --header-hover, --header-border,
   --topbar-bg, --topbar-text). No hardcoded hex values.
   ================================================================= */

/* =========================================================
   TOPBAR — slim bar above the main header (full-bleed)
   ========================================================= */
.liqui-topbar {
	position: relative;
	background: var(--topbar-bg, var(--c-surface-2));
	color: var(--topbar-text, var(--c-ink-muted));
	font-size: var(--fs-xs);
	-webkit-backdrop-filter: blur(8px) saturate(160%);
	backdrop-filter:         blur(8px) saturate(160%);
}
/* Soft gradient hairline divider — replaces the solid 1px border so the
   topbar reads as part of the header glass band, not a hard separator. */
.liqui-topbar::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: linear-gradient(90deg,
		transparent 0%,
		var(--header-border, rgba(225,228,234, 0.7)) 20%,
		var(--header-border, rgba(225,228,234, 0.7)) 80%,
		transparent 100%);
	pointer-events: none;
}
.liqui-topbar__inner {
	min-height: var(--topbar-height);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}
.liqui-topbar__left,
.liqui-topbar__right { display: flex; gap: var(--space-4); align-items: center; }
.liqui-topbar__contact,
.liqui-topbar__b2b {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
.liqui-topbar__contact:hover,
.liqui-topbar__b2b:hover { color: var(--c-accent); }
.liqui-topbar__b2b { color: var(--c-warm); font-weight: var(--fw-semi); }
.liqui-topbar__promo { flex: 1; text-align: center; }
.liqui-topbar__menu {
	list-style: none;
	display: flex;
	align-items: center;   /* vertically centre items — aligns with the B2B link */
	gap: var(--space-4);
	margin: 0;
	padding: 0;
}
/* Flex-centre the li + a, and zero the li margin — a generic list rule
   was adding margin-top to every li except the first, dropping items
   2-4 by ~2px. */
.liqui-topbar__menu li { display: flex; align-items: center; margin: 0; }
.liqui-topbar__menu a {
	display: flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
.liqui-topbar__menu a:hover { color: var(--c-accent); }

/* Customizer-managed quick links (FAQ / About / Contact / Location). */
.liqui-topbar__links { display: flex; align-items: center; gap: var(--space-4); }
.liqui-topbar__link {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
.liqui-topbar__link:hover { color: var(--c-accent); }

@media (max-width: 768px) { .liqui-topbar { display: none; } }


/* =========================================================
   HEADER SHELL — always full-bleed, visibly glass.
   The translucent background comes from --header-bg which
   inc/admin/options.php outputs as rgba() when glass mode is on.
   ========================================================= */
/* IMPORTANT — header glass is rendered on a ::before pseudo-element, NOT on
   .liqui-header itself. If we put `backdrop-filter` directly on .liqui-header,
   Chrome/Firefox treat it as a Filter Effects container — and every descendant's
   own `backdrop-filter` (sub-menu, mega panel, cart drawer) silently breaks
   (the child can no longer see the page content behind it, only the parent's
   already-composited layer). By moving the blur to ::before we keep the glass
   look on the bar AND let the dropdown panels apply their own blur normally. */
.liqui-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;            /* defeat any .glass override */
	background: transparent;     /* painted by ::before below */
	border: 0;
	color: var(--header-text, var(--c-ink));
	/* Layered shadows for glass depth:
	   1. inset top — bright sheen catching light on the top edge
	   2. inset bottom — softer sheen on the bottom inner edge
	   3. drop shadow — soft tinted glow beneath the bar
	   4. hairline — 1px divider line at the bottom edge */
	box-shadow:
		inset 0 1px 0 var(--header-edge-glow, rgba(255, 255, 255, 0.14)),
		inset 0 -1px 0 var(--header-edge-glow-soft, rgba(255, 255, 255, 0.056)),
		0 6px 24px -10px rgba(11, 107, 203, 0.12),
		0 1px 0 0 var(--header-border, rgba(225, 228, 234, 0.6));
	transition: transform var(--dur) var(--ease),
	            box-shadow var(--dur) var(--ease),
	            background var(--dur) var(--ease),
	            min-height var(--dur) var(--ease);
}

/* Not-sticky — the header scrolls away with the page. Keyed to the
   <html data-header-sticky> attribute so it honours the per-page override
   (Liqui Page Options) as well as the global Theme Option. */
html[data-header-sticky="off"] .liqui-header { position: static; }

.liqui-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;                 /* sits behind every header child */
	pointer-events: none;
	/* Background stack (paint order = top of list paints LAST / on top):
	   1. Top sheen — a horizontal-band gradient catching light at the very
	      top edge, fading to transparent ~20% down. Reinforces the glass
	      "rim" along the upper edge.
	   2. User-controlled two-color tint wash.
	   3. --header-bg — the user's chosen background color (translucent rgba).
	   There is deliberately no fixed white frost gradient here: it previously
	   muted user tint choices and made different colors look identical. */
	background:
		linear-gradient(180deg,
			rgba(255, 255, 255, 0.22) 0%,
			rgba(255, 255, 255, 0) 22%),
		linear-gradient(120deg,
			var(--header-tint, transparent) 0%,
			var(--header-tint-secondary, transparent) 52%,
			var(--header-tint-soft, transparent) 100%),
		var(--header-bg, rgba(255, 255, 255, 0.72));
	-webkit-backdrop-filter: blur(var(--header-blur, 18px)) saturate(180%);
	backdrop-filter:         blur(var(--header-blur, 18px)) saturate(180%);
}
.liqui-header.is-scrolled { box-shadow: 0 8px 28px -12px rgba(15,23,42,0.18); }
.liqui-header.is-hidden   { transform: translateY(-100%); }

/* Topbar above the header — same translucent treatment so they read as one bar */
.liqui-topbar { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.liqui-header__inner {
	min-height: var(--header-height);
	gap: var(--space-5);
	transition: min-height var(--dur) var(--ease);
}

/* Compact sticky — shrink header height on scroll */
.liqui-header.is-compact .liqui-header__inner { min-height: var(--header-height-sm); }
.liqui-header.is-compact .liqui-header__logo .custom-logo,
.liqui-header.is-compact .liqui-header__logo img { max-height: 36px; }

@media (max-width: 768px) {
	.liqui-header__inner { min-height: var(--header-height-sm); }
	html[data-mobile-compact="false"] .liqui-header__inner { min-height: var(--header-height); }
}


/* =========================================================
   LOGO — refined inline-svg fallback + custom-logo treatment
   ========================================================= */
.liqui-header__logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}
.liqui-header__logo .custom-logo {
	max-height: 56px;
	width: auto;
	transition: max-height var(--dur) var(--ease);
}
.liqui-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-lg);
	font-weight: var(--fw-bold);
	color: var(--header-text, var(--c-ink));
	text-decoration: none;
	letter-spacing: -0.015em;
	line-height: 1;
}
.liqui-logo__mark { display: inline-flex; }
.liqui-logo__mark svg { display: block; width: 36px; height: 36px; }
.liqui-logo__text { font-size: var(--fs-lg); }
@media (max-width: 480px) {
	.liqui-logo__text { display: none; }
}


/* =========================================================
   PRIMARY NAV — premium menu look with hover variants
   ========================================================= */
.liqui-header__nav { flex: 1; display: flex; justify-content: center; }
.liqui-menu {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.liqui-menu > li { position: relative; list-style: none; }
.liqui-menu > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
	color: var(--header-text, var(--c-ink));
	text-decoration: none;
	border-radius: var(--radius-pill);
	transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

/* Hover style: underline grows from center */
.liqui-menu--hover-underline-grow > li > a::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 4px;
	width: 0; height: 2px;
	background: var(--header-hover, var(--c-accent));
	border-radius: 2px;
	transform: translateX(-50%);
	transition: width var(--dur) var(--ease);
}
.liqui-menu--hover-underline-grow > li:hover > a,
.liqui-menu--hover-underline-grow > li.current-menu-item > a,
.liqui-menu--hover-underline-grow > li.current-menu-ancestor > a { color: var(--header-hover, var(--c-accent)); }
.liqui-menu--hover-underline-grow > li:hover > a::after,
.liqui-menu--hover-underline-grow > li.current-menu-item > a::after,
.liqui-menu--hover-underline-grow > li.current-menu-ancestor > a::after { width: calc(100% - 28px); }

/* Hover style: soft pill background */
.liqui-menu--hover-pill > li:hover > a,
.liqui-menu--hover-pill > li.current-menu-item > a,
.liqui-menu--hover-pill > li.current-menu-ancestor > a {
	background: color-mix(in oklab, var(--header-hover, var(--c-accent)) 12%, transparent);
	color: var(--header-hover, var(--c-accent));
}

/* Hover style: color shift only */
.liqui-menu--hover-color > li:hover > a,
.liqui-menu--hover-color > li.current-menu-item > a,
.liqui-menu--hover-color > li.current-menu-ancestor > a { color: var(--header-hover, var(--c-accent)); }

/* Hover style: none (no visual feedback) */
.liqui-menu--hover-none > li:hover > a { color: inherit; }

@media (max-width: 1024px) {
	.liqui-header__nav { display: none; }
}


/* =========================================================
   ACTION ICONS + BURGER + ACCOUNT DROPDOWN + CART PREVIEW
   ========================================================= */
.liqui-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

/* "Open a Trade Account" CTA — an outline button pinned to the right end
   of the lower nav bar. It sits inside .liqui-header__nav, after the
   category menu; the auto inline-start margin pushes it to the far edge.
   A navy border on a transparent fill keeps it light against the nav row;
   it fills solid navy on hover. Hidden with the nav row on mobile — the
   mobile drawer carries its own copy. */
.liqui-trade-cta {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 7px;
	margin-inline-start: auto;
	padding: 8px 17px;
	border: 1.5px solid #10355C;
	border-radius: 8px;
	background: transparent;
	color: #10355C;
	font-size: var(--fs-sm);
	font-weight: var(--fw-semi);
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background var(--dur-fast) var(--ease),
	            color var(--dur-fast) var(--ease),
	            transform var(--dur-fast) var(--ease);
}
.liqui-trade-cta:hover,
.liqui-trade-cta:focus-visible {
	background: #10355C;
	color: #fff;
	transform: translateY(-1px);
}
.liqui-trade-cta svg { flex: none; }

/* Block variant — full-width, used in the mobile drawer footer. */
.liqui-trade-cta--block {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-inline-start: 0;
	padding-block: 11px;
}

/* Animated burger — 3 bars morph to X when html.is-drawer-open */
.liqui-burger { width: 44px; height: 44px; }
.liqui-burger__bars {
	display: flex; flex-direction: column; justify-content: space-between;
	width: 18px; height: 14px;
}
.liqui-burger__bars > span {
	display: block;
	height: 2px; width: 100%;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
html.is-drawer-open .liqui-burger__bars > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
html.is-drawer-open .liqui-burger__bars > span:nth-child(2) { opacity: 0; }
html.is-drawer-open .liqui-burger__bars > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1025px) {
	.liqui-mobile-toggle { display: none; }
}

/* Cart count — bumps on update via the wc_fragments_refreshed event */
.liqui-cart-count {
	position: absolute;
	top: 4px;
	inset-inline-end: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: var(--c-accent);
	color: #fff;
	font-size: 12px;
	font-weight: var(--fw-bold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: transform var(--dur-fast) var(--ease);
}
.liqui-cart-toggle.liqui-anim-pulse .liqui-cart-count { animation: liqui-pulse 0.7s var(--ease); }

/* Inline search bar in header (search_style = inline) */
.liqui-header__inline-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid var(--header-border, var(--c-line));
	border-radius: var(--radius-pill);
	min-width: 200px;
	max-width: 320px;
	transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.liqui-header__inline-search:focus-within {
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 18%, transparent);
}
.liqui-header__inline-search input {
	flex: 1;
	border: 0;
	background: transparent;
	font-size: var(--fs-sm);
	outline: 0;
}
@media (max-width: 1024px) {
	.liqui-header__inline-search { display: none; }
}

/* Account dropdown */
.liqui-account-dd { position: relative; }
.liqui-account-dd__panel {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	min-width: 220px;
	padding: 8px;
	border-radius: var(--radius-lg);
	background: var(--glass-bg-strong);
	border: 1px solid var(--header-border, var(--c-line));
	box-shadow: var(--glass-shadow-lg);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	backdrop-filter:         blur(var(--glass-blur)) saturate(140%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
	z-index: var(--z-header);
	pointer-events: none;
}
.liqui-account-dd:hover .liqui-account-dd__panel,
.liqui-account-dd:focus-within .liqui-account-dd__panel,
.liqui-account-dd.is-open .liqui-account-dd__panel {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.liqui-account-dd__hello { padding: 6px 12px; margin: 0 0 4px; color: var(--c-ink-muted); }
.liqui-account-dd__link {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
	text-decoration: none;
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.liqui-account-dd__link:hover { background: var(--c-surface-2); color: var(--c-accent); }
.liqui-account-dd__link--warm   { color: var(--c-warm); }
.liqui-account-dd__link--logout { margin-top: 4px; border-top: 1px solid var(--c-line); padding-top: 12px; color: var(--c-ink-muted); }

/* Cart hover preview (desktop only) */
.liqui-cart-wrap { position: relative; }
.liqui-cart-preview {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	width: 340px;
	max-width: 90vw;
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--glass-bg-strong);
	border: 1px solid var(--header-border, var(--c-line));
	box-shadow: var(--glass-shadow-lg);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	backdrop-filter:         blur(var(--glass-blur)) saturate(140%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
	z-index: var(--z-header);
	pointer-events: none;
}
.liqui-cart-wrap.has-preview:hover .liqui-cart-preview {
	opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
@media (max-width: 1024px) { .liqui-cart-preview { display: none; } }


/* =========================================================
   HEADER LAYOUT VARIANTS
   ========================================================= */

/* Two-row layouts (centered / shop-bar) */
.liqui-header--centered .liqui-header__inner--row1,
.liqui-header--shopbar  .liqui-header__inner--row1 {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--header-height);
}
.liqui-header--centered .liqui-header__inner--row2,
.liqui-header--shopbar  .liqui-header__inner--row2 {
	position: relative;
	min-height: 48px;
	display: flex;
	justify-content: center;
}
.liqui-header--centered .liqui-header__inner--row2::before,
.liqui-header--shopbar  .liqui-header__inner--row2::before {
	content: "";
	position: absolute;
	left: var(--fullbleed-padding); right: var(--fullbleed-padding);
	top: 0;
	height: 1px;
	background: linear-gradient(90deg,
		transparent 0%,
		var(--header-border, rgba(225,228,234, 0.7)) 20%,
		var(--header-border, rgba(225,228,234, 0.7)) 80%,
		transparent 100%);
	pointer-events: none;
}

/* Shop-bar layout — push actions to the right edge so the search bar's
   leftover flex space doesn't strand them in the middle. */
.liqui-header--shopbar .liqui-header__actions { margin-inline-start: auto; }

/* Mobile (< 768px) — collapse shop-bar to logo + cart + burger only.
   Inline search bar is replaced by the search icon button (which opens
   the search overlay). Account moves into the mobile drawer. */
@media (max-width: 768px) {
	.liqui-header--shopbar .liqui-header__searchbar { display: none; }
	.liqui-header--shopbar .liqui-header__inner--row1 { min-height: 56px; gap: var(--space-2); }
	.liqui-header--shopbar .liqui-header__inner--row2 { display: none; }   /* nav lives in drawer */
	.liqui-header__action--account { display: none; }
	.liqui-header__logo .custom-logo,
	.liqui-header__logo img { max-height: 36px !important; }
}

/* Shop-bar layout — left-align the nav row (was centered by default). */
.liqui-header--shopbar .liqui-header__nav,
.liqui-header--shopbar .liqui-header__inner--row2 .liqui-header__nav { justify-content: flex-start; }

/* Mobile-only search icon (shown in shop-bar layout when inline search hides) */
.liqui-header__action--search { display: none; }
@media (max-width: 768px) {
	.liqui-header__action--search { display: inline-flex; }
}

/* Shop-bar inline search pill */
.liqui-header__searchbar {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: 8px 14px;
	background: #fff;
	border: 1px solid var(--header-border, var(--c-line));
	border-radius: var(--radius-pill);
}
.liqui-header__searchbar input { flex: 1; border: 0; background: transparent; outline: 0; font-size: var(--fs-sm); }

/* Transparent — starts see-through over hero, glassifies on scroll.
   NB: same pseudo-element trick as the base .liqui-header — direct
   backdrop-filter on the header itself would trap descendant dropdowns. */
.liqui-header--transparent {
	background: transparent;
	box-shadow: none;
	border-bottom: 0;
	color: #fff;
}
.liqui-header--transparent::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.liqui-header--transparent .liqui-logo,
.liqui-header--transparent .liqui-menu > li > a,
.liqui-header--transparent .liqui-icon-btn { color: #fff; }
.liqui-header--transparent.is-scrolled {
	background: transparent;
	border-bottom: 1px solid var(--header-border, var(--c-line));
	color: var(--header-text, var(--c-ink));
}
.liqui-header--transparent.is-scrolled::before {
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	backdrop-filter:         blur(var(--glass-blur)) saturate(140%);
}
.liqui-header--transparent.is-scrolled .liqui-logo,
.liqui-header--transparent.is-scrolled .liqui-menu > li > a,
.liqui-header--transparent.is-scrolled .liqui-icon-btn { color: var(--header-text, var(--c-ink)); }


/* =========================================================
   SEARCH OVERLAY (icon-mode)
   ========================================================= */
.liqui-search-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
.liqui-search-overlay[hidden] { display: none; }
.liqui-search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.25);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter:         blur(6px);
	animation: liqui-fade-in var(--dur) var(--ease) both;
}
.liqui-search-overlay__panel {
	position: relative;
	width: 100%;
	border-radius: 0 0 var(--radius-xl) var(--radius-xl);
	border-top: 0;
	animation: liqui-search-drop var(--dur-slow) var(--ease) both;
}
@keyframes liqui-search-drop {
	from { transform: translateY(-24px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}
.liqui-search-overlay__inner {
	padding-block: var(--space-6) var(--space-5);
	display: flex; flex-direction: column; gap: var(--space-4);
	max-width: var(--content-max);
	margin-inline: auto;
}
.liqui-search-form {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--header-border, var(--c-line));
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-2);
}
.liqui-search-form__icon  { color: var(--c-ink-muted); flex-shrink: 0; }
.liqui-search-form__input { flex: 1; border: 0; background: transparent; font-size: var(--fs-md); outline: none; }
.liqui-search-form__close { flex-shrink: 0; }
.liqui-search-results:empty { display: none; }
.liqui-search-results {
	display: grid; gap: var(--space-2);
	max-height: 50vh; overflow-y: auto;
	padding-block: var(--space-2);
}
.liqui-search-result {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius);
	color: var(--c-ink);
	text-decoration: none;
	background: var(--glass-bg-strong);
	border: 1px solid var(--header-border, var(--c-line));
	transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.liqui-search-result:hover { border-color: var(--c-accent); transform: translateX(2px); }
[dir="rtl"] .liqui-search-result:hover { transform: translateX(-2px); }
.liqui-search-result__title { font-weight: var(--fw-medium); }
.liqui-search-suggestions { display: flex; flex-direction: column; gap: var(--space-2); }


/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.liqui-mobile-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); }
.liqui-mobile-drawer[hidden] { display: none; }
.liqui-mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.30);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter:         blur(4px);
	animation: liqui-fade-in var(--dur) var(--ease) both;
}
.liqui-mobile-drawer__panel {
	position: absolute;
	top: 0; bottom: 0;
	inset-inline-end: 0;
	width: min(330px, 85vw);
	padding: var(--space-5);
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	border-radius: var(--radius-xl) 0 0 var(--radius-xl);
	animation: liqui-drawer-in var(--dur-slow) var(--ease-out) both;
	overflow-y: auto;
}
[dir="rtl"] .liqui-mobile-drawer__panel { animation-name: liqui-drawer-in-rtl; }
@keyframes liqui-drawer-in     { from { transform: translateX(100%); }  to { transform: translateX(0); } }
@keyframes liqui-drawer-in-rtl { from { transform: translateX(-100%); } to { transform: translateX(0); } }

.liqui-mobile-drawer__header { display: flex; align-items: center; gap: var(--space-2); }

/* Drawer account area — replaces the logo (logged-in greeting / login). */
/* Logged-in account card — grows to fill the header row beside the close. */
.liqui-mobile-drawer__user {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 12px;
	border-radius: var(--radius-lg);
	background: color-mix(in oklab, var(--c-accent) 8%, transparent);
	border: 1px solid var(--c-line);
	text-decoration: none;
	color: var(--c-ink);
}
.liqui-mobile-drawer__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: color-mix(in oklab, var(--c-accent) 14%, transparent);
	color: var(--c-accent);
}
.liqui-mobile-drawer__greet { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.liqui-mobile-drawer__hi { font-size: var(--fs-xs); color: var(--c-ink-muted); }
.liqui-mobile-drawer__name {
	font-size: var(--fs-sm);
	font-weight: var(--fw-semi);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Clear, calm close button — light circle, accent on hover. */
.liqui-mobile-drawer__close {
	flex-shrink: 0;
	background: var(--c-surface-2);
	border-radius: 50%;
	color: var(--c-ink);
}
.liqui-mobile-drawer__close:hover {
	background: var(--c-accent);
	color: #fff;
}
.liqui-mobile-drawer__section {
	padding-block: var(--space-3);
	border-top: 1px solid var(--c-line);
}
.liqui-mobile-drawer__section:first-of-type { border-top: 0; padding-top: 0; }
.liqui-mobile-drawer__title {
	font-size: var(--fs-xs);
	font-weight: var(--fw-semi);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-ink-muted);
	margin: 0 0 var(--space-3);
}

/* Drawer search */
.liqui-mobile-drawer__search {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
}
.liqui-mobile-drawer__search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: var(--fs-sm); }
.liqui-mobile-drawer__search svg { color: var(--c-ink-muted); }

/* Category tiles */
.liqui-mobile-drawer__cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2);
}
.liqui-mobile-drawer__cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: var(--space-3) var(--space-2);
	border-radius: var(--radius);
	background: var(--c-surface-1);
	border: 1px solid var(--c-line);
	color: var(--c-ink);
	text-decoration: none;
	text-align: center;
	transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.liqui-mobile-drawer__cat:hover { transform: translateY(-2px); border-color: var(--c-accent); }
.liqui-mobile-drawer__cat-media {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	background: var(--c-surface-2);
	border-radius: 50%;
	color: var(--c-ink-muted);
}
.liqui-mobile-drawer__cat-media img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.liqui-mobile-drawer__cat-name { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: 1.3; }

/* Drawer primary menu */
.liqui-mobile-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
}
.liqui-mobile-menu li { list-style: none; border-bottom: 1px solid var(--c-line); }
.liqui-mobile-menu li:last-child { border-bottom: 0; }
.liqui-mobile-menu a {
	display: block;
	padding: 14px 4px;
	color: var(--c-ink);
	text-decoration: none;
	font-weight: var(--fw-medium);
}
.liqui-mobile-menu a:hover { color: var(--c-accent); }
.liqui-mobile-menu .sub-menu {
	list-style: none;
	padding-inline-start: var(--space-4);
	margin: 0 0 var(--space-2);
}
.liqui-mobile-menu .sub-menu a { padding: 10px 4px; font-weight: var(--fw-regular); color: var(--c-ink-muted); }

/* Collapsible submenus — JS adds .is-collapsible (so with JS off the full
   list still shows). Each parent gets a chevron toggle in a flex row. */
.liqui-mobile-menu__row { display: flex; align-items: center; }
.liqui-mobile-menu__row > a { flex: 1; min-width: 0; }
.liqui-mobile-menu__toggle {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--c-ink-muted);
	cursor: pointer;
}
.liqui-mobile-menu__toggle svg { transition: transform var(--dur) var(--ease); }
.liqui-mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.liqui-mobile-menu__toggle[aria-expanded="true"] { color: var(--c-accent); }
.liqui-mobile-menu.is-collapsible .sub-menu { display: none; }
.liqui-mobile-menu.is-collapsible .menu-item-has-children.is-open > .sub-menu { display: block; }

/* Drawer quick links + contact rows */
.liqui-mobile-drawer__quick,
.liqui-mobile-drawer__contact {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.liqui-mobile-drawer__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 4px;
	color: var(--c-ink);
	text-decoration: none;
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
}
.liqui-mobile-drawer__link svg { color: var(--c-accent); flex-shrink: 0; }
.liqui-mobile-drawer__link:hover { color: var(--c-accent); }
.liqui-mobile-drawer__link .liqui-cart-count { position: static; margin-inline-start: auto; }

.liqui-mobile-drawer__footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

/* Lock body when drawer / search open */
html.is-drawer-open, html.is-search-open, html.is-cart-open { overflow: hidden; }
