.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header .container {
  padding: 1rem;
  height: auto;
}

.logo {
  flex-shrink: 0;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-logo:hover {
  color: var(--accent);
}

/* Navigation */
.nav-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Header Actions */
.header-actions {
  gap: 1.5rem;
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 0.5rem;
  gap: 0.5rem;
}

.search-input {
  background: none;
  border: none;
  padding: 0.5rem;
  width: 200px;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.2);
}

.icon-link {
  position: relative;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.icon-link:hover {
  color: var(--accent);
}

.cart-count,
.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-container {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--card);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    gap: 0;
    padding: 2rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-container.active {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-menu a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .search-input {
    width: 150px;
  }

  .header-actions {
    gap: 1rem;
  }

  .brand-logo {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .search-form {
    padding: 0.4rem;
  }

  .search-input {
    width: 100px;
    font-size: 0.8rem;
  }

  .header-actions {
    gap: 0.5rem;
  }
}
