/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonte geral */
body {
  font-family: 'Poppins', Arial, sans-serif;
}

/* Cabeçalho */
.header {
  width: 100%;
  height: 70px;
  background: #fec601;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1200px;
  background-color: #fec601;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo img {
  max-height: 40px;
}

/* Menu Desktop */
.nav.desktop-only .menu {
  list-style: none;
  display: flex;
  align-items: center;
  position: relative;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  text-decoration: none;
  color: #333;
  padding: 1px 15px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.menu > li > a i {
  margin-left: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 230%;
  left: 0;
  background: #fff;
  box-shadow: 5px 5px 15px 7px rgba(0, 0, 0, 0.1);
  display: none;
  flex-wrap: wrap;
  justify-content: space-between; /* ADICIONADO para distribuir melhor */
  width: 450px;
  padding: 10px 20px;
  z-index: 10;
}


.dropdown-menu a {
  width: 45%;
  margin: 10px 0;
  text-decoration: none;
  color: #555;
  font-size: 15px;
  transition: color 0.3s;
}

.dropdown-menu a:hover {
  color: #000;
}

/* Área direita: busca + redes sociais */
.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
}


.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  padding: 4.5px 12px;
  border: 1px solid #fff;
  border-right: none;
  border-radius: 20px 0 0 20px;
  outline: none;
}

.search-form button {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 0 20px 20px 0;
  padding: 5px 12px;
  cursor: pointer;
  color: #000;
}

.social-icons a {
  color: #000;
  margin-left: 10px;
  font-size: 25px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #333;
}
.search-suggestions {
  position: absolute;
  top: 100%;  /* Alinha logo abaixo da caixa de busca */
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
}

.search-suggestions a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.search-suggestions a:hover {
  background-color: #f5f5f5;
}
#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 9999;
  display: none;
  border-radius: 0 0 8px 8px;
}

.suggestion-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.suggestion-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

.suggestion-item:hover {
  background-color: #f8f8f8;
}


/* Corrige a posição da caixa de sugestões */
.ui-autocomplete {
  position: absolute;
  z-index: 10000;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
}

/* Estilo de cada item */
.ui-menu-item-wrapper {
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

/* Hover (quando passa o mouse em cima) */
.ui-menu-item-wrapper:hover {
  background-color: #f1f1f1;
}

/* Estilo se precisar de barra de rolagem */
.ui-autocomplete {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

/* Chrome/Edge scrollbar */
.ui-autocomplete::-webkit-scrollbar {
  width: 6px;
}
.ui-autocomplete::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* Hambúrguer mobile */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* Menu Mobile */
.nav-mobile {
  background: #fff;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  display: none;
  flex-direction: column;
  z-index: 9;
}

.nav-mobile ul.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.nav-mobile ul.menu li {
  margin: 10px 0;
}

.nav-mobile ul.menu li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.nav-mobile .mobile-search {
  margin-top: 15px;
}

.nav-mobile .mobile-search input {
  width: 75%;
  padding: 5px 15px;
  margin-bottom: 1px;
  border: 1px solid #ccc;
  border-radius: 25px; /* arredondado */
  font-size: 15px;
}

.nav-mobile .mobile-search button {
  background: #fec601;
  color: #000;
  border: none;
  padding: 10px 15px;
  border-radius: 25px; /* arredondado */
  width: 25%;
  cursor: pointer;
  font-size: 16px;
  margin-top: 5px;
}

.nav-mobile .social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.nav-mobile .social-icons a {
  font-size: 24px;
  color: #333;
}

/* Responsividade */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
    align-items: center;
  }
  
  .header-container {
    justify-content: space-between;
  }

  .hamburger {
    margin-left: auto;
  }
}
