/* ============================================================
   SANTUCCI AROMA — CSS DO HEADER
   Cole em: Aparência → Personalizar → CSS Adicional
   ============================================================ */

/* ── ANNOUNCEMENT BAR ──────────────────────────────────── */
#sa-announce-bar {
  background: #faf9f4;
  border-bottom: 1px solid #e8e4dc;
  text-align: center;
  padding: 10px 40px;
  font-size: 13px;
  color: #3a3a3a;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  transition: height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  overflow: hidden;
}
#sa-announce-bar strong {
  font-weight: 600;
  letter-spacing: 0.05em;
}
.sa-announce-close {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: #999; line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.sa-announce-close:hover { color: #1c1c1c; }
#sa-announce-bar.sa-hidden {
  height: 0 !important;
  padding-top: 0; padding-bottom: 0;
  opacity: 0; border: none;
}

/* ── STICKY HEADER ──────────────────────────────────────── */
#sa-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

/* ── LINHA 1: TOPO VERDE ────────────────────────────────── */
.sa-header-top {
  background: #2d4a3e;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

/* Logo */
.sa-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}
.sa-logo-wrap img {
  height: 44px;
  width: auto;
}
.sa-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.1em;
}
.sa-logo-text em {
  font-style: italic;
  color: #a8c4a0;
}

/* Busca — absolutamente centralizada */
.sa-search-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  z-index: 1;
}
.sa-search-form {
  display: flex;
  align-items: center;
  position: relative;
}
.sa-search-input {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 44px 10px 16px;
  font-size: 14px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  border-radius: 0;
  transition: background 0.2s, border-color 0.2s;
  -webkit-appearance: none;
}
.sa-search-input::placeholder { color: rgba(255,255,255,0.5); }
.sa-search-input:focus {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.42);
}
.sa-search-btn {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; padding: 4px;
  display: flex; align-items: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.sa-search-btn:hover { color: #fff; }
.sa-search-btn svg {
  width: 18px; height: 18px;
}

/* Ações: login + sacola */
.sa-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  z-index: 2;
}
.sa-action-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  padding: 0; text-decoration: none;
  transition: color 0.2s;
}
.sa-action-btn:hover { color: #fff; }
.sa-action-btn svg {
  width: 22px; height: 22px;
}
.sa-action-label {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.sa-cart-wrap { position: relative; }
.sa-cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: #a8c4a0;
  color: #1c3a2c;
  font-size: 10px; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── LINHA 2: MENU CREME ────────────────────────────────── */
.sa-header-nav {
  background: #faf9f4;
  border-bottom: 1px solid #e8e4dc;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}
.sa-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  height: 52px;
}
.sa-nav-menu li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.sa-nav-menu li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #2a2a2a;
  text-decoration: none;
  padding: 0 16px;
  height: 52px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sa-nav-menu li a:hover,
.sa-nav-menu li.current-menu-item > a,
.sa-nav-menu li.current-menu-ancestor > a {
  color: #2d4a3e;
  border-bottom-color: #2d4a3e;
}

/* Seta nos itens com submenu */
.sa-nav-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 4px;
  opacity: 0.6;
}

/* Dropdown (submenu) */
.sa-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-top: 2px solid #2d4a3e;
  min-width: 210px;
  z-index: 9999;
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
}
.sa-nav-menu li:hover > .sub-menu { display: block; }
.sa-nav-menu .sub-menu li {
  height: auto;
  display: block;
}
.sa-nav-menu .sub-menu li a {
  height: auto;
  padding: 10px 22px;
  border-bottom: none;
  font-size: 13px;
  color: #3a3a3a;
  display: block;
}
.sa-nav-menu .sub-menu li a:hover {
  background: #f3f1ec;
  color: #2d4a3e;
  border-bottom: none;
}

/* ── RESPONSIVO ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .sa-header-top { padding: 0 20px; gap: 16px; }
  .sa-search-wrap { max-width: 300px; }
  .sa-header-nav { padding: 0 20px; overflow-x: auto; justify-content: flex-start; }
  .sa-action-label { display: none; }
}
@media (max-width: 640px) {
  .sa-search-wrap { max-width: 200px; }
  .sa-logo-text { font-size: 17px; }
  .sa-header-top { height: 60px; }
}
