/* =========================================
   CONTAINER & SECTION
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-section) 0;
}

.section--bg-light {
  background-color: var(--color-bg-light);
}

/* =========================================
   HEADING
   ========================================= */
.heading-primary {
  font-size: var(--font-size-h2);
  color: #233392;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}
.tech-compare__text p {color: #fff; padding-bottom: 20px;}

.heading-secondary {
  font-size: var(--font-size-h3);
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

/* =========================================
   BUTTON
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-sm);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  gap: 8px;
}

.btn--primary {
  background-color: var(--color-cta);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: #d1181f; /* Darker red */
}

.btn--outline {
  background-color: transparent;
  color: #fff;
  border-color: var(--color-border);
  margin-top: 20px;
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--text {
  display: inline-flex;
  align-items: center; /* Ép chữ và icon thẳng hàng ngang */
  gap: 6px; /* Khoảng cách giữa chữ và mũi tên */
  padding: 0;
  background-color: transparent;
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  font-size: 12px;
  padding-top: 15px;
  padding-bottom: 20px;
}

.btn--text:hover {
  color: var(--color-cta);
}

/* =========================================
   BUTTON ĐỎ (CALL TO ACTION)
   ========================================= */
.btn--cta {
  background-color: #ED1C24 !important; /* Màu đỏ HD PRO */
  color: #FFFFFF !important;
  border: 1px solid #ED1C24 !important;
  fill: #FFFFFF; /* Cho icon SVG bên trong */
  margin-top: 20px;
}

.btn--cta:hover {
  background-color: #C8151D !important; /* Đỏ đậm hơn khi di chuột */
  border-color: #C8151D !important;
}

/* =========================================
   CARD
   ========================================= */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: var(--border-width) solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card__image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Ratio */
  overflow: hidden;
}

.card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__body {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-bold);
}

.card__desc {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

/* =========================================
   BADGE & ICON
   ========================================= */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  background-color: var(--color-bg-light);
  color: var(--color-text);
  text-transform: uppercase;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}

/* =========================================
   FORM CONTROL
   ========================================= */
.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-medium);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-control::placeholder {
  color: #999;
}

/* =========================================
   BREADCRUMB
   ========================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: var(--spacing-sm) 0;
}

.breadcrumb__item {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  opacity: 0.7;
}

.breadcrumb__item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__item a:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  color: var(--color-border);
}

.breadcrumb__item--active {
  color: var(--color-primary);
  opacity: 1;
  font-weight: var(--font-weight-medium);
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin-top: var(--spacing-xl);
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination__link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination__link--active {
  background-color: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

/* =========================================
   TABS & ACCORDION (Khung cơ bản)
   ========================================= */
.tabs__nav {
  display: flex;
  gap: var(--spacing-sm);
  border-bottom: var(--border-width) solid var(--color-border);
  margin-bottom: var(--spacing-md);
}

.tabs__btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs__btn--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.accordion__item {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-xs);
}

.accordion__header {
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-weight-medium);
}

/* =========================================
   EMPTY STATE & LOADING
   ========================================= */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-md);
}

.loader {
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* =========================================
   LƯỚI SẢN PHẨM (DÙNG CHUNG CHO MỌI TRANG)
   ========================================= */
.product-grid {
  display: grid !important; /* Bắt buộc kích hoạt chế độ lưới */
  gap: 24px;
}

/* Lưới 3 cột (Cho trang danh sách) */
.product-grid--3cols {
  grid-template-columns: repeat(3, 1fr);
}

/* =========================================
   LƯỚI 4 CỘT (Cho phần Sản phẩm liên quan)
   ========================================= */
.product-grid--4cols {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
}

/* =========================================
   RESPONSIVE LƯỚI SẢN PHẨM
   ========================================= */
@media (max-width: 1199px) {
  .product-grid--3cols,
  .product-grid--4cols {
    grid-template-columns: repeat(2, 1fr); /* Tablet hiển thị 2 cột */
  }
}

@media (max-width: 767px) {
  .product-grid--3cols,
  .product-grid--4cols {
    grid-template-columns: 1fr; /* Mobile hiển thị 1 cột */
  }
}
.product-grid--4cols {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Responsive Lưới 4 cột --- */
@media (max-width: 1199px) {
  /* Trên Tablet / Laptop nhỏ: Đưa về 2 cột cho khỏi chật */
  .product-grid--4cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* Trên Mobile: Đưa về 1 cột dọc */
  .product-grid--4cols {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   THẺ SẢN PHẨM (CHUẨN ẢNH MẪU)
   ========================================= */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  /* Viền cực mờ để tạo cảm giác nhẹ nhàng như thiết kế */
  border: 1px solid #F3F4F6;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 12px 24px rgba(17, 27, 87, 0.08);
  border-color: transparent;
  transform: translateY(-4px);
}

/* 1. Phần hình ảnh */
.product-card__img-wrap {
  background-color: #F8F9FA; /* Nền xám nhạt làm nổi bật lon sơn */
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 170px; /* Thu nhỏ lon sơn lại một chút cho thanh thoát */
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
}

/* 2. Phần nội dung */
.product-card__body {
  position: relative; /* Quan trọng: Để neo nút Xem chi tiết vào góc */
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Tag danh mục giống mẫu */
.product-card__cat-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  background-color: #E9ECEF;
  color: #495057;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.product-card:hover .product-card__title {
  color: var(--color-cta);
}

.product-card__sub {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 16px;
}

/* 3. Danh sách tính năng */
.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1; /* Đẩy nội dung chiếm hết không gian */
}

.product-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px; /* Chữ nhỏ nhắn như mẫu */
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Tạo icon tròn màu xanh Navy */
.product-card__features .icon {
  width: 16px;
  height: 16px;
  color: var(--color-white); /* Nét vẽ màu trắng */
  fill: var(--color-primary); /* Đổ nền xanh Navy cho icon */
  flex-shrink: 0;
}

/* 4. Nút Xem chi tiết (Ép vào góc phải) */
.product-card .btn--text {
  position: absolute;
  bottom: 24px; /* Cách đáy 24px */
  right: 24px;  /* Cách lề phải 24px */
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0;
  transition: color 0.2s ease;
}

.product-card .btn--text .icon {
  width: 14px;
  height: 14px;
}

.product-card:hover .btn--text {
  color: var(--color-cta);
}

/* Consultation */
.home-consultation {
  padding: 60px 0;
  background-color: var(--color-bg-light); /* Nền ngoài cùng màu xám nhạt */
}
.home-consultation__content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 45%, transparent 100%);
  z-index: 1;
}
.home-consultation__inner {
  display: grid;
  grid-template-columns: 1fr 420px; /* Cột trái linh hoạt, cột form rộng 420px */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(32, 36, 42, 0.08); /* Đổ bóng nhẹ cho nguyên khối */
  background-color: var(--color-white);
}
.home-consultation__content {
  /* Chú ý: lùi 2 cấp (../../) để trỏ đúng vào thư mục images */
  background-image: url('../images/home-15.png'); 
  background-size: cover;
  background-position: center right; /* Canh phải để thấy rõ 2 nhân vật */
  background-repeat: no-repeat;
  padding: 36px 32px 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.home-consultation__content > * {
  position: relative;
  z-index: 2;
}
.home-consultation__label { 
  font-weight: 700; 
  font-size: 16px; 
  margin-bottom: 8px; 
  color: var(--color-primary); 
}
.home-consultation__title { 
  font-size: 28px; 
  font-weight: 700; 
  color: var(--color-primary); 
  margin-bottom: 12px; 
  line-height: 1.2; 
}
.home-consultation__desc { 
  font-size: 15px; 
  margin-bottom: 24x; 
  max-width: 400px; 
  color: var(--color-text); 
  line-height: 1.5; 
}

.home-consultation__features { 
  display: flex; 
  gap: 32px; 
}
.home-consultation__features .feat-item { text-align: center; }
.feat-item { 
  text-align: center; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 8px; 
}

.feat-item img { 
  width: 32px; 
  height: 32px; 
}

.feat-item span { 
  font-size: 13px; 
  font-weight: 600; 
  color: var(--color-text); 
}

/* ================= Form bên phải ================= */
.home-consultation__form-wrap {
  background: var(--color-white);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-consultation__form-wrap .form-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--color-primary); 
  margin-bottom: 24px; 
}
.home-consultation__form-wrap .form-group {
  margin-bottom: 12px;
}
.home-consultation__form-wrap .form-control {
  padding: 10px 16px; /* Thu hẹp chiều cao ô input */
}
.form-title { font-size: 18px; font-weight: bold; margin-bottom: 24px; text-align: center; }
/* ================= Responsive ================= */
@media (max-width: 991px) {
  .home-consultation__inner {
    grid-template-columns: 1fr; /* Màn nhỏ đưa form rớt xuống dưới */
  }
  .home-consultation__content {
    padding: 40px 24px;
    background-position: center;
  }
  .home-consultation__content::before {
    background: rgba(255, 255, 255, 0.85); /* Phủ mờ trắng toàn bộ để đọc chữ trên mobile */
  }
  .home-consultation__form-wrap {
    padding: 40px 24px;
  }
}
/* =========================================
   SỬ DỤNG CHUNG (Tiêu đề, Khoảng cách)
   ========================================= */
.pd-section { padding: 80px 0; }
.pd-section .title { font-size: 28px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; margin-bottom: 32px; padding-bottom: 20px;; }
.pd-section .subtitle { font-size: 14px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; letter-spacing: 0.5px; }
.pd-section .desc { font-size: 15px; color: var(--color-text); opacity: 0.9; line-height: 1.6; }
.bg-light { background-color: var(--color-bg-light); }

/* Breadcrumb */
.breadcrumb { font-size: 13px; margin-bottom: 24px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: var(--color-white); font-weight: 600; }
/* Utils bổ sung cho section Header */
.header-right-actions { display: flex; align-items: center; gap: 32px; }
.header-right-actions p { font-size: 13.5px; opacity: 0.8; margin-bottom: 0; }
.header-right-actions .btn { white-space: nowrap; flex-shrink: 0; }
/* ====================================================
   SEARCH MODAL OVERLAY CHUẨN UI HD PRO
   ==================================================== */
.header-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.95); /* Màu nền tối sang trọng theo tông màu hãng */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Khi active thì hiện lên mượt mà */
.header-search-popup.is-active {
    opacity: 1;
    visibility: visible;
}

.header-search-popup .container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

.header-search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    position: relative;
}

.header-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 2rem;
    color: #fff;
    font-family: var(--font-primary);
}

.header-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search-form .btn--cta {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search-form .btn--cta:hover {
    background: #c8000f;
}

.search-close-btn {
    position: absolute;
    top: -80px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}