/* ================= HEADER BASE ================= */

.header {
  background: #06461c;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all .3s ease;
}

/* efeito ao rolar */
.header.scrolled {
  background: rgba(6,70,28,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-top {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* LOGO */
.header-logo img {
  height: 64px;
}

/* NAV DESKTOP */
.header-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a,
.nav-btn {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

/* underline animado */
.nav-list a::after,
.nav-btn::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #9be49b;
  transition: .3s ease;
}

.nav-list a:hover::after,
.nav-btn:hover::after {
  width: 100%;
}


/* SUBMENU DESKTOP */

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background: #0b5c27;
  border-radius: 12px;
  padding: 8px 0;
  display: none;
  min-width: 220px;
  z-index: 1000;
}

.has-sub:hover > .sub-menu {
  display: block;
}
.has-sub {
  position: relative;
  padding-bottom: 0px; /* cria área de transição */
}



.sub-menu a {
  display: block;
  padding: 10px 16px;
  color: #fff;
}

/* BUSCA DESKTOP */
.desktop-search {
  min-width: 220px;
}

.header-search {
  display: flex;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
}

.header-search input {
  border: none;
  padding: 10px 16px;
  width: 180px;
  outline: none;
}

.header-search button {
  background: #0d6d2e;
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

/* CONTA */
.header-account a {
  color: #fff;
  font-size: 18px;
}

/* TOGGLE */
.header-toggle {
  display: none;
  background: none;
  border: none;
}

.header-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
}

/* ================= MOBILE ================= */

.mobile-search {
  display: none;
}

.header-nav-mobile {
  display: none;
}

/* MOBILE BREAKPOINT */
@media (max-width: 980px) {

  /* Ajusta topo */
  .header-top {
    height: 82px;
    justify-content: space-between;
  }
  /* LOGO */
.header-logo img {
  height: 64px;
  margin-top: 15px;
}

  /* Esconde nav desktop */
  .header-nav,
  .desktop-search,
  .header-account {
    display: none;
  }

  /* Mostra toggle */
  .header-toggle {
    display: block;
  }

  /* Busca mobile */
  .mobile-search {
    display: block;
    padding: 10px 16px;
    background: #06461c;
  }

  .mobile-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 30px;
    border: none;
  }

  /* NAV MOBILE */
  .header-nav-mobile {
    display: none;
    background: #06461c;
    padding: 16px 20px;
  }

  .header-nav-mobile.open {
    display: block;
  }

  .nav-list-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-list-mobile li {
  margin-bottom: 16px;
}

/* Links normais */
.nav-list-mobile a {
  display: block;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}

/* Botões pai */
.nav-list-mobile .nav-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  color: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
}



  /* Dropdown mobile */
  @media (max-width: 980px) {

  /* Remove underline animado no mobile */
.nav-list-mobile .nav-btn::after {
  content: none;
}
/* Remove qualquer fundo herdado */
.nav-list-mobile .nav-btn {
  background: none !important;
}

  .has-sub > .sub-menu {
    position: static;
    display: none;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-top: 6px;
  }

  .has-sub.open > .sub-menu {
    display: block;
  }

}
/* ========= BOTÃO PAI ========= */

./* Botão pai */
.nav-list-mobile .nav-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Seta nova */
.nav-list-mobile .has-sub > .nav-btn::after {
  content: "▾";
  position: static;
  font-size: 16px;
  margin-left: 10px;
  transition: transform .2s ease;
  background: none !important;
  color: #9be49b;
}


/* gira seta quando aberto */
.nav-list-mobile .has-sub.open > .nav-btn::after {
  transform: rotate(180deg);
}

/* destaque quando aberto */
.nav-list-mobile .has-sub.open > .nav-btn {
  color: #9be49b;
}

/* ========= SUBMENU ========= */

.nav-list-mobile .sub-menu {
  position: static;
  display: none;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 6px;
}

.nav-list-mobile .has-sub.open > .sub-menu {
  display: block;
}

.nav-list-mobile .sub-menu a {
  display: block;
  font-size: 16px;
  padding: 8px 0;
  opacity: 0.9;
}

.nav-list-mobile .sub-menu a:hover {
  opacity: 1;
}
.account-logged {
  position: relative;
}

.account-btn {
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.account-dropdown a {
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.account-dropdown a:hover {
  background: #f5f5f5;
}

.account-logged.open .account-dropdown {
  display: flex;
}



