/* Biến màu sắc theo phong thủy mệnh Kim */
:root {
  --gold-primary: #d4af37;
  --gold-light: #f9f295;
  --silver: #c0c0c0;
  --white: #ffffff;
  --dark: #1a1a1a;
  --glass: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: var(--dark);
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 1.5rem;
}
.logo-img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 25px;
}
nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: 0.3s;
}
nav ul li a:hover {
  color: var(--gold-primary);
}

/* Hero Section */
.hero {
  height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("img/hero-background.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.hero p {
  font-size: 1.2rem;
  margin: 20px 0;
  max-width: 700px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
  padding: 15px 40px;
  border-radius: 50px;
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Products Card */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 50px 0;
  position: relative;
}
.section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: var(--gold-primary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 50px;
}
.product-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition: 0.4s;
  border: 1px solid #eee;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.product-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}
.product-card h3 {
  margin-bottom: 10px;
  color: var(--gold-primary);
}
.pack {
  display: block;
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #666;
  background: #f9f9f9;
  padding: 5px;
  border-radius: 5px;
}

/* Nút liên hệ cố định - Chống trôi */
.fixed-contact {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.zalo-float,
.phone-float {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.zalo-float {
  background: #0084ff;
}
.phone-float {
  background: #2ecc71;
}
.zalo-float img {
  width: 30px;
}
.fixed-contact span {
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}
.footer-grid h3 {
  color: var(--gold-primary);
  margin-bottom: 20px;
}
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.8rem;
}

/* Hiệu ứng Animation đơn giản */
.fade-in {
  animation: fadeIn 1.5s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile Menu Styles */
.menu-toggle {
  display: none; /* Ẩn trên máy tính */
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.bar {
  width: 28px;
  height: 3px;
  background-color: var(--gold-primary);
  transition: 0.3s;
  border-radius: 2px;
}

/* Responsive cho điện thoại (Dưới 768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Giấu menu đi */
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
    padding-top: 100px;
  }

  .nav-menu.active {
    right: 0; /* Hiện menu khi bấm nút */
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu ul li {
    margin: 20px 0;
  }

  .nav-menu ul li a {
    font-size: 1.2rem;
  }

  /* Hiệu ứng nút X khi mở menu */
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
/* Container cho 2 nút */
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

/* Phong cách chung cho nút */
.product-actions a {
  flex: 1; /* Để 2 nút có độ dài bằng nhau */
  padding: 10px 5px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Nút Xem Chi Tiết - Màu Bạc/Trắng (Mệnh Kim) */
.btn-detail {
  background: #f4f4f4;
  color: #333;
  border: 1px solid var(--silver);
}

.btn-detail:hover {
  background: var(--silver);
  transform: translateY(-2px);
}

/* Nút Mua Ngay - Màu Vàng Đồng (Mệnh Kim - Nổi bật) */
.btn-buy {
  background: linear-gradient(45deg, var(--gold-primary), #b8860b);
  color: white !important;
  border: none;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

/* Responsive cho điện thoại nhỏ */
@media (max-width: 480px) {
  .product-actions {
    flex-direction: column; /* Trên đt nhỏ thì xếp chồng lên nhau */
  }
}
