* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   /*rất quan trọng để tránh bị tràn viền dính khoảng trắng */
}

body, html {
  font-family: 'Roboto', sans-serif;
  color: white;
  height: 100%;
}


/* ------------------------------ Top Navigation ------------------------------ */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  background: transparent; /* fully transparent */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.logo img {
  height: 120px;
}

/* Navigation Links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  position: relative;
  padding: 6px 6px;
  transition: transform 0.3s ease; /* Hiệu ứng zoom nhẹ */
}

.nav-links a:hover {
  color: #FFD700;
  transform: scale(1.1); /* Zoom nhẹ khi hover */
}

.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 0px; /* Điều chỉnh vị trí để ô vuông không chồng lên chữ */
  left: -6px; /* Mở rộng sang trái */
  right: -6px; /* Mở rộng sang phải */
  height: 30px; /* Tăng chiều cao ô vuông */
  background-color: #1C4278; /* Nền xanh */
  z-index: -1;
  border-radius: 4px; /*  bo góc */
}

.nav-links a.active {
  background-color: #1C4278;
  padding: 6px 6px;
  border-radius: 4px;
  color: #FBDC47;
}


/*-------------------------Product_page------------------------------*/
/* Product Archive Styles */
.subpage-header {
  position: relative;
  height: 80px; /* Chiều cao cố định cho header phụ */
  background-color: #FFFCEE; /* Nền trắng */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
}

.subpage-header .logo img {
  height: 120px; /* Kích thước logo nhỏ hơn */
  transition: transform 0.3s ease; /* Hiệu ứng hover cho logo */
}

.subpage-header .logo img:hover {
  transform: scale(1.1); /* Zoom nhẹ khi hover logo */
}

.subpage-header .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.subpage-header .nav-links a {
  color: #1C4278; /* Chữ xanh đậm */
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 14px;
  position: relative;
  transition: color 0.3s ease; /* Hiệu ứng hover cho chữ */
  transition: transform 0.3s ease; /* Hiệu ứng zoom nhẹ */
}

.subpage-header .nav-links a:hover {
  color: #FBDC47; /* Chữ vàng khi hover */
  transform: scale(1.1); /* Zoom nhẹ khi hover */
}

.subpage-header .nav-links a.active {
  font-weight: 600; /* Đậm cho active link */
  color: #FBDC47;

}

.subpage-header .cart-icon {
  position: relative;
  color: #1C4278;
}

.subpage-header .cart-icon .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #1C4278;
  color: #FFFCEE;
  border-radius: 50%;
  font-size: 10px;
  padding: 2px 6px;
}

.product-archive {
  background-color: #f8f9fa;
  padding: 40px 0;
  font-family: 'Roboto', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  padding: 0 20px;
}

.filters-sidebar {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-sidebar h3, .filters-sidebar h4, .filters-sidebar h5 {
  margin-bottom: 15px;
  color: #1C4278;
  font-family: 'Roboto Slab', serif;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #1C4278;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  color: #333;
}

.filter-group input[type="radio"], .filter-group input[type="checkbox"] {
  margin-right: 8px;
}

.location-header h1 {
  font-size: 36px;
  color: #1C4278;
  margin-bottom: 20px;
  font-family: 'Roboto Slab', serif;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tag {
  display: inline-block;
  background: white;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #1C4278;
  font-size: 14px;
  border: 1px solid #1C4278;
  transition: background 0.3s;
}

.tag:hover {
  background: #1C4278;
  color: white;
}

.tag span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.sort-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sort-dropdown select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
}

.info-text {
  color: #666;
  font-size: 14px;
}

.info-text i {
  margin-left: 5px;
  color: #1C4278;
}

.top-products h2 {
  font-size: 24px;
  color: #1C4278;
  margin-bottom: 20px;
  font-family: 'Roboto Slab', serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  display: block;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.product-info {
  padding: 15px;
  position: relative;
}

.rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1C4278;
  color: white;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 12px;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #1C4278;
  font-family: 'Roboto Slab', serif;
}

.product-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.duration, .reviews {
  font-size: 12px;
  color: #1C4278;
  margin-bottom: 5px;
}

.free-cancel {
  display: block;
  font-size: 12px;
  color: #28a745;
  margin-bottom: 10px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #1C4278;
  margin-bottom: 10px;
}

.price span {
  font-size: 12px;
  font-weight: normal;
}

.heart {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #ff6b6b;
  font-size: 18px;
}

.see-all {
  display: inline-block;
  color: #1C4278;
  text-decoration: none;
  font-size: 16px;
  margin-top: 20px;
  transition: color 0.3s;
}

.see-all:hover {
  color: #FBDC47;
}

/* Responsive */
/* 
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
} */