/* ============================================================
   ХЕДЕР — announce-бар, лого-бар, категорії, мобільна панель
   ============================================================ */
.site-header {
  position: relative;
  z-index: var(--z-header);
  background: transparent;
}

/* Sticky лише pin — announce від’їжджає зі сторінкою (без max-height / без гойдалки) */
.site-header__pin {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow var(--t-fast) var(--ease);
}
.site-header.is-scrolled .site-header__pin {
  box-shadow: var(--shadow-card);
}

.announce {
  background: var(--c-cart);
  color: var(--c-announcetext);
  overflow: hidden;
}
.announce__row {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gap-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 30px;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.announce a { color: var(--c-announcetext); font-weight: 600; }
.announce__meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.announce__hours { color: color-mix(in srgb, var(--c-announcetext) 78%, transparent); }

.logobar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap-page);
  display: none;
  gap: 16px;
  box-sizing: border-box;
  /* Фіксована смуга лого. Не міняти height разом із розміром img. */
  height: 80px;
  overflow: hidden;
  align-items: center;
}
.logobar__pages {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
  flex-wrap: nowrap;
  min-width: 0;
  justify-self: start;
}
.logobar__page {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-family: var(--f-ui);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.logobar__page span {
  display: block;
}
.logobar__page svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.logobar__page:hover,
.logobar__page:focus-visible {
  border-color: var(--c-rose);
  color: var(--c-ink);
  text-decoration: none;
  outline: none;
}

.logobar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
  min-width: 0;
}
.logobar__link {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c-body) 80%, transparent);
}

.logobar__search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 220px;
  width: auto;
  max-width: 220px;
  min-width: 120px;
  min-height: 40px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
}
.logobar__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--c-ink);
  -webkit-appearance: none;
  appearance: none;
}
.logobar__search input::-webkit-search-decoration,
.logobar__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.logobar__search-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-muted);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-fast) var(--ease);
}
.logobar__search-btn:hover,
.logobar__search-btn:focus-visible {
  color: var(--c-ink);
  outline: none;
}

.logobar__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.logobar__lang button {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-muted);
  border-bottom: 1.5px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.logobar__lang button.is-active {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}
.logobar__lang button:hover,
.logobar__lang button:focus-visible {
  color: #A44D7A;
  border-bottom-color: #A44D7A;
  outline: none;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  justify-self: center;
  width: auto;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  /* рівно 2px до рамки смуги зверху і знизу */
  padding-block: 2px;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  display: block;
  width: auto;
  height: 76px; /* 80 − 2 − 2 */
  max-height: 76px;
  object-fit: contain;
  object-position: center;
  transform: none;
  /*
    Білий контур лого зливається з сірим --c-bg → здається, ніби лого на 30–50% менше.
    Легка тінь робить контур видимим без обрізання (на відміну від object-fit: cover).
  */
  filter: drop-shadow(0 0 0.6px rgb(58 47 24 / 0.45));
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.brand--mobile {
  justify-self: auto;
  width: auto;
  height: 56px;
  padding-block: 2px;
}
.brand--mobile .brand__logo {
  width: auto;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
}

@supports (-webkit-touch-callout: none) {
  .brand__logo {
    -webkit-touch-callout: none;
  }
}

@media (max-width: 389.98px) {
  .brand--mobile {
    height: 48px;
  }
  .brand--mobile .brand__logo {
    height: 44px;
    max-height: 44px;
  }
}

@media (min-width: 768px) and (max-width: 899.98px) {
  .logobar {
    height: 72px;
  }
  .brand {
    height: 72px;
  }
  .brand__logo {
    height: 68px;
    max-height: 68px;
  }
}

@media (min-width: 900px) and (max-width: 1099.98px) {
  .logobar {
    height: 72px;
  }
  .brand {
    height: 72px;
  }
  .brand__logo {
    height: 68px;
    max-height: 68px;
  }
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-fast) var(--ease);
}
.cart-btn:hover,
.cart-btn:focus-visible {
  color: var(--c-sage);
  outline: none;
}

.wish-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  flex: 0 0 auto;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--t-fast) var(--ease);
}
.wish-btn:hover,
.wish-btn:focus-visible {
  color: var(--c-sage);
  outline: none;
  text-decoration: none;
}
.wish-badge[hidden],
.wish-badge[data-empty="1"] {
  display: none;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--c-cart);
  color: var(--c-surface);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.main-nav {
  border-top: 1px solid var(--c-border);
  display: none;
  background: var(--c-surface);
}
.main-nav__row {
  max-width: var(--container-max); margin: 0 auto; padding: 8px var(--gap-page) 6px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: clamp(4px, 0.7vw, 12px); flex-wrap: nowrap;
}
.nav-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 140px;
  padding: 2px 2px 0;
}
.nav-item__link {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: clamp(9.5px, 0.72vw, 11.5px); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #1C3F1A;
  text-align: center; padding-bottom: 5px; border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-item__icon {
  display: block;
  width: clamp(29px, 2.7vw, 37px);
  height: clamp(29px, 2.7vw, 37px);
  flex: 0 0 auto;
  pointer-events: none;
  background-color: #1C3F1A;
  -webkit-mask-image: var(--nav-icon);
  mask-image: var(--nav-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
/* «Все для розсади» — тонка лінійна іконка, потрібен більший бокс */
.nav-item--rozsada .nav-item__icon {
  width: clamp(42px, 4vw, 56px);
  height: clamp(42px, 4vw, 56px);
  margin-block: -4px;
}
.nav-item__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.25;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
  color: #1C3F1A;
  font-weight: 700;
}
.nav-item__link:hover { border-color: #1C3F1A; text-decoration: none; }
.nav-item--sale .nav-item__link:hover { border-color: #1C3F1A; }
.nav-drop {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 4px);
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
  z-index: 30; display: flex; flex-direction: column; gap: 2px; min-width: 200px;
  padding: 10px 0; background: var(--c-surface);
  border: 1px solid var(--c-rose);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop a {
  display: block; padding: 9px 18px; font-size: 13px; font-weight: 500;
  color: var(--c-body); white-space: nowrap;
  text-decoration: none;
  transition: color var(--t-fast) ease, text-decoration-color var(--t-fast) ease;
}
.nav-drop a:hover {
  background: transparent;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-rose);
  text-underline-offset: 4px;
}

/* --- Мобільна панель хедера --- */
.header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 12px;
  box-sizing: border-box;
  height: 56px; /* як було: 8+40+8 */
  overflow: hidden;
}
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: transparent; position: relative; flex: 0 0 auto;
}

@media (min-width: 900px) {
  .logobar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .main-nav { display: block; }
  .header-mobile { display: none; }
  .announce { display: block; }
}
@media (min-width: 900px) and (max-width: 1099.98px) {
  .logobar {
    gap: 10px;
    padding-block: 0;
  }
  .logobar__pages {
    gap: 2px;
  }
  .logobar__page {
    font-size: 11.5px;
    gap: 5px;
    padding: 6px 8px;
  }
  .logobar__page svg {
    width: 15px;
    height: 15px;
  }
  .logobar__actions {
    gap: 8px;
  }
  .logobar__search {
    max-width: 150px;
    min-width: 110px;
    min-height: 36px;
    padding: 0 4px 0 10px;
  }
  .logobar__search input {
    font-size: 13px;
  }
  .logobar__search-btn {
    width: 30px;
    height: 30px;
  }
  .logobar__lang {
    gap: 6px;
  }
  .logobar__lang button {
    font-size: 12px;
  }
}
@media (max-width: 899.98px) {
  .announce { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__pin {
    transition: none;
  }
}
