/* Header variant: classic (template/blocks/header/classic.twig) — merged 26.11 with catalog-open, catbar and utility. Each look's
   rules below keep their old selectors with html[data-header-look] (the model names the look from header.category_row /
   header.catalog_button: classic | catalog-open | catbar | utility); the status top strip of utility goes with
   html[data-header-topbar="status"] (header.topbar_style). The classic look itself has no rules of its own (base elbuz_theme.css). */

/* ======================================================================== look catalog-open: header.catalog_button = wide */
/* Look catalog-open of the classic header — nav row starts with a sidebar-wide catalog button (template/blocks/header/classic.twig).
   html[data-header-look="catalog-open"]. */
@media (min-width: 992px) {
  html[data-header-look="catalog-open"] .et-header__inner { gap: var(--space-xl); }
}

html[data-header-look="catalog-open"] .et-nav__row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
html[data-header-look="catalog-open"] .et-nav__row .et-nav__list { flex: 1; min-width: 0; }
html[data-header-look="catalog-open"] .et-nav__row .et-menu-more__btn { padding-inline: var(--space-sm); font-size: var(--et-text-sm); }
html[data-header-look="catalog-open"] .et-nav__row .et-nav__item > a { padding-inline: var(--space-sm); font-size: var(--et-text-sm); }
html[data-header-look="catalog-open"] .et-nav__row .et-nav__item > a::after { left: var(--space-sm); right: var(--space-sm); }

/* Same width as the hero category sidebar (.et-hero-sidebar), so the button sits right above it on the home page */
html[data-header-look="catalog-open"] .et-nav .et-header__catalog-btn {
  flex: 0 0 280px;
  align-self: flex-start;
  justify-content: flex-start;
  margin-block: var(--space-xs);
}

@media (max-width: 991.98px) {
  /* Mobile: the nav row stays as a full-width catalog bar opening the drawer */
  html[data-header-look="catalog-open"] .et-nav { display: block; padding-bottom: 0; }
  html[data-header-look="catalog-open"] .et-nav__row .et-nav__list { display: none; }
  html[data-header-look="catalog-open"] .et-nav .et-header__catalog-btn { flex: 1 1 auto; justify-content: center; margin-block: var(--space-sm); }
}

/* ======================================================================== look catbar: header.category_row = bar */
/* Look catbar of the classic header — category bar inside the sticky header (template/blocks/header/classic.twig).
   html[data-header-look="catbar"]. */
html[data-header-look="catbar"] .et-header { border-radius: 0 0 var(--et-radius) var(--et-radius); }

html[data-header-look="catbar"] .et-catbar {
  margin-inline: 0;
  background: var(--et-surface);
  border-radius: 0 0 var(--et-radius) var(--et-radius);
  position: relative;
}
html[data-header-look="catbar"] .et-catbar__inner { display: flex; align-items: center; }
html[data-header-look="catbar"] .et-header__burger { display: none; width: 42px; height: 42px; padding: 0; justify-content: center; background: none; color: var(--et-header-text); border-radius: var(--et-radius-sm); }
html[data-header-look="catbar"] .et-header__burger:hover { background: color-mix(in srgb, var(--et-header-text) 12%, transparent); transform: none; }

html[data-header-look="catbar"] .et-catbar__all-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--et-accent);
  color: var(--et-accent-contrast, #fff);
  border: 0;
  border-radius: var(--et-btn-radius, var(--et-radius-sm));
  font-family: var(--et-font);
  font-size: var(--et-text-sm);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--et-transition);
}
html[data-header-look="catbar"] .et-catbar__all-btn:hover,
html[data-header-look="catbar"] .et-catbar__all-btn.is-active { background: var(--et-accent-hover); }

html[data-header-look="catbar"] .et-catbar__nav {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
html[data-header-look="catbar"] .et-catbar__nav::-webkit-scrollbar { display: none; }

html[data-header-look="catbar"] .et-catbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-md);
  color: var(--et-text);
  font-size: var(--et-text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--et-transition);
}
html[data-header-look="catbar"] .et-catbar__link:hover { color: var(--et-accent-text); }
html[data-header-look="catbar"] .et-catbar__link--accent { color: var(--et-sale, var(--et-danger)); font-weight: 700; }

/* Merge with the product sticky buy bar like the nav row does in classic */
html[data-header-look="catbar"] body:has(.et-sticky-bar.is-visible) .et-header,
html[data-header-look="catbar"] body:has(.et-sticky-bar.is-visible) .et-catbar { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

@media (max-width: 991.98px) {
  html[data-header-look="catbar"] .et-header,
  html[data-header-look="catbar"] .et-catbar { border-radius: 0; }
  /* Mobile: categories scroll in the bar, the full tree is in the drawer (the burger, the bottom nav) */
  html[data-header-look="catbar"] .et-catbar__all-btn, html[data-header-look="catbar"] .et-header__inner > .et-header__catalog-btn:not(.et-header__burger) { display: none; }
  html[data-header-look="catbar"] .et-header__burger { display: inline-flex; }
  html[data-header-look="catbar"] .et-catbar__link { padding: var(--space-sm) var(--space-md); }
}

/* Large store settings (R42): the catalog button next to the logo (header.catalog_button = row), marks before the items
   (header.bar_marks), own links after a divider (header.bar_links), the department whose mega menu is open */
html[data-header-look="catbar"] .et-catbar__mark { font-style: normal; font-size: var(--et-text-xs); font-variant-numeric: tabular-nums; color: var(--et-text-muted); }
html[data-header-look="catbar"] .et-catbar__sep { flex: none; width: var(--et-border-width); height: 1.25rem; margin-inline: var(--space-sm); background: var(--et-border); }
html[data-header-look="catbar"] .et-catbar__link--extra { font-weight: 500; }
html[data-header-look="catbar"] .et-catbar__link--extra.et-catbar__link--accent { font-weight: 700; }
html[data-header-look="catbar"] .et-catbar__link.is-active { color: var(--et-accent-text); box-shadow: inset 0 calc(var(--et-border-width) * -2) 0 currentColor; }
html[data-header-look="catbar"] .et-header--catalog-row .et-catbar__nav { margin-inline: calc(var(--space-md) * -1); }
@media (max-width: 991.98px) {
  html[data-header-look="catbar"] .et-header--catalog-row .et-catbar__nav { margin-inline: 0; }
}

/* Header shape «island» (header.shell, header/_axes.css): the category bar is a second plate under the main one — the same inset,
   colour, radius and shadow, a small gap between them; it no longer runs from edge to edge under the rounded plate */
html[data-header-shell="island"][data-header-look="catbar"] .et-catbar { padding-top: 0.5rem; background: transparent; border-radius: 0; box-shadow: none; }
html[data-header-shell="island"][data-header-look="catbar"] .et-catbar__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);
}
@media (max-width: 767.98px) { html[data-header-shell="island"][data-header-look="catbar"] .et-catbar__inner { padding-inline: 0.75rem; } }

/* ======================================================================== look utility: header.category_row = sections; the status strip: header.topbar_style */
/* Look utility of the classic header — buyer's header in three rows (template/blocks/header/classic.twig): utility row (status, phone, links,
   language/currency, VAT switch) · logo + wide search + icons · numbered section bar with the call-to-action at the end.
   Rows are split by hairlines, no plates. html[data-header-look="utility"]. Tokens only. */
/* Text and lines on the header colour come from the header text, not the page greys: on a coloured header (palette chrome
   "accent") the page --et-text-muted / --et-border vanish (owner, 28.10.2026) */
html[data-header-look="utility"], html[data-header-topbar="status"] { --et-header-line: color-mix(in oklab, var(--et-header-text) 24%, var(--et-header-bg)); }
html[data-header-topbar="status"] .et-utility {
  background: var(--et-header-bg); color: var(--et-header-text);
  border-bottom: var(--et-border-width) solid var(--et-header-line);
  font-size: var(--et-text-sm);
}
html[data-header-topbar="status"] .et-utility__inner { display: flex; align-items: center; gap: 0.5rem 1.5rem; min-height: 2.75rem; }
html[data-header-topbar="status"] .et-utility__status { display: flex; flex: none; align-items: center; gap: 0.5rem; margin: 0; color: color-mix(in oklab, var(--et-header-text) 80%, var(--et-header-bg)); white-space: nowrap; }
html[data-header-topbar="status"] .et-utility__led { flex: none; width: 0.5rem; height: 0.5rem; background: var(--et-success); border-radius: var(--et-radius-xs); }
html[data-header-topbar="status"] .et-utility__link { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; color: var(--et-header-text); text-decoration: none; white-space: nowrap; }
html[data-header-topbar="status"] .et-utility__phone { font-family: var(--et-font-mono); }
html[data-header-topbar="status"] .et-utility__link:hover { color: var(--et-header-accent, var(--et-accent)); }
html[data-header-topbar="status"] .et-utility__end { display: flex; flex: none; align-items: center; gap: 1rem; margin-left: auto; }
html[data-header-topbar="status"] .et-utility .et-header__selectors { display: flex; align-items: center; gap: 1rem; }
html[data-header-topbar="status"] .et-utility .et-header__selectors :is(form, .et-topbar__select-wrap) { margin: 0; }
html[data-header-topbar="status"] .et-utility .et-topbar__select-btn, html[data-header-topbar="status"] .et-utility .et-topbar__link { color: var(--et-header-text); white-space: nowrap; }
/* info links give way first on narrower desktops */
@media (max-width: 1279.98px) { html[data-header-topbar="status"] .et-utility__info { display: none; } }

html[data-header-look="utility"] .et-header { border-bottom: var(--et-border-width) solid var(--et-border-strong, var(--et-text)); box-shadow: none; }
html[data-header-look="utility"] .et-header__inner { gap: 1rem; padding-block: 0.75rem; }
html[data-header-look="utility"] .et-header__search-input { height: 3rem; border-width: var(--et-border-width); border-color: var(--et-text-muted); background: var(--et-surface); font-family: var(--et-font-mono); font-size: var(--et-text-sm); }
html[data-header-look="utility"] .et-header__search-input:focus { border-color: var(--et-text); box-shadow: 0 0 0 calc(var(--et-border-width) * 2) var(--et-text); }

html[data-header-look="utility"] .et-utility-bar { border-top: var(--et-border-width) solid var(--et-header-line); background: var(--et-header-bg); }
html[data-header-look="utility"] .et-utility-bar__inner { display: flex; align-items: stretch; min-width: 0; }
html[data-header-look="utility"] .et-utility-bar__nav { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
html[data-header-look="utility"] .et-utility-bar__nav::-webkit-scrollbar { display: none; }
html[data-header-look="utility"] .et-utility-bar__link {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding-right: 1.125rem; margin-right: 1.125rem;
  border-right: var(--et-border-width) solid var(--et-header-line);
  color: var(--et-header-text); font-weight: 600; text-decoration: none; white-space: nowrap;
}
html[data-header-look="utility"] .et-utility-bar__link i:not([class]) { font: 500 var(--et-text-xs) var(--et-font-mono); font-style: normal; } /* the numbers only: an icon keeps the font Font Awesome sets on its <i> */
html[data-header-look="utility"] .et-utility-bar__link i { color: color-mix(in oklab, var(--et-header-text) 85%, var(--et-header-bg)); } /* 85: >= 3 on a mid-tone brand header (red, R50) */
html[data-header-look="utility"] .et-utility-bar__link:hover, html[data-header-look="utility"] .et-utility-bar__link:hover i { color: var(--et-header-accent, var(--et-accent)); }
html[data-header-look="utility"] .et-utility-bar__cta {
  display: inline-flex; align-items: center; flex: none; padding: 0 1.25rem;
  background: var(--et-accent); color: var(--et-accent-contrast); font-weight: 700; text-decoration: none; white-space: nowrap;
  border-radius: var(--et-btn-radius, 0);
}
html[data-header-look="utility"] .et-utility-bar__cta:hover { background: var(--et-accent-hover); color: var(--et-accent-contrast); }

/* burger (mobile drawer): same rules as minimal.css */
html[data-header-look="utility"] .et-header__burger { display: none; width: 42px; height: 42px; padding: 0; justify-content: center; background: none; color: var(--et-header-text); border-radius: var(--et-radius-sm); }
html[data-header-look="utility"] .et-header__burger:hover { background: color-mix(in srgb, var(--et-header-text) 12%, transparent); transform: none; }

@media (max-width: 991.98px) {
  html[data-header-look="utility"] .et-header__burger { display: inline-flex; }
  /* the burger opens the same catalogue: no second button, the icons stay in the logo row (#236) */
  html[data-header-look="utility"] .et-header__catalog-btn:not(.et-header__burger) { display: none; }
  html[data-header-topbar="status"] .et-utility__status, html[data-header-topbar="status"] .et-utility__info, html[data-header-topbar="status"] .et-utility__end .et-header__selectors { display: none; }
  html[data-header-look="utility"] .et-header__inner { flex-wrap: wrap; gap: 0.5rem; }
  html[data-header-look="utility"] .et-header__search { order: 9; flex-basis: 100%; }
  html[data-header-look="utility"] .et-header__actions { margin-left: auto; }
  html[data-header-look="utility"] .et-utility-bar__link { min-height: 2.75rem; }
}

/* VAT switch (header/_vat.twig): two pressed-state buttons in one frame, the chosen one inked */
html[data-header-topbar="status"] .et-vat { display: inline-flex; margin: 0; border: var(--et-border-width) solid var(--et-border-strong, var(--et-text)); }
html[data-header-topbar="status"] .et-vat button {
  min-height: 2rem; padding: 0 .75rem; border: 0; white-space: nowrap; border-radius: 0; background: transparent; color: var(--et-header-text);
  font: 500 var(--et-text-xs) var(--et-font-mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
}
html[data-header-topbar="status"] .et-vat button[aria-pressed="true"] { background: var(--et-text); color: var(--et-bg); }
html[data-header-topbar="status"] .et-vat button:focus-visible { outline: 2px solid var(--et-accent); outline-offset: 2px; }

/* Large store settings (R42): promise line, own bar links after a divider, the open department */
html[data-header-topbar="status"] .et-utility__note { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-header-look="utility"] .et-utility-bar__sep { flex: none; align-self: center; width: var(--et-border-width); height: 1.25rem; margin-right: 1.125rem; background: var(--et-header-line); }
html[data-header-look="utility"] .et-utility-bar__link--extra { font-weight: 500; }
html[data-header-look="utility"] .et-utility-bar__link--accent { color: var(--et-sale, var(--et-danger)); }
html[data-header-look="utility"] .et-utility-bar__link.is-active { color: var(--et-header-accent, var(--et-accent)); box-shadow: inset 0 calc(var(--et-border-width) * -2) 0 currentColor; }
@media (max-width: 991.98px) { html[data-header-topbar="status"] .et-utility__note { display: none; } }

/* Section bar without the menu sections (header.bar_sections = false): the own links in a row of chips — icon + name, no dividers,
   spread over the bar; the sale-coloured first link and the divider belong to the sections and go with them */
html[data-header-look="utility"] .et-utility-bar__nav--chips { gap: 0.25rem 1.5rem; justify-content: space-between; }
html[data-header-look="utility"] .et-utility-bar__nav--chips .et-utility-bar__link { margin-right: 0; padding-right: 0; border-right: 0; font-weight: 500; }
html[data-header-look="utility"] .et-utility-bar__link--extra > i[class] { font-size: var(--et-text-sm); }
/* island shape (header/_axes.css): the cta is a pill on the page colour */
html[data-header-shell="island"][data-header-look="utility"] .et-utility-bar__inner { gap: 1.5rem; padding-block: 0.375rem; }
html[data-header-shell="island"][data-header-look="utility"] .et-utility-bar__cta { min-height: 2.5rem; border-radius: var(--et-radius-full); }
/* phones: a smaller cta leaves the strip room to show it scrolls (edge fade — elbuz_theme.css «Strips that scroll sideways») */
@media (max-width: 575.98px) {
  html[data-header-look="utility"] .et-utility-bar__cta { padding: 0 0.875rem; font-size: var(--et-text-sm); }
  html[data-header-look="utility"] .et-utility-bar__inner { gap: 0.75rem; }
}

/* ======================================================================== look classic: the catalog button inside the search
   (header.catalog_button = search) leaves the row without a menu button on phones — the burger is there (classic.twig) */
html[data-header-look="classic"] .et-header__burger { display: none; width: 42px; height: 42px; padding: 0; justify-content: center; background: none; color: var(--et-header-text); border-radius: var(--et-radius-sm); }
@media (max-width: 991.98px) { html[data-header-look="classic"] .et-header__burger { display: inline-flex; } }
