/* Cabeçalho da loja — replica o visual do banner principal (logo, nav, whatsapp). */
.site-header {
  position: relative;
  z-index: 500;
  background: linear-gradient(100deg, #ECE7E3 0%, #F3EBF1 46%, #D9C7D4 100%);
  border-bottom: 1px solid #ECE3E6;
}
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}
.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header-logo-img { height: 54px; width: 54px; object-fit: contain; }
.site-header-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.site-header-logo-word {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #2B2A28;
}
.site-header-logo-sub {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: #A98A98;
  margin-top: 0.15rem;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}
.site-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2B2A28;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header-link:hover { color: #9B5B78; }
.site-header-link.is-active { color: #9B5B78; border-bottom-color: #9B5B78; }
.site-header-chevron { font-size: 0.65rem; margin-left: 0.1rem; }

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-header-phone-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: #7D415F;
  border: 1px solid #E8D3DC;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-header-phone-btn:hover { background: #FBF3F6; border-color: #7D415F; }
.site-header-phone-btn i { font-size: 0.85rem; }

.site-header-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background: #7D415F;
  color: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.site-header-whatsapp-btn:hover { background: #6A3550; }
.site-header-whatsapp-btn i { font-size: 1rem; }

.site-header-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #2B2A28;
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Busca: um icone no header (perto de "Contato"/acoes) que abre um painel
   full-width logo abaixo da barra — mesmo componente serve desktop e
   mobile, so muda o tamanho do icone/alvo de toque. */
.site-header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E8D3DC;
  border-radius: 999px;
  background: transparent;
  color: #7D415F;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.site-header-search-btn:hover,
.site-header-search-btn.is-active {
  background: #FBF3F6;
  border-color: #7D415F;
}

.site-header-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 499;
  background: #fff;
  border-bottom: 1px solid #ECE3E6;
  box-shadow: 0 12px 28px -14px rgba(43,34,48,0.28);
  padding: 0.9rem 2rem;
}
.site-header-search-panel[hidden] { display: none; }
.site-header-search-form {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.site-header-search-form-icon {
  position: absolute;
  left: 1rem;
  color: #A98A98;
  font-size: 0.85rem;
  pointer-events: none;
}
.site-header-search-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 1rem 0 2.4rem;
  border: 1px solid #E8D3DC;
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #2B2A28;
  background: #FBF8F7;
  box-sizing: border-box;
}
.site-header-search-input:focus {
  outline: none;
  border-color: #7D415F;
  background: #fff;
}
.site-header-search-submit {
  flex-shrink: 0;
  height: 46px;
  padding: 0 1.4rem;
  background: #7D415F;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.site-header-search-submit:hover { background: #6A3550; }

/* Resultados ao vivo (ate 4 produtos + "ver mais"), aparecem abaixo do
   campo enquanto o cliente digita — sem precisar apertar Enter. */
.site-header-search-results {
  max-width: 1440px;
  margin: 0.75rem auto 0;
  border-top: 1px solid #ECE3E6;
}
.site-header-search-results[hidden] { display: none; }
.site-header-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.25rem;
  text-decoration: none;
  border-bottom: 1px solid #F3ECEE;
  transition: background 0.15s ease;
}
.site-header-search-result-item:hover { background: #FBF3F6; }
.site-header-search-result-img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: #F3ECEE;
}
.site-header-search-result-info { flex: 1; min-width: 0; }
.site-header-search-result-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2B2A28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header-search-result-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #7D415F;
  margin-top: 0.15rem;
}
.site-header-search-result-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.25rem 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7D415F;
  text-decoration: none;
}
.site-header-search-result-more:hover { color: #6A3550; }
.site-header-search-result-empty {
  padding: 0.85rem 0.25rem;
  font-size: 0.85rem;
  color: #999;
  text-align: center;
}

@media (max-width: 1180px) {
  .site-header-nav { gap: 1.15rem; }
  .site-header-link { font-size: 0.76rem; }
}

.site-whatsapp-fab {
  display: none;
}

@media (max-width: 900px) {
  /* No mobile o cabecalho e so logo + menu: os dois ocupam a altura toda da
     barra, em vez de duas pecinhas flutuando no meio de uma faixa vazia. */
  .site-header-inner { padding: 0 1rem; min-height: 66px; flex-wrap: wrap; gap: 0.75rem; }
  .site-header-logo { align-self: stretch; padding: 0.5rem 0; }
  .site-header-logo-img { height: 46px; width: 46px; }
  .site-header-logo-text { justify-content: center; }
  .site-header-logo-word { font-size: 1.5rem; letter-spacing: 0.07em; }
  .site-header-logo-sub { font-size: 0.62rem; letter-spacing: 0.3em; margin-top: 0.2rem; }
  .site-header-burger {
    align-self: stretch;
    height: auto;
    width: 46px;
    font-size: 1.75rem;
  }
  .site-header-whatsapp-btn { display: none; }
  .site-whatsapp-fab {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 600;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 1.6rem;
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.35);
    text-decoration: none;
  }
  .site-header-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-header.is-open .site-header-nav {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .site-header-link { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid #ECE3E6; }
  .site-header-link.is-active { border-bottom: 1px solid #ECE3E6; }
  .site-header-actions { margin-left: auto; }
  .site-header-phone-btn { display: none; }
  .site-header-whatsapp-btn span { display: none; }
  .site-header-whatsapp-btn { padding: 0.6rem; }
  .site-header-burger { display: flex; }
  .site-header-search-btn { width: 38px; height: 38px; }
  .site-header-search-panel { padding: 0.75rem 1rem; }
  .site-header-search-form { gap: 0.5rem; }
  .site-header-search-submit { padding: 0 1rem; font-size: 0; }
  .site-header-search-submit::before { content: '\f002'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.95rem; }
}
