.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: white;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--clr-gray-200);
  transition: all 0.3s ease;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--clr-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--clr-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--clr-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--clr-primary);
}

.header__actions {
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .header__nav {
    display: none;
  }
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: none;
}

@media (max-width: 991px) {
  .header__inner {
    justify-content: flex-start;
    position: relative;
  }
  
  .header__nav {
    display: none;
  }
  
  .nav-toggle {
    display: none !important;
  }
  
  .logo__img {
    height: 16px;
  }

  .footer__logo{
    height: 16px;
  }
}

.header__cart-mobile {
  display: none;
  position: relative;
  color: var(--clr-dark);
  padding: 8px;
  transition: color 0.3s ease;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}

.header__cart-mobile:hover {
  color: var(--clr-primary);
}

.header__cart-mobile-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--clr-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
  .header__cart-mobile {
    display: flex;
  }
  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
}

.nav-link .cart-badge {
  top: -2px;
  right: -24px;
}

.cart-badge {
  position: absolute;
  background-color: var(--clr-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none; /* hidden by default, shown by JS */
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
