/* Navbar base */
.navbar {
  background: #f2f5f8;
  padding: 6px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  justify-content: space-between; /* logo left, links right */
  align-items: center;
}

.logo img {
  height: 60px;
}

/* Desktop nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 1rem;
}

/* Dropdown container */
.nav-links li {
  position: relative;
}

/* Dropdown menu (desktop) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff; /* dark background */
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

/* Hover effect */
.dropdown-menu li a:hover {
  background: #0F257B; /* accent color */
  color: #fff;
}

/* Chevron spacing */
.dropdown i {
  font-size: 0.7rem;
  margin-left: 6px;
}

.cart-count {
  background-color: #0F257B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px; /* pill shape */
  line-height: 1;
  min-width: 20px;
  text-align: center;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.nav-links li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  color: #fff;
  /* background-color: #2a5d8f; */
  background-color: #0F257B;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #99CCFF;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: #2a5d8f;
  
  
}

.mobile-logo {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 50px;
    right: 0; /* attach to the right */
    width: 100%;
    height: calc(100vh - 90px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transform: translateX(100%); /* start hidden to the right */
    transition: transform 0.3s ease-in-out;
    z-index: 998;
  }

  .nav-links.active {
    transform: translateX(0); /* slide in from left */
  }

  .dropdown-menu li a {
    padding-left: 40px;
    font-size: 1rem;
    color: #000;
  }

  .dropdown-menu li a:hover {
    background: #99CCFF;
    color: #000;
  }

  .menu-toggle {
    display: block;
    margin-left: auto; /* push toggle to the RIGHT */
    z-index: 1000;
  }

  .mobile-logo {
    display: block;
    height: 20px; /* adjust size as needed */
    margin-right: 10px; /* spacing before the menu toggle */
  }

  .nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .dropdown-menu {
    display: none;
    background: #fff;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}




