/* 智能文字颜色选择器 - Sử dụng màu #FFF6D6 cho văn bản chính trên nền tối */
.page-index {
  color: #FFF6D6; /* Màu văn bản chính */
  background-color: #0A0A0A; /* Màu nền chính */
}

.page-index__card {
  background: #111111; /* Màu nền thẻ */
  color: #FFF6D6;
  border: 1px solid #3A2A12; /* Màu viền */
}

.page-index__dark-section {
  background: #F2C14E;
  color: #ffffff; /* Buộc màu trắng cho văn bản */
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Màu nút chính */
  color: #111111; /* Văn bản nút luôn dùng màu tối trên nền sáng */
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.4);
}

.page-index__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Sử dụng màu thương hiệu đảm bảo độ tương phản */
  border: 2px solid #FFD36B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-index__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  border-color: #FFD36B;
  transform: translateY(-2px);
}

/* Các phần tử chung */
.page-index__content-area, .page-index__text-block {
  color: #FFF6D6; 
}

.page-index p, .page-index li {
  color: #FFF6D6; 
}

.page-index a {
  color: #FFD36B;
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* shared đã cấp body khoảng trắng: khoảng 10px; nếu shared chưa cấp body khoảng trắng thì đổi thành var(--header-offset, 120px) */
  margin-top: 0;
  background-color: #0A0A0A;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

@media (min-width: 850px) {
  .page-index__hero-image img {
    aspect-ratio: 16/5;
    object-fit: cover;
  }
}

@media (max-width: 849px) {
  .page-index__hero-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    max-height: none !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important;
    margin-top: 0;
  }
}

/* Sản phẩm hiển thị khu vực */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #0A0A0A;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr); /* Desktop: 6 cột một hàng */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Căn giữa thẻ sản phẩm trong grid */
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 cột x 3 hàng */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100%;
  }
}

/* Tiêu đề chính trang trí */
.page-index__section-title-wrap {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 16px;
  width: 100%; 
  max-width: 100%; 
  padding: 24px 12px;
  box-sizing: border-box; 
  text-align: center;
  background-color: #0A0A0A;
}

.page-index__section-title {
  margin: 0; 
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); 
  line-height: 1.35;
  color: #FFD36B; /* Màu chữ tiêu đề */
}

.page-index__section-title-line {
  flex: 1; 
  max-width: 80px; 
  height: 2px; 
  background-color: #3A2A12; /* Màu đường trang trí */
  opacity: 0.6;
}

@media (max-width: 768px) {
  .page-index__section-title-line { 
    max-width: 40px; 
  }
  .page-index__section-title {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
}

/* Nội dung SEO dài */
.page-index__article-body {
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 12px 48px;
  box-sizing: border-box; 
  overflow-x: hidden;
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-index__article-body h2 {
  margin: 2rem 0 1rem; 
  color: #FFD36B; /* Màu tiêu đề H2 */
  font-size: 1.8em;
}

.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem; 
  color: #F2C14E; /* Màu tiêu đề H3 */
  font-size: 1.4em;
}

.page-index__article-figure {
  margin: 1.5rem auto; 
  max-width: 800px; 
  text-align: center;
}

.page-index__article-figure img {
  width: 100%; 
  max-width: 100%; 
  height: auto; 
  display: block;
  border-radius: 8px; /* Thêm bo tròn nhẹ cho hình ảnh */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__article-figure figcaption {
  color: #FFF6D6;
  font-size: 0.9em;
  margin-top: 10px;
  opacity: 0.8;
}

.page-index__article-quote {
  margin: 1.5rem 0; 
  padding: 1rem 1.25rem; 
  border-left: 4px solid #F2C14E; /* Màu viền trích dẫn */
  background-color: #111111; /* Nền trích dẫn */
  color: #FFF6D6;
  font-style: italic;
  border-radius: 4px;
}

.page-index__article-body ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-index__article-body ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Cho phép nút xuống dòng trên di động */
}

@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 12px 32px; 
    font-size: 16px; 
  }
  .page-index__article-body h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem); 
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.3em);
  }
  .page-index__article-body ul {
    margin-left: 15px;
  }
  .page-index__cta-buttons {
    flex-direction: column; /* Trên di động, các nút xếp chồng lên nhau */
    gap: 15px;
    padding: 0 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Các kiểu chung cho hình ảnh và vùng chứa trên di động */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__products-section,
  .page-index__products-container,
  .page-index__products-grid,
  .page-index__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__section-title-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
}