/* Navbar base */
.navbar {
  background: #fff;
  padding: 12px 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: 30px;
}

/* Desktop nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 1rem;
}

/* Dropdown container */
.nav-links li {
  position: relative;
}

/* .cart-link {
  position: relative;
} */

.cart-count {
  background-color: #000;
  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;
}

/* Dropdown menu (desktop) */
.dropdown-menu {
  position: absolute;
  top: 120%;
  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: #0077b6; /* accent color */
  color: #fff;
}

/* Chevron spacing */
.dropdown i {
  font-size: 0.7rem;
  margin-left: 6px;
}


.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: #0077b6; */
  background-color: #0077b6;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #99CCFF;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: #0077b6;
  
  
}

.mobile-logo {
  display: none;
}

@media (max-width: 650px) {
  /* Navbar container */
  .nav-container {
    justify-content: space-between; /* logo left, toggle right */
    align-items: center;
  }

  /* Mobile logo */
  .mobile-logo {
    display: block;
    height: 35px;
    margin-right: 10px;
  }

  .navbar {
    height: 65px;
  }

  /* Hide desktop links initially */
  .nav-links {
    position: fixed;
    top: 120px; /* just below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 65px); /* full screen minus navbar */
    display: flex;
    flex-direction: column;
    align-items: center; /* center horizontally */
    justify-content: flex-start; /* start from top */
    gap: 20px;
    padding: 20px 0; /* space above/below links */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 998;
    text-align: center;
    margin: 0;       /* remove default ul margin */
    padding-left: 0; /* remove default ul padding */
    background: #fff;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Mobile links */
  .nav-links li {
    width: 100%;
    text-align: center; /* 🔥 this fixes it */
  }

  .nav-links li a {
    font-size: 1.2rem;
    padding: 12px 0;
    color: #000;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Dropdown menu for mobile */
  .dropdown-menu {
    display: none;
    position: static;
    background: #f5f5f5;
    width: 100%;
    border-radius: 0;
    padding: 0;
    margin: 0;
    flex-direction: column;
    text-align: center;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu li a {
    padding: 12px 0;
    font-size: 1rem;
    color: #000;
    text-align: center; /* center text */
  }

  .dropdown-menu li a:hover {
    background: #99CCFF;
    color: #000;
  }

  /* Show menu toggle */
  .menu-toggle {
    display: block;
    font-size: 28px;
    color: #0077b6;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle:hover {
    color: #005f8a;
  }
}
