/* Enhanced Submenu Styles - Preserving Original Brand */

/* Only style the submenu dropdowns */

.subcategory-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: block;
}

.nav-item-modern:hover .subcategory-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .nav-item-modern .subcategory-list {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
  }
}

.subcategory-list::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
}

.subcategory-list a {
  display: block;
  padding: 0.6rem 1rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.subcategory-list a:hover {
  background: #f3f4f6;
  color: #111827;
}

.subcategory-list a.active-sub {
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

/* Mobile submenu */
@media (max-width: 991px) {
  .subcategory-list {
    position: static;
    background: #f9fafb;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-left: 1rem;
  }

  .subcategory-list::before {
    display: none;
  }

  .subcategory-list a {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #6b7280;
  }

  .subcategory-list a:hover {
    background: transparent;
    color: #374151;
    transform: none;
  }
}

/* Remove all list styles */
ul, ol {
  list-style: none !important;
}

ul li, ol li {
  list-style: none !important;
  list-style-type: none !important;
}

ul li::before, ol li::before {
  display: none !important;
  content: none !important;
}

.navbar ul, .navbar ol, .navbar li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link-modern:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.subcategory-list a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}