/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navbar Styling */
.navbar {
  width: 100%;
  background-color: #007bff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.navbar-brand {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  text-align: center;
  flex: 1;
}

.navbar-nav {
  display: flex;
  align-items: center;
  flex: 2;
  justify-content: center;
}

.navbar-icons {
  display: flex;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  align-self: right;
}

.nav-link:hover {
  color: #ffdd57;
  background-color: #0056b3;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #007bff;
  padding: 0.5rem 0;
  z-index: 1000;
  border-radius: 4px;
}

.dropdown-item {
  color: #ffffff;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #0056b3;
}

/* Cart styling */
.cart-link {
  color: #ffffff;
  font-weight: 600;
  margin-right: 1rem;
}

.cart-count {
  background-color: #dc3545;
  color: #ffffff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

/* Sidebar Styling */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #007bff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 2rem;
  z-index: 1000;
}

.sidebar a {
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  background-color: #007bff;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #ffffff;
}

/* Sidebar Dropdown Styles */
.dropdown-container {
  display: none;
  padding-left: 15px;
}

.dropdown-btn {
  background: none;
  border: none;
  color: white;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
  width: 100%;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar-nav {
      display: none;
  }

  .navbar-toggler {
      display: block;
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #ffffff;
      margin-left: auto;
  }

  .cart-link {
      position: absolute;
      right: 1rem;
      top: 1rem;
  }

  .navbar-brand {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      
  }
  .dropdown-menu {
    background-color: #007bff;
    padding: 0.5rem 0;
    z-index: 1000;
    border-radius: 4px;
  }
}

@media (min-width: 992px) {
  .open-sidebar-btn {
      display: none;
  }

  .dropdown:hover .dropdown-menu {
      display: block;
  }
}
