/* Texts take the header tokens (--et-header-text on --et-header-bg, >= 4.5:1 on any header colour); the plug tile is the solid LED colour.
   Header, any variant: the build meter (header.meter, R50; blocks/header/_meter.twig, js/elbuz_meter.js). A chip in the actions with the
   build sum, and a light strip under the header (catbar, utility) — a warm LED line (--et-led, default amber) that fills from the left by
   the load --et-load (0…1) and casts a soft glow on the page below. Over the limit (html[data-et-meter="bad"]) the strip and the chip turn
   --et-led-bad and the strip flickers; reduced motion — no flicker. Motion: transform and opacity only. */
.et-header { --et-led: #ffcf7a; --et-led-bad: #e5482b; }
.et-header__meter { flex: none; width: auto; margin-inline-end: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.5rem; border-radius: var(--et-radius-sm, 8px); color: var(--et-header-text, inherit); text-decoration: none; }
.et-header__meter > i { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 0.5rem;
  background: var(--et-led); color: #2a1a02; font-size: 0.9375rem; }
html[data-et-meter="bad"] .et-header__meter > i { background: var(--et-led-bad); color: #fff; }
.et-header__meter-text { display: grid; line-height: 1.1; text-align: start; }
.et-header__meter-text small { font-size: var(--et-text-xs); color: color-mix(in oklab, var(--et-header-text, var(--et-text)) 85%, var(--et-header-bg, var(--et-bg))); font-weight: 600; white-space: nowrap; }
.et-header__meter-text b { font: 900 0.9375rem/1.1 var(--et-font-price, var(--et-font)); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--et-header-text, inherit); }
@media (max-width: 767.98px) { .et-header__meter-text small { display: none; } }
@media (max-width: 420px) { .et-header__meter { display: none; } }

.et-header__led { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; height: 3px; pointer-events: none;
  background: color-mix(in srgb, var(--et-led) 38%, transparent); }
.et-header__led i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--et-load, 0)); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(90deg, color-mix(in srgb, var(--et-led) 60%, #fff), var(--et-led)); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--et-led) 70%, transparent); }
.et-header__led::after { content: ""; position: absolute; left: 6%; right: 6%; top: 3px; height: 46px; opacity: 0.55;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--et-led) 38%, transparent), transparent 75%); }
html.dark-theme .et-header__led::after { opacity: 0.9; height: 70px; }
html[data-et-meter="bad"] .et-header__led i { background: linear-gradient(90deg, #ff9b6b, var(--et-led-bad)); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--et-led-bad) 70%, transparent);
  animation: et-led-flicker 2.4s steps(1) infinite; }
@keyframes et-led-flicker { 0%, 100% { opacity: 1; } 8% { opacity: 0.55; } 10% { opacity: 1; } 54% { opacity: 0.7; } 56% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .et-header__led i { transition: none; } html[data-et-meter="bad"] .et-header__led i { animation: none; } }
.et-header:not(.et-header--sticky):has(> .et-header__led) { position: relative; }

/* One-row category menu, any variant (data-et-menu-row: common/menu.twig, catbar, utility; js/blocks/header/_axes.js). From 992px
   the row never wraps and clips what sticks out (also without JS); the script hides what does not fit and lists it under «More»
   (.et-menu-more), the pinned items (data-et-pin) stay at the end. Below 992px the variant's own mobile view stays. The panel's
   containing block is outside the row, so the row's overflow does not clip it; the script places it under the button. */
@media (min-width: 992px) {
  [data-et-menu-row] { flex-wrap: nowrap !important; overflow: hidden !important; }
  [data-et-menu-row] > * { flex-shrink: 0; }
  [data-et-menu-row] > [hidden] { display: none !important; }
  [data-et-menu-row] :focus-visible { outline-offset: -0.125rem; } /* the row clips: the focus ring goes inside */
}
.et-menu-more__btn { display: inline-flex; align-items: center; gap: var(--space-xs); border: 0; background: none; font-family: inherit; white-space: nowrap; cursor: pointer; }
.et-nav__list .et-menu-more__btn { padding: var(--space-sm) var(--space-md); color: var(--et-text); font-size: var(--et-text-md); font-weight: 600; }
.et-menu-more__btn:hover, .et-menu-more__btn[aria-expanded="true"] { color: var(--et-accent-text); }
.et-menu-more__btn > i { font-size: 0.625rem; transition: transform var(--et-transition); }
.et-menu-more__btn[aria-expanded="true"] > i { transform: rotate(180deg); }
.et-menu-more__panel { position: absolute; z-index: 1040; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--et-more-rows, 10), auto);
  column-gap: var(--space-xl); margin: 0; padding: var(--space-md) var(--space-lg); list-style: none;
  background: var(--et-surface); border: var(--et-border-width) solid var(--et-border); border-radius: var(--et-radius); box-shadow: var(--et-shadow-lg); }
.et-menu-more__panel[hidden] { display: none; }
.et-menu-more__panel a { display: block; padding: var(--space-xs) 0; color: var(--et-text-secondary); font-size: var(--et-text-sm); text-decoration: none; white-space: nowrap; }
.et-menu-more__panel a:hover, .et-menu-more__panel a:focus-visible { color: var(--et-accent-text); }

/* Header shape «island» (header.shell = island → <html data-header-shell="island">; variants with .et-header > .container >
   .et-header__inner — dock and tiles keep their own shape). The header band stays sticky on the page colour, its row is a plate:
   --et-header-bg, rounded --et-island-radius, soft --et-shadow, inset by the container from the page edges. The top strip, the menu
   row (classic) and the section bar (utility) lie on the page colours: their header / topbar tokens point at the page.
   [data-header] doubles the specificity: this file comes before the variant files. */
html[data-header-shell="island"] { --et-island-inset: 0.75rem; --et-island-radius: var(--et-radius); }
html[data-header-shell="island"][data-header] .et-header {
  margin-inline: 0; padding-top: var(--et-island-inset); background: var(--et-bg); backdrop-filter: none;
  border: 0; border-radius: 0; box-shadow: none;
}
html[data-header-shell="island"][data-header] .et-header > .container > .et-header__inner {
  padding-inline: 1.25rem; background: var(--et-header-fill, var(--et-header-bg)); border-radius: var(--et-island-radius); box-shadow: var(--et-shadow);
}
html[data-header-shell="island"][data-header] :is(.et-topbar, .et-utility, .et-utility-bar, .et-nav) {
  --et-header-bg: var(--et-bg); --et-header-text: var(--et-text); --et-header-accent: var(--et-accent-text);
  --et-topbar-bg: var(--et-bg); --et-topbar-text: var(--et-text); --et-header-line: var(--et-border);
  margin-inline: 0; background: var(--et-bg); border-color: transparent; border-radius: 0; box-shadow: none;
}
@media (max-width: 767.98px) {
  html[data-header-shell="island"] { --et-island-inset: 0.5rem; --et-island-radius: var(--et-radius-sm); }
  html[data-header-shell="island"][data-header] .et-header > .container > .et-header__inner { padding-inline: 0.75rem; }
}

/* The store phone in the main header row (header.phone_row → header/_phone.twig, any variant): a green "online" dot, the number in
   the header text colour, under it the callback link or the first line of the hours. Only from 1200 px — narrower rows keep the
   search wide; phones have the contact button and the bottom bar. */
.et-header__phone { display: none; }
@media (min-width: 1200px) {
  .et-header__phone { flex: none; display: flex; align-items: center; gap: 0.625rem; margin-inline: 0.5rem; color: var(--et-header-text, var(--et-text)); }
  .et-header__phone-led { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--et-success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--et-success) 22%, transparent); }
  .et-header__phone-body { display: grid; justify-items: start; line-height: 1.2; }
  .et-header__phone-num { font-size: var(--et-text-lg); font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; }
  .et-header__phone-num:hover { color: var(--et-header-accent, var(--et-accent-text)); }
  .et-header__phone-cta, .et-header__phone-note { font-size: var(--et-text-xs); color: color-mix(in oklab, var(--et-header-text, var(--et-text)) 72%, var(--et-header-bg, var(--et-bg))); white-space: nowrap; }
  .et-header__phone-cta { color: var(--et-header-accent, var(--et-accent-text)); text-decoration: underline dashed; text-underline-offset: 0.2em; }
  .et-header__phone-more { align-self: flex-start; padding: 0.25rem; border: 0; background: none; color: inherit; font-size: 0.625rem; cursor: pointer; transition: transform 0.2s; }
  .et-header__phone-more[aria-expanded="true"] { transform: rotate(180deg); }
}
/* a profile chip in the row too (e.g. «Find my shade»): below 1400 px the phone squeezed the search to its button */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .et-header__inner:has(.et-profile-chip) .et-header__phone { display: none; }
}

/* Contacts card (header.contacts_card → header/_contacts.twig, opened from the header or top bar phone; js/elbuz_theme.js places it
   fixed under its phone). Two columns — phones, address, hours, e-mail | map, messengers, the contacts page; one below 48rem. */
.et-csheet {
  position: fixed; z-index: 1060; width: min(62rem, calc(100vw - 2rem)); overflow: auto; overscroll-behavior: contain;
  padding: 1.25rem; border-radius: var(--et-radius); background: var(--et-surface); color: var(--et-text);
  border: 1px solid var(--et-border); box-shadow: var(--et-shadow-lg); container-type: inline-size;
}
.et-csheet[hidden] { display: none; }
.et-csheet--one { width: min(30rem, calc(100vw - 2rem)); }
.et-csheet p { margin: 0; }
.et-csheet__title { font-size: var(--et-text-xl); font-weight: 700; margin-bottom: 1rem !important; }
.et-csheet__body { display: grid; gap: 1rem; }
@container (min-width: 48rem) { .et-csheet__body { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.et-csheet__col { display: grid; gap: 0.625rem; align-content: start; min-width: 0; }
.et-csheet__ic {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--et-surface-2, var(--et-bg)); color: var(--et-accent-text);
}
.et-csheet__phone {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: var(--et-card-radius, var(--et-radius-sm));
  border: 1px solid var(--et-border); color: inherit; text-decoration: none;
}
/* the theme's a:hover recolours links: the rows keep their text colour (the main one is accent on accent) */
.et-csheet__phone:hover { border-color: var(--et-accent); color: inherit; }
.et-csheet__phone--main:hover { color: var(--et-accent-contrast); background: var(--et-accent-hover, var(--et-accent)); }
.et-csheet__phone--main { background: var(--et-accent); border-color: var(--et-accent); color: var(--et-accent-contrast); }
.et-csheet__phone--main .et-csheet__ic { background: color-mix(in srgb, var(--et-accent-contrast) 18%, transparent); color: inherit; }
.et-csheet__text { display: grid; flex: 1; min-width: 0; }
.et-csheet__text b { font-size: var(--et-text-lg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.et-csheet__text small { font-size: var(--et-text-xs); opacity: 0.8; }
.et-csheet__go {
  flex: none; padding: 0.375rem 0.875rem; border-radius: var(--et-radius-full, 999px); font-size: var(--et-text-sm); font-weight: 600;
  background: var(--et-accent-contrast); color: var(--et-accent);
}
.et-csheet__callback, .et-csheet__page { width: 100%; justify-content: center; }
.et-csheet__card { display: flex; gap: 0.75rem; padding: 0.875rem; border-radius: var(--et-card-radius, var(--et-radius-sm)); background: var(--et-surface-2, var(--et-bg)); }
.et-csheet__card .et-csheet__ic { background: var(--et-surface); }
.et-csheet__card > div { display: grid; gap: 0.25rem; min-width: 0; font-size: var(--et-text-sm); }
.et-csheet__heading { font-weight: 700; font-size: var(--et-text-md, 1rem); }
.et-csheet__link { color: var(--et-accent-text); overflow-wrap: anywhere; }
.et-csheet__hours { display: grid; gap: 0.125rem; margin: 0; }
.et-csheet__hours > div { display: grid; grid-template-columns: minmax(4rem, auto) 1fr; gap: 1rem; }
.et-csheet__hours dt { font-weight: 400; color: var(--et-text-muted); }
.et-csheet__hours dd { margin: 0; font-weight: 600; }
.et-csheet__map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--et-card-radius, var(--et-radius-sm)); overflow: hidden; background: var(--et-surface-2, var(--et-bg)); }
.et-csheet__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.et-csheet__gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.625rem; padding: 1rem; text-align: center; font-size: var(--et-text-sm); }
.et-csheet__map iframe[src] + .et-csheet__gate { display: none; }
.et-csheet__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.5rem; }
.et-csheet__links a {
  display: grid; justify-items: center; gap: 0.375rem; padding: 0.75rem 0.5rem; border-radius: var(--et-card-radius, var(--et-radius-sm));
  border: 1px solid var(--et-border); color: inherit; text-decoration: none; font-size: var(--et-text-sm);
}
.et-csheet__links a:hover { border-color: var(--et-accent); color: var(--et-accent-text); }
.et-csheet__link:hover { color: var(--et-accent-text); text-decoration: underline; }
.et-csheet__links i { font-size: 1.25rem; color: var(--et-accent-text); }

/* Header button in the sale colour (header.cta.tone = sale → .et-cta--sale on the cta of utility, tabs, inline, command): the accent
   roles of the button point at --et-sale, so each variant keeps its own form */
.et-cta--sale {
  --et-accent: var(--et-sale); --et-accent-hover: color-mix(in oklab, var(--et-sale) 86%, #000);
  --et-accent-contrast: var(--et-sale-contrast, var(--et-on-status)); --et-accent-text: var(--et-sale); --et-header-accent: var(--et-sale);
}

/* The catalog button inside the search bar (header.catalog_button = search → .et-header__search--finder in catbar, utility, command):
   one grey rounded bar — the button a chip in the header colour on the left, the field transparent, a quiet magnifier at the end.
   :root lifts the field rules over the variant files (html[data-header="…"] .et-header__search-input). */
.et-header__search--finder {
  display: flex; align-items: center; gap: 0.25rem; padding: 0.3125rem;
  border-radius: var(--et-input-radius, var(--et-radius)); background: color-mix(in srgb, var(--et-header-text) 7%, transparent);
}
.et-header__search--finder:focus-within { box-shadow: 0 0 0 2px var(--et-accent); }
.et-header__search--finder > .et-header__catalog-btn {
  flex: none; min-height: 2.75rem; padding-inline: 1rem;
  border-radius: calc(var(--et-input-radius, var(--et-radius)) - 0.3125rem);
  background: var(--et-header-bg, var(--et-surface)); color: var(--et-header-text, var(--et-text)); box-shadow: var(--et-shadow-sm);
}
.et-header__search--finder > .et-header__catalog-btn:hover, .et-header__search--finder > .et-header__catalog-btn.is-active {
  background: var(--et-header-bg, var(--et-surface)); color: var(--et-header-accent, var(--et-accent-text)); transform: none;
}
.et-header__search--finder > .et-search { flex: 1; min-width: 0; }
:root .et-header__search--finder .et-header__search-input, :root .et-header__search--finder .et-header__search-input:focus {
  height: 2.75rem; border-color: transparent; background: transparent; box-shadow: none;
}
:root .et-header__search--finder .et-header__search-btn { background: transparent; color: var(--et-header-text, var(--et-text)); }
:root .et-header__search--finder .et-header__search-btn:hover { background: color-mix(in srgb, var(--et-header-text) 10%, transparent); }

/* One-row phone header (header.mobile_row → html[data-header-mobile="row"], any variant): below 992 px the main row is the burger,
   the logo and the icons; the search field, the search toggle and the top strips step aside (the phone is in the ☰ menu), the
   magnifier of _actions.twig opens the full-screen search. Icons get 44 px targets — the row has room without the field. */
.et-header__search-open { display: none; }
@media (max-width: 991.98px) {
  html[data-header-mobile="row"] :is(.et-header__search, .et-header__search-toggle, .et-header__tile--search, [data-block="topbar"]) { display: none !important; }
  html[data-header-mobile="row"] .et-header .et-header__inner { flex-wrap: nowrap; } /* .et-header: beats a variant's own wrap (utility) */
  html[data-header-mobile="row"] .et-header .et-header__logo { min-width: 0; flex: 0 1 auto; }
  html[data-header-mobile="row"] .et-header .et-header__logo img { max-width: 100%; height: auto; }
  html[data-header-mobile="row"] .et-header .et-header__actions { flex: 0 0 auto; margin-left: auto; }
  html[data-header-mobile="row"] .et-header__search-open { display: flex; padding: 0; border: 0; background: none; font-family: inherit; }
  html[data-header-mobile="row"] .et-header__actions .et-header__action-item { width: 2.75rem; height: 2.75rem; }
}
/* Language / currency switchers in the icon row (header/_actions.twig .et-header__selectors--row: looks without a top strip) — short
   names (UA · ₴ UAH) in the header colour, the lists open under them; on phones they are in the ☰ menu */
.et-header__selectors--row { display: flex; flex: none; align-items: center; gap: 0.5rem; font-size: var(--et-text-xs); white-space: nowrap; }
.et-header__selectors--row :is(form, .et-topbar__select-wrap) { margin: 0; }
.et-header__selectors--row .et-topbar__link { gap: 0.25rem; min-height: 2.75rem; color: color-mix(in srgb, var(--et-header-text, var(--et-text)) 85%, transparent); }
.et-header__selectors--row .et-topbar__select-btn > .fa-chevron-down { display: none; } /* compact: the globe and the code say it */
.et-header__selectors--row .et-topbar__link:hover { color: var(--et-header-text, var(--et-text)); }
.et-header__selectors--row .et-topbar__select-dropdown { top: calc(100% + 0.25rem); }
/* from 1200 px: at 992–1199 px the row has no room beside the field and the icons (float row: the icons ran out of the plate at 1024),
   the ☰ menu has them where the look shows the burger */
@media (max-width: 1199.98px) { .et-header__selectors--row { display: none; } }
/* The phone header, any variant (owner 25.11; R165 03.12). Below 768 px the search field takes a full-width row under the header row
   in the looks of the shared header row (classic, inline, tabs, tiles, command, centered-logo — Baymard M1; the model sets
   html[data-header-phone-search="row"]); a magnifier only when the design chose it (header.search_view = icon, header.mobile_row) —
   it opens the Elbuz smart search in one tap or the full-screen search (js/elbuz_search.js). The headers with a phone layout of their
   own (island, doors, side, tableau, focus, planes, scene) keep it. Below 992 px a phone icon (_actions.twig .et-header__phone-open): the contacts card,
   or a list of the store phones. The row never runs past its plate: the logo gives way (shrinks, a long text name is cut), the icons
   keep their 44 px (40 px below 400 px), the cart is an icon (its total shows from 768 px). */
.et-header__phone-open { display: none; }
/* the phone list of the icon (no contacts card): styled at every width — the desktop width ladder shows the icon too (below) */
.et-header__phones > summary { list-style: none; cursor: pointer; }
.et-header__phones > summary::-webkit-details-marker { display: none; }
.et-header__phones[open] > summary { color: var(--et-header-accent, var(--et-accent-text)); }
.et-header__phones-list {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 1050; display: grid; gap: 0.25rem; min-width: 13.5rem; padding: 0.5rem;
  border: var(--et-border-width) solid var(--et-border); border-radius: var(--et-radius); background: var(--et-surface); color: var(--et-text); box-shadow: var(--et-shadow-lg);
}
.et-header__phones-list a {
  display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: var(--et-radius-sm);
  color: inherit; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap;
}
.et-header__phones-list a:hover { background: var(--et-surface-2, var(--et-bg)); color: inherit; }
.et-header__phones-list i { color: var(--et-accent-text); font-size: 0.875rem; }
@media (max-width: 991.98px) {
  .et-header__phone-open { display: flex; position: relative; }
  .et-header :is(.et-header__inner, .et-header__dock) > .et-header__logo { min-width: 0; flex-shrink: 1; }
  .et-header :is(.et-header__inner, .et-header__dock) > .et-header__logo img { max-width: 100%; height: auto; }
  .et-header :is(.et-header__inner, .et-header__dock) > .et-header__logo .et-header__logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 767.98px) {
  .et-header .et-header__action-item--cart:has(.et-header__cart-sum) { width: 2.75rem; padding-inline: 0; } /* the total is hidden here */
  html:not([data-header-phone-search]) .et-header :is(.et-header__search, .et-header__search-toggle, .et-header__tile--search, .et-header__tile--search-icon) { display: none !important; }
  html[data-header] .et-header .et-header__inner { flex-wrap: nowrap; } /* one row: the logo gives way instead of the icons wrapping (no field here; beats the glass tabs and utility wrap) */
  .et-header__search-open { display: flex; padding: 0; border: 0; background: none; font-family: inherit; }
  /* R165: the field on its own row under the logo and the icons; the magnifier and the search toggle step aside */
  html[data-header-phone-search="row"] .et-header :is(.et-header__search-toggle, .et-header__tile--search-icon, .et-header__search-open) { display: none !important; }
  html[data-header-phone-search="row"][data-header] .et-header :is(.et-header__inner, .et-header__dock, .et-header__start) > .et-header__search,
  html[data-header-phone-search="row"][data-header] .et-header .et-header__tiles > .et-header__tile--search {
    display: flex !important; order: 99; flex: 0 0 100% !important; max-width: none !important; min-width: 0; margin: 0 0 0.25rem !important; padding-bottom: 0;
  }
  html[data-header-phone-search="row"][data-header] .et-header :is(.et-header__inner, .et-header__dock, .et-header__tiles):has(> :is(.et-header__search, .et-header__tile--search)) { flex-wrap: wrap; row-gap: 0.5rem; height: auto; }
  html[data-header-phone-search="row"][data-header] .et-header .et-header__search > :is(.et-search, form) { flex: 1; min-width: 0; }
}
/* room for the phone and the magnifier on a narrow phone (foyizi e2e 23.11: five 44 px icons wrapped the row): compare (below 480 px), the wishlist and the light / dark switch (below
   400 px) step aside — they are in the bottom bar (header.bottom_nav, core five by default), on the cards and in the ☰ menu; «Aa»
   and the profile stay (nowhere else) */
@media (max-width: 479.98px) {
  .et-header .et-header__actions .et-header__action-item--compare { display: none; }
}
@media (max-width: 399.98px) {
  .et-header .et-header__actions .et-header__action-item:not(.et-header__action-item--cart), .et-header .et-header__phone-open .et-header__action-item { width: 2.5rem; height: 2.5rem; }
  .et-header .et-header__action-item--cart:has(.et-header__cart-sum) { width: 2.5rem; }
  html[data-header="tiles"] .et-header .et-profile-chip { display: none; } /* tiles: the logo tile keeps a readable width */
  .et-header .et-header__actions :is(.et-header__action-item--wishlist, .et-header__theme-toggle) { display: none; } /* the ☰ menu has the theme switch */
  html[data-header="command"] .et-header .et-minicart > .et-header__action-item--cart { padding: 0 0.5rem; gap: 0.25rem; }
}

/* Search of the header (header.search_view → et_search_view, header/_search.twig), any variant.
   row — the field on a full-width line of its own, the last item of the main row: inside the header plate (the island shape keeps its
   width and radius), the row wraps; on phones the field already takes its own line (base rules), header.mobile_row hides it as before.
   The variant rules of the field (width, margins) give way here. */
.et-header__inner:has(> .et-header__search--row), .et-header__dock:has(> .et-header__search--row) { flex-wrap: wrap; row-gap: 0.625rem; }
.et-header .et-header__search--row { order: 99; flex: 0 0 100% !important; max-width: none !important; margin: 0 0 0.25rem !important; grid-column: 1 / -1; }
html[data-header-look="dock"] .et-header__dock:has(> .et-header__search--row) { height: auto; min-height: 4.5rem; padding-block: 0.625rem; }
/* icon — behind a magnifier (_search-toggle.twig, <details>): a panel under the header with the field; the thin and float rows keep
   their own panel (inline.css) */
html:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-toggle > summary { list-style: none; cursor: pointer; }
html:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-toggle > summary::-webkit-details-marker { display: none; }
html:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-toggle[open] > summary { color: var(--et-header-accent); }
html:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; padding-block: var(--space-md);
  background: var(--et-header-bg); box-shadow: var(--et-shadow-lg); border-radius: 0 0 var(--et-radius) var(--et-radius);
}
html:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-panel .et-header__search-box { max-width: 720px; margin-inline: auto; }
html[data-header-shell="island"]:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-panel { padding-block: 0.5rem 0; background: transparent; box-shadow: none; border-radius: 0; }
html[data-header-shell="island"]:not([data-header-look="minimal"]):not([data-header-look="dock"]) .et-header__search-panel > .container {
  max-width: min(calc(720px + 1.5rem), calc(100% - 2 * var(--et-island-inset))); padding: 0.75rem;
  background: var(--et-header-bg); border-radius: var(--et-island-radius); box-shadow: var(--et-shadow-lg);
}

/* header.phone_row: the big phone of the main row stands in for the phone of the top strip (owner 25.11: two phones on screen) —
   from 1200 px, where the row shows it (_phone.twig). Where the row hides it (a profile chip at 1200–1399 px; centered-logo and command
   below 1400 px) and below 1200 px the strip keeps its own phone. :has(#header .et-header__phone) — the row phone is rendered. */
@media (min-width: 1400px) {
  html:has(#header .et-header__phone) :is(.et-topbar__phone-wrap, .et-utility__phone) { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  html:not([data-header="centered-logo"]):not([data-header="command"]):has(#header .et-header__phone):not(:has(#header .et-profile-chip)) :is(.et-topbar__phone-wrap, .et-utility__phone) { display: none; }
}

/* Width ladder (common/header.twig «Header width ladder»): from 992 px the main row gives way instead of cutting or overlapping its items,
   one step at a time, as the script finds it needs — the cart total (the icon and its badge stay) · the phone block (→ its icon: the
   contacts card or the phone list, as on phones) · compare, wishlist, light / dark · the search field (→ the magnifier of _actions.twig;
   with the catalog button inside the bar only the field goes, the button stays). The script drops the classes below 992 px. */
@media (min-width: 992px) {
  .et-header.et-hfit-sum .et-header__cart-sum { display: none; }
  .et-header.et-hfit-phone .et-header__phone { display: none; }
  .et-header.et-hfit-phone .et-header__phone-open { display: flex; position: relative; }
  .et-header.et-hfit-icons .et-header__actions :is(.et-header__action-item--compare, .et-header__action-item--wishlist, .et-header__theme-toggle) { display: none; }
  .et-header.et-hfit-cta .et-header__end > .et-header__cta { display: none; } /* the row's button gives way before the search field does */
  .et-header.et-hfit-search .et-header__search:not(.et-header__search--finder, .et-header__search--row, .et-hsearch-pop),
  .et-header.et-hfit-search .et-header__search--finder > .et-search:not(.et-hsearch-pop) { display: none; }
  .et-header.et-hfit-search .et-header__search--finder { flex: none; max-width: none; }
  .et-header.et-hfit-search .et-header__search-open { display: flex; padding: 0; border: 0; background: none; font-family: inherit; }
}
/* the field the magnifier opened (js/elbuz_search.js sets top / left / width from the row): a bar under the row, over the page */
.et-header .et-hsearch-pop {
  position: absolute; z-index: 1045; display: block; flex: none; max-width: none; margin: 0; padding: 0.5rem;
  border-radius: var(--et-radius); background: var(--et-header-bg, var(--et-surface)); box-shadow: var(--et-shadow-lg);
}
.et-header.et-hsearch-open .et-header__search--finder:focus-within { box-shadow: none; } /* the ring is the field's, under the row */

/* Compact header, one list for every look (R160): the checkout's compact header (elbuz_checkout.css adds its own: no search, menu,
   icons) and a page whose main variant takes the page frame — <main data-et-frame="inset | stage"> of product.twig / category.twig
   (block.json variants[].frame). The top strips of all the looks, the announcement, the language / currency and «Aa» leave; the
   phone ☰ menu keeps the switchers. Search, catalogue and cart stay. */
body:has([data-ec-header="compact"], main[data-et-frame="inset"], main[data-et-frame="stage"]) :is(.et-topbar, .et-utility, .et-planes-strip, .et-side-strip, .et-tableau-strip, .et-scene-strip, .et-announcement, .et-header__selectors, .et-masthead__date, .et-header__ease-toggle) {
  display: none !important;
}
/* …and the category row, when the catalogue has another door (the catalogue button in the main row or inside the search); a row
   that is the only menu (the menu look without the button, centered-logo, doors, side) stays */
body:has(main[data-et-frame="inset"], main[data-et-frame="stage"]):has(.et-header__inner .et-header__catalog-btn, .et-header__search--finder) :is(.et-nav, .et-catbar, .et-utility-bar) {
  display: none !important;
}
body:has(main[data-et-frame="inset"], main[data-et-frame="stage"]) :is(.et-doors__links, .et-doors__note) { display: none; }
/* Stage: the header lies over the first plane of the variant (.et-stage-plane, lifted under it by --et-stage-lift of js/elbuz_theme.js)
   until the page scrolls (et-header--scrolled brings its colour back). Its texts take the plane's (--et-page-plane-text: a <style> of
   the variant with the tone of the photo, else the page text). An island shape keeps its island: only the band around it clears. */
body:has(main[data-et-frame="stage"]) .et-header.et-header:not(.et-header--scrolled) {
  background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html:not([data-header-shell="island"]) body:has(main[data-et-frame="stage"]) .et-header:not(.et-header--scrolled) {
  --et-header-bg: transparent; --et-header-fill: transparent;
  --et-header-text: var(--et-page-plane-text, var(--et-text)); --et-header-accent: var(--et-page-plane-text, var(--et-text));
  --et-header-line: color-mix(in oklab, var(--et-page-plane-text, var(--et-text)) 18%, transparent);
}

/* Baymard M2: on touch screens every header button, «Catalog» and the items of the menu rows take a 44 px tap at least (the narrow-phone
   40 px rule above gives way) */
@media (pointer: coarse) {
  html .et-header :is(.et-header__action-item, .et-header__catalog-btn, .et-header__burger) { min-width: 2.75rem; min-height: 2.75rem; }
  html :is(.et-catbar__link, .et-utility-bar__link, .et-header__tab, .et-header__link, .et-nav__item > a) { min-height: 2.75rem; }
}
