/* ════════════════════════════════════════════════════════════════════════
   03-header.css — VOALA header (bílý bar 80 px + akce vpravo)

   Zdroj: Figma VOALA_WEB_2025 → HOMEPAGE header (Rectangle 674).
   - výška 80 px, bg WHITE_VOALA, box-shadow 0 0 5px 5px rgba(0,0,0,.05)
   - logo wordmark vlevo (výška 29 px), boční odsazení ~108 px (fluid)
   - vpravo: lupa, taška (WC), CZ/EN, hamburger — vše RED_VOALA

   Scoping: všechny styly jsou pod .vo-header — bez třídy se nic nestyluje
   (kontrakt z divi5-editable-sections). Sekce v Theme Builderu dostává
   CSS Class „vo-header-section".
   ════════════════════════════════════════════════════════════════════════ */

/* ── Divi sekce headeru — reset + sticky ─────────────────────────────── */
.vo-header-section.et_pb_section {
  padding: 0 !important;
  background: transparent !important;
  position: sticky;
  top: var(--adminbar-offset, 0px);
  z-index: var(--z-backdrop); /* 200 — nad obsahem, pod overlay menu */
  gap: 0 !important;
}

/* Přihlášený admin: sticky header drží pod WP lištou i než naběhne JS */
body.admin-bar .vo-header-section.et_pb_section {
  top: var(--adminbar-offset, 32px);
}
@media (max-width: 782px) {
  body.admin-bar .vo-header-section.et_pb_section {
    top: var(--adminbar-offset, 46px);
  }
}
.vo-header-section > .et_pb_row {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Bar ─────────────────────────────────────────────────────────────── */
.vo-header {
  height: 80px;
  background: var(--white-voala);
  box-shadow: var(--shadow-header);
  display: flex;
  align-items: center;
  font-family: var(--font-base);
}

.vo-header__inner {
  width: 100%;
  max-width: calc(var(--container) + 48px);  /* 1222 + 2×24 padding */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}

/* ── Logo ────────────────────────────────────────────────────────────── */
.vo-header .vo-logo {
  display: inline-flex;
  align-items: center;
  color: var(--red-voala);
  line-height: 0;
  text-decoration: none;
  transition: color var(--t-fast);
}
.vo-header .vo-logo:hover { color: var(--red-voala-dark); }
.vo-header .vo-logo svg { display: block; height: 29px; width: auto; }

/* ── Akce vpravo ─────────────────────────────────────────────────────── */
.vo-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.vo-header__actions .vo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--red-voala);
  position: relative;
  text-decoration: none;
  transition: color var(--t-fast), transform var(--t-fast);
}
.vo-header__actions .vo-icon-btn:hover {
  color: var(--red-voala-dark);
  transform: translateY(-1px);
}
.vo-header__actions .vo-icon-btn svg { display: block; }

/* Badge počtu položek v košíku — selektor sedí s WC fragments */
.vo-icon-btn .badge,
.vo-icon-btn [data-cart-count] {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--black-voala);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}
.vo-icon-btn [data-cart-count][hidden] { display: none; }

/* ── Přepínač jazyků CZ/EN ───────────────────────────────────────────── */
.vo-lang {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  letter-spacing: .7px;
  line-height: 1;
  white-space: nowrap;
}
.vo-lang a { text-decoration: none; transition: opacity var(--t-fast); }
.vo-lang a:hover { opacity: .75; }
.vo-lang .vo-lang__current,
.vo-lang a.vo-lang__current { color: var(--red-voala); font-weight: 500; }
.vo-lang .vo-lang__other,
.vo-lang a.vo-lang__other { color: var(--black-voala); font-weight: 400; }
.vo-lang .vo-lang__sep { color: var(--black-voala); font-weight: 400; margin: 0 1px; }

/* ── Hamburger ───────────────────────────────────────────────────────── */
.vo-header .vo-burger { width: 32px; }

/* ── Rozbalovací vyhledávání (toggle přes lupu) ──────────────────────── */
.vo-header { position: relative; flex-wrap: wrap; }

.vo-search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white-voala);
  box-shadow: var(--shadow-header);
  padding: 14px 24px;
}
.vo-search-bar[hidden] { display: none; }

.vo-search-bar__form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.vo-search-bar__form input[type="search"] {
  flex: 1 1 auto;
  height: 44px;
  padding: 0 16px;
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--black-voala);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--t-fast);
}
.vo-search-bar__form input[type="search"]:focus {
  border-color: var(--red-voala);
}
.vo-search-bar__form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--red-voala);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast);
}
.vo-search-bar__form button:hover { background: var(--red-voala-dark); }
.vo-search-bar__form button svg { width: 20px; height: 20px; }
