/* ================= HEADER KÍNH MỜ SÁNG MỀM MẠI ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(178, 110, 40, 0.16);
  box-shadow: 0 6px 24px rgba(44, 29, 17, 0.06);
  transition: background 0.25s ease;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 8px 0;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Giữ nguyên màu gốc đầm nét của logo KABA */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 2px 0;
  text-decoration: none;
  transition: transform 0.2s;
}
.brand-logo-link:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: contrast(1.08) saturate(1.1);
}

/* Menu danh mục ở giữa */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.nav-link {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.2s;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(178, 110, 40, 0.12);
  color: var(--brand-dark);
}

/* Cụm icon Tài khoản & icon Giỏ hàng bên phải */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.header-icon-btn:hover {
  background: #FFFFFF;
  border-color: var(--brand);
}

.header-icon-btn.cart-icon-btn {
  background: var(--brand);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(178, 110, 40, 0.28);
}
.header-icon-btn.cart-icon-btn:hover {
  background: var(--brand-dark);
}

.logged-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ECC71;
  border: 2px solid #FFFFFF;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--brand-dark);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(44, 29, 17, 0.12);
}

@media (max-width: 960px) {
  .header-nav { display: none; }
}
