/* ===== Navbar Base ===== */
.navbar {
  background: #052146; /* dark navy */
  /* background: #ADD8E6; */
  padding: 6px 20px; /* reduced from 12px */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
  height: 60px;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo smaller */
.logo img {
  height: 40px; /* reduced from 50px */
}

/* ===== Desktop Nav Links ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px; /* slightly smaller spacing */
  font-size: 0.95rem; /* slightly smaller text */
}

/* Nav link style */
.nav-links li a {
  color: #fff; /* white links */
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px; /* reduced from 8px 12px */
  border-radius: 10px; /* slightly smaller radius */
  transition: all 0.3s ease;
  position: relative;
}

/* Hover effect */
.nav-links li a:hover {
  background-color: #99CCFF;
  color: #052146; /* contrast text */
  transform: translateY(-2px);
}

/* Dropdown container */
.nav-links li {
  position: relative;
}

/* Chevron spacing */
.dropdown i {
  font-size: 0.65rem; /* smaller chevron */
  margin-left: 4px;
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
  position: absolute;
  top: 110%; /* moved closer to nav item */
  left: 0;
  background: #052146; /* dark background */
  min-width: 200px; /* slightly smaller width */
  border-radius: 8px; /* smaller radius */
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  list-style: none;
  padding: 8px 0; /* smaller padding */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  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: 10px 16px; /* smaller padding */
  color: #fff;
  font-size: 0.9rem; /* smaller text */
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  border-radius: 4px; /* smaller radius */
}

/* Dropdown hover */
.dropdown-menu li a:hover {
  background: #99CCFF;
  color: #052146;
  border-left: 3px solid #fff;
}

/* ===== Cart Count ===== */
.cart-count {
  background-color: #99CCFF;
  color: #052146;
  font-size: 0.7rem; /* slightly smaller */
  font-weight: 700;
  padding: 2px 6px; /* smaller padding */
  border-radius: 999px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  font-size: 24px; /* slightly smaller */
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-toggle:hover {
  color: #99CCFF;
}

.mobile-logo {
  display: none;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  /* Mobile dropdown menu */
  .nav-links {
    position: absolute;
    top: 100%; /* attaches to bottom of navbar */
    left: 0;
    width: 100%;
    background: #052146;

    flex-direction: column;
    align-items: stretch;

    gap: 0;
    padding: 0;
    margin: 0;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.35s ease;
  }

  /* When menu opens */
  .nav-links.active {
    max-height: 600px;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 16px 20px;
  }

  /* ===== Mobile Dropdowns ===== */

  .dropdown-menu {
    position: static;
    background: #0b2d5e;

    box-shadow: none;

    padding: 0;
    margin: 0;

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 400px;
  }

  .dropdown-menu li a {
    padding: 14px 35px;
    font-size: 0.95rem;
  }

}