/* Header Angê */
.ange-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
}
.ange-header {
  position: relative;
  z-index: 50;
  isolation: isolate;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.ange-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: var(--ange-line);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04);
}
.ange-header.is-hidden {
  transform: translateY(0);
}
.ange-header.is-visible {
  transform: translateY(0);
}
/* Não esconder enquanto megamenu/search estiverem abertos */
.ange-header.is-open {
  transform: translateY(0) !important;
}

/* Faixa de anúncio */
.ange-announce {
  background: var(--ange-ink);
  color: #F6F6F4;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.96;
  font-weight: 400;
}

/* LINHA ÚNICA: nav (esq) · marca (centro) · ícones (dir) */
.ange-header-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.ange-header-right {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

/* Ícones utilitários — 20-30% menores que padrão e-commerce (usamos 18px em vez de 24px) */
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--ange-ink);
  transition: background .25s var(--ease), color .25s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--ange-sage-soft); color: var(--ange-sage-ink); }
.bag-btn .bag-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--ange-ink);
  color: #F6F6F4;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--ange-bone);
}

/* Logo (imagem real) — centralizado, preto */
.ange-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  line-height: 0;
}
.ange-logo img {
  height: 42px;
  width: auto;
  display: block;
  /* logo original é branco; inverte para preto */
  filter: invert(1) brightness(0);
}

/* Navegação horizontal inline no header — alinhada à esquerda */
.ange-nav { display: flex; justify-content: flex-start; }
.ange-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
}
.ange-nav li {
  position: relative;
}
.ange-nav a {
  display: block;
  padding: 10px 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ange-ink);
  transition: color .25s var(--ease);
}
.ange-nav li::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 2px;
  height: 1px;
  background: var(--ange-ink);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.ange-nav li.is-active::after,
.ange-nav li:hover::after {
  left: 0; right: 0;
}

/* Mega-menu */
.megamenu-wrap {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #ffffff;
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease), box-shadow .25s var(--ease);
  }
.megamenu-wrap.is-open {
  max-height: 520px;
  box-shadow: 0 20px 40px rgba(20,20,20,0.08);
  border-top: 1px solid var(--ange-line); }
.megamenu-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 44px var(--gutter) 52px;
}
.megamenu-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 36px 48px;
}
.megamenu-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.megamenu-col a {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ange-ink);
  transition: color .25s var(--ease);
  display: inline-block;
  position: relative;
  padding-bottom: 3px;
  align-self: flex-start;
}
.megamenu-col a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--ange-ink);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.megamenu-col a:hover::after { left: 0; right: 0; }

/* Featured cards no mega-menu */
.megamenu-featured {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 16px;
  align-content: start;
}
.megamenu-feat-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ange-mist);
  position: relative;
  aspect-ratio: 3 / 4;
  transition: transform .4s var(--ease);
}
.megamenu-feat-card:hover { transform: translateY(-3px); }
.megamenu-feat-img {
  position: absolute;
  inset: 0;
}
.megamenu-feat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.megamenu-feat-card:hover .megamenu-feat-img img { transform: scale(1.04); }
.megamenu-feat-meta {
  position: absolute;
  left: 18px; bottom: 16px; right: 18px;
  color: #F6F6F4;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.megamenu-feat-meta .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 4px; }
.megamenu-feat-name {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* Variante textual (sem featured) */
.ange-header.menu-textual .megamenu-featured { display: none; }
.ange-header.menu-textual .megamenu-inner { grid-template-columns: 1fr; }

/* Mobile: header compacto (tratado em mobile.css) */

/* ============ SEARCH PANEL ============ */
.searchpanel-wrap {
  position: fixed;
  left: 0; right: 0;
  top: var(--header-total-h, 102px);
  background: #ffffff;
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease), box-shadow .25s var(--ease), transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 180;
  pointer-events: none;
}
.searchpanel-wrap.is-open { pointer-events: auto; }
.searchpanel-wrap.is-open {
  max-height: 620px;
  box-shadow: 0 20px 40px rgba(20,20,20,0.08);
  border-top: 1px solid var(--ange-line); }
.searchpanel-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.18);
  z-index: 170;
  animation: sp-fade .25s var(--ease);
}
@keyframes sp-fade { from { opacity: 0 } to { opacity: 1 } }
.searchpanel-inner {
  padding: 32px var(--gutter) 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.searchpanel-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ange-ink);
  padding: 10px 4px 14px;
}
.searchpanel-bar svg { color: var(--ange-ink); flex: 0 0 auto; }
.searchpanel-input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--ff);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.005em;
  color: var(--ange-ink);
  padding: 2px 0;
}
.searchpanel-input::placeholder { color: var(--ange-muted); font-weight: 300; }
.searchpanel-clear {
  border: 0; background: transparent;
  color: var(--ange-muted);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.searchpanel-clear:hover { background: var(--ange-mist); color: var(--ange-ink); }

.searchpanel-cols {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.4fr;
  gap: 48px;
}
.searchpanel-col-title { margin-bottom: 16px; }

.searchpanel-cats {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.searchpanel-cats a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--ange-ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.searchpanel-cats a:hover { border-bottom-color: var(--ange-ink); }
.searchpanel-cat-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ange-muted);
}

.searchpanel-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.searchpanel-sug {
  border: 1px solid var(--ange-line-2);
  background: transparent;
  color: var(--ange-ink);
  font-family: var(--ff);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.searchpanel-sug:hover { background: var(--ange-ink); color: #F6F6F4; border-color: var(--ange-ink); }

.searchpanel-prods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.searchpanel-prod {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ange-ink);
}
.searchpanel-prod-img {
  aspect-ratio: 3 / 4;
  background: var(--ange-mist);
  border-radius: var(--r-md);
  overflow: hidden;
}
.searchpanel-prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.searchpanel-prod:hover .searchpanel-prod-img img { transform: scale(1.04); }
.searchpanel-prod-name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ange-ink);
}
.searchpanel-prod-price {
  font-size: 12px;
  color: var(--ange-muted);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .searchpanel-cols { grid-template-columns: 1fr; gap: 28px; }
  .searchpanel-input { font-size: 18px; }
  .searchpanel-prods { grid-template-columns: repeat(3, 1fr); }
  .searchpanel-wrap.is-open { max-height: 92vh; overflow-y: auto; }
}
/* ============ END SEARCH PANEL ============ */

/* Close absoluto nos drawers (herda .icon-btn) */
.drawer-close-abs {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  display: none;
}
