
.navbar {
  border-bottom: 1px solid #eaeaea;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Brand Styles */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand i {
  font-size: 1.75rem;
  color: #333;
  transition: transform 0.3s ease;
}

.navbar-brand:hover i {
  transform: rotate(45deg);
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-text span {
  color: #dc3545;
}

/* Navigation Links */
.nav-link {
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.2s ease;
}


/* Search Bar */
.search-container {
  width: 100%;
  max-width: 450px !important;
  margin-right: 1.5rem;
}

.search-form {
  display: flex;
  position: relative;
}

.search-form input {
  border-radius: 50px;
  padding-left: 1rem;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.search-form input:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
}

.search-btn {
  border-radius: 0 50px 50px 0;
  position: absolute;
  margin-top:0.15em;
  right: 0.2em;
  padding: 0.375rem 1rem;
}

/* Categories Dropdown */
.categories-nav-item {
  position: relative;
}

/* Make dropdown work on hover */
.categories-nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu.categories-dropdown {
  width: 300px;
  padding: 0;
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 0; /* Remove default margin */
}

.categories-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
  font-weight: bold;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.category-item i {
  font-size: 1.1rem;
  color: #dc3545;
}

.category-item:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}

/* Icon Navigation */
.nav-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-icon-link {
  position: relative;
  color: #333;
  transition: color 0.2s ease;
}

.nav-icon-link i {
  font-size: 1.4rem;
}

.nav-icon-link:hover {
  color: #dc3545;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 991px) {
  .search-container {
    max-width: 100%;
    margin: 1rem 0;
  }
  
  .navbar-nav {
    margin: 1rem 0;
  }
  
  .dropdown-menu.categories-dropdown {
    width: 100%;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-icons {
    margin-top: 1rem;
    justify-content: center;
  }
}