/* ============================================================
   HEADER redesign — Herbarium · Partia 1 (klasy hb-*, globalny)
   ============================================================ */
.hb-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

/* — Announcement bar — */
.hb-announce { background: #f0eae0; color: #2c2a26; font-family: "Jost", sans-serif; }
.hb-announce__inner { display: flex; align-items: center; justify-content: center; min-height: 37px; padding: 8px 24px; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; text-align: center; }

/* — Header shell — */
.hb-header { background: #fff; font-family: "Jost", sans-serif; color: #2c2a26; }

/* TOP ROW */
.hb-top__inner { display: flex; align-items: center; justify-content: flex-start; gap: 32px; min-height: 72px; padding-block: 8px; }
.hb-top__inner .hb-actions { margin-left: auto; }
.hb-top__inner--checkout { justify-content: center; }
.hb-logo { display: inline-flex; flex-shrink: 0; }
.hb-logo img { height: 48px; width: auto; display: block; }

.hb-header .hb-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.hb-header .hb-nav a { color: #2c2a26; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.5; transition: color .15s; }
.hb-header .hb-nav a:hover { color: #c97b8a; }
/* Panel menu mobilnego — na desktopie ukryty (nawigacja jest w górnym i dolnym pasku) */
.hb-nav__mobile { display: none; }

.hb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* cart */
.hb-cart { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; height: auto; padding: 6px 12px; border: 0; background: transparent; border-radius: 8px; color: #2c2a26; cursor: pointer; font-family: inherit; }
.hb-cart:hover { background: #faf8f5; }
.hb-cart__icon { position: relative; display: inline-flex; }
.hb-cart__icon svg { width: 16px; height: 16px; }
.hb-cart__badge { position: absolute; top: -6px; right: -7px; min-width: 12px; height: 12px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: #c97b8a; color: #faf8f5; font-family: "Poppins", "Jost", sans-serif; font-size: 8px; font-weight: 500; line-height: 1; }
.hb-cart__badge[hidden] { display: none; }
.hb-cart__total { font-family: var(--font-family-body, Jost); font-size: var(--font-size-text-sx, 12px); font-style: normal; font-weight: 500; line-height: 150%; text-transform: uppercase; white-space: nowrap; }
.hb-cart__total .woocommerce-Price-amount { font-weight: 500; }

/* burger (mobile only) */
.hb-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 48px; border: 0; background: transparent; border-radius: 8px; color: #2c2a26; cursor: pointer; }
.hb-burger svg { width: 22px; height: 22px; }
.hb-burger span { font-size: 11px; text-transform: uppercase; }
.hb-burger__close { display: none; }
.hb-nav.is-open ~ .hb-actions .hb-burger__open { display: none; }
.hb-nav.is-open ~ .hb-actions .hb-burger__close { display: block; }
.hb-nav.is-open ~ .hb-actions .hb-burger__close svg { display: block; }

/* BOTTOM ROW */
.hb-bottom { background: #fff; border-top: 1px solid #f0eae0; border-bottom: 1px solid #f0eae0; }
.hb-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; }
.hb-cats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hb-cat { color: #2c2a26; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; transition: color .15s; }
.hb-cat:hover { color: #c97b8a; }
.hb-bottom__cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hb-indiv { display: inline-flex; align-items: center; gap: 8px; color: #2c2a26; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; padding: 8px 12px; white-space: nowrap; }
.hb-indiv svg { width: 16px; height: 16px; }
.hb-indiv:hover { color: #c97b8a; }
.hb-cta { display: inline-flex; align-items: center; height: 40px; padding: 8px 18px; border-radius: 8px; background: #c97b8a; color: #fff; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; transition: background .15s; }
.hb-cta:hover { background: #b96a79; }

/* ── MOBILE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* header przyklejony na każdej podstronie — menu zawsze w zasięgu kciuka */
  .hb-header { position: sticky; top: 0; z-index: 900; }
  /* panel na pełną szerokość, pod paskiem headera (offset ustawia JS) */
  .hb-header .hb-nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: auto;
    background: #fff; z-index: 1000;
    padding: 8px 24px 32px; overflow-y: auto; overscroll-behavior: contain;
    border-top: 1px solid #f0eae0;
  }
  .hb-header .hb-nav.is-open { display: block; }
  /* menu desktopowe (Blog/Kontakt) chowamy — na mobile jest w bloku dolnym */
  .hb-header .hb-nav > ul { display: none; }
  .hb-nav__mobile { display: block; }
  /* .site-nav ul z main.css i bazowe .hb-nav ul narzucają flex/gap — stąd wyższa specyficzność */
  .hb-header .hb-nav .hb-nav__list { display: block; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
  .hb-header .hb-nav .hb-nav__list a { display: block; padding: 14px 0; font-size: 14px; text-align: left; border-bottom: 0; }
  .hb-nav__cta {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 12px 0 0; padding: 14px 16px;
    border: 1px solid #e7e7e7; border-radius: 8px;
    color: #2c2a26; text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  }
  .hb-nav__cta svg { width: 16px; height: 16px; flex-shrink: 0; }
  /* kreska na pełną szerokość panelu (padding 24px odbity ujemnym marginesem) */
  .hb-header .hb-nav .hb-nav__list--extra { margin: 24px -24px 0; padding: 20px 24px 0; border-top: 1px solid #f0eae0; }
  .hb-burger { display: inline-flex; order: 3; }
  .hb-bottom { display: none; }
  body.has-menu-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .hb-announce__inner { font-size: 11px; }
  .hb-top__inner { gap: 8px; }
}
