/* =====================================================================
   cogioicongtrinh.vn – trang con (danh mục, sản phẩm, tin tức, trang tĩnh)
   Dùng lại design tokens của app.css (template public/html/index.html)
   ===================================================================== */

.page-hero {
  position: relative;
  background: var(--green-deep);
  color: #fff;
  padding: calc(var(--topbar-h) + var(--nav-h) + 40px) 0 56px;
  overflow: hidden;
  isolation: isolate
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(139, 209, 124, .22), transparent);
  z-index: -1
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  max-width: 22ch
}

.page-hero .lead {
  color: rgba(255, 255, 255, .78);
  margin-top: 14px;
  max-width: 70ch
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .7);
  list-style: none
}

.crumbs a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none
}

.crumbs a:hover {
  color: var(--green-lime)
}

.crumbs li+li::before {
  content: "/";
  margin-right: 10px;
  opacity: .5
}

.page-sec {
  padding: clamp(40px, 6vw, 88px) 0
}

.page-sec.tint {
  background: var(--mint)
}

/* ---------- chip danh mục con ---------- */
.sub-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px
}

.sub-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background .25s, border-color .25s
}

.sub-cats a:hover,
.sub-cats a.on {
  background: var(--green);
  border-color: var(--green)
}

.sub-cats small {
  opacity: .7;
  font-weight: 500
}

/* ---------- lưới sản phẩm ---------- */
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

.p-card .pic {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--mint), #fff);
  display: grid;
  place-items: center;
  padding: 14px
}

.p-card .pic img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.p-card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1
}

.p-card small {
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase
}

.p-card h3 {
  font-size: 17px;
  line-height: 1.35
}

.p-card h3 a {
  color: var(--green-ink);
  text-decoration: none
}

.p-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0
}

.p-card .more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green)
}

.empty {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  text-align: center;
  color: var(--muted)
}

/* ---------- chi tiết sản phẩm ---------- */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start
}

.pd-gallery .main {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--mint), #fff);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line)
}

.pd-gallery .main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto
}

.pd-thumbs button {
  flex: 0 0 84px;
  height: 66px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  background: var(--mint);
  padding: 4px;
  cursor: pointer
}

.pd-thumbs button.on {
  border-color: var(--green)
}

.pd-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.pd-info .brand {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px
}

.pd-info h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  margin: 6px 0 18px;
  color: var(--green-ink)
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px
}

.spec th,
.spec td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top
}

.spec th {
  color: var(--muted);
  font-weight: 500;
  width: 52%;
  padding-right: 16px
}

.spec td {
  font-weight: 700;
  color: var(--green-ink)
}

.pd-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px
}

.docs {
  margin-top: 22px;
  display: grid;
  gap: 8px
}

.docs a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none
}

.docs a:hover {
  background: var(--pastel)
}

/* ---------- nội dung HTML (mô tả, bài viết, trang) ---------- */
.prose {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  max-width: 100%
}

.prose> :where(* + *) {
  margin-top: 1em
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font);
  color: var(--green-ink);
  line-height: 1.3;
  margin-top: 1.6em
}

.prose h2 {
  font-size: 1.5em
}

.prose h3 {
  font-size: 1.25em
}

.prose a {
  color: var(--green)
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm)
}

.prose ul,
.prose ol {
  padding-left: 1.3em
}

.prose iframe {
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  width: 100%;
  border: 0;
  border-radius: var(--r-sm)
}

.prose figure {
  margin: 1.4em 0
}

.prose .row,
.prose .col,
.prose .col-inner,
.prose .section-content {
  max-width: 100%
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r)
}

.table-scroll table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px
}

.table-scroll td,
.table-scroll th,
.prose td,
.prose th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top
}

.table-scroll tr:first-child td,
.prose tr:first-child td {
  background: var(--green-dark);
  color: #fff
}

.table-scroll tr:nth-child(even) td {
  background: var(--mint)
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start
}

.side-card {
  position: sticky;
  top: 100px;
  background: var(--green-deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px
}

.side-card h3,
.side-card .side-title {
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1.05
}

.side-card p {
  color: rgba(255, 255, 255, .75);
  margin: 10px 0 18px
}

.side-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px
}

/* ---------- tin tức ---------- */
.n-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px
}

.post-meta {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  margin-top: 14px
}

/* ---------- phân trang ---------- */
.pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  list-style: none
}

.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--green-ink);
  text-decoration: none;
  font-weight: 600
}

.pager .on {
  background: var(--green);
  border-color: var(--green);
  color: #fff
}

.pager .off {
  opacity: .4
}

/* ---------- form liên hệ ---------- */
.c-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px)
}

.c-info {
  display: grid;
  gap: 16px;
  align-content: start
}

.c-info .item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--mint)
}

.c-info small {
  display: block;
  color: var(--muted)
}

.c-info b,
.c-info a {
  color: var(--green-ink);
  font-weight: 700;
  text-decoration: none
}

.form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow)
}

.form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-ink);
  display: grid;
  gap: 6px
}

.form input,
.form textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--mint)
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--green);
  background: #fff
}

.form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.form .err {
  color: #c62828;
  font-size: 13px
}

.alert-ok {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--pastel);
  color: var(--green-dark);
  font-weight: 600
}

.hp {
  position: absolute;
  left: -9999px
}

.search-box {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  max-width: 640px
}

.search-box input {
  flex: 1;
  font: inherit;
  padding: 14px 18px;
  border-radius: 999px;
  border: 0
}

@media (max-width: 1024px) {

  .pd,
  .two-col,
  .c-grid {
    grid-template-columns: 1fr
  }

  .side-card {
    position: static
  }
}

@media (max-width: 560px) {
  .form .row2 {
    grid-template-columns: 1fr
  }

  .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  .p-card .body {
    padding: 12px
  }

  .p-card h3 {
    font-size: 15px
  }
}

/* ---------- tìm kiếm thiết bị ---------- */
.s-understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted)
}

.s-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pastel);
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none
}

.s-notice {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #FFF6EA;
  color: #7A4A00;
  margin-bottom: 20px
}

.s-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start
}

.s-layout> :only-child {
  grid-column: 1 / -1
}

.s-facets {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 22px
}

.s-fgroup h3 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px
}

.s-fgroup ul {
  list-style: none;
  display: grid;
  gap: 4px
}

.s-fgroup a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--green-ink);
  text-decoration: none;
  font-size: 14.5px
}

.s-fgroup a:hover {
  background: var(--mint)
}

.s-fgroup a.on {
  background: var(--green);
  color: #fff
}

.s-fgroup small {
  opacity: .65
}

@media (max-width: 1024px) {
  .s-layout {
    grid-template-columns: 1fr
  }

  .s-facets {
    position: static;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
  }
}

/* ---------- bộ lọc danh mục ---------- */
.c-filters {
  display: grid;
  gap: 18px
}

.c-filters fieldset {
  border: 0;
  padding: 0;
  margin: 0
}

.c-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  font-size: 14.5px;
  cursor: pointer
}

.c-check input {
  accent-color: var(--green);
  width: 16px;
  height: 16px
}

.c-check small {
  margin-left: auto;
  color: var(--muted)
}

.c-range {
  display: flex;
  align-items: center;
  gap: 8px
}

.c-range input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--mint)
}

.c-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

/* ---------- trang tĩnh: giới thiệu / dịch vụ ---------- */
.svc-nav {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff
}

.svc-nav a {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  color: var(--green-ink);
  font-weight: 600;
  text-decoration: none
}

.svc-nav a:hover {
  background: var(--mint)
}

.svc-nav a.on {
  background: var(--green);
  color: #fff
}

.svc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px
}

.svc-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line)
}

.svc-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block
}

.svc-card div {
  padding: 18px 20px 22px
}

.svc-card h3 {
  font-size: 18px;
  color: var(--green-ink)
}

.svc-card p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 15px
}

.prose figure img {
  width: 100%
}

/* ---------- bài viết danh mục (SEO/GEO) ---------- */
.cat-article {
  background: var(--mint);
  border-top: 1px solid var(--line)
}

.cat-article-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start
}

.cat-toc {
  position: sticky;
  top: 110px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px
}

.cat-toc ol {
  margin: 12px 0 0;
  padding-left: 1.2em;
  font-size: 14.5px;
  line-height: 1.5
}

.cat-toc li+li {
  margin-top: 8px
}

.cat-toc a {
  color: var(--green-ink);
  text-decoration: none
}

.cat-toc a:hover {
  color: var(--green);
  text-decoration: underline
}

.cat-article-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 44px)
}

.cat-article-body section {
  scroll-margin-top: 110px
}

.cat-updated,
.cat-meta {
  font-size: 14px;
  color: var(--muted, #5b6b63)
}

.cat-children {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 14px
}

.cat-children li {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 18px
}

.cat-children h3 {
  margin: 0 !important;
  font-size: 1.1em !important
}

.cat-children h3 a {
  text-decoration: none
}

.cat-children p {
  margin: 6px 0 0
}

.cat-article .table-scroll table {
  min-width: 420px
}

.cat-article .table-scroll thead th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  white-space: nowrap
}

.cat-article .table-scroll tbody th {
  font-weight: 600
}

.cat-article .table-scroll tbody th a {
  color: var(--green);
  text-decoration: none
}

.cat-article .faq-list summary {
  padding: 16px 18px;
  font-size: 15.5px
}

.cat-article .faq-ans p {
  padding: 0 18px 16px;
  margin: 0
}

.cat-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2em !important
}

@media (max-width: 960px) {
  .cat-article-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .cat-toc {
    position: static
  }
}

.cat-article-body section>*+* {
  margin-top: .9em
}

.cat-article-body ul:not(.cat-children) {
  list-style: disc
}

.cat-article-body ol {
  list-style: decimal
}

.cat-article-body li+li {
  margin-top: .35em
}

/* bảng thông số: không tô dòng đầu như bảng nhập từ nguồn */
.cat-article .table-scroll tbody tr:first-child td,
.cat-article .table-scroll tbody tr td {
  background: #fff;
  color: var(--text)
}

.cat-article .table-scroll tbody tr:nth-child(even) td,
.cat-article .table-scroll tbody tr:nth-child(even) th {
  background: var(--mint)
}

/* ---------- bộ chọn thiết bị trong ô tìm kiếm ---------- */
.search-ov {
  overflow-y: auto;
  padding-top: 11vh;
  padding-bottom: 48px
}

.eqf {
  width: min(980px, 92vw);
  margin-top: 34px;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  transition: opacity .2s
}

.eqf.busy .eqf-result,
.eqf.busy .eqf-steps {
  opacity: .6
}

.eqf-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between
}

.eqf-head h2 {
  font: 700 clamp(18px, 1.8vw, 22px)/1.3 var(--font);
  color: #fff;
  margin: 0
}

.eqf-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .25)
}

.eqf-tabs button {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .75);
  font: 600 14px/1 var(--font);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer
}

.eqf-tabs button[aria-selected="true"] {
  background: var(--green);
  color: #fff
}

.eqf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px
}

.eqf-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: center
}

.eqf-step .n {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, .14)
}

.eqf-step.done .n {
  background: var(--green)
}

.eqf-step .l {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .7)
}

.eqf-step select,
.eqf-range input {
  width: 100%;
  min-width: 0;
  background: #fff;
  color: var(--green-ink);
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font: 500 15px/1.2 var(--font)
}

.eqf-sub {
  margin: 18px 0 8px;
  font-weight: 600
}

.eqf-sub small,
.eqf-range small,
.eqf-tip {
  color: rgba(255, 255, 255, .65);
  font-weight: 400;
  font-size: 13px
}

.eqf-tip {
  grid-column: 1 / -1;
  margin: 4px 0 0
}

.eqf-fields {
  display: grid;
  gap: 10px
}

.eqf-range {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(90px, 160px) 14px minmax(90px, 160px) auto;
  gap: 10px;
  align-items: center
}

.eqf-range .dash {
  text-align: center;
  opacity: .7
}

.eqf-result {
  margin-top: 22px
}

.eqf-rhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.eqf-reset {
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer
}

.eqf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px
}

.eqf-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  color: var(--green-ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s
}

.eqf-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25)
}

.eqf-list .im {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  background: var(--mint);
  display: grid;
  place-items: center;
  overflow: hidden
}

.eqf-list .im img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.eqf-list .tx {
  display: grid;
  gap: 2px;
  min-width: 0
}

.eqf-list small {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .04em
}

.eqf-list strong {
  font-size: 14.5px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}

.eqf-list em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted)
}

.eqf-all {
  margin-top: 16px
}

.eqf-empty p+p {
  margin-top: 12px
}

.eqf-empty .btn-ghost {
  color: #fff
}

@media (max-width: 640px) {
  .search-ov {
    padding-top: 80px
  }

  .eqf-range {
    grid-template-columns: 1fr 14px 1fr;
  }

  .eqf-range .l,
  .eqf-range .cov {
    grid-column: 1 / -1
  }

  .eqf-head {
    align-items: flex-start
  }
}

/* ---------- trang SP: so sánh cùng dòng, hỏi đáp ---------- */
.pd-compare table {
  min-width: 420px
}

.pd-compare thead th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  white-space: nowrap
}

.pd-compare tbody tr td,
.pd-compare tbody tr:first-child td {
  background: #fff;
  color: var(--text)
}

.pd-compare tbody th a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600
}

.pd-compare tr.is-current th,
.pd-compare tr.is-current td {
  background: var(--pastel, #E8F5E9) !important;
  font-weight: 700
}

.pd-faq {
  max-width: 980px
}

.pd-faq .faq-list summary {
  padding: 16px 18px;
  font-size: 15.5px
}

/* ---------- tốc độ: hero hiện dần bằng CSS (không chờ JS) – cùng hiệu ứng .rv, giúp LCP sớm ---------- */
@keyframes cgRvIn {
  from {
    opacity: .01;
    transform: translateY(36px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.js .hero .rv {
  opacity: 1;
  transform: none;
  transition: none;
  animation: cgRvIn .9s var(--ease) both
}

.js .hero .rv[data-d="1"] {
  animation-delay: .1s
}

.js .hero .rv[data-d="2"] {
  animation-delay: .2s
}

.js .hero .rv[data-d="3"] {
  animation-delay: .3s
}

@media (prefers-reduced-motion: reduce) {
  .js .hero .rv {
    animation: none
  }
}

/* ---------- lưới ảnh trong nội dung (ảnh liền nhau – ContentFlattener) ---------- */
.prose .prose-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 1.2em 0
}

.prose .prose-gallery figure {
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 17 / 10
}

.prose .prose-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block
}

@media (max-width: 480px) {
  .prose .prose-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
  }
}

/* ---------- khoảng cách section: tối đa 80px trên/dưới (yêu cầu 2026-12-03; template gốc 130–140px) ---------- */
.official {
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px)
}

.about,
.catalog,
.featured,
.service,
.ai-faq,
.news {
  padding: clamp(48px, 6vw, 80px) 0
}

.page-sec {
  padding: clamp(40px, 5.5vw, 80px) 0
}

/* ---------- nội dung biên tập mới (bảng có thead, danh sách) ---------- */
.prose table:has(thead) thead th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left
}

.prose table:has(thead) tbody tr:first-child td {
  background: transparent;
  color: inherit
}

.prose table:has(thead) tbody tr:nth-child(even) td {
  background: var(--mint)
}

.prose ul {
  list-style: disc
}

.prose ol {
  list-style: decimal
}

.prose li+li {
  margin-top: .35em
}

.prose li::marker {
  color: var(--green)
}

/* bố cục 2 cột trên điện thoại: cột nội dung không bị bảng/khối rộng kéo giãn */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr)
  }
}

.prose .table-scroll table {
  margin: 0
}

/* bảng biên tập 2 cột (có thead): xuống dòng vừa màn hình, không cần cuộn */
.prose .table-scroll table:has(thead) {
  min-width: 0
}
