/* 🔹 Reset e Configurações Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🔹 Cabecalho Superior */
.cabecalho-superior {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 1rem;
  position: relative;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 🔹 Menu Superior */
.menu-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* 🔹 Links de Navegação */
.menu-item {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0 1rem;
}

.menu-item:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* 🔹 Elementos da Direita */
.elementos-direita {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* 🔹 Seletor de Idioma */
.selecionar-idioma {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.selecionar-idioma:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 🔹 Redes Sociais */
.redes-sociais {
  display: flex;
  gap: 1rem;
}

.botao {
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.botao:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.instagram { color: #E4405F; }
.instagram:hover { color: #FF598E; }

.facebook { color: #1877F2; }
.facebook:hover { color: #5490FF; }

.twitter { color: #1DA1F2; }
.twitter:hover { color: #6EC6FF; }

.tiktok { color: #000000; }
.tiktok:hover { color: #1C1C1C; }

/* 🔹 Icones de Carrinho e Area do Cliente */
.carrinho-compras,
.area-cliente {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.carrinho-compras:hover,
.area-cliente:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* 🔹 Cabecalho Principal */
.cabecalho-principal {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 0.5rem;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* 🔹 Logo */
.logo {
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0.5rem;
}

.logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logo-principal {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom: 2px solid rgba(30, 58, 138, 0.2);
  padding-bottom: 0.5rem;
}

/* 🔹 Menu Principal */
.menu-principal {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 1.2rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 🔹 Menu Desktop */
.menu-desktop {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 🔹 Botoes do Menu */
.menu-btn {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.menu-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 🔹 Botão Hamburguer */
.btn-hamburguer {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.btn-hamburguer:hover {
  transform: scale(1.1);
}

/* 🔹 Menu Ativo Mobile */
.menu-principal.ativo {
  display: flex !important;
  flex-direction: column;
  gap: 0.8rem;
  animation: slideDown 0.3s ease forwards;
}

/* 🔹 Responsividade */
@media (max-width: 768px) {
  .btn-hamburguer {
    display: block;
  }

  .menu-principal {
    display: none;
    flex-direction: column;
    padding: 1rem;
  }

  .menu-desktop {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .menu-btn {
    width: 100%;
    text-align: center;
  }

  /* Ajuste das redes sociais e outros itens no menu mobile */
  .elementos-direita {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }

  .elementos-direita .idiomas,
  .elementos-direita .redes-sociais {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .elementos-direita .idiomas {
    justify-content: flex-start;
  }

  .elementos-direita .redes-sociais {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .menu-desktop {
    padding: 0.6rem;
    gap: 5px;
  }

  .menu-btn {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* 🔹 Animação de Exibição */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
