/* Mega Menu Styles */
.mega-menu-container {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1000;
}

.mega-menu-nav {
  display: flex;
  align-items: center;
  max-width: 1296px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  height: 50px;
  position: relative;
}

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

.mega-menu-nav-item {
  position: static;
  height: 100%;
}

.mega-menu-nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.menu-button {
  background-color: #e83e8c;
  color: white;
  border: none;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.menu-button i {
  font-size: 16px;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 1000;
  padding: 0;
}

.mega-menu-item:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-content {
  max-width: 1296px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
}

.mega-dropdown-column {
  flex: 1;
  padding: 15px 25px;
  min-width: 250px;
}

.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;
}

.mega-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-dropdown-item {
  margin-bottom: 10px;
}

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

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

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  position: relative;
  z-index: 1001;
}

/* Remover qualquer pseudo-elemento que possa estar causando o X */
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  display: none !important;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .mega-dropdown-content {
    flex-wrap: wrap;
  }

  .mega-dropdown-column {
    flex: 0 0 33.333%;
    min-width: 200px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .mega-menu-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 0 0;
    transition: left 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
  }

  .mega-menu-nav.active {
    left: 0;
  }

  /* Garantir que o menu mobile não seja duplicado */
  #mobileMenuBtn {
    display: none !important;
  }

  /* Garantir que o menu mobile seja exibido corretamente */
  .mega-menu-container {
    position: relative;
    z-index: 1000;
  }

  .mega-menu-nav-item {
    width: 100%;
    height: auto;
    position: relative;
  }

  .mega-menu-nav-link {
    padding: 15px;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .menu-button {
    width: 100%;
    justify-content: flex-start;
    background-color: transparent;
    color: #333;
  }

  .mega-dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding: 0;
  }

  .mega-menu-nav-item.active .mega-dropdown {
    display: block;
  }

  .mega-dropdown-content {
    flex-direction: column;
    padding: 0;
  }

  .mega-dropdown-column {
    flex: 1 0 100%;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }

  .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .menu-overlay.active {
    display: block;
  }
}

/* Fix for desktop megamenu display */
@media (min-width: 769px) {
  .mega-dropdown-content {
    display: flex;
    flex-wrap: wrap;
  }

  #belezaContent,
  #maquiagemContent,
  #labiosContent,
  #marcasContent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 20px;
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gap-6 {
    gap: 1.5rem;
  }

  .p-6 {
    padding: 1.5rem;
  }
}
