/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header Styles */
.header {
  background: #000000;
  /* The body padding-top will handle the spacing, so this can be removed if it was for that purpose */
  /* position: fixed; */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-icon a {
    color: white; /* Makes icon and text white */
    text-decoration: none; /* Removes underline from link */
}

.nav-icon a:hover {
    color: #f1f1f1; /* Slightly lighter white on hover */
}

.wishlist-count,
.cart-count {
    color: white; /* Ensures the count text is also white */
}


.profile-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.profile-icon i {
  font-size: 20px;
  color: #ffffff; /* icon color */
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  color: #ffffff;
  white-space: nowrap;
}

.profile-icon:hover .profile-name {
  color: #bdbdbd; /* dark on hover */
}


.navbar-wrapper {
  background-color: black;
  position: fixed;
  top: 0;
  /* Add padding-top to the body instead of setting a fixed height on the navbar wrapper */
  /* This prevents content from being hidden underneath the fixed navbar */
  body {
    padding-top: 80px; /* Adjust this value based on your navbar's height */
  }
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: black;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between hamburger and logo */
}

.logo h1 {
  font-size: 24px;
  font-weight: bold;
  color: hsl(0, 0%, 100%);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
}

.nav-links a:hover {
  color: #007bff;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon, .login-icon {
  position: relative;
  cursor: pointer;
  margin: 0 10px;
  font-size: 20px;
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hamburger-menu {
  display: none; /* Hidden by default */
  cursor: pointer;
}

.nav-icon:hover, .login-icon:hover {
  color: #007bff;
}

/* Wishlist and Cart Count Badges */
.wishlist-count, .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.cart-count {
  background: #007bff;
}

/* Hide count when it's 0 */
.wishlist-count:empty,
.cart-count:empty,
.wishlist-count[data-count="0"],
.cart-count[data-count="0"] {
  display: none;
}

/* Animation for count changes */
.wishlist-count, .cart-count {
  animation: countPulse 0.3s ease;
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  background: rgb(0, 0, 0);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  z-index: 1000;
  top: 100%;
  right: 0;
  min-width: 120px;
}
.wishlist-icon{
  color: white;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #000000;
}

/* Responsive Design */
@media (max-width: 992px) {
  .navbar {
    padding: 10px 20px;
  }

  .hamburger-menu {
    display: block;
    font-size: 24px;
    color: white;
    z-index: 1002; /* Above the overlay */
  }

  .hamburger-menu.active i::before {
    content: '\f00d'; /* Font Awesome close icon */
  }

  .nav-content {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
  }

  .nav-content.active {
    left: 0; /* Slide in */
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links a {
    font-size: 24px;
  }

  .nav-icon.login-icon {
    display: block;
    margin-top: 20px;
  }

  .nav-icons {
    gap: 10px;
  }

  .nav-right {
    /* This is no longer needed as justify-content on .navbar handles the spacing */
  }

  .nav-left {
    flex-grow: 1; /* Allow the left container to grow */
  }
}