/* =========================================================
   Header
   ========================================================= */
.eshet-header {
  position: relative;
  z-index: 80;
  background: var(--c-white);
}

/* A barra de anúncio fica no fluxo e rola embora naturalmente ao descer. */
.eshet-announcement {
  background: var(--c-beige);
  min-height: var(--header-announcement-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
}

/* A NAV é fixa no topo — sempre visível e acessível. Como usa position:fixed
   com altura própria constante, NÃO depende do pai nem sofre reflow durante o
   scroll: elimina o tremor por completo. */
.eshet-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 80;
}
.eshet-nav {
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease;
}
.eshet-nav-sticky.is-stuck .eshet-nav {
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.eshet-announcement__text {
  color: var(--c-gold);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* Nav bar */
.eshet-nav__inner {
  min-height: var(--header-nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: min-height .25s ease;
}
/* Estado compacto: encolhe a nav ao rolar (seguro — a nav está fixa no topo,
   encolher não desloca o conteúdo já rolado). */
.eshet-nav-sticky.is-stuck .eshet-nav__inner {
  min-height: 76px;
}
.eshet-nav__left { justify-self: start; }
.eshet-nav__center { justify-self: center; }
.eshet-nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Logo */
.eshet-logo--header svg,
.eshet-logo--header img { width: 150px; height: auto; transition: width .25s ease; }
.eshet-nav-sticky.is-stuck .eshet-logo--header svg,
.eshet-nav-sticky.is-stuck .eshet-logo--header img { width: 112px; }
.eshet-logo--footer svg,
.eshet-logo--footer img { width: 200px; height: auto; }

/* Hamburger — 3 traços, o do meio mais curto, alinhados à esquerda (Figma) */
.eshet-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px 0;
}
.eshet-menu-toggle__bar {
  height: 3px;
  background: var(--c-black);
  display: block;
  border-radius: 2px;
  transition: width .25s ease;
}
.eshet-menu-toggle__bar:nth-child(1) { width: 28px; }
.eshet-menu-toggle__bar:nth-child(2) { width: 18px; }
.eshet-menu-toggle__bar:nth-child(3) { width: 28px; }
.eshet-menu-toggle:hover .eshet-menu-toggle__bar:nth-child(2) { width: 28px; }

/* Icon buttons */
.eshet-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--c-black);
  padding: 4px;
}
.eshet-icon-btn svg { width: 26px; height: 26px; stroke-width: 1.4; }

/* Cart count badge */
.eshet-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--c-gold);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.eshet-cart-count[data-count="0"] { display: none; }

@media (max-width: 640px) {
  .eshet-nav__inner { min-height: 72px; }
  .eshet-logo--header svg,
  .eshet-logo--header img { width: 90px; }
  .eshet-nav__right { gap: 14px; }
}

/* =========================================================
   Search panel (abre pelo ícone de busca do header)
   ========================================================= */
.eshet-search-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--c-white);
  z-index: 101;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.eshet-search-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.eshet-search-drawer__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.eshet-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--c-black);
  padding-bottom: 12px;
}
.eshet-search-form__icon {
  display: inline-flex;
  color: var(--c-black);
}
.eshet-search-form__icon svg { width: 24px; height: 24px; }
.eshet-search-form__field {
  flex: 1;
  border: none;
  background: none;
  font-family: inherit;
  font-size: var(--fs-lg);
  letter-spacing: 1px;
  color: var(--c-black);
  padding: 4px 0;
}
.eshet-search-form__field::placeholder {
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: var(--fs-base);
}
.eshet-search-form__field:focus { outline: none; }
.eshet-search-form__submit {
  background: none;
  border: none;
  color: var(--c-gold);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s ease;
}
.eshet-search-form__submit:hover { color: var(--c-black); }
.eshet-search-drawer__close {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-black);
  padding: 0 4px;
}

/* O overlay já existe (.eshet-drawer-overlay); só garantimos que fique abaixo
   do painel de busca mas acima do conteúdo. */
.eshet-search-drawer + .eshet-drawer-overlay,
[data-search-overlay] { z-index: 100; }

body.eshet-search-open { overflow: hidden; }

@media (max-width: 640px) {
  .eshet-search-drawer__inner { gap: 10px; padding-top: 20px; padding-bottom: 20px; }
  .eshet-search-form__field { font-size: var(--fs-base); }
  .eshet-search-form__submit { display: none; }
}
