/* Header Container */
#header-container {
  display: block;
  width: 100%;
}

/* Header: Thẻ thực sự ghim cố định trên đỉnh màn hình */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background-color: #ffffff !important; /* Đảm bảo màu nền che nội dung bên dưới */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Layout chung cho Nav */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  width: 100%;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
}

.logo span {
  color: var(--primary); /* Màu cam Shopee/Cashback */
}

/* Menu điều hướng giữa */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-left: auto; /* ĐẨY CỤM MENU NÀY VỀ SÁT BÊN PHẢI (GẦN AVATAR) */
  margin-right: 80px; /* Khoảng cách giữa cụm Menu và Avatar/Đăng nhập */
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #ff5722;
}

.nav-link.highlight {
  color: #ff5722;
  font-weight: 600;
}

/* Khu vực bên phải Header */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Chuông thông báo */
.icon-btn {
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  color: #4b5563;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
}

/* Avatar người dùng */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s;
}

.user-avatar:hover {
  border-color: #ff5722;
}

/* Buttons dùng chung */
.btn-primary-sm { 
  background: var(--primary); 
  color: #fff; 
  border: none; 
  padding: 8px 18px; 
  border-radius: 6px; 
  font-weight: 600; 
  cursor: pointer; 
}

.btn-login-to-claim { 
  width: 100%; 
  background: var(--primary); 
  color: #fff; 
  border: none; 
  padding: 12px; 
  border-radius: 6px; 
  font-weight: 700; 
  cursor: pointer; 
}

.btn-buy-now { 
  flex: 1; 
  background: #16a34a; 
  color: #fff; 
  text-decoration: none; 
  text-align: center; 
  padding: 10px; 
  border-radius: 6px; 
  font-weight: 600; 
}

.btn-copy-share { 
  flex: 1; 
  background: #0284c7; 
  color: #fff; 
  border: none; 
  padding: 10px; 
  border-radius: 6px; 
  font-weight: 600; 
  cursor: pointer; 
}

/* Badge dùng chung */
.badge { 
  background: #ffeae6; 
  color: var(--primary); 
  font-size: 13px; 
  font-weight: 600; 
  padding: 6px 14px; 
  border-radius: 20px; 
  display: inline-block; 
  margin-bottom: 15px; 
}

/* Footer */
.footer { 
  background: #0f172a; 
  color: #94a3b8; 
  padding: 50px 0 20px; 
  font-size: 14px; 
}
.footer-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 30px; 
  margin-bottom: 40px; 
}
.footer-col h3 { 
  color: #fff; 
  font-size: 20px; 
  margin-bottom: 12px; 
}
.footer-col h3 span { 
  color: var(--primary); 
}
.footer-col h4 { 
  color: #f8fafc; 
  font-size: 16px; 
  margin-bottom: 12px; 
}
.footer-col ul { 
  list-style: none; 
}
.footer-col ul li { 
  margin-bottom: 8px; 
}
.footer-col a { 
  color: #94a3b8; 
  text-decoration: none; 
}
.footer-col a:hover { 
  color: #fff; 
}
.footer-bottom { 
  border-top: 1px solid #1e293b; 
  padding-top: 20px; 
  text-align: center; 
  font-size: 12px; 
}