/*
 * DHTD Child — catalog.css
 * Dùng chung cho Dịch vụ & Sản phẩm (Archive + Single) — 2 module cùng "họ"
 * catalog B2B, tái sử dụng layout đã duyệt ở bản mockup review.
 * Chỉ nạp trên các trang Dịch vụ/Sản phẩm (xem điều kiện trong inc/enqueue.php).
 */

/* ---------------------------------- Page head & breadcrumb ---------------------------------- */
.dhtd-crumb {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dhtd-muted);
  padding: 22px 0 0;
}
.dhtd-crumb a { color: var(--dhtd-muted); text-decoration: none; }
.dhtd-crumb a:hover { color: var(--dhtd-sky); }
.dhtd-crumb .sep { margin: 0 6px; opacity: .5; }
.dhtd-crumb .current { color: var(--dhtd-text); }

.dhtd-page-head {
  padding: 18px 0 44px;
  border-bottom: 1px solid var(--dhtd-border);
}
.dhtd-page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--dhtd-navy);
  line-height: 1.15;
  margin: 0 0 14px;
}
.dhtd-page-head .dhtd-lead {
  font-size: 1.0625rem;
  color: var(--dhtd-muted);
  max-width: 640px;
  margin: 0;
}

/* ---------------------------------- Archive Dịch vụ: rail + editorial list ---------------------------------- */
.dhtd-svc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding: 44px 0 80px;
  align-items: start;
}
.dhtd-svc-rail { position: sticky; top: 24px; }
.dhtd-svc-rail__label {
  font-size: 0.7188rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dhtd-muted);
  margin-bottom: 14px;
}
.dhtd-svc-rail a {
  display: block;
  padding: 9px 0 9px 14px;
  margin-left: -1px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dhtd-muted);
  border-left: 2px solid transparent;
  text-decoration: none !important;
}
.dhtd-svc-rail a.is-active,
.dhtd-svc-rail a:hover {
  color: var(--dhtd-navy);
  border-left-color: var(--dhtd-gold);
}

.dhtd-svc-group { margin-bottom: 52px; }
.dhtd-svc-group:last-child { margin-bottom: 0; }
.dhtd-svc-group__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dhtd-sky);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dhtd-border);
}
.dhtd-svc-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--dhtd-border);
  text-decoration: none !important;
}
.dhtd-svc-item:last-child { border-bottom: none; }
.dhtd-svc-item__title { font-size: 1.125rem; font-weight: 700; color: var(--dhtd-text); margin: 0 0 6px; }
.dhtd-svc-item:hover .dhtd-svc-item__title { color: var(--dhtd-sky); }
.dhtd-svc-item__desc { font-size: 0.9375rem; color: var(--dhtd-muted); max-width: 560px; margin: 0; }
.dhtd-svc-item__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dhtd-navy);
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .dhtd-svc-layout { grid-template-columns: 1fr; }
  .dhtd-svc-rail { position: static; display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
}

/* ---------------------------------- Single Dịch vụ: content + sticky quote sidebar ---------------------------------- */
.dhtd-svc-detail { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 56px; padding: 44px 0 70px; }

.dhtd-checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.dhtd-checklist li { display: flex; gap: 12px; font-size: 0.9375rem; }
.dhtd-checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px;
  background: var(--dhtd-light-bg); border: 1.5px solid var(--dhtd-sky);
  background-image: linear-gradient(45deg, transparent 40%, var(--dhtd-sky) 40% 60%, transparent 60%);
}

.dhtd-process { display: grid; gap: 0; margin: 0 0 30px; counter-reset: step; }
.dhtd-process__item { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 16px; padding: 0 0 26px; position: relative; }
.dhtd-process__item::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dhtd-navy); color: #fff; font-weight: 700; font-size: 0.9375rem;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.dhtd-process__item:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: -6px; width: 2px; background: var(--dhtd-border);
}
.dhtd-process__title { font-weight: 700; font-size: 0.9688rem; color: var(--dhtd-text); margin: 8px 0 4px; }
.dhtd-process__desc { font-size: 0.875rem; color: var(--dhtd-muted); margin: 0; }

.dhtd-quotebox {
  position: sticky; top: 24px;
  background: var(--dhtd-light-bg); border: 1px solid var(--dhtd-border); border-radius: 10px; padding: 26px;
}
.dhtd-quotebox h3 { font-size: 1.0313rem; margin: 0 0 6px; color: var(--dhtd-navy); }
.dhtd-quotebox p { font-size: 0.8438rem; color: var(--dhtd-muted); margin: 0 0 18px; }
.dhtd-quotebox__contact {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dhtd-border);
  font-size: 0.8125rem; color: var(--dhtd-muted);
}
.dhtd-quotebox__contact b { color: var(--dhtd-text); display: block; margin-bottom: 3px; }

.dhtd-related-label {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dhtd-muted); margin-bottom: 14px;
}
.dhtd-related-list { display: grid; gap: 0; }
.dhtd-related-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--dhtd-border);
  font-weight: 600; font-size: 0.9375rem; color: var(--dhtd-text); text-decoration: none !important;
}
.dhtd-related-list a:hover { color: var(--dhtd-sky); }
.dhtd-related-list a .dhtd-related-list__type {
  font-size: 0.75rem; font-weight: 700; color: var(--dhtd-muted); margin-right: auto; margin-left: 14px;
}

@media (max-width: 900px) {
  .dhtd-svc-detail { grid-template-columns: 1fr; }
  .dhtd-quotebox { position: static; }
}

/* ---------------------------------- Archive Sản phẩm: grid ---------------------------------- */
/* Task 32.3 — đã xoá .dhtd-filterbar/.dhtd-chip (dead code): taxonomy-
 * dhtd_brand.php là nơi dùng cuối cùng, nay đã chuyển sang dùng chung
 * .dhtd-prodarc-* qua template-parts/catalog/catalog-layout.php giống mọi
 * trang catalog khác. Xác nhận không còn PHP/JS nào tham chiếu 2 class này
 * trước khi xoá. */
.dhtd-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding-bottom: 70px; }
.dhtd-pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--dhtd-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
}
.dhtd-pcard__media {
  aspect-ratio: 4/3; background: var(--dhtd-light-bg);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.dhtd-pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
/* Task 32.5 — badge overlay tuyệt đối cũ đã xoá (gây lệch vị trí nhãn Hãng
 * vì cascade theo từng thuộc tính: position/background/border/padding của
 * rule này vẫn thắng dù .dhtd-pcard__brand bản flex khai báo sau). Định nghĩa
 * .dhtd-pcard__brand duy nhất còn lại nằm trong khối "Card sản phẩm v2" bên
 * dưới, dùng chung layout hàng .dhtd-pcard__meta với Danh mục. */
.dhtd-pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}
.dhtd-pcard__cat { font-size: 0.7188rem; font-weight: 700; color: var(--dhtd-sky); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.dhtd-pcard__title { font-size: 0.9688rem; font-weight: 700; color: var(--dhtd-text); margin: 0 0 12px; line-height: 1.35; }
.dhtd-pcard:hover .dhtd-pcard__title { color: var(--dhtd-sky); }
.dhtd-pcard__cta { font-size: 0.8125rem; font-weight: 700; color: var(--dhtd-navy); }
@media (max-width: 900px) { .dhtd-pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .dhtd-pgrid { grid-template-columns: 1fr; } }

/* Task 32.5 — Desktop rộng (>=1440px): sidebar + 4 card/hàng theo mockup
 * "DHTD - Trang sản phẩm.png". .dhtd-container toàn site giữ nguyên
 * max-width:1160px (main.css) — ở đây mở container RIÊNG cho khu vực lưới
 * sản phẩm bằng margin âm đối xứng quanh .dhtd-prodarc-layout (đang nằm
 * trong .dhtd-container, vốn luôn được canh giữa viewport ở các bề rộng
 * này), không đụng gì tới Header/Footer/Blog/module khác. 1400px vừa đủ để
 * 4 card + sidebar 240px vẫn có chiều rộng đọc thoải mái (~264px/card). */
@media (min-width: 1440px) {
  .dhtd-prodarc-layout {
    max-width: 1400px;
    margin-left: -144px;
    margin-right: -144px;
  }
  .dhtd-pgrid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ---------------------------------- Single Sản phẩm: gallery + info + spec table ---------------------------------- */
.dhtd-prod-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 52px; padding: 36px 0 56px; }
.dhtd-gallery__main {
  aspect-ratio: 4/3; background: var(--dhtd-light-bg); border: 1px solid var(--dhtd-border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden;
}
.dhtd-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.dhtd-prod-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--dhtd-navy);
  background: var(--dhtd-light-bg); border: 1px solid var(--dhtd-border); border-radius: 5px;
  padding: 5px 10px; margin: 0 8px 8px 0;
}
.dhtd-prod-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.dhtd-spec { padding: 10px 0 60px; }
.dhtd-spec table { width: 100%; border-collapse: collapse; max-width: 760px; }
.dhtd-spec th, .dhtd-spec td { text-align: left; padding: 13px 16px; font-size: 0.9063rem; border-bottom: 1px solid var(--dhtd-border); }
.dhtd-spec th { width: 220px; color: var(--dhtd-muted); font-weight: 600; }
.dhtd-spec td { color: var(--dhtd-text); font-weight: 600; font-variant-numeric: tabular-nums; }

.dhtd-section-pad { padding: 50px 0; background: var(--dhtd-light-bg); }
.dhtd-related-title { font-size: 1.1875rem; font-weight: 700; color: var(--dhtd-navy); margin: 0 0 22px; }

@media (max-width: 860px) {
  .dhtd-prod-hero { grid-template-columns: 1fr; }
}

/* ---------------------------------- Single Case Study: ảnh banner + nội dung 1 cột ---------------------------------- */
.dhtd-case-hero-img {
  width: 100%;
  aspect-ratio: 21/8;
  background: var(--dhtd-light-bg);
  border: 1px solid var(--dhtd-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 32px;
}
.dhtd-case-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dhtd-case-tags { margin: 0 0 22px; }

.dhtd-case-body { max-width: 760px; padding-bottom: 10px; }

@media (max-width: 640px) {
  .dhtd-case-hero-img { aspect-ratio: 4/3; }
}

/* ---------------------------------- Archive Case Study: banner nổi bật + tab Ngành + card grid ----------------------------------
 * Layout duyệt lại 25/08/2026 — chuyển từ rail+editorial list sang dạng card ảnh
 * (đối tượng là dự án/khách hàng, có tính trực quan, khác Dịch vụ là quy trình).
 * Filter theo Ngành (dhtd_case_industry) qua query string ?nganh=slug — KHÔNG dùng
 * taxonomy archive template riêng vì dhtd_case_industry dùng chung 3 CPT, tránh
 * lẫn kết quả Giải pháp/Khách hàng vào đây.
 */
.dhtd-case-feature {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  background: var(--dhtd-navy);
  border-radius: 14px;
  overflow: hidden;
  margin: 8px 0 40px;
  text-decoration: none !important;
}
.dhtd-case-feature__body { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.dhtd-case-feature__eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dhtd-gold); margin: 0 0 14px;
}
.dhtd-case-feature__title { font-size: clamp(1.6rem, 3vw, 2.1875rem); line-height: 1.2; color: #fff; margin: 0 0 14px; }
.dhtd-case-feature__desc { font-size: 0.9375rem; color: rgba(255,255,255,.78); margin: 0 0 26px; max-width: 440px; }
.dhtd-case-feature__img { position: relative; min-height: 280px; background: var(--dhtd-navy-hover); }
.dhtd-case-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhtd-case-feature__img-fallback {
  width: 100%; height: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, var(--dhtd-navy-hover), var(--dhtd-navy) 70%);
}
/* Logo đầy đủ (icon+chữ navy/sky) không đủ contrast đặt trực tiếp trên nền navy —
   đặt trên thẻ nền trắng bo góc để vẫn đọc rõ (xem bảng contrast trong tài liệu brand). */
.dhtd-case-feature__img-fallback img {
  max-width: 72%;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
@media (max-width: 900px) {
  .dhtd-case-feature { grid-template-columns: 1fr; }
  .dhtd-case-feature__img, .dhtd-case-feature__img-fallback { min-height: 200px; }
}

.dhtd-case-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 0 36px; }
.dhtd-case-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8438rem; font-weight: 700; color: var(--dhtd-text);
  background: var(--dhtd-light-bg); border: 1px solid var(--dhtd-border);
  padding: 10px 17px; border-radius: 22px; text-decoration: none !important;
}
.dhtd-case-tab svg { width: 16px; height: 16px; flex: none; }
.dhtd-case-tab.is-active { background: var(--dhtd-navy); border-color: var(--dhtd-navy); color: #fff; }
.dhtd-case-tab:hover:not(.is-active) { border-color: var(--dhtd-navy); }

.dhtd-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding-bottom: 70px; }
.dhtd-case-card {
  border: 1px solid var(--dhtd-border); border-radius: 12px; overflow: hidden;
  text-decoration: none !important; display: block; background: #fff;
}
.dhtd-case-card__media {
  aspect-ratio: 4/3; background: var(--dhtd-light-bg); position: relative; overflow: hidden;
}
.dhtd-case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dhtd-case-card__icon {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(22,62,124,.16); color: var(--dhtd-navy);
}
.dhtd-case-card__icon svg { width: 18px; height: 18px; }
.dhtd-case-card__body { padding: 20px 22px 24px; }
.dhtd-case-card__meta { display: flex; gap: 14px; font-size: 0.75rem; color: var(--dhtd-muted); margin: 0 0 12px; }
.dhtd-case-card__title { font-size: 1.0625rem; font-weight: 700; color: var(--dhtd-text); margin: 0 0 14px; line-height: 1.35; }
.dhtd-case-card:hover .dhtd-case-card__title { color: var(--dhtd-sky); }
.dhtd-case-card__section { margin-bottom: 11px; }
.dhtd-case-card__section:last-of-type { margin-bottom: 0; }
.dhtd-case-card__label { font-size: 0.75rem; font-weight: 700; margin: 0 0 3px; }
.dhtd-case-card__label--challenge { color: var(--dhtd-muted); }
.dhtd-case-card__label--approach { color: var(--dhtd-sky); }
.dhtd-case-card__label--result { color: var(--dhtd-gold-hover); }
.dhtd-case-card__text { font-size: 0.8438rem; color: var(--dhtd-muted); margin: 0; line-height: 1.5; }
.dhtd-case-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8438rem; font-weight: 700; color: var(--dhtd-navy); margin-top: 14px; }

@media (max-width: 900px) { .dhtd-case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .dhtd-case-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Archive Sản phẩm v2: hero + quick-filter + sidebar (Task 2, Phase 4) ----------------------------------
 * Layout theo mockup DHTD - Trang sản phẩm.png (02/09/2026). Class tiền tố
 * "dhtd-prodarc-" để không đụng "dhtd-svc-*"/"dhtd-case-*" của 2 module kia.
 * (taxonomy-dhtd_product_cat.php/taxonomy-dhtd_brand.php nay đều dùng chung
 * "dhtd-prodarc-*" qua catalog-layout.php — xem Task 32.1/32.3.)
 */
.dhtd-prodarc-hero {
  background: var(--dhtd-light-bg);
  padding-bottom: 30px;
}
.dhtd-prodarc-hero .dhtd-crumb { padding: 22px 0 0; margin-bottom: 0; }
.dhtd-prodarc-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: center;
  padding: 18px 0 32px;
}
.dhtd-prodarc-hero__body h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--dhtd-navy);
  line-height: 1.15;
  margin: 0 0 14px;
}
.dhtd-prodarc-hero__body .dhtd-lead {
  font-size: 1.0625rem;
  color: var(--dhtd-muted);
  margin: 0 0 10px;
  max-width: 620px;
}
.dhtd-prodarc-hero__note {
  font-size: 0.9375rem;
  color: var(--dhtd-text);
  margin: 0;
  max-width: 620px;
}
.dhtd-prodarc-hero__art {
  width: 100%;
  aspect-ratio: 4/3;
  opacity: 0.55;
}
.dhtd-prodarc-hero__art .dhtd-circuit-svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .dhtd-prodarc-hero__row { grid-template-columns: 1fr; }
  .dhtd-prodarc-hero__art { display: none; }
}

.dhtd-prodarc-quickcats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 6px;
}
.dhtd-prodarc-quickcat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dhtd-text);
  background: #fff;
  border: 1px solid var(--dhtd-border);
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none !important;
}
.dhtd-prodarc-quickcat__icon { width: 18px; height: 18px; flex: none; display: flex; }
.dhtd-prodarc-quickcat__icon svg { width: 100%; height: 100%; }
.dhtd-prodarc-quickcat.is-active { background: var(--dhtd-navy); border-color: var(--dhtd-navy); color: #fff; }
.dhtd-prodarc-quickcat:hover:not(.is-active) { border-color: var(--dhtd-sky); color: var(--dhtd-navy); }
@media (max-width: 700px) {
  .dhtd-prodarc-quickcats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; }
  .dhtd-prodarc-quickcat { flex: none; }
}

.dhtd-prodarc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0 0;
  align-items: start;
}
.dhtd-prodarc-sidebar { position: sticky; top: 24px; }
.dhtd-prodarc-sidebar__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dhtd-muted);
  margin: 0 0 18px;
}
.dhtd-prodarc-filtergroup { border: none; margin: 0 0 24px; padding: 0; }
/* Task 32.1 — ghi chú khi category đã bị khoá theo URL (trang từng Nhóm
 * sản phẩm), thay cho fieldset checkbox Danh mục bị ẩn đi. */
.dhtd-prodarc-locked-note {
  font-size: 0.8125rem;
  color: var(--dhtd-muted);
  background: var(--dhtd-light-bg);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.dhtd-prodarc-locked-note strong { color: var(--dhtd-text); }

.dhtd-prodarc-filtergroup legend {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dhtd-text);
  margin: 0 0 12px;
  padding: 0;
}
.dhtd-prodarc-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9063rem;
  color: var(--dhtd-text);
  padding: 6px 0;
  cursor: pointer;
}
.dhtd-prodarc-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--dhtd-navy);
  flex: none;
}
.dhtd-prodarc-sidebar__submit { width: 100%; margin-bottom: 16px; }
.dhtd-prodarc-sidebar__clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dhtd-navy);
  border: 1px solid var(--dhtd-border);
  border-radius: 10px;
  padding: 11px 16px;
  width: 100%;
  justify-content: center;
  text-decoration: none !important;
}
.dhtd-prodarc-sidebar__clear svg { width: 16px; height: 16px; }
.dhtd-prodarc-sidebar__clear:hover { border-color: var(--dhtd-navy); }
@media (max-width: 900px) {
  .dhtd-prodarc-layout { grid-template-columns: 1fr; }
  .dhtd-prodarc-sidebar { position: static; }
}

.dhtd-prodarc-count {
  font-size: 0.8438rem;
  color: var(--dhtd-muted);
  padding-bottom: 18px;
}

/* ---- Card sản phẩm v2: meta (danh mục/hãng) + specs bullet ---- */
.dhtd-pcard__media {
  aspect-ratio: 4/3;
  background: var(--dhtd-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
  width: 100%;
}
.dhtd-pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.dhtd-pcard__media-placeholder {
  width: 56px;
  height: 56px;
  color: var(--dhtd-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dhtd-pcard__media-placeholder svg { width: 100%; height: 100%; }
.dhtd-pcard__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.dhtd-pcard__cat {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--dhtd-sky);
  letter-spacing: 0.05em;
  min-width: 0;
}
.dhtd-pcard__brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dhtd-muted);
  text-align: right;
  min-width: 0;
  word-break: break-word;
}
.dhtd-pcard__specs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 5px;
}
.dhtd-pcard__specs li {
  font-size: 0.8125rem;
  color: var(--dhtd-muted);
  padding-left: 14px;
  position: relative;
}
.dhtd-pcard__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dhtd-sky);
}
.dhtd-pcard__cta { color: var(--dhtd-gold-hover); margin-top: auto; padding-top: 6px; }

.dhtd-pcard--cta {
  border: 1px dashed var(--dhtd-border);
  background: var(--dhtd-light-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 24px;
  gap: 6px;
  text-align: left;
}
.dhtd-pcard--cta__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--dhtd-border);
  color: var(--dhtd-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.dhtd-pcard--cta__icon svg { width: 20px; height: 20px; }
.dhtd-pcard--cta__title { font-size: 1rem; font-weight: 700; color: var(--dhtd-text); }
.dhtd-pcard--cta__desc { font-size: 0.8438rem; color: var(--dhtd-muted); margin-bottom: 12px; }
.dhtd-pcard--cta__btn { margin-top: 4px; }

/* ---- Banner quy trình 4 bước cuối trang (nền Navy) ---- */
.dhtd-prodarc-process {
  background: var(--dhtd-navy);
  padding: 46px 0;
  margin-top: 56px;
}
.dhtd-prodarc-process__title {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  text-align: center;
  margin: 0 0 34px;
}
.dhtd-prodarc-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.dhtd-prodarc-process__item { text-align: left; }
.dhtd-prodarc-process__icon {
  display: flex;
  width: 42px;
  height: 42px;
  color: var(--dhtd-gold);
  margin-bottom: 14px;
}
.dhtd-prodarc-process__icon svg { width: 100%; height: 100%; }
.dhtd-prodarc-process__item h3 {
  color: #fff;
  font-size: 0.9688rem;
  margin: 0 0 8px;
}
.dhtd-prodarc-process__item p {
  color: rgba(255,255,255,.72);
  font-size: 0.8438rem;
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .dhtd-prodarc-process__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .dhtd-prodarc-process__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- Single Sản phẩm v2: tagline, gallery thumbs, highlights, sidebar tư vấn, use-case/deploy-notes (Task 3, Phase 4) ----------------------------------
 * Bổ sung cho khối gốc ".dhtd-prod-hero/.dhtd-gallery__main/.dhtd-prod-tag/
 * .dhtd-prod-actions/.dhtd-spec/.dhtd-section-pad/.dhtd-related-title" đã có
 * sẵn phía trên — class mới dùng tiền tố "dhtd-pd-" để không đụng hàng.
 */
.dhtd-pd-gallery__main--placeholder { padding: 40px; }
.dhtd-pd-gallery__placeholder-icon { width: 72px; height: 72px; color: var(--dhtd-border); display: flex; }
.dhtd-pd-gallery__placeholder-icon svg { width: 100%; height: 100%; }

.dhtd-pd-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.dhtd-pd-gallery__thumb {
  width: 76px; height: 76px; padding: 0; border-radius: 8px; border: 1.5px solid var(--dhtd-border);
  background: #fff; cursor: pointer; overflow: hidden; flex: none;
}
.dhtd-pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dhtd-pd-gallery__thumb.is-active { border-color: var(--dhtd-sky); }

.dhtd-pd-hero__badges { margin-bottom: 2px; }

.dhtd-pd-tagline {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--dhtd-navy);
  line-height: 1.4;
  margin: 6px 0 10px;
}

.dhtd-pd-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--dhtd-border);
}
.dhtd-pd-highlight { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.dhtd-pd-highlight__icon { width: 26px; height: 26px; color: var(--dhtd-sky); display: flex; }
.dhtd-pd-highlight__icon svg { width: 100%; height: 100%; }
.dhtd-pd-highlight span:last-child { font-size: 0.8125rem; font-weight: 600; color: var(--dhtd-text); line-height: 1.35; }
@media (max-width: 480px) {
  .dhtd-pd-highlights { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.dhtd-pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  padding-bottom: 10px;
}
@media (max-width: 900px) {
  .dhtd-pd-main { grid-template-columns: 1fr; }
}

.dhtd-pd-consult {
  background: var(--dhtd-light-bg);
  border: 1px solid var(--dhtd-border);
  border-radius: 12px;
  padding: 26px;
  position: sticky;
  top: 24px;
}
.dhtd-pd-consult__title { font-size: 1.0625rem; color: var(--dhtd-navy); margin: 0 0 10px; }
.dhtd-pd-consult__desc { font-size: 0.875rem; color: var(--dhtd-muted); margin: 0 0 18px; line-height: 1.55; }
.dhtd-pd-consult__points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.dhtd-pd-consult__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8438rem; color: var(--dhtd-text); }
.dhtd-pd-consult__point-icon { width: 17px; height: 17px; color: var(--dhtd-sky); flex: none; margin-top: 2px; display: flex; }
.dhtd-pd-consult__point-icon svg { width: 100%; height: 100%; }
.dhtd-pd-consult__cta { display: block; width: 100%; text-align: center; margin-bottom: 20px; }
.dhtd-pd-consult__contact { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--dhtd-border); }
.dhtd-pd-consult__contact a,
.dhtd-pd-consult__contact span {
  display: flex; align-items: center; gap: 9px; font-size: 0.8125rem; color: var(--dhtd-text); text-decoration: none !important;
}
.dhtd-pd-consult__contact svg { width: 16px; height: 16px; color: var(--dhtd-navy); flex: none; }
.dhtd-pd-consult__contact a:hover { color: var(--dhtd-sky); }
@media (max-width: 900px) {
  .dhtd-pd-consult { position: static; }
}

.dhtd-pd-section { padding: 46px 0; border-top: 1px solid var(--dhtd-border); }
.dhtd-pd-section h2 { font-size: 1.375rem; color: var(--dhtd-navy); margin: 0 0 26px; }

.dhtd-pd-usecases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.dhtd-pd-usecase {
  background: #fff; border: 1px solid var(--dhtd-border); border-radius: 12px; padding: 24px;
}
.dhtd-pd-usecase__icon { width: 34px; height: 34px; color: var(--dhtd-sky); display: flex; margin-bottom: 14px; }
.dhtd-pd-usecase__icon svg { width: 100%; height: 100%; }
.dhtd-pd-usecase h3 { font-size: 1rem; color: var(--dhtd-text); margin: 0 0 12px; }
.dhtd-pd-usecase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dhtd-pd-usecase li { font-size: 0.8438rem; color: var(--dhtd-muted); padding-left: 14px; position: relative; }
.dhtd-pd-usecase li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--dhtd-sky);
}
@media (max-width: 900px) { .dhtd-pd-usecases { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .dhtd-pd-usecases { grid-template-columns: 1fr; } }

.dhtd-pd-notes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.dhtd-pd-note__icon { width: 30px; height: 30px; color: var(--dhtd-gold-hover); display: flex; margin-bottom: 12px; }
.dhtd-pd-note__icon svg { width: 100%; height: 100%; }
.dhtd-pd-note h3 { font-size: 0.9375rem; color: var(--dhtd-text); margin: 0 0 8px; }
.dhtd-pd-note p { font-size: 0.8125rem; color: var(--dhtd-muted); line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .dhtd-pd-notes { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .dhtd-pd-notes { grid-template-columns: 1fr; } }

/* Task 33.2 (04/09/2026) — trang /yeu-cau-bao-gia/ (page-yeu-cau-bao-gia.php),
   nhúng form Fluent Forms "Yêu cầu báo giá sản phẩm". */
.dhtd-quote-wrap { max-width: 640px; margin: 0 auto; }
.dhtd-quote-wrap h1 { font-size: 1.75rem; color: var(--dhtd-navy); margin: 0 0 10px; }
.dhtd-quote-lead { font-size: 0.9375rem; color: var(--dhtd-muted); margin: 0 0 24px; line-height: 1.6; }
.dhtd-quote-product-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--dhtd-light-bg);
	border: 1px solid var(--dhtd-border);
	border-radius: 8px;
	padding: 14px 18px;
	margin: 0 0 28px;
	font-size: 0.875rem;
	color: var(--dhtd-text);
}
.dhtd-quote-product-banner strong { color: var(--dhtd-navy); }
.dhtd-quote-missing-form {
	background: #fff4e5;
	border: 1px solid #f2c17d;
	color: #7a4b00;
	border-radius: 8px;
	padding: 16px 18px;
	font-size: 0.875rem;
	line-height: 1.6;
}
