.cat-1 .mega-dropdown { left: -50px;min-width: 1000px;max-width: none; }
.cat-2 .mega-dropdown { left: -250px;min-width: 1000px;max-width: none; }
.cat-3 .mega-dropdown { left: -450px;min-width: 1000px;max-width: none; }
.cat-4 .mega-dropdown { left: -630px;min-width: 1000px;max-width: none; }
.cat-5 .mega-dropdown { left: -20px;min-width: 400px;max-width: none; }
.cat-6 .mega-dropdown { left: -460px; }
.cat-7 .mega-dropdown { left: -460px; }
.cat-8 .mega-dropdown { left: -460px; }
.cat-9 .mega-dropdown { left: -440px; }

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  display: none;
  background: #ffffff;
  border-top: 2px solid #c2185b;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  padding: 18px 24px;
  z-index: 999;
  overflow-x: auto;
  text-align: left;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
  transform: none !important;
  width: 100%;

}

/* Show dropdown on hover */
.mega-hover:hover .mega-dropdown,
.mega-dropdown:hover {
   display: block;

}

/* Row layout */
.dropdown-row {
  display: flex;
  flex-wrap: wrap;
  max-width: 100vw;
  gap: 24px;
}

/* Column layout */
.dropdown-col {
  flex: 1 1 160px;
  min-width: 160px;
}

/* Subcategory (heading) */
.dropdown-col h4 {
  font-size: 18px;
  color: #7b1fa2;
  margin: 0 0 10px;
  font-weight: 700;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  position: relative;
  padding-left: 10px;
}

.dropdown-col h4::before {
  content: '▸';
  color: #c2185b;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 18px;
}

.dropdown-col a {
  display: block;
  position: relative;
  margin: 6px 0;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid transparent;
}

.dropdown-col a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;  
  transition: all 0.4s ease;
  z-index: 0;
}

.dropdown-col a:hover::before {
  left: 0;
}

.dropdown-col a:hover {
  color: #000;
}

.dropdown-col a span {
  position: relative;
  padding-left: 18px;
  display: inline-block;
  z-index: 1;
  color: #444;
  font-size: 15px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Optional: a subtle bullet or arrow */
.dropdown-col a span::before {
  content: '›';
  position: absolute;
  padding-left: 5px;
  left: 0;
  top: 0;
  font-size: 15px;
  color: #b91cc9;
  transition: transform 0.3s ease;
}

/* Hover effect */
.dropdown-col a:hover span {
  color: #000;
  transform: translateX(2px);
}

/* Animate arrow */
.dropdown-col a:hover span::before {
  transform: translateX(2px);
}



.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0;
  margin: 0;
  width: 100%;
  flex-wrap: nowrap;
  position: relative;
}

.navbar-nav > li {
  flex: 1 1 auto;
  text-align: center;
  margin: 0;
  padding: 0;
}


.navbar-nav > li > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 15px;
  padding: 0 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-transform: none;
}

.yamm.navbar {
  min-height: 36px;
  padding: 0;
}

.header-nav .container {
  padding-left: 0;
  padding-right: 0;
}

.navbar-toggle {
  padding: 6px 8px;
}


/* --------------------
   Mobile Responsiveness
-------------------- */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    border-top: 1px solid #ddd;
  }

  .navbar-nav > li {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .navbar-nav > li > a {
    justify-content: flex-start;
    padding: 10px 16px;
    height: auto;
  }

  .navbar-toggle {
    display: block;
  }
}



/* Mobile layout */
@media (max-width: 768px) {
  .mega-dropdown {
    position: static;
    box-shadow: none;
    padding: 12px;
    border-radius: 0;
  }

  .dropdown-row {
    flex-direction: column;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}