/* Custom Dropdown Menu Styling */
.mega-dropdown {
  position: static !important;
}

.mega-dropdown-menu {
  padding: 20px 15px;
  width: 100%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  border-radius: 8px;
  border-top: 3px solid var(--brand-color);
}

.product-dropdown {
  min-width: 250px;
  border-top: 3px solid var(--brand-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px 0;
  margin-top: 10px !important;
}

.product-dropdown .dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.product-dropdown .dropdown-item:hover {
  background-color: rgba(31, 168, 79, 0.1);
  color: var(--brand-color) !important;
  padding-left: 25px;
}

.product-dropdown .dropdown-item i {
  margin-right: 10px;
  font-size: 16px;
  color: var(--brand-color);
}

.product-dropdown .dropdown-divider {
  margin: 8px 0;
}

.product-dropdown .dropdown-header {
  color: var(--brand-color);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dark mode support */
body.dark-mode .product-dropdown {
  background-color: var(--boxColor);
  border-color: var(--brand-color);
}

body.dark-mode .product-dropdown .dropdown-item {
  color: var(--primaryColor);
}

body.dark-mode .product-dropdown .dropdown-item:hover {
  background-color: rgba(31, 168, 79, 0.2);
}

body.dark-mode .product-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Animation for dropdown */
.dropdown-menu {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
