
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, button, select, link, a, input, textarea {
  font-family: 'Playfair Display', serif;
}

body {
  background-color: #1B1B1D; /* Màu nền web (tùy chỉnh) */
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */
.header {
  width: 100%;
  background: #1B1B1D;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 50px;
  position: sticky;
  top: 0; 
  z-index: 999;
  
  border: 3px solid #292B34; 
}

.nav-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 180px;
  height: 85px;
  border-radius: 12px;
  object-fit: cover;
}

.center-navi {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-item.active {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  padding: 0 5px;
}

.arrow-down {
  width: 16px;
  height: 9px;
  background: white;
  clip-path: polygon(0 0, 100% 0, 50% 100%); 
}

.cart-icon {
  width: 20px;
  height: 18px;
  border: 1.5px solid white;
}
/* ================= DROPDOWN MENU ================= */

.dropdown {
  position: relative; 
}
.dropdown-title {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%; 
  background-color: #1B1B1D;
  list-style: none; 
  min-width: 200px; 
  padding: 10px 0;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 100; 
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px); 
}
.dropdown-menu li a {
  display: block;
  color: white;
  padding: 12px 20px;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
  background-color: #333;
  color: #0059ff;
}


/* ================= GIỎ HÀNG  ================= */
.cart-link {
  display: flex;
  align-items: center;
  position: relative; 
  color: white; 
  transition: color 0.3s ease;
  text-decoration: none;
}

.cart-icon-svg {
  width: 26px; 
  height: 26px;
}

.cart-link:hover {
  color: #9900ff; 
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #0059ff; 
  color: white;
  font-size: 12px;
  font-family: Arial, sans-serif; 
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%; 
  border: 2px solid #1B1B1D; 
}
/* ================= BANNER ================= */
.hero-banner {
    width: 100%;
    display: block; 
    padding-bottom: 50px;
    position: relative;
}
.banner-link {
    display: block; 
    width: 100%;
    position: relative;

}
.banner-img {
    width: 100%;
    height: auto; 
    display: block; 
    object-fit: cover;
    filter: blur(4px);
}

.banner-content {
    position: absolute;
    top: 50%; /* Đẩy xuống giữa màn hình */
    left: 50%; /* Đẩy ra giữa màn hình */
    transform: translate(-50%, -50%); /* Căn giữa tâm tuyệt đối */
    z-index: 2; /* Nổi lên trên lớp mờ đen 1 bậc */
    
    text-align: center;
    width: 90%; /* Tránh chữ bị chạm sát hai bên lề trên điện thoại */
    color: white; /* Toàn bộ chữ màu trắng */
}
.banner-split-layout {
    display: flex;
    align-items: center; /* Căn tất cả nằm giữa theo chiều dọc */
    justify-content: center; /* Căn vào giữa theo chiều ngang */
    gap: 200px; /* Khoảng cách an toàn giữa 2 tấm hình và chữ ở giữa */
    width: 100%;
}
/* Định dạng cho cụm chữ ở giữa để nó không bị ép quá nhỏ */
.banner-center-text {
    max-width: 500px;
    text-align: center;
    text-shadow: 0 2px 10px rgb(0, 89, 255);
    font-size: 40px;
}
.banner-feature-card {
    /* Khóa chết độ rộng của Card khi nằm trên banner để không bị Flexbox bóp méo */
    width: 260px !important; 
    flex-shrink: 0; /* Tuyệt đối không cho chữ ở giữa ép nhỏ cái card lại */
    
    /* Canh chỉnh màu chữ bên trong card về màu tối vì nền card là màu trắng */
    color: #333; 
    text-align: left; /* Trả lại text-align bên trái cho card */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); /* Tạo bóng đổ sâu hơn để card nổi bật hẳn khỏi banner */
}

/* Đồng bộ phông chữ Playfair cho card trên banner luôn nếu cần */
.banner-feature-card .product-title,
.banner-feature-card .product-price {
    font-family: 'Playfair Display', serif;
}

/* Thêm hiệu ứng nảy nhẹ khi người dùng hover vào nguyên cái card trên banner */
.banner-feature-card:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease;
}
/* ================= MAIN CONTENT ================= */
.main-content {
    min-height: 60vh; 
    padding: 40px 20px; 
    max-width: 1440px;
    margin: 0 auto; 
}
/* Khung chứa danh sách sản phẩm */
.product-list-container {
    display: grid;
    /* Lệnh này ép buộc luôn luôn chia làm 2 cột bằng nhau (1 phân số - 1 fraction) */
    grid-template-columns: repeat(2, 1fr); 
    gap: 100px; 
    max-width: 700px; 
    margin: 0 auto;
}
/* Khung Card sản phẩm */
.product-card {
    width: 100%; 
    background: #1B1B1D; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    position: relative;
}
.product-badge {
    position: absolute; 
    top: 10px; 
    left: 10px; 
    color: white; 
    padding: 4px 8px; 
    font-size: 12px; 
    border-radius: 4px; 
    z-index: 10;
}
.product-img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}
.product-info { 
    padding: 15px; 
}
.product-title { 
        color: white; 
    font-size: 16px; 
    margin: 0 0 10px; 
    height: 40px; 
    overflow: hidden; 
}
.product-specs { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 15px; 
    font-size: 13px; 
    color: white; 
    height: 60px; 
    overflow: hidden; 
}
.product-price { 
    font-size: 18px; 
    color: #ff2a00; 
    font-weight: bold; 
    margin-bottom: 15px; 
}
.btn-add-cart { 
    width: 100%; 
    padding: 10px; 
    background: #333; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}



/* ================= FOOTER ================= */
.footer {
  width: 100%;
  background: #1B1B1D;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding-bottom: 40px; 
  margin-top: 50px;
  
  border: 3px solid #292B34; 
}

.footer-upper {
  width: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.social-media {
  display: flex;
  gap: 35px;
}

.social-icon {
  width: 25px;
  height: 25px;
  color: white; 
  transition: color 0.3s ease; 
}

.footer-middle {
  width: 100%;
  max-width: 1346px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.localization {
  display: flex;
  gap: 40px;
}

.loc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc-group label {
  color: #CECECE;
  font-size: 16px;
}

.dropdown-btn {
  background: #1B1B1D;
  border: 1px solid #BABABA;
  border-radius: 4px;
  color: white;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.payments {
  display: flex;
  gap: 10px;
  list-style: none; 
  padding: 0;
  margin: 0;
}

.pay-icon {
  width: 38px;
  height: 24px;
  display: block;
}

.footer-lower {
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  font-size: 16px;
}

.footer-lower .dot {
  font-weight: bold;
}

.footer-lower a:hover {
  text-decoration: underline;
}

