/**
 * Header block — .espt-block-header
 *
 * Mobile-first: the base styles are the phone layout (burger + logo + icons,
 * menu in an off-canvas panel). The desktop presets switch on at 1024px.
 *
 * Vars set by the spec: --max-width --logo-width --logo-height --row-pad
 * --menu-gap --menu-size --icons-size --drawer-w --panel-radius
 * --overlay-blur --search-radius --topbar-size and the colour vars
 * --topbar-bg --topbar-color --header-bg --menu-color --menu-hover
 * --nav-accent --drop-bg --drop-color --icons-color --cart-bubble
 * --search-bg --search-line --browse-bg --browse-color --panel-bg
 * --panel-color --panel-active --panel-line --overlay-color.
 */

/*
 * Theme settings first: every colour and font below falls back to the
 * eSP Theme settings (--espt-*), and only a colour set on the block itself
 * overrides them. Layout stylesheets (header/<layout>.css) use these --hd-*
 * tokens, never fixed brand colours.
 */
.espt-block-header {
	--hd-bg: var(--espt-header-bg, #fff);
	--hd-link: var(--espt-header-link, var(--espt-heading, #0f172a));
	--hd-link-h: var(--espt-header-link-h, var(--espt-primary, #16a34a));
	--hd-brand: var(--espt-primary, #16a34a);
	--hd-brand-dark: var(--espt-primary-dark, #15803d);
	--hd-accent: var(--espt-accent, #f59e0b);
	--hd-ink: var(--espt-heading, #0f172a);
	--hd-text: var(--espt-text, #334155);
	--hd-line: var(--espt-border, #e2e8f0);
	--hd-muted: color-mix(in srgb, var(--hd-text) 72%, transparent);
	--hd-soft: color-mix(in srgb, var(--hd-brand) 8%, #fff);
	--hd-dark: color-mix(in srgb, var(--hd-ink) 88%, var(--hd-brand));
	--hd-topbar-bg: var(--espt-topbar-bg, var(--hd-brand));
	--hd-topbar-text: var(--espt-topbar-text, #fff);
	--hd-bubble: var(--espt-cart-bubble, var(--hd-brand));
	--hd-font: var(--espt-body-font, inherit);
	--hd-display: var(--espt-heading-font, inherit);
	--bd-primary: var(--hd-brand);
	--bd-primary-dark: var(--hd-brand-dark);
	--bd-ink: var(--hd-ink);
	--bd-body: var(--hd-text);
	--bd-line: var(--hd-line);
	--bd-soft: var(--hd-soft);
	--bd-font: var(--hd-font);
	margin-bottom: 0;
}

.espt-block-header .esptb-hd-logo-text { font-family: var(--hd-display); }

/*
 * Header width (attr header_width), the same three choices as the footer.
 * The site layout is eSP Theme → Layout → Content layout: boxed puts #page
 * in a centred box. The header designs are align:full, and .espt-block
 * .alignfull breaks out to 100vw — on a boxed site that pushed the header
 * past the box, where the wrapper's overflow-x:clip cut its sides off.
 *   site  — follow the site layout: inside the box, or edge to edge.
 *   full  — always edge to edge, even on a boxed site.
 *   boxed — the content width, centred, whatever the site layout.
 */
body.espt-layout-boxed .espt-block.espt-block-header.is-header-width-site,
.espt-block.espt-block-header.is-header-width-boxed {
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	width: 100%;
}

.espt-block.espt-block-header.is-header-width-boxed { max-width: var(--espt-container, 1200px); }

/* 100vw counts a desktop scrollbar, so a plain calc(50% - 50vw) breakout sat
   half a bar too far left (its left 7–8px cut off) and ran under the bar.
   theme.js writes the bar's width to --espt-sbw on <html>. */
.espt-block.espt-block-header.is-header-width-full {
	--hd-vw: calc(100vw - var(--espt-sbw, 0px));
	margin-left: calc(50% - var(--hd-vw) / 2);
	margin-right: calc(50% - var(--hd-vw) / 2);
	max-width: var(--hd-vw);
	width: var(--hd-vw);
}

/* On a full-width site a header template's wrapper already spans the page,
   so the header just fills it — exact, with or without the script. */
body:not(.espt-layout-boxed) .site-header > .espt-block.espt-block-header.is-header-width-site,
body:not(.espt-layout-boxed) .site-header > .espt-block.espt-block-header.is-header-width-full {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
	width: 100%;
}

/* A header template sits in <header class="site-header">, which paints the
   eSP Theme header colour and a bottom line across its own width and clips
   sideways. A boxed header is the header, so that wrapper steps aside —
   otherwise its colour shows at the sides; a full-width one inside a boxed
   site must not be clipped to the box, nor leave the box's line under it. */
.site-header:has(> .espt-block-header.is-header-width-boxed),
.site-header:has(> .espt-block-header.is-header-width-full) {
	background: transparent;
	border-bottom-color: transparent;
}

.site-header:has(> .espt-block-header.is-header-width-full) { overflow-x: visible; }

.espt-block-header.is-sticky {
	position: sticky;
	top: 0;
	z-index: 990;
}

/* A sticky root opens its own stacking context, which would trap the
   fixed drawer/backdrop below other page furniture — lift it while open. */
.espt-block-header.is-sticky.is-menu-open { z-index: 99997; }

/* Admin bar: absolute (scrolls away) up to 600px, 46px tall to 782px,
   32px above that — mirror it so the sticky header never hides under it. */
body.admin-bar .espt-block-header.is-sticky { top: 0; }

@media (min-width: 601px) {
	body.admin-bar .espt-block-header.is-sticky { top: 46px; }
}

@media (min-width: 783px) {
	body.admin-bar .espt-block-header.is-sticky { top: 32px; }
}

.espt-block-header .esptb-hd {
	background: var(--header-bg, var(--hd-bg));
	color: var(--bd-ink);
	position: relative;
	transition: box-shadow 0.25s ease;
}

.espt-block-header.is-divider .esptb-hd { border-bottom: 1px solid var(--bd-line); }
.espt-block-header.is-shadow-soft .esptb-hd { box-shadow: 0 6px 22px -14px rgba(15, 23, 42, 0.35); }
.espt-block-header.is-shadow-strong .esptb-hd { box-shadow: 0 14px 34px -16px rgba(15, 23, 42, 0.45); }
.espt-block-header.is-sticky.is-stuck .esptb-hd { box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.45); }

/* Every band: full-width colour, content centred to --max-width. */
.espt-block-header .esptb-hd-bar {
	align-items: center;
	display: flex;
	gap: 8px;
	margin: 0 auto;
	max-width: var(--max-width, 1200px);
	min-width: 0;
	padding-left: 12px;
	padding-right: 12px;
	width: 100%;
}

.espt-block-header.is-content-width-full .esptb-hd-bar { max-width: none; }

/* ------------------------------------------------------------- top bar */

.espt-block-header .esptb-hd-topbar {
	background: var(--topbar-bg, var(--hd-topbar-bg));
	color: var(--topbar-color, var(--hd-topbar-text));
	font-size: var(--topbar-size, 13px);
	font-weight: 500;
	line-height: 1.4;
}

.espt-block-header .esptb-hd-topbar .esptb-hd-bar {
	flex-wrap: wrap;
	gap: 6px 14px;
	justify-content: center;
	padding-bottom: 6px;
	padding-top: 6px;
}

.espt-block-header .esptb-hd-tb-l,
.espt-block-header .esptb-hd-tb-r {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	justify-content: center;
	min-width: 0;
}

.espt-block-header .esptb-hd-tb-l:empty,
.espt-block-header .esptb-hd-tb-r:empty { display: none; }

.espt-block-header .esptb-hd-tb-note {
	min-width: 0;
	overflow-wrap: anywhere;
}

.espt-block-header .esptb-hd-tb-link {
	align-items: center;
	color: inherit;
	display: inline-flex;
	gap: 6px;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.espt-block-header .esptb-hd-tb-link:hover { opacity: 0.82; }
.espt-block-header .esptb-hd-tb-link .espt-ic { font-size: 1.15em; }

.espt-block-header .esptb-hd-social { align-items: center; display: inline-flex; }

/* ------------------------------------------------------------ main row */

.espt-block-header .esptb-hd-main .esptb-hd-bar {
	padding-bottom: var(--row-pad, 10px);
	padding-top: var(--row-pad, 10px);
}

/* Phone order: logo (left) · icons · burger (far right). */
.espt-block-header .esptb-hd-logo { order: 1; margin-right: auto; }
.espt-block-header .esptb-hd-icons { order: 2; }
.espt-block-header .esptb-hd-burger { order: 3; }
.espt-block-header .esptb-hd-searchbar { order: 4; }

.espt-block-header .esptb-hd-logo {
	align-items: center;
	color: var(--bd-ink);
	display: inline-flex;
	flex: 0 1 auto;
	max-width: 62%;
	min-width: 0;
	text-decoration: none;
}

.espt-block-header .esptb-hd-logo img {
	display: block;
	height: auto;
	max-height: var(--logo-height, 54px);
	max-width: 100%;
	object-fit: contain;
	width: var(--logo-width, 106px);
}

.espt-block-header .esptb-hd-logo-text {
	color: inherit;
	font-size: clamp(17px, 4.6vw, 22px);
	font-weight: 800;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

/* Burger. */
.espt-block-header .esptb-hd-burger {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: var(--icons-color, var(--hd-link));
	cursor: pointer;
	display: inline-flex;
	flex: none;
	height: 40px;
	justify-content: center;
	padding: 0;
	width: 40px;
}

.espt-block-header .esptb-hd-burger:hover { background: rgba(15, 23, 42, 0.06); }

.espt-block-header .esptb-burger {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	width: 21px;
}

.espt-block-header .esptb-burger i {
	background: currentColor;
	border-radius: 2px;
	display: block;
	height: 2px;
	transition: transform 0.28s ease, opacity 0.2s ease;
	width: 100%;
}

.espt-block-header .esptb-burger-sm { gap: 3px; width: 15px; }
.espt-block-header .esptb-burger-sm i { height: 1.5px; }

.espt-block-header .esptb-hd-burger[aria-expanded="true"] .esptb-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.espt-block-header .esptb-hd-burger[aria-expanded="true"] .esptb-burger i:nth-child(2) { opacity: 0; }
.espt-block-header .esptb-hd-burger[aria-expanded="true"] .esptb-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Icon cluster. */
.espt-block-header .esptb-hd-icons {
	align-items: center;
	display: flex;
	flex: none;
	gap: 2px;
	margin-left: auto;
}

.espt-block-header .espt-icon-btn {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: var(--icons-color, var(--hd-link));
	cursor: pointer;
	display: inline-flex;
	flex: none;
	font-size: var(--icons-size, 20px);
	height: 40px;
	justify-content: center;
	padding: 0;
	position: relative;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	width: 40px;
}

/* The theme's global button look (shadow, a 1px lift on hover) is for page
   buttons, not header controls — and it lives in a cascade layer, so only
   an unlayered rule like this one keeps it out. */
.espt-block-header :is(.espt-icon-btn, .esptb-hd-burger, .esptb-hd-panel-close, .esptb-hd-scope-btn, .esptb-hd-caret, .esptb-hd-browse, [data-hd-toggle], [data-hd-tab], .esptb-hd-scope-drop button),
.espt-block-header .espt-search-form .button { box-shadow: none; }

.espt-block-header :is(.espt-icon-btn, .esptb-hd-burger, .esptb-hd-scope-btn, .esptb-hd-caret, .esptb-hd-browse, [data-hd-tab], .esptb-hd-scope-drop button) { transform: none; }

.espt-block-header .espt-icon-btn:hover {
	background: rgba(15, 23, 42, 0.06);
	color: var(--menu-hover, var(--bd-primary));
}

.espt-block-header .espt-icon-btn svg,
.espt-block-header .espt-icon-btn .espt-ic svg {
	height: 1em;
	width: 1em;
}

.espt-block-header .espt-cart-count {
	align-items: center;
	background: var(--cart-bubble, var(--hd-bubble));
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 10.5px;
	font-weight: 700;
	height: 17px;
	justify-content: center;
	line-height: 1;
	min-width: 17px;
	padding: 0 4px;
	position: absolute;
	right: 1px;
	top: 2px;
}

/* --------------------------------------------------------- search form */

.espt-block-header .esptb-hd-searchbar {
	flex: 1 0 100%;
	min-width: 0;
	display: none;
}

/* Search presets keep a full-width field under the bar on phones. */
.espt-block-header.is-preset-browse .esptb-hd-searchbar,
.espt-block-header.is-preset-navbar .esptb-hd-searchbar { display: block; }

.espt-block-header.is-preset-browse .esptb-hd-main .esptb-hd-bar,
.espt-block-header.is-preset-navbar .esptb-hd-main .esptb-hd-bar { flex-wrap: wrap; }

.espt-block-header .espt-search-form {
	display: flex;
	margin: 0;
	min-width: 0;
	position: relative;
	width: 100%;
}

.espt-block-header .espt-search-form input[type="search"] {
	background: var(--search-bg, #f6f7f8);
	border: 1px solid var(--search-line, var(--bd-line));
	border-radius: var(--search-radius, 999px);
	color: var(--bd-ink);
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
	min-width: 0;
	padding: 10px 46px 10px 16px;
	width: 100%;
}

.espt-block-header .espt-search-form input[type="search"]:focus {
	border-color: var(--menu-hover, var(--bd-primary));
	outline: none;
}

.espt-block-header .espt-search-form .button,
.espt-block-header .espt-search-form button[type="submit"] {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--bd-muted);
	cursor: pointer;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
}

.espt-block-header .espt-search-form .button:hover { color: var(--menu-hover, var(--bd-primary)); }

.espt-block-header .esptb-hd-searchdrop { display: none; }
.espt-block-header .esptb-hd-searchdrop[hidden] { display: none; }

/* The live-search results panel inside the header block. The blocks' screen-reader
   helper is .espt-vh now (it used to be .espt-sr and hid this), so these rules are
   belt and braces plus the block's own max-height. */
.espt-block-header .espt-search-form .espt-sr {
	clip: auto;
	height: auto;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	position: absolute;
	width: auto;
}

.espt-block-header .espt-search-form .espt-sr[hidden] { display: none; }

.espt-block-header .esptb-hd-panel-search .espt-sr {
	box-shadow: none;
	margin-top: 4px;
	max-height: 60vh;
	position: static;
	width: 100%;
}

/* ------------------------------------------------- desktop navs (off) */

.espt-block-header .esptb-nav-main,
.espt-block-header .esptb-nav-bottom,
.espt-block-header .esptb-hd-bottom,
.espt-block-header .esptb-hd-search-toggle { display: none; }

.espt-block-header .espt-hd-menu {
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 0;
}

/* --------------------------------------------------------- mobile menu */

.espt-block-header .esptb-hd-overlay {
	-webkit-backdrop-filter: blur(var(--overlay-blur, 3px));
	backdrop-filter: blur(var(--overlay-blur, 3px));
	background: var(--overlay-color, rgba(15, 23, 42, 0.55));
	inset: 0;
	opacity: 0;
	position: fixed;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	visibility: hidden;
	z-index: 99998;
}

.espt-block-header .esptb-hd-overlay[hidden] { display: none; }

.espt-block-header .esptb-hd-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.espt-block-header .esptb-hd-panel {
	background: var(--panel-bg, #fff);
	color: var(--panel-color, var(--bd-ink));
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.espt-block-header .esptb-hd-panel[hidden] { display: none; }

.espt-block-header .esptb-hd-panel-head {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

/* The menu's own logo: first in its head (the bar's logo order must not leak in). */
.espt-block-header .esptb-hd-panel-head .esptb-hd-logo { margin-right: auto; order: 0; }
.espt-block-header .esptb-hd-logo-panel { max-width: 70%; }
.espt-block-header .esptb-hd-logo-panel img { max-height: 40px; width: auto; }

.espt-block-header .esptb-hd-panel-close {
	align-items: center;
	background: rgba(15, 23, 42, 0.06);
	border: 0;
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	flex: none;
	font-size: 20px;
	height: 38px;
	justify-content: center;
	margin-left: auto;
	padding: 0;
	transition: background 0.15s ease, transform 0.25s ease;
	width: 38px;
}

.espt-block-header .esptb-hd-panel-close:hover {
	background: rgba(15, 23, 42, 0.12);
	transform: rotate(90deg);
}

.espt-block-header .esptb-hd-panel-body { padding: 12px 16px 20px; }
.espt-block-header .esptb-hd-panel-search { margin-bottom: 12px; }

.espt-block-header .esptb-nav-panel { display: block; }
.espt-block-header .esptb-nav-panel ul { list-style: none; margin: 0; padding: 0; }
.espt-block-header .esptb-nav-panel li { position: relative; }

.espt-block-header .esptb-nav-panel > ul > li {
	border-bottom: 1px solid var(--panel-line, var(--bd-line));
}

.espt-block-header .esptb-nav-panel > ul > li:last-child { border-bottom: 0; }

.espt-block-header .esptb-nav-panel a {
	color: var(--panel-color, var(--bd-ink));
	display: block;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
	padding: 13px 46px 13px 2px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.espt-block-header .esptb-nav-panel a:hover,
.espt-block-header .esptb-nav-panel li.is-open > a {
	color: var(--panel-active, var(--bd-primary));
}

.espt-block-header .esptb-hd-caret {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 44px;
}

.espt-block-header .esptb-hd-caret svg {
	height: 15px;
	transition: transform 0.25s ease;
	width: 15px;
}

.espt-block-header .esptb-nav-panel li.is-open > .esptb-hd-caret svg { transform: rotate(180deg); }

.espt-block-header .esptb-nav-panel .sub-menu .esptb-hd-caret { height: 36px; width: 40px; }

.espt-block-header .esptb-nav-panel .sub-menu {
	display: none;
	padding: 0 0 8px 14px;
}

.espt-block-header .esptb-nav-panel li.is-open > .sub-menu {
	animation: esptb-hd-sub 0.28s ease both;
	display: block;
}

@keyframes esptb-hd-sub {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

.espt-block-header .esptb-nav-panel .sub-menu a {
	font-size: 14px;
	font-weight: 500;
	opacity: 0.85;
	padding: 9px 42px 9px 2px;
}

.espt-block-header .esptb-hd-panel-phone,
.espt-block-header .esptb-hd-panel-link {
	align-items: center;
	color: var(--panel-active, var(--bd-primary));
	display: flex;
	font-size: 14.5px;
	font-weight: 700;
	gap: 8px;
	margin-top: 14px;
	text-decoration: none;
}

.espt-block-header .esptb-hd-panel-link { color: var(--panel-color, var(--bd-ink)); }
.espt-block-header .esptb-hd-social-panel { display: inline-flex; margin-top: 16px; }

/* --- design: dropdown (in flow, under the bar) --- */
.espt-block-header.is-panel-style-dropdown .esptb-hd-panel {
	border-top: 1px solid var(--panel-line, var(--bd-line));
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.3s ease;
}

.espt-block-header.is-panel-style-dropdown .esptb-hd-panel.is-open {
	max-height: 86vh;
	opacity: 1;
	overflow-y: auto;
}

/* The dropdown sits in the flow, so line its links up with the bar above. */
.espt-block-header.is-panel-style-dropdown .esptb-hd-panel-body {
	margin: 0 auto;
	max-width: var(--max-width, 1200px);
}

.espt-block-header.is-content-width-full.is-panel-style-dropdown .esptb-hd-panel-body { max-width: none; }

/* --- design: side drawers --- */
.espt-block-header.is-panel-style-drawer-left .esptb-hd-panel,
.espt-block-header.is-panel-style-drawer-right .esptb-hd-panel {
	bottom: 0;
	box-shadow: 0 0 60px rgba(15, 23, 42, 0.3);
	display: flex;
	flex-direction: column;
	max-width: 88vw;
	overflow-y: auto;
	position: fixed;
	top: 0;
	transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	width: var(--drawer-w, 330px);
	will-change: transform;
	z-index: 99999;
}

.espt-block-header.is-panel-style-drawer-left .esptb-hd-panel {
	border-bottom-right-radius: var(--panel-radius, 0);
	border-top-right-radius: var(--panel-radius, 0);
	left: 0;
	transform: translateX(-105%);
}

.espt-block-header.is-panel-style-drawer-right .esptb-hd-panel {
	border-bottom-left-radius: var(--panel-radius, 0);
	border-top-left-radius: var(--panel-radius, 0);
	right: 0;
	transform: translateX(105%);
}

.espt-block-header.is-panel-style-drawer-left .esptb-hd-panel.is-open,
.espt-block-header.is-panel-style-drawer-right .esptb-hd-panel.is-open { transform: none; }

.espt-block-header.is-panel-style-drawer-left .esptb-hd-panel-head,
.espt-block-header.is-panel-style-drawer-right .esptb-hd-panel-head {
	border-bottom: 1px solid var(--panel-line, var(--bd-line));
	flex: none;
	padding: 14px 16px;
}

/* --- design: fullscreen --- */
.espt-block-header.is-panel-style-fullscreen .esptb-hd-panel {
	display: flex;
	flex-direction: column;
	inset: 0;
	opacity: 0;
	position: fixed;
	transform: scale(1.04);
	transition: opacity 0.32s ease, transform 0.4s ease, visibility 0.32s;
	visibility: hidden;
	z-index: 99999;
}

.espt-block-header.is-panel-style-fullscreen .esptb-hd-panel.is-open {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.espt-block-header.is-panel-style-fullscreen .esptb-hd-panel-head {
	border-bottom: 1px solid var(--panel-line, var(--bd-line));
	flex: none;
	padding: 16px 20px;
}

.espt-block-header.is-panel-style-fullscreen .esptb-hd-panel-body {
	flex: 1 1 auto;
	overflow-y: auto;
}

.espt-block-header.is-panel-style-fullscreen .esptb-nav-panel > ul > li > a {
	font-size: 18px;
	padding-bottom: 15px;
	padding-top: 15px;
}

/* --- item entrance animations (replay on every open) --- */
.espt-block-header.is-panel-anim-fade .esptb-hd-panel.is-open .esptb-nav-panel > ul > li,
.espt-block-header.is-panel-anim-fade .esptb-hd-panel.is-open .esptb-hd-panel-search,
.espt-block-header.is-panel-anim-fade .esptb-hd-panel.is-open .esptb-hd-panel-phone {
	animation: esptb-hd-item-fade 0.45s ease both;
}

.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li,
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-hd-panel-search,
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-hd-panel-phone {
	animation: esptb-hd-item-up 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-hd-panel-search { animation-delay: 0.04s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(1) { animation-delay: 0.08s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(2) { animation-delay: 0.12s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(3) { animation-delay: 0.16s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(4) { animation-delay: 0.2s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(5) { animation-delay: 0.24s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(6) { animation-delay: 0.28s; }
.espt-block-header.is-panel-anim-stagger .esptb-hd-panel.is-open .esptb-nav-panel > ul > li:nth-child(n + 7) { animation-delay: 0.32s; }

@keyframes esptb-hd-item-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes esptb-hd-item-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Centred presets on phones: burger · logo (centre) · icons. */
.espt-block-header.is-preset-center .esptb-hd-main .esptb-hd-bar,
.espt-block-header.is-preset-split .esptb-hd-main .esptb-hd-bar { position: relative; }

.espt-block-header.is-preset-center .esptb-hd-logo,
.espt-block-header.is-preset-split .esptb-hd-logo {
	left: 50%;
	margin: 0;
	max-width: 52%;
	order: 0;
	position: absolute;
	transform: translateX(-50%);
}

.espt-block-header.is-preset-center .esptb-hd-burger,
.espt-block-header.is-preset-split .esptb-hd-burger { margin-right: auto; order: 0; }

.espt-block-header.is-preset-center .esptb-hd-icons,
.espt-block-header.is-preset-split .esptb-hd-icons { margin-left: auto; order: 0; }

/* =====================================================================
   Tablet
   ===================================================================== */

@media (min-width: 768px) {
	.espt-block-header .esptb-hd-bar {
		gap: 14px;
		padding-left: 20px;
		padding-right: 20px;
	}

	/* Room for the message on one side and the socials on the other. */
	.espt-block-header .esptb-hd-topbar .esptb-hd-bar { justify-content: space-between; }
	.espt-block-header .esptb-hd-tb-l { justify-content: flex-start; }
	.espt-block-header .esptb-hd-tb-r { justify-content: flex-end; }

	.espt-block-header .esptb-hd-logo img { width: var(--logo-width, 124px); }
	.espt-block-header .esptb-hd-icons { gap: 4px; }

	.espt-block-header .espt-icon-btn,
	.espt-block-header .esptb-hd-burger { height: 40px; width: 40px; }

	.espt-block-header.is-preset-browse .esptb-hd-searchbar,
	.espt-block-header.is-preset-navbar .esptb-hd-searchbar {
		flex: 1 1 auto;
		max-width: 420px;
		order: 2;
	}

	.espt-block-header.is-preset-browse .esptb-hd-icons,
	.espt-block-header.is-preset-navbar .esptb-hd-icons { order: 3; }

	.espt-block-header.is-preset-browse .esptb-hd-burger,
	.espt-block-header.is-preset-navbar .esptb-hd-burger { order: 4; }
}

/* =====================================================================
   Desktop — the six layout presets
   ===================================================================== */

@media (min-width: 1024px) {
	.espt-block-header .esptb-hd-burger,
	.espt-block-header .esptb-hd-panel,
	.espt-block-header .esptb-hd-overlay { display: none; }

	.espt-block-header .esptb-hd-bar {
		gap: 18px;
		padding-left: 24px;
		padding-right: 24px;
	}

	/* A long menu wraps; it never squeezes the logo. */
	.espt-block-header .esptb-hd-logo { flex: none; margin-right: 0; max-width: 40%; order: 0; }
	.espt-block-header .esptb-hd-logo img { width: var(--logo-width, 140px); }
	.espt-block-header .esptb-hd-icons { margin-left: auto; order: 0; }

	.espt-block-header .esptb-hd-search-toggle { display: inline-flex; }

	/* --- the navs --- */
	.espt-block-header .esptb-nav-main,
	.espt-block-header .esptb-nav-bottom {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
		order: 0;
	}

	.espt-block-header .esptb-nav .espt-hd-menu {
		align-items: center;
		display: flex;
		flex-wrap: wrap;
		gap: 2px var(--menu-gap, 24px);
	}

	.espt-block-header .esptb-nav-main .espt-hd-menu { justify-content: center; }

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) li { position: relative; }

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a {
		align-items: center;
		background: transparent;
		border-radius: 0;
		color: var(--menu-color, var(--hd-link));
		display: inline-flex;
		font-size: var(--menu-size, 15px);
		font-weight: 600;
		gap: 6px;
		line-height: 1.3;
		padding: 8px 0;
		position: relative;
		text-decoration: none;
		transition: color 0.15s ease, background 0.2s ease;
		white-space: nowrap;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a:hover,
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li.current-menu-item > a {
		background: transparent;
		color: var(--menu-hover, var(--hd-link-h));
	}

	/* The site header's own nav effects (body.espt-navfx-*) live in the
	   theme's @layer components and match the very .espt-hd-nav /
	   .espt-hd-menu classes the theme's menu helper prints — which is what
	   this block renders too. These rules are unlayered, so they win: the
	   block's own "Menu hover effect" is the only one that shows, and the
	   theme's ::after underline can't hijack the dropdown caret below. */
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li:not(.menu-item-has-children) > a::after {
		content: none;
	}

	.espt-block-header.is-nav-uppercase .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a {
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	/* caret for parents (every geometry longhand is spelled out so the
	   theme's layered ::after underline can never reshape it) */
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .menu-item-has-children > a::after {
		background: none;
		border: 4px solid transparent;
		border-radius: 0;
		border-top-color: currentColor;
		bottom: auto;
		content: "";
		display: inline-block;
		flex: none;
		height: auto;
		left: auto;
		margin-top: 3px;
		opacity: 0.65;
		position: static;
		transform: none;
		transition: transform 0.2s ease;
		width: auto;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

	/* hover dropdowns */
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .sub-menu {
		background: var(--drop-bg, #fff);
		border: 1px solid var(--bd-line);
		border-radius: 12px;
		box-shadow: 0 14px 34px -14px rgba(15, 23, 42, 0.35);
		left: -12px;
		list-style: none;
		margin: 0;
		min-width: 212px;
		opacity: 0;
		padding: 6px;
		position: absolute;
		top: 100%;
		transform: translateY(6px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
		visibility: hidden;
		z-index: 991;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) li:hover > .sub-menu,
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) li:focus-within > .sub-menu,
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) li.focus > .sub-menu,
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) li.esptb-hd-more.is-open > .sub-menu {
		opacity: 1;
		transform: none;
		visibility: visible;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .sub-menu a {
		align-items: center;
		border-radius: 8px;
		color: var(--drop-color, var(--bd-body));
		display: flex;
		font-size: 14px;
		font-weight: 500;
		gap: 10px;
		justify-content: space-between;
		padding: 9px 13px;
		text-decoration: none;
		white-space: nowrap;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .sub-menu a:hover {
		background: var(--bd-soft);
		color: var(--menu-hover, var(--bd-primary-dark));
	}

	/* third level flies out sideways */
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .sub-menu .sub-menu {
		left: 100%;
		top: -7px;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .sub-menu .menu-item-has-children > a::after {
		margin-top: 0;
		transform: rotate(-90deg);
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .sub-menu .menu-item-has-children:hover > a::after { transform: rotate(-90deg); }

	/* last items open their dropdowns to the left so nothing escapes */
	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li:nth-last-child(-n + 2) > .sub-menu {
		left: auto;
		right: -12px;
	}

	.espt-block-header .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li:nth-last-child(-n + 2) .sub-menu .sub-menu {
		left: auto;
		right: 100%;
	}

	/* --- menu hover effects --- */
	.espt-block-header.is-nav-fx-underline .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a::before,
	.espt-block-header.is-nav-fx-underline-center .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a::before {
		background: var(--nav-accent, var(--menu-hover, var(--bd-primary)));
		border-radius: 2px;
		bottom: 1px;
		content: "";
		height: 2px;
		position: absolute;
		transition: width 0.25s ease;
		width: 0;
	}

	.espt-block-header.is-nav-fx-underline .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a::before { left: 0; }

	.espt-block-header.is-nav-fx-underline-center .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a::before {
		left: 50%;
		transform: translateX(-50%);
	}

	.espt-block-header.is-nav-fx-underline .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a:hover::before,
	.espt-block-header.is-nav-fx-underline .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li.current-menu-item > a::before,
	.espt-block-header.is-nav-fx-underline-center .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a:hover::before,
	.espt-block-header.is-nav-fx-underline-center .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li.current-menu-item > a::before { width: 100%; }

	.espt-block-header.is-nav-fx-pill .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a,
	.espt-block-header.is-nav-fx-box .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a {
		padding-left: 14px;
		padding-right: 14px;
	}

	.espt-block-header.is-nav-fx-pill .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a { border-radius: 999px; }
	.espt-block-header.is-nav-fx-box .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a { border-radius: 9px; }

	.espt-block-header.is-nav-fx-pill .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a:hover,
	.espt-block-header.is-nav-fx-box .esptb-nav:not(.esptb-nav-panel) .espt-hd-menu > li > a:hover {
		background: var(--nav-accent, rgba(15, 23, 42, 0.06));
	}

	/* --- search: bar in the row (browse / navbar), icon + drop elsewhere --- */
	.espt-block-header.is-preset-browse .esptb-hd-searchbar,
	.espt-block-header.is-preset-navbar .esptb-hd-searchbar {
		display: block;
		flex: 1 1 auto;
		margin: 0 auto;
		max-width: 520px;
		order: 0;
	}

	.espt-block-header .esptb-hd-searchdrop {
		background: var(--header-bg, #fff);
		border-top: 1px solid var(--bd-line);
		box-shadow: 0 16px 30px -16px rgba(15, 23, 42, 0.4);
		display: block;
		left: 0;
		padding-bottom: 14px;
		padding-top: 14px;
		position: absolute;
		right: 0;
		z-index: 992;
	}

	.espt-block-header .esptb-hd-searchdrop[hidden] { display: none; }
	.espt-block-header .esptb-hd-searchdrop .espt-search-form { margin: 0 auto; max-width: 560px; }

	/* --- bottom row --- */
	.espt-block-header .esptb-hd-bottom {
		border-top: 1px solid var(--bd-line);
		display: block;
	}

	.espt-block-header .esptb-hd-bottom .esptb-hd-bar { gap: 24px; }
	.espt-block-header .esptb-nav-bottom .espt-hd-menu { justify-content: flex-start; }
	.espt-block-header .esptb-nav-bottom .espt-hd-menu > li > a { padding-bottom: 13px; padding-top: 13px; }
	.espt-block-header .esptb-hd-icons-bottom { margin-left: auto; }
	.espt-block-header.is-preset-navbar .esptb-hd-bottom { background: rgba(15, 23, 42, 0.03); }

	/* the navbar layout carries its cart in the bottom band on desktop */
	.espt-block-header.is-preset-navbar .esptb-hd-main .espt-cart-btn { display: none; }

	/* --- browse button --- */
	.espt-block-header .esptb-hd-browse-wrap {
		flex: none;
		padding: 8px 0;
		position: relative;
	}

	.espt-block-header .esptb-hd-browse {
		align-items: center;
		background: var(--browse-bg, var(--bd-primary));
		border: 0;
		border-radius: 9px;
		color: var(--browse-color, #fff);
		cursor: pointer;
		display: inline-flex;
		font-size: 13px;
		font-weight: 700;
		gap: 10px;
		letter-spacing: 0.04em;
		padding: 11px 18px;
		text-transform: uppercase;
		transition: filter 0.15s ease;
	}

	.espt-block-header .esptb-hd-browse:hover { filter: brightness(1.07); }
	.espt-block-header .esptb-hd-browse .espt-ic { font-size: 14px; transition: transform 0.2s ease; }
	.espt-block-header .esptb-hd-browse[aria-expanded="true"] .espt-ic { transform: rotate(180deg); }

	.espt-block-header .esptb-hd-browse-drop {
		background: var(--drop-bg, #fff);
		border: 1px solid var(--bd-line);
		border-radius: 12px;
		box-shadow: 0 16px 34px -14px rgba(15, 23, 42, 0.35);
		left: 0;
		max-height: 70vh;
		min-width: 250px;
		overflow-y: auto;
		padding: 6px;
		position: absolute;
		top: 100%;
		z-index: 991;
	}

	.espt-block-header .esptb-hd-browse-drop[hidden] { display: none; }
	.espt-block-header .esptb-hd-browse-drop ul { list-style: none; margin: 0; padding: 0; }

	.espt-block-header .esptb-hd-browse-drop a {
		border-radius: 8px;
		color: var(--drop-color, var(--bd-body));
		display: block;
		font-size: 14px;
		font-weight: 500;
		padding: 10px 13px;
		text-decoration: none;
	}

	.espt-block-header .esptb-hd-browse-drop a:hover {
		background: var(--bd-soft);
		color: var(--menu-hover, var(--bd-primary-dark));
	}

	/* --- preset: centred logo, menu below --- */
	.espt-block-header.is-preset-center .esptb-hd-main .esptb-hd-bar { justify-content: center; }

	.espt-block-header.is-preset-center .esptb-hd-logo {
		left: auto;
		margin: 0;
		max-width: none;
		position: static;
		transform: none;
	}

	.espt-block-header.is-preset-center .esptb-hd-icons {
		margin: 0;
		position: absolute;
		right: 24px;
		top: 50%;
		transform: translateY(-50%);
	}

	.espt-block-header.is-preset-center .esptb-hd-bottom .esptb-hd-bar { justify-content: center; }
	.espt-block-header.is-preset-center .esptb-nav-bottom { flex: 0 1 auto; }
	.espt-block-header.is-preset-center .esptb-nav-bottom .espt-hd-menu { justify-content: center; }

	/* --- preset: split menu, logo in the centre --- */
	.espt-block-header.is-preset-split .esptb-hd-logo {
		flex: none;
		left: auto;
		max-width: none;
		position: static;
		transform: none;
	}

	.espt-block-header.is-preset-split .esptb-nav-split {
		display: flex;
		flex: 1 1 0;
		min-width: 0;
	}

	.espt-block-header.is-preset-split .esptb-nav-split-l .espt-hd-menu { justify-content: flex-end; }
	.espt-block-header.is-preset-split .esptb-nav-split-r .espt-hd-menu { justify-content: flex-start; }

	.espt-block-header.is-preset-split .esptb-hd-icons {
		margin: 0;
		position: absolute;
		right: 24px;
		top: 50%;
		transform: translateY(-50%);
	}

	.espt-block-header.is-preset-split .esptb-hd-main .esptb-hd-bar {
		padding-left: 96px;
		padding-right: 96px;
		position: relative;
	}

	/* --- preset: minimal / topbar keep the menu centred in the row --- */
	.espt-block-header.is-preset-minimal .esptb-nav-main,
	.espt-block-header.is-preset-topbar .esptb-nav-main { justify-content: center; }
}

/* =====================================================================
   Kit parts — shared by every layout (the kit layouts use them all).
   A layout's own header/<layout>.css only arranges and recolours them.
   ===================================================================== */

/* Menu badges: espt-badge-hot on a WordPress menu item, or "Badge" on a custom link. */
.espt-block-header .esptb-badge {
	background: var(--hd-badge, #e11d48);
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	margin-left: 6px;
	padding: 3px 5px;
	text-transform: uppercase;
	vertical-align: middle;
}

/* Top bar items, countdown, login button. */
.espt-block-header .esptb-hd-tb-item {
	align-items: center;
	color: inherit;
	display: inline-flex;
	gap: 6px;
	min-width: 0;
	text-decoration: none;
}

.espt-block-header a.esptb-hd-tb-item:hover { opacity: 0.82; text-decoration: underline; text-underline-offset: 3px; }
.espt-block-header .esptb-hd-tb-item .espt-ic { color: var(--hd-tb-icon, currentColor); flex: none; font-size: 1.1em; }
.espt-block-header .esptb-hd-count { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.espt-block-header .esptb-hd-count-clock { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.05em; }
.espt-block-header .esptb-hd-count-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.espt-block-header .esptb-hd-count-link:hover { text-decoration: none; }

.espt-block-header .esptb-hd-login {
	align-items: center;
	background: rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	color: inherit;
	display: inline-flex;
	font-weight: 700;
	gap: 6px;
	padding: 5px 12px;
	text-decoration: none;
}

.espt-block-header .esptb-hd-login:hover { background: rgba(0, 0, 0, 0.3); }

/* Running top bar. */
.espt-block-header .esptb-hd-marquee {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
}

.espt-block-header .esptb-hd-marquee-track {
	animation: esptb-hd-marquee var(--hd-marquee-s, 30s) linear infinite;
	display: inline-flex;
	width: max-content;
}

.espt-block-header .esptb-hd-marquee-track > span { align-items: center; display: inline-flex; gap: 44px; padding-right: 44px; }
.espt-block-header .esptb-hd-marquee:hover .esptb-hd-marquee-track { animation-play-state: paused; }

@keyframes esptb-hd-marquee {
	to { transform: translateX(-50%); }
}

/* "Need help?" line. */
.espt-block-header .esptb-hd-help {
	align-items: center;
	color: var(--hd-ink);
	display: none;
	flex: none;
	gap: 10px;
	text-decoration: none;
}

.espt-block-header .esptb-hd-help-ic {
	align-items: center;
	background: var(--hd-help-bg, var(--hd-brand));
	border-radius: 999px;
	color: var(--hd-help-ic, #fff);
	display: inline-flex;
	flex: none;
	font-size: 19px;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.espt-block-header .esptb-hd-help-t { display: flex; flex-direction: column; line-height: 1.2; }
.espt-block-header .esptb-hd-help-l { color: var(--hd-muted); font-size: 12.5px; font-weight: 600; }
.espt-block-header .esptb-hd-help-n { color: var(--hd-help-n, var(--hd-ink)); font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 800; }
.espt-block-header .esptb-hd-help-s { color: var(--hd-muted); font-size: 12px; }
.espt-block-header .esptb-hd-help:hover .esptb-hd-help-n { color: var(--hd-brand); }

/* The four cart looks. The .espt-cart-btn inside is refreshed by WooCommerce;
   the words and the total beside it forward their click to it. */
.espt-block-header .esptb-hd-cart { align-items: center; align-self: stretch; display: inline-flex; flex: none; gap: 6px; position: relative; }

/* The word and the total are part of the button: the whole height takes the tap, not just the text. */
.espt-block-header .esptb-hd-cart [data-hd-cart-forward] {
	align-items: center;
	align-self: stretch;
	cursor: pointer;
	display: inline-flex;
	min-height: 40px;
}

.espt-block-header .esptb-hd-cart.is-cart-round .espt-cart-btn {
	background: var(--hd-cart-bg, var(--hd-brand));
	border-radius: 999px;
	color: var(--hd-cart-ink, #fff);
	height: 44px;
	width: 44px;
}

.espt-block-header .esptb-hd-cart.is-cart-round .espt-cart-btn:hover { background: var(--hd-brand-dark); color: #fff; }

.espt-block-header .esptb-hd-cart.is-cart-round .espt-cart-count {
	background: var(--cart-bubble, var(--hd-accent));
	box-shadow: 0 0 0 2px var(--header-bg, var(--hd-bg));
	color: var(--hd-ink);
	right: -4px;
	top: -4px;
}

.espt-block-header .esptb-hd-cart.is-cart-total {
	background: var(--hd-cart-bg, var(--hd-brand));
	border-radius: 999px;
	color: var(--hd-cart-ink, #fff);
	padding: 0 16px 0 4px;
}

.espt-block-header .esptb-hd-cart.is-cart-total .espt-cart-btn,
.espt-block-header .esptb-hd-cart.is-cart-total .espt-cart-btn:hover { background: transparent; color: inherit; }
.espt-block-header .esptb-hd-cart.is-cart-total .espt-cart-count { background: var(--cart-bubble, var(--hd-accent)); color: var(--hd-ink); }
.espt-block-header .esptb-hd-cart-sum { font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

.espt-block-header .esptb-hd-cart.is-cart-label { color: var(--icons-color, var(--hd-link)); font-size: 14px; font-weight: 700; gap: 4px; }
.espt-block-header .esptb-hd-cart.is-cart-label .espt-cart-btn { height: auto; min-height: 40px; width: auto; }
.espt-block-header .esptb-hd-cart.is-cart-label .espt-cart-btn svg { display: none; }
.espt-block-header .esptb-hd-cart.is-cart-label .espt-cart-count { position: static; }

/* A running total is too wide for a phone bar: the icon carries it there. */
@media (max-width: 599px) {
	.espt-block-header .esptb-hd-cart.is-cart-total { background: transparent; color: var(--icons-color, var(--hd-link)); padding: 0; }
	/* As specific as the [data-hd-cart-forward] rule above, and later, so
	   it wins — at two classes the total stayed on and was cut off inside
	   the phone's round cart button. */
	.espt-block-header .esptb-hd-cart .esptb-hd-cart-sum { display: none; }
}

/* Two-line account link. */
.espt-block-header .esptb-hd-acct { color: var(--icons-color, var(--hd-link)); display: none; flex-direction: column; line-height: 1.2; text-decoration: none; }
.espt-block-header .esptb-hd-acct-s { font-size: 12px; opacity: 0.72; }
.espt-block-header .esptb-hd-acct-b { font-size: 13.5px; font-weight: 700; }

@media (min-width: 768px) {
	.espt-block-header .esptb-hd-acct { display: inline-flex; }
}

/* Search with a worded button and a category picker. */
.espt-block-header .espt-search-form.has-btn-text input[type="search"] { padding-right: 60px; }

.espt-block-header .espt-search-form.has-btn-text .button,
.espt-block-header .espt-search-form.has-btn-text button[type="submit"] {
	background: var(--hd-search-btn, var(--hd-brand));
	border-radius: var(--search-radius, 999px);
	bottom: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	gap: 6px;
	height: auto;
	padding: 0 14px;
	right: 4px;
	top: 4px;
	transform: none;
	width: auto;
}

.espt-block-header .espt-search-form.has-btn-text .button:hover { background: var(--hd-brand-dark); color: #fff; }
.espt-block-header .esptb-hd-search-btxt { display: none; }

@media (min-width: 600px) {
	.espt-block-header .espt-search-form.has-btn-text input[type="search"] { padding-right: 124px; }
	.espt-block-header .espt-search-form.has-btn-text .button { padding: 0 20px; }
	.espt-block-header .esptb-hd-search-btxt { display: inline; }
}

.espt-block-header .esptb-hd-scope { display: none; flex: none; position: relative; }

.espt-block-header .esptb-hd-scope-btn {
	align-items: center;
	background: var(--search-bg, #f6f7f8);
	border: 1px solid var(--search-line, var(--hd-line));
	border-radius: var(--search-radius, 999px) 0 0 var(--search-radius, 999px);
	color: var(--hd-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	height: 100%;
	padding: 0 14px;
	white-space: nowrap;
}

.espt-block-header .esptb-hd-scope-drop {
	background: #fff;
	border: 1px solid var(--hd-line);
	border-radius: 12px;
	box-shadow: 0 16px 34px -14px rgba(15, 23, 42, 0.35);
	left: 0;
	max-height: 60vh;
	min-width: 220px;
	overflow-y: auto;
	padding: 6px;
	position: absolute;
	top: calc(100% + 6px);
	z-index: 995;
}

.espt-block-header .esptb-hd-scope-drop[hidden] { display: none; }

.espt-block-header .esptb-hd-scope-drop button {
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--hd-text);
	cursor: pointer;
	display: block;
	font: inherit;
	font-size: 14px;
	padding: 9px 12px;
	text-align: left;
	width: 100%;
}

.espt-block-header .esptb-hd-scope-drop button:hover,
.espt-block-header .esptb-hd-scope-drop button[aria-pressed="true"] { background: var(--hd-soft); color: var(--hd-brand-dark); }

@media (min-width: 768px) {
	.espt-block-header .esptb-hd-scope { display: block; }

	.espt-block-header .espt-search-form.has-scope input[type="search"] {
		border-bottom-left-radius: 0;
		border-left: 0;
		border-top-left-radius: 0;
	}
}

/* Rows that scroll sideways on small screens: chips and tabs. */
.espt-block-header .esptb-hd-chips ul,
.espt-block-header .esptb-hd-tabs ul {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	padding: 0;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.espt-block-header .esptb-hd-chips ul::-webkit-scrollbar,
.espt-block-header .esptb-hd-tabs ul::-webkit-scrollbar { display: none; }

/* A mouse cannot swipe: give it a thin scrollbar when a row overflows. */
@media (hover: hover) and (pointer: fine) {
	.espt-block-header .esptb-hd-chips ul,
	.espt-block-header .esptb-hd-tabs ul { padding-bottom: 3px; scrollbar-color: color-mix(in srgb, currentColor 30%, transparent) transparent; scrollbar-width: thin; }

	.espt-block-header .esptb-hd-chips ul::-webkit-scrollbar,
	.espt-block-header .esptb-hd-tabs ul::-webkit-scrollbar { display: block; height: 4px; }

	.espt-block-header .esptb-hd-chips ul::-webkit-scrollbar-thumb,
	.espt-block-header .esptb-hd-tabs ul::-webkit-scrollbar-thumb { background: color-mix(in srgb, currentColor 30%, transparent); border-radius: 4px; }
}

/* "More" (header.js): on computers a row too long for its space folds its
   last items into a dropdown instead of scrolling. Menus (.esptb-nav) use
   their own dropdown look; link rows (.esptb-hd-tabs) get this one. */
@media (min-width: 1024px) {
	.espt-block-header .esptb-hd-tabs ul.has-more { overflow: visible; }

	.espt-block-header .esptb-hd-tabs .esptb-hd-more { flex: none; position: relative; }

	.espt-block-header .esptb-hd-tabs .esptb-hd-more > a::after {
		border: 4px solid transparent;
		border-top-color: currentColor;
		content: "";
		display: inline-block;
		margin-left: 6px;
		margin-top: 3px;
		opacity: 0.65;
		vertical-align: middle;
	}

	.espt-block-header .esptb-hd-tabs .esptb-hd-more > .esptb-hd-more-drop {
		background: var(--drop-bg, #fff);
		border: 1px solid var(--bd-line);
		border-radius: 12px;
		box-shadow: 0 14px 34px -14px rgba(15, 23, 42, 0.35);
		display: block;
		list-style: none;
		margin: 0;
		min-width: 212px;
		opacity: 0;
		overflow: visible;
		padding: 6px;
		position: absolute;
		right: 0;
		top: 100%;
		transform: translateY(6px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
		visibility: hidden;
		z-index: 991;
	}

	.espt-block-header .esptb-hd-tabs .esptb-hd-more:hover > .esptb-hd-more-drop,
	.espt-block-header .esptb-hd-tabs .esptb-hd-more:focus-within > .esptb-hd-more-drop,
	.espt-block-header .esptb-hd-tabs .esptb-hd-more.is-open > .esptb-hd-more-drop { opacity: 1; transform: none; visibility: visible; }

	.espt-block-header .esptb-hd-tabs .esptb-hd-more > .esptb-hd-more-drop > li > a {
		align-items: center;
		background: none;
		border: 0;
		border-radius: 8px;
		color: var(--drop-color, var(--bd-body));
		display: flex;
		font-size: 14px;
		font-weight: 500;
		gap: 10px;
		min-height: 0;
		padding: 9px 13px;
		text-decoration: none;
		text-transform: none;
		white-space: nowrap;
	}

	.espt-block-header .esptb-hd-tabs .esptb-hd-more > .esptb-hd-more-drop > li > a:hover,
	.espt-block-header .esptb-hd-tabs .esptb-hd-more > .esptb-hd-more-drop > li > a.is-current {
		background: var(--bd-soft);
		color: var(--menu-hover, var(--bd-primary-dark));
	}
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	.espt-block-header .esptb-hd-tabs .esptb-hd-more > .esptb-hd-more-drop { transition: none; }
}

/* "Light plate behind the logo": a dark image logo stays readable on a dark
   header bar. Text logos already take the bar's own colour. */
.espt-block-header.is-logo-plate .esptb-hd-logo img {
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	padding: 5px 10px;
}

/* Links from the top bar and the icon row, kept reachable in the phone menu. */
.espt-block-header .esptb-hd-panel-links {
	border-top: 1px solid var(--panel-line, var(--hd-line));
	display: grid;
	gap: 2px;
	list-style: none;
	margin: 14px 0 0;
	padding: 10px 0 0;
}

.espt-block-header .esptb-hd-panel-links a {
	align-items: center;
	color: var(--panel-color, var(--hd-ink));
	display: flex;
	font-size: 14px;
	font-weight: 600;
	gap: 10px;
	min-height: 40px;
	text-decoration: none;
}

.espt-block-header .esptb-hd-panel-links .espt-ic { color: var(--panel-active, var(--hd-brand)); flex: none; font-size: 17px; }
.espt-block-header .esptb-hd-panel-links a:hover { color: var(--panel-active, var(--hd-brand)); }

.espt-block-header .esptb-hd-chips a {
	align-items: center;
	background: var(--hd-chip-bg, var(--hd-soft));
	border-radius: 999px;
	color: var(--hd-chip-ink, var(--hd-ink));
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	scroll-snap-align: start;
	text-decoration: none;
	white-space: nowrap;
}

.espt-block-header .esptb-hd-chips a:hover,
.espt-block-header .esptb-hd-chips a.is-current { background: var(--hd-chip-on, var(--hd-brand)); color: var(--hd-chip-on-ink, #fff); }

.espt-block-header .esptb-hd-tabs ul { gap: 22px; }

.espt-block-header .esptb-hd-tabs a {
	align-items: center;
	border-bottom: 2px solid transparent;
	color: var(--menu-color, var(--hd-link));
	display: inline-flex;
	font-size: var(--menu-size, 14px);
	font-weight: 600;
	padding: 11px 0;
	scroll-snap-align: start;
	text-decoration: none;
	white-space: nowrap;
}

.espt-block-header .esptb-hd-tabs a:hover { border-bottom-color: color-mix(in srgb, var(--hd-brand) 40%, transparent); }
.espt-block-header .esptb-hd-tabs a.is-current { border-bottom-color: var(--hd-brand); color: var(--hd-ink); }

/* Mega panel + promo card. */
.espt-block-header .esptb-hd-mega {
	background: var(--drop-bg, #fff);
	border-top: 1px solid var(--hd-line);
	box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.45);
	color: var(--hd-ink);
	left: 0;
	max-height: 80vh;
	overflow-y: auto;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 993;
}

.espt-block-header .esptb-hd-mega[hidden] { display: none; }
.espt-block-header .esptb-hd-mega > .esptb-hd-bar { align-items: stretch; display: grid; gap: 28px; padding-bottom: 24px; padding-top: 22px; }
.espt-block-header .esptb-hd-mega-cols { display: grid; gap: 22px 28px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.espt-block-header .esptb-hd-mega-h { color: var(--hd-ink); display: block; font-size: 14px; font-weight: 800; margin-bottom: 8px; text-decoration: none; }
.espt-block-header .esptb-hd-mega-col ul { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.espt-block-header .esptb-hd-mega-col li a { color: var(--drop-color, var(--hd-text)); font-size: 13.5px; text-decoration: none; }
.espt-block-header .esptb-hd-mega-col a:hover { color: var(--hd-brand); }

@media (min-width: 1024px) {
	.espt-block-header .esptb-hd-mega > .esptb-hd-bar:has(.esptb-hd-promo) { grid-template-columns: 1fr minmax(220px, 280px); }
}

.espt-block-header .esptb-hd-promo {
	background: var(--hd-dark);
	border-radius: 14px;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: flex-end;
	padding: 20px;
}

.espt-block-header .esptb-hd-promo p { margin: 0; }
.espt-block-header .esptb-hd-promo-k { color: var(--hd-accent); font-size: 12px; font-weight: 700; }
.espt-block-header .esptb-hd-promo-t { font-family: var(--hd-display); font-size: 18px; font-weight: 800; line-height: 1.25; }
.espt-block-header .esptb-hd-promo-x { font-size: 13px; opacity: 0.85; }

.espt-block-header .esptb-hd-promo-b {
	align-self: flex-start;
	background: var(--hd-accent);
	border-radius: 8px;
	color: var(--hd-ink);
	font-size: 13px;
	font-weight: 800;
	margin-top: 8px;
	padding: 8px 14px;
	text-decoration: none;
}

/* Burger with a word beside it (drawer-on-every-screen layouts). */
.espt-block-header .esptb-hd-burger.has-label { gap: 8px; padding: 0 8px; width: auto; }
.espt-block-header .esptb-hd-burger-t { display: none; font-size: 13px; font-weight: 600; }

@media (min-width: 600px) {
	.espt-block-header .esptb-hd-burger-t { display: inline; }
}

/* Slim down once the sticky header is stuck. */
.espt-block-header .esptb-hd-main .esptb-hd-bar { transition: padding 0.25s ease; }
.espt-block-header .esptb-hd-logo img { transition: max-height 0.25s ease; }

.espt-block-header.is-sticky-shrink.is-stuck .esptb-hd-main .esptb-hd-bar {
	padding-bottom: calc(var(--row-pad, 10px) * 0.5);
	padding-top: calc(var(--row-pad, 10px) * 0.5);
}

.espt-block-header.is-sticky-shrink.is-stuck .esptb-hd-logo img { max-height: calc(var(--logo-height, 54px) * 0.72); }

/* Layouts that keep the burger and its drawer on every screen size. */
@media (min-width: 1024px) {
	/* The drawer's menu stays a list: the desktop nav's flex row is for the bar. */
	.espt-block-header .esptb-nav-panel .espt-hd-menu { display: block; }
	.espt-block-header .esptb-hd.is-menu-always .esptb-hd-burger { display: inline-flex; }
	.espt-block-header .esptb-hd.is-menu-always .esptb-hd-overlay { display: block; }
	.espt-block-header .esptb-hd.is-menu-always .esptb-hd-panel { display: flex; }
	.espt-block-header .esptb-hd.is-menu-always .esptb-hd-overlay[hidden],
	.espt-block-header .esptb-hd.is-menu-always .esptb-hd-panel[hidden] { display: none; }
	.espt-block-header .esptb-hd-help { display: inline-flex; }
}

/* Scroll lock while an off-canvas menu is open. */
html.esptb-hd-menu-open,
html.esptb-hd-menu-open body { overflow: hidden; }

/* =====================================================================
   Phone menu extras: bottom sheet, quick buttons, Menu / Categories tabs
   ===================================================================== */

.espt-block-header.is-panel-style-sheet .esptb-hd-panel {
	border-radius: 22px 22px 0 0;
	bottom: 0;
	box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.3);
	display: flex;
	flex-direction: column;
	left: 0;
	max-height: 88vh;
	max-height: 88dvh;
	position: fixed;
	right: 0;
	transform: translateY(105%);
	transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
	z-index: 99999;
}

.espt-block-header.is-panel-style-sheet .esptb-hd-panel.is-open { transform: translateY(var(--hd-drag, 0px)); }
.espt-block-header.is-panel-style-sheet .esptb-hd-panel.is-dragging { transition: none; }

.espt-block-header .esptb-hd-sheet-grip {
	background: color-mix(in srgb, var(--panel-color, var(--hd-ink)) 22%, transparent);
	border-radius: 999px;
	cursor: grab;
	display: block;
	flex: none;
	height: 5px;
	margin: 10px auto 2px;
	touch-action: none;
	width: 44px;
}

.espt-block-header.is-panel-style-sheet .esptb-hd-panel-head { cursor: grab; flex: none; padding: 6px 16px 10px; touch-action: none; }
.espt-block-header.is-panel-style-sheet .esptb-hd-panel-body { flex: 1 1 auto; overflow-y: auto; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

.espt-block-header .esptb-hd-quick {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 14px;
}

.espt-block-header .esptb-hd-q {
	align-items: center;
	background: color-mix(in srgb, var(--panel-active, var(--hd-brand)) 9%, var(--panel-bg, #fff));
	border-radius: 14px;
	color: var(--panel-color, var(--hd-ink));
	display: flex;
	flex-direction: column;
	font-size: 12px;
	font-weight: 700;
	gap: 6px;
	justify-content: center;
	min-height: 66px;
	padding: 10px 4px;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.espt-block-header .esptb-hd-q .espt-ic { color: var(--panel-active, var(--hd-brand)); font-size: 21px; }
.espt-block-header .esptb-hd-q:hover { background: color-mix(in srgb, var(--panel-active, var(--hd-brand)) 16%, var(--panel-bg, #fff)); }
.espt-block-header .esptb-hd-q:active { transform: scale(0.97); }

.espt-block-header .esptb-hd-ptabs {
	background: color-mix(in srgb, var(--panel-color, var(--hd-ink)) 6%, var(--panel-bg, #fff));
	border-radius: 999px;
	display: grid;
	gap: 4px;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 10px;
	padding: 4px;
}

.espt-block-header .esptb-hd-ptabs button {
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--panel-color, var(--hd-ink));
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 10px;
	transition: background 0.2s ease, color 0.2s ease;
}

.espt-block-header .esptb-hd-ptabs button[aria-selected="true"] { background: var(--panel-active, var(--hd-brand)); color: #fff; }
.espt-block-header .esptb-hd-ptab[hidden] { display: none; }

.espt-block-header .esptb-hd-ctiles {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

.espt-block-header .esptb-hd-ctiles a {
	align-items: center;
	background: color-mix(in srgb, var(--panel-color, var(--hd-ink)) 4%, var(--panel-bg, #fff));
	border: 1px solid var(--panel-line, var(--hd-line));
	border-radius: 14px;
	color: var(--panel-color, var(--hd-ink));
	display: flex;
	font-size: 13.5px;
	font-weight: 700;
	gap: 10px;
	line-height: 1.25;
	padding: 8px;
	text-decoration: none;
}

.espt-block-header .esptb-hd-ctiles img,
.espt-block-header .esptb-hd-ctile-ph {
	border-radius: 10px;
	flex: none;
	height: 44px;
	object-fit: cover;
	width: 44px;
}

.espt-block-header .esptb-hd-ctile-ph {
	align-items: center;
	background: var(--hd-soft);
	color: var(--panel-active, var(--hd-brand));
	display: inline-flex;
	font-size: 18px;
	justify-content: center;
}

.espt-block-header .esptb-hd-ctiles a:hover { border-color: var(--panel-active, var(--hd-brand)); }

@media (prefers-reduced-motion: reduce) {
	.espt-block-header .esptb-hd-marquee-track { animation: none; }
	.espt-block-header .esptb-hd-panel,
	.espt-block-header .esptb-hd-overlay,
	.espt-block-header .esptb-hd-panel *,
	.espt-block-header .esptb-burger i,
	.espt-block-header .esptb-hd-panel-close {
		animation-delay: 0ms;
		animation-duration: 0.01ms;
		transition-duration: 0.01ms;
	}
}
