/* Estilos adicionais para corrigir o mega menu */

/* Estilos gerais do menu */
.mega-menu-container {
  position: relative;
  z-index: 1000;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.mega-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.mega-menu-item {
  /* position: relative; */
}

.mega-menu-link {
  display: block;
  padding: 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.mega-menu-link:hover {
  color: #e83e8c;
}

/* Botão de menu */
.menu-button {
  background-color: #e83e8c;
  color: white;
  border: none;
  padding: 0 20px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

/* Dropdown do mega menu */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-top: 2px solid #e83e8c;
}

/* Mostrar dropdown ao passar o mouse */
.mega-menu-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Conteúdo do dropdown */
.mega-dropdown-content {
  max-width: 1296px;
  margin: 0 auto;
  padding: 20px;
}

/* Grid para o conteúdo do dropdown */
#belezaContent,
#maquiagemContent,
#labiosContent,
#marcasContent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Colunas do dropdown */
.mega-dropdown-column {
  padding: 0;
}

/* Título das colunas */
.mega-dropdown-title {
  color: #e83e8c;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e83e8c;
  display: inline-block;
}

/* Lista de itens do dropdown */
.mega-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Itens da lista do dropdown */
.mega-dropdown-item {
  margin-bottom: 10px;
}

/* Links do dropdown */
.mega-dropdown-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: block;
}

.mega-dropdown-link:hover {
  color: #e83e8c;
}

/* Estilos para o menu mobile */
@media (max-width: 768px) {
  /* Esconder o mega menu no desktop no mobile */
  .mega-menu-container {
    display: none;
  }

  /* Submenu arrows for mobile */
  .mobile-sidebar-link.has-submenu {
    position: relative;
  }

  .mobile-sidebar-link.has-submenu::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
  }

  .mobile-sidebar-link.has-submenu.active::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Mobile menu submenu styles */
  .mobile-mega-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #f9f9f9;
  }

  .mobile-sidebar-link.has-submenu.active + .mobile-mega-submenu {
    max-height: 1000px; /* Valor grande o suficiente para mostrar todo o conteúdo */
  }
}

/* Remover o X bugado */
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  display: none !important;
}

/* Esconder elementos do menu mobile no desktop */
@media (min-width: 769px) {
  .mobile-sidebar {
    display: none !important;
  }

  .mobile-overlay {
    display: none !important;
  }

  #mobileMenuToggle {
    display: none !important;
  }
}

/* Estilo para a mensagem de carregamento */
.loading {
  padding: 10px;
  text-align: center;
  color: #666;
}
