/**
 * Site header (Elementor Pro theme-builder template built by `wp al header build`).
 *
 * Sticky, a translucent white surface over the page, hairline under it, ink
 * text. From 1025px two rows: 76px with the logo, the search field, the AI
 * button, account and cart, then 56px with the categories (Desktop, below).
 * Up to 1024px one 56px bar (burger, logo, search icon, cart) with the search
 * row under it. Categories open full-width panels of their sub-categories on
 * a click, and a chevron marks each one that does. Orange appears as the 2px
 * edge under the open/current category, the AI entry's tint and the cart
 * count - never as text on white, never white on orange.
 *
 * Elementor prints the css_classes of a container on the container element;
 * boxed containers put their children in .e-con-inner. The panels are
 * positioned against the bar (.al-hdr__main), so every box between them and
 * the bar stays unpositioned.
 *
 * Two parts have sheets of their own: the search panel and the phone search
 * row (al-header-search.css) and Woodmart's phone toolbar, the floating
 * capsule at the bottom of the screen (al-toolbar.css). Also here: the phone
 * drawer's pictures, arrows and AI button, and the announcement strip.
 */

:root {
	--al-hdr-row: 56px; /* the bar's (first) row */
	--al-hdr-nav: 0px; /* the category row under it: desktop only */
	--al-hdr-h: calc(var(--al-hdr-row) + var(--al-hdr-nav)); /* the whole header */
	--al-strip-h: 32px; /* the announcement strip, when set (al-header.js: its real height) */
	--al-hdr-glass: color-mix(in srgb, var(--al-bg) 80%, transparent);
	--al-hdr-glass-panel: color-mix(in srgb, var(--al-bg) 94%, transparent);
	--al-hdr-blur: saturate(180%) blur(20px);
	--al-hdr-shadow: 0 6px 16px color-mix(in srgb, var(--al-ink) 6%, transparent);
	/* The floating pieces at the phone's foot (capsule, filter opener, sticky
	   add-to-cart): one hairline and one tight shadow each. The shadow
	   reaches 8px below its piece (2 - 2 + 8), no further than the capsule
	   stands off the fixed layer's bottom edge, where iOS Safari clips it. */
	--al-hdr-float: 0 2px 8px -2px color-mix(in srgb, var(--al-ink) 18%, transparent), 0 1px 2px color-mix(in srgb, var(--al-ink) 8%, transparent);
	--al-hdr-line: color-mix(in srgb, var(--al-ink) 8%, transparent);
	scroll-padding-block-start: calc(var(--al-hdr-h) + var(--wp-admin--admin-bar--height, 0px) + var(--al-s-3));
}

/* Typing in a header field: the browser keeps the caret clear of the
   padding above, and the sticky header never leaves that band, so every
   key scrolled the page up. Out-specifies the phone :root rule below. */
:root:has(.elementor-location-header input:focus) {
	scroll-padding-block-start: 0;
}

/* No blur (or the viewer asked for less transparency): solid surfaces. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	:root {
		--al-hdr-glass: var(--al-bg);
		--al-hdr-glass-panel: var(--al-bg);
	}
}

@media (min-width: 1025px) {
	:root {
		--al-hdr-row: 76px;
		--al-hdr-nav: 56px;
	}
}

@media (prefers-reduced-transparency: reduce) {
	:root {
		--al-hdr-glass: var(--al-bg);
		--al-hdr-glass-panel: var(--al-bg);
	}
}

/* iOS Settings → Accessibility → Increase Contrast (Safari has no
   prefers-reduced-transparency): solid surfaces, a firmer hairline. */
@media (prefers-contrast: more) {
	:root {
		--al-hdr-glass: var(--al-bg);
		--al-hdr-glass-panel: var(--al-bg);
		--al-hdr-line: color-mix(in srgb, var(--al-ink) 24%, transparent);
	}
}

/* Visually hidden, still read. Defined here because this sheet loads on
   every page (al-facets.css, which also has it, only loads on archives). */
.al-sr {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.al-hdr {
	color: var(--al-ink);
}

.al-hdr a {
	color: inherit;
	text-decoration: none;
}

.al-hdr .elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

.al-hdr .al-ico {
	display: block;
	inline-size: 24px;
	block-size: 24px;
	flex: none;
}

/* ---- Sticky ---------------------------------------------------------- */

.elementor-location-header {
	position: sticky;
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
	z-index: 390; /* under Woodmart's drawers (400/500), over page content */
}

/* Page dim behind an open panel. Painted inside the header's stacking
   context, under the bar: a click on it lands outside every panel. */
.elementor-location-header::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background: color-mix(in srgb, var(--al-ink) 16%, transparent);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--al-t) var(--al-ease), visibility 0s var(--al-t);
}

.elementor-location-header.has-fly::after {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

/* The accessibility plugin's button (fixed, z 999999, on the left edge)
   sat on the phone search's "עוזר AI" chip. It steps aside while a panel
   is open and is back when it closes. */
body:has(.elementor-location-header.has-fly) #vplugin._vp_open_false #vplugin-toggler {
	visibility: hidden;
}

/* ---- The bar --------------------------------------------------------- */

.al-hdr__main {
	position: relative;
	min-block-size: var(--al-hdr-h);
	background: transparent;
}

/* The surface is a layer of its own, so the panels (children of the bar)
   can blur the page too: a backdrop-filter on the bar itself would make
   it their backdrop. */
.al-hdr__main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-block-end: 1px solid var(--al-line);
	background: var(--al-hdr-glass);
	-webkit-backdrop-filter: var(--al-hdr-blur);
	backdrop-filter: var(--al-hdr-blur);
	transition: box-shadow var(--al-t) var(--al-ease);
}

.elementor-location-header.is-stuck .al-hdr__main::before {
	box-shadow: var(--al-hdr-shadow);
}

/* Bar and open panel read as one surface. */
.elementor-location-header.has-fly .al-hdr__main::before {
	border-block-end-color: transparent;
	box-shadow: none;
}

.al-hdr__main > .e-con-inner {
	min-block-size: var(--al-hdr-h);
}

.al-hdr__main > .e-con-inner,
.al-hdr__main .elementor-widget,
.al-hdr__main .elementor-widget-container {
	position: static;
}

.al-hdr__logo {
	flex: none;
}

/* Block, not inline: an inline link sat the logo 4px high on its line box. */
.al-hdr__logo a {
	display: block;
}

.al-hdr__logo img {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

.al-hdr__nav {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.al-hdr__search,
.al-hdr__ai,
.al-hdr__actions {
	flex: none;
}

/* Shared: the icon-sized buttons and links in the bar. */
.al-hsearch__toggle.al-hsearch__toggle,
.al-hactions__link {
	display: inline-grid;
	grid-auto-flow: column;
	place-items: center;
	gap: var(--al-s-2);
	min-block-size: 44px;
	min-inline-size: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--al-r-md);
	background: none;
	color: var(--al-ink);
	box-shadow: none;
	cursor: pointer;
	transition: background-color var(--al-t-fast) var(--al-ease);
}

.al-hsearch__toggle.al-hsearch__toggle:hover,
.al-hactions__link:hover,
.al-hsearch.is-open .al-hsearch__toggle,
.al-hacct.is-open > .al-hactions__account,
.al-hcart.is-open > .al-hactions__cart {
	background: color-mix(in srgb, var(--al-ink) 6%, transparent);
	color: var(--al-ink);
}

/* Focus rings: Woodmart's site-wide :focus-visible outline, set to the token ring (2px solid ink) by al-tokens.css. */

/* ---- Flyout toggles --------------------------------------------------- */

/* Beside the account icon: straddles the gap before it (taking no room),
   invisible until it has keyboard focus. In the category bar the same
   button is the visible chevron (Categories, below). The focus ring is
   drawn inside the box. */
.al-fly__toggle.al-fly__toggle {
	--al-tog: 16px;
	--wd-otl-offset: -2px;
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	inline-size: var(--al-tog);
	block-size: var(--al-tog);
	min-block-size: 0;
	margin-inline: calc(var(--al-tog) / -2);
	padding: 0;
	border: 0;
	border-radius: var(--al-r-xs);
	background: none;
	color: var(--al-ink-3);
	box-shadow: none;
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
}

.al-fly__toggle.al-fly__toggle:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

.al-fly__toggle .al-ico.al-ico {
	inline-size: calc(var(--al-tog) - 2px);
	block-size: calc(var(--al-tog) - 2px);
	transition: transform var(--al-t) var(--al-ease);
}

.is-open > .al-fly__toggle .al-ico,
.is-open > .al-mnav__link .al-ico {
	transform: rotate(180deg);
}

/* ---- Categories + mega panels ---------------------------------------- */

/* --al-nav-pad: the room on each side of a name (the desktop grid, below,
   sets it by width); --al-chev: the chevron. */
.al-hdr__nav {
	--al-nav-pad: 7px;
	--al-chev: 12px;
}

.al-mnav__list {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.al-mnav__item {
	display: flex;
	align-items: center;
	margin: 0;
}

/* The category row's full height. */
.al-hdr .al-mnav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--al-s-1);
	min-block-size: var(--al-hdr-nav);
	margin: 0;
	padding: 0 var(--al-nav-pad);
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--al-ink);
	font: inherit;
	font-size: var(--al-fs-body);
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--al-t-fast) var(--al-ease);
}

/* The focus ring inside the link, so the viewport's top edge cannot cut
   it (Woodmart draws it from --wd-otl-*). */
.al-hdr .al-mnav__link:focus-visible {
	--wd-otl-offset: -2px;
	border-radius: var(--al-r-sm);
}

.al-hdr .al-mnav__link::after {
	content: "";
	position: absolute;
	inset-inline: var(--al-nav-pad);
	inset-block-end: 0;
	block-size: 2px;
	background: var(--al-orange-edge);
	transform: scaleX(0);
	transition: transform var(--al-t) var(--al-ease);
}

.al-mnav__item.is-open > .al-mnav__link::after,
.al-hdr .al-mnav__link[aria-current]::after {
	transform: scaleX(1);
}

/* Hover (the name or its chevron): the same orange line. One colour in
   every state, so it only grows in and out; it was grey on hover and
   flashed orange on the way out. Only where a pointer can hover, so a tap
   on a touch screen cannot leave it standing. */
@media (hover: hover) {
	.al-hdr .al-mnav__item:hover > .al-mnav__link::after {
		transform: scaleX(1);
	}
}

/* The chevron after each name that opens a panel: the flyout toggle after
   a link (the link gives up its end padding to it, so the space between
   names stays 2 × --al-nav-pad), or an icon inside the brands button. It
   turns over while its panel is open. */
.al-mnav__item[data-al-fly] > a.al-mnav__link {
	padding-inline-end: 0;
}

.al-mnav__item[data-al-fly] > a.al-mnav__link::after {
	inset-inline-end: 0;
}

.al-hdr button.al-mnav__link::after {
	inset-inline-end: calc(var(--al-nav-pad) + var(--al-chev) + var(--al-s-1));
}

/* 24px wide, the smallest target WCAG 2.2 allows; the 4px past the
   chevron's own room reach into the name (whose click does the same) and
   the gap, so nothing moves. */
.al-mnav__item > .al-fly__toggle.al-fly__toggle {
	--al-tog-d: calc((var(--al-chev) + 2 * var(--al-s-1) - 24px) / 2); /* -2px: the box grows this much on each side */
	inline-size: 24px;
	block-size: 28px;
	margin-inline: var(--al-tog-d) calc(var(--al-nav-pad) - var(--al-s-1) + var(--al-tog-d));
	opacity: 1;
	pointer-events: auto;
}

.al-mnav__item > :is(.al-fly__toggle, .al-mnav__link) .al-ico.al-ico {
	inline-size: var(--al-chev);
	block-size: var(--al-chev);
	color: var(--al-ink-3);
	stroke-width: 2.5;
	transition: transform var(--al-t) var(--al-ease), color var(--al-t-fast) var(--al-ease);
}

.al-mnav__item:is(:hover, .is-open) > :is(.al-fly__toggle, .al-mnav__link) .al-ico.al-ico {
	color: var(--al-ink);
}

/* The panel: full width under the bar, content boxed like the bar (the
   bar's boxed width is its content, padding outside it). Hidden
   with display:none, so its thumbnails (loading=lazy) load on first open,
   not with the page. Fades in where @starting-style exists; elsewhere it
   simply appears. */
.al-mnav__panel {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	display: none;
	border-block-end: 1px solid var(--al-line);
	background: var(--al-hdr-glass-panel);
	-webkit-backdrop-filter: var(--al-hdr-blur);
	backdrop-filter: var(--al-hdr-blur);
	box-shadow: var(--al-sh-2);
	opacity: 0;
	translate: 0 -8px;
	transition: opacity var(--al-t) var(--al-ease), translate var(--al-t-slow) var(--al-ease), display var(--al-t) allow-discrete;
}

.al-mnav__item.is-open > .al-mnav__panel {
	display: block;
	opacity: 1;
	translate: 0 0;
}

@starting-style {
	.al-mnav__item.is-open > .al-mnav__panel {
		opacity: 0;
		translate: 0 -8px;
	}
}

.al-mnav__inner {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
	gap: var(--al-s-10);
	box-sizing: border-box;
	max-inline-size: calc(var(--al-w-commerce) + 2 * var(--al-s-6));
	margin-inline: auto;
	padding: var(--al-s-8) var(--al-s-6) var(--al-s-10);
}

.al-mnav__title {
	margin: 0 0 var(--al-s-3);
	color: var(--al-ink);
	font-size: var(--al-fs-h2);
	font-weight: 700;
	line-height: var(--al-lh-tight);
}

.al-hdr .al-mnav__all {
	display: inline-flex;
	align-items: center;
	gap: var(--al-s-1);
	color: var(--al-ink-2);
	font-size: var(--al-fs-sm);
	font-weight: 600;
}

.al-hdr .al-mnav__all:hover {
	color: var(--al-ink); /* the orange line under the words: al-tokens.css */
}

.al-mnav__all .al-ico.al-ico {
	inline-size: 16px;
	block-size: 16px;
}

/* One row of tiles from the start edge, each up to 132px, all of them
   narrowing together on smaller screens (seven fit at 1025px). */
.al-mnav__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 132px);
	justify-content: start;
	gap: var(--al-s-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.al-mnav__grid > li {
	margin: 0;
}

.al-hdr .al-mnav__tile {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: var(--al-s-3);
	block-size: 100%;
	box-sizing: border-box;
	padding: var(--al-s-2) var(--al-s-2) var(--al-s-3);
	border-radius: var(--al-r-lg);
	color: var(--al-ink);
	text-align: center;
}

.al-mnav__img {
	display: block;
	inline-size: 100%;
	max-inline-size: 120px;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--al-r-lg);
	background: var(--al-plate);
}

/* Packshots are on white: multiply dissolves the white into the plate. */
.al-mnav__img img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform var(--al-t-slow) var(--al-ease);
}

.al-mnav__tile:hover .al-mnav__img img {
	transform: scale(1.05);
}

.al-mnav__name {
	font-size: var(--al-fs-sm);
	font-weight: 600;
	line-height: 1.3;
}

.al-hdr .al-mnav__tile:is(:hover, [aria-current]) .al-mnav__name {
	text-decoration: underline;
	text-decoration-color: var(--al-orange-edge);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Children without thumbnails (the brands): large plain links. */
.al-mnav__grid.is-text {
	grid-auto-columns: minmax(0, 220px);
	gap: var(--al-s-8);
}

.al-hdr .is-text .al-mnav__tile {
	justify-items: start;
	padding: var(--al-s-1) 0;
	font-size: var(--al-fs-h3);
	text-align: start;
}

.is-text .al-mnav__name {
	font-size: inherit;
	font-weight: 700;
}

/* ---- AI assistant (bar) ---------------------------------------------- */

.al-hdr__ai .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 48px; /* the height of the search field in the same row */
	padding: 0 var(--al-s-3) 0 var(--al-s-4);
	border: 1px solid var(--al-orange-tint-brd);
	border-radius: var(--al-r-md); /* a button, like the field: pills are for removable things */
	background: var(--al-orange-tint);
	color: var(--al-orange-tint-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}

.al-hdr__ai .elementor-button::before {
	content: "";
	inline-size: 16px;
	block-size: 16px;
	flex: none;
	background: var(--al-orange-strong);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.al-hdr__ai .elementor-button:hover {
	background: var(--al-orange-tint-brd);
	color: var(--al-orange-tint-ink);
}

/* ---- Account + cart -------------------------------------------------- */

.al-hactions {
	display: flex;
	align-items: center;
	gap: var(--al-s-1);
}

/* Icons only in the bar; the words stay for screen readers. */
.al-hactions__label {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.al-hactions__icon {
	position: relative;
	display: block;
}

.al-cart-count {
	position: absolute;
	inset-block-start: -7px;
	inset-inline-end: -9px;
	display: grid;
	place-items: center;
	min-inline-size: 18px;
	block-size: 18px;
	padding-inline: 5px;
	border-radius: var(--al-r-pill);
	background: var(--al-orange);
	color: var(--al-ink); /* 6.33:1 */
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.al-cart-count.is-empty {
	display: none;
}

/* The account menu: a small card under the icon, its hover area bridged
   to the icon by the card's transparent top padding. The mini-cart (from
   1025px) is the same card, wider. */
.al-hacct,
.al-hcart {
	position: relative;
	display: flex;
	align-items: center;
}

.al-hacct > .al-fly__toggle.al-fly__toggle,
.al-hcart > .al-fly__toggle.al-fly__toggle {
	margin-inline: -12px 0;
}

.al-hacct__pop,
.al-hcart__pop {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	z-index: 2;
	display: none;
	padding-block-start: calc((var(--al-hdr-row) - 44px) / 2 + 2px); /* 2px under the first row */
	opacity: 0;
	translate: 0 -4px;
	transition: opacity var(--al-t) var(--al-ease), translate var(--al-t) var(--al-ease), display var(--al-t) allow-discrete;
}

.al-hacct.is-open > .al-hacct__pop,
.al-hcart.is-open > .al-hcart__pop {
	display: block;
	opacity: 1;
	translate: 0 0;
}

@starting-style {
	.al-hacct.is-open > .al-hacct__pop,
	.al-hcart.is-open > .al-hcart__pop {
		opacity: 0;
		translate: 0 -4px;
	}
}

.al-hacct__menu {
	min-inline-size: 220px;
	margin: 0;
	padding: var(--al-s-2);
	border: 1px solid var(--al-line);
	border-radius: var(--al-r-lg);
	background: var(--al-bg);
	box-shadow: var(--al-sh-pop);
	list-style: none;
}

.al-hacct__menu li {
	margin: 0;
}

.al-hacct__menu a {
	display: block;
	padding: var(--al-s-2) var(--al-s-3);
	border-radius: var(--al-r-sm);
	color: var(--al-ink-2);
	font-size: var(--al-fs-sm);
	line-height: 1.4;
	white-space: nowrap;
}

.al-hacct__menu .is-head {
	margin-block-end: var(--al-s-1);
	padding-block-end: var(--al-s-1);
	border-block-end: 1px solid var(--al-line-soft);
}

.al-hcart__card {
	display: flex;
	flex-direction: column;
	inline-size: 360px;
	max-block-size: min(70vh, 560px);
	padding: var(--al-s-3);
	border: 1px solid var(--al-line);
	border-radius: var(--al-r-lg);
	background: var(--al-bg);
	box-shadow: var(--al-sh-pop);
}

.al-hcart__card .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	min-block-size: 0;
}

.al-hcart__card .shopping-cart-widget-body {
	min-block-size: 0;
	overflow-y: auto;
}

/* The SKU line: Theme Settings' custom CSS paints its label orange (with
   !important) and the SKU 16px bold; quiet here, as on the cards. */
.al-hcart__card .wd-product-sku {
	font-size: var(--al-fs-sm);
	font-weight: 400;
	color: var(--al-ink-2);
}

.al-hcart__card .wd-product-sku .wd-label {
	font-weight: 400;
	color: var(--al-ink-3) !important;
}

.al-hcart__card .wd-product-sku .wd-sku {
	unicode-bidi: plaintext;
}

/* Added to cart (al-header.js): the icon nods and the count pops, instead
   of a popup. Without motion, the icon blinks once. */
.al-hactions__cart.is-added .al-hactions__icon {
	animation: al-cart-nod .6s var(--al-ease);
}

.al-hactions__cart.is-added .al-cart-count {
	animation: al-cart-pop .6s var(--al-ease);
}

@keyframes al-cart-nod {
	30% { transform: translateY(-4px) rotate(-10deg); }
	60% { transform: rotate(6deg); }
}

@keyframes al-cart-pop {
	40% { transform: scale(1.35); }
}

@keyframes al-cart-blink {
	50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
	.al-hactions__cart.is-added .al-hactions__icon {
		animation-name: al-cart-blink;
	}

	.al-hactions__cart.is-added .al-cart-count {
		animation: none;
	}
}

.al-hacct__menu .is-head a {
	color: var(--al-ink);
	font-size: var(--al-fs-body);
	font-weight: 700;
}

.al-hacct__menu a:hover {
	background: var(--al-surface);
	color: var(--al-ink);
}

/* ---- Desktop: two rows ---------------------------------------------- */

/* From 1025px (Raz, 2026-09-24): the logo, the search field on the page's
   centre line, then the AI button, account and cart; under a hairline the
   categories, centred on the same line. One grid, so both rows keep that
   centre whatever the ends measure. The AI button shares the tools cell
   with account and cart, kept clear of them by their width (--al-hdr-tools:
   the 96px al-hactions measures). */
@media (min-width: 1025px) {
	.al-hdr__main > .e-con-inner {
		--al-hdr-tools: 96px;
		display: grid;
		grid-template-columns: minmax(240px, 1fr) minmax(300px, 640px) minmax(240px, 1fr);
		grid-template-rows: var(--al-hdr-row) var(--al-hdr-nav);
		grid-template-areas: "logo search tools" "nav nav nav";
		align-items: center;
		gap: 0 var(--al-s-6);
	}

	.al-hdr__logo {
		grid-area: logo;
		justify-self: start;
	}

	.al-hdr__search {
		grid-area: search;
		min-inline-size: 0;
	}

	.al-hdr__ai,
	.al-hdr__actions {
		grid-area: tools;
		justify-self: end;
	}

	.al-hdr__ai {
		margin-inline-end: calc(var(--al-hdr-tools) + var(--al-s-3));
	}

	/* Account words (אודיו ליין page, al_header_account_text): beside the
	   icon, which gets the same padding as the AI button's sides. The AI
	   button carries an invisible copy (--al-acct-words, printed with the
	   words), so it moves over by exactly what the account link grew:
	   8px gap + 8px end padding - (44px box - 24px icon - 12px start
	   padding) = 8px, plus the words. The tools column may widen for long
	   words rather than run into the search field (near 1025px only: the
	   admin page allows 16 characters, which fit there). */
	.al-hactions__account:has(> .al-hactions__label.is-shown) {
		padding-inline: var(--al-s-3) var(--al-s-2);
	}
	.al-hactions__label.is-shown,
	.al-hdr__ai::after,
	.al-hdr__main > .e-con-inner::before {
		font-size: var(--al-fs-sm);
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
	}
	.al-hactions__label.is-shown {
		position: static;
		inline-size: auto;
		block-size: auto;
		overflow: visible;
		clip-path: none;
	}
	.al-hdr__main > .e-con-inner:has(.al-hactions__label.is-shown) {
		grid-template-columns: minmax(auto, 1fr) minmax(270px, 640px) minmax(auto, 1fr); /* 270: 16 characters fit at 1025px */
	}
	/* The categories row spans all three columns: without this its width
	   would count toward the tools column's minimum and pull the search
	   field off the centre line. */
	.al-hdr__main > .e-con-inner:has(.al-hactions__label.is-shown) > .al-hdr__nav {
		min-inline-size: 0;
	}
	.al-hdr__main > .e-con-inner:has(.al-hactions__label.is-shown) > .al-hdr__ai {
		display: flex;
		align-items: center;
		gap: 0; /* Elementor's 16px widget gap would add to the shift */
		min-inline-size: max-content; /* counts toward the tools column's minimum */
	}
	.al-hdr__main > .e-con-inner:has(.al-hactions__label.is-shown) > .al-hdr__ai::after {
		content: var(--al-acct-words);
		padding-inline-start: var(--al-s-2);
		visibility: hidden;
		pointer-events: none;
	}
	/* The same minimum in the logo column, so the two side columns stay
	   equal and the search field keeps the centre line: an invisible copy
	   of the words padded by the AI button's distance (--al-hdr-tools +
	   12px), its width (92px with "עוזר AI") and the 8px before the copy. */
	.al-hdr__main > .e-con-inner:has(.al-hactions__label.is-shown)::before {
		content: var(--al-acct-words);
		grid-area: logo;
		justify-self: start;
		min-inline-size: max-content;
		padding-inline-start: calc(var(--al-hdr-tools) + var(--al-s-3) + 92px + var(--al-s-2));
		visibility: hidden;
		pointer-events: none;
	}

	/* 10px a side at 1025, 22px from 1325. */
	.al-hdr__nav {
		--al-nav-pad: clamp(10px, 10px + (100vw - 1025px) / 25, 22px);
		grid-area: nav;
		align-self: stretch;
		border-block-start: 1px solid var(--al-line);
	}

	.al-mnav__list {
		justify-content: center;
	}

	/* Over Elementor's own width rule (.elementor-33369 .elementor-element.… img):
	   150px at 1025, the builder's 184 from 1433. */
	.elementor-location-header .al-hdr .al-hdr__logo.elementor-widget img {
		inline-size: clamp(150px, 150px + (100vw - 1025px) / 12, 184px);
	}
}

/* 1025–1279: the panels' intro column narrower. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.al-mnav__inner {
		grid-template-columns: 170px minmax(0, 1fr);
		gap: var(--al-s-6);
	}
}

/* ---- Tablet and phone: burger · logo · search · cart ----------------- */

.al-hburger > a {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	margin-inline-start: -10px;
	border-radius: var(--al-r-md);
	color: var(--al-ink);
}

@media (max-width: 1024px) {
	.al-hdr__main > .e-con-inner {
		gap: var(--al-s-1);
	}

	.al-hdr__burger {
		flex: none;
	}

	/* The logo gives way first (320px screens), never the buttons. */
	.al-hdr__logo {
		flex: 0 1 auto;
		min-inline-size: 0;
		margin-inline-end: auto;
	}

	/* Woodmart's bottom toolbar carries the account; the cart icon goes to
	   the cart page (al-header.js), so no mini-cart here. */
	.al-hacct,
	.al-hcart > .al-fly__toggle.al-fly__toggle,
	.al-hcart.al-hcart > .al-hcart__pop {
		display: none;
	}
}

/* ---- The phone drawer (Woodmart's, now just the 2026 menu) ------------ */

/* Before each name a plate: the category's picture, or a line icon
   (al-header.php). Packshots dissolve into it, as in the mega panels.
   The plate costs the names 40px, so the links give up some of their end
   padding by the arrows: the longest, "מסכי מחשב וארגונומיה" (173px at
   20px), still fits one line in the 300px drawer (375px screens and up).
   Narrower drawers (288px at 360) get a smaller plate. */
.mobile-nav {
	--al-dnav-plate: 32px;
	--al-dnav-gap: var(--al-s-2);
}

/* Closed, Woodmart only slides the menu off screen, so Tab still walked
   through its 31 links. Hidden once it has slid out (Woodmart's own 0.5s),
   shown at once when it opens. */
.mobile-nav.wd-side-hidden {
	visibility: hidden;
	transition: transform .5s cubic-bezier(.19, 1, .22, 1), visibility 0s linear .5s;
}

.mobile-nav.wd-side-hidden.wd-opened {
	visibility: visible;
	transition-delay: 0s;
}

@media (max-width: 374px) {
	.mobile-nav {
		--al-dnav-plate: 24px;
		--al-dnav-gap: 6px;
	}
}

.mobile-nav .wd-nav-mobile > li > a {
	padding-inline-end: var(--al-s-3);
}

.mobile-nav .al-dnav__img {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: var(--al-dnav-plate);
	block-size: var(--al-dnav-plate);
	margin-inline-end: var(--al-dnav-gap);
	overflow: hidden;
	border-radius: var(--al-r-sm);
	background: var(--al-plate);
	color: var(--al-ink-2);
}

.mobile-nav .al-dnav__img img {
	inline-size: 100%;
	block-size: 100%;
	max-block-size: none; /* Woodmart holds sub-menu images to 18px */
	margin: 0;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.mobile-nav .al-dnav__img .al-ico {
	display: block;
	inline-size: 18px;
	block-size: 18px;
}

/* Woodmart's own account item draws its icon as a glyph: on the same plate. */
.mobile-nav .wd-nav-mobile .menu-item-account > a::before {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: var(--al-dnav-plate);
	block-size: var(--al-dnav-plate);
	margin-inline-end: var(--al-dnav-gap);
	border-radius: var(--al-r-sm);
	background: var(--al-plate);
	color: var(--al-ink-2);
	font-size: 16px;
}

/* Sub-items without a plate (the brands) start where the others' names do. */
.mobile-nav .wd-nav-mobile .wd-sub-menu > li > a:not(:has(.al-dnav__img)) {
	padding-inline-start: calc(20px + var(--al-dnav-plate) + var(--al-dnav-gap)); /* Woodmart's 20px + the plate */
}

/* Sub-items: Woodmart's #838383 is 3.8:1 on white; ink-2 reads beside the
   pictures. */
html .mobile-nav .wd-nav-mobile .wd-sub-menu > li > a {
	color: var(--al-ink-2);
}

/* The submenu arrow points the way the reading goes: left, turning down
   while open (Woodmart's chevron points right, and rotates 90° open). */
html[dir="rtl"] .mobile-nav .wd-nav-opener:not(.wd-active)::after {
	transform: rotate(180deg);
}

/* The AI assistant, first in the list: the search panel's tinted button. */
.mobile-nav .wd-nav-mobile > li.al-dnav__ai {
	padding: var(--al-s-3) var(--al-s-5);
	border-block-end: 1px solid var(--brdcolor-gray-300);
}

.mobile-nav .wd-nav-mobile > li.al-dnav__ai > a {
	justify-content: center;
	gap: 6px;
	min-block-size: 44px;
	padding: 0 var(--al-s-4);
	border: 1px solid var(--al-orange-tint-brd);
	border-radius: var(--al-r-md);
	background: var(--al-orange-tint);
	color: var(--al-orange-tint-ink);
	font-size: var(--al-fs-body);
	font-weight: 700;
	line-height: 1;
	text-transform: none;
}

.mobile-nav .wd-nav-mobile > li.al-dnav__ai > a:hover {
	background: var(--al-orange-tint-brd);
	color: var(--al-orange-tint-ink);
}

.mobile-nav .al-dnav__ai .al-ico {
	display: block;
	inline-size: 18px;
	block-size: 18px;
	color: var(--al-orange-strong);
	fill: currentColor;
}

/* ---- Announcement strip (al_header_strip(), only when set) ----------- */

/* Above the header; the whole strip is the link when there is one. One
   line (32px) where the text fits, more lines where it does not: an
   ellipsis would cut an LTR run (a date, a price, a model) from its start.
   al-header.js keeps --al-strip-h at its real height. */
.al-strip {
	--wd-otl-color: var(--al-bg);
	--wd-otl-offset: -3px;
	background: var(--al-ink);
	color: var(--al-bg);
	font-size: var(--al-fs-sm);
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.al-strip .al-strip__text {
	display: block;
	margin: 0;
	padding: 6px var(--al-s-4);
	color: inherit;
	text-wrap: balance;
}

.al-strip a.al-strip__text {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.al-strip a.al-strip__text:hover {
	color: inherit;
	text-decoration-thickness: 2px;
}

/* WP's admin bar stops being fixed at 600px: the header sticks to the top. */
@media (max-width: 600px) {
	:root {
		scroll-padding-block-start: calc(var(--al-hdr-h) + var(--al-s-3));
	}

	.elementor-location-header {
		inset-block-start: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.al-hdr__main::before,
	.al-hdr .al-mnav__link,
	.al-hdr .al-mnav__link::after,
	.al-mnav__img img,
	.al-fly__toggle .al-ico.al-ico,
	.al-mnav__item > :is(.al-fly__toggle, .al-mnav__link) .al-ico.al-ico,
	.al-hactions__link,
	.al-hsearch__toggle.al-hsearch__toggle {
		transition: none;
	}

	/* Panels still fade, but do not move. */
	.al-mnav__panel,
	.al-hacct__pop,
	.al-hcart__pop {
		translate: none;
		transition-property: opacity, display;
	}

	@starting-style {
		.al-mnav__item.is-open > .al-mnav__panel,
		.al-hacct.is-open > .al-hacct__pop,
		.al-hcart.is-open > .al-hcart__pop {
			translate: none;
		}
	}

	.al-mnav__tile:hover .al-mnav__img img {
		transform: none;
	}
}
