/* =====================================================================
   PAKI-TECH · các trang con (sản phẩm, chi tiết, báo giá, giới thiệu,
   liên hệ, kiến thức, chính sách) — dùng chung token & khung 86% của style.css
   ===================================================================== */

/* ---------- Banner trang con: ngắn hơn banner trang chủ ---------- */
.hero.hero-page { height: auto; min-height: clamp(380px, 58vh, 580px); }
.hero-page .hero-in { padding-block: clamp(36px, 7vh, 80px) clamp(40px, 7vh, 84px); }
.hero-page .hero-h1 { font-size: clamp(30px, 3.6vw, 52px); }
.hero-page .hero-shade { background: linear-gradient(180deg, rgba(6, 19, 33, .72) 0%, rgba(6, 19, 33, .2) 34%), linear-gradient(90deg, rgba(7, 22, 38, .94) 0%, rgba(7, 22, 38, .78) 40%, rgba(7, 22, 38, .3) 75%, rgba(7, 22, 38, .2) 100%); }
/* Banner gọn (trang chi tiết, bài viết, chính sách): nền tối, không ảnh */
.hero.hero-mini { height: auto; min-height: 0; background: var(--night); }
.hero-mini .hero-in { padding-block: clamp(26px, 4vw, 44px) clamp(34px, 4.6vw, 56px); }
.hero.hero-bar { height: var(--mhd); min-height: 0; padding: 0; background: var(--night); }
.hero-mini .hero-h1 { font-size: clamp(26px, 3vw, 42px); max-width: 900px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { width: 16px; height: 16px; color: var(--blue-light); }

/* Khối dính: lùi xuống dưới header khi header hiện lại (html.mh-on do app.js bật) */
:root { --mhd: 70px; }
.fbar-wrap, .toc, .art-aside, .pd-gallery { transition: top .45s var(--ease-out); }
.mh-on .fbar-wrap, .mh-on .toc, .mh-on .art-aside, .mh-on .pd-gallery { top: calc(var(--mhd) + 12px); }

/* ---------- Thanh lọc (danh mục, bài viết) ---------- */
.fbar-wrap { position: sticky; top: 10px; z-index: 30; margin-top: clamp(28px, 4vw, 44px); }
.fbar { display: flex; gap: 8px; width: fit-content; max-width: 100%; margin-inline: auto; padding: 8px; overflow-x: auto; scrollbar-width: none; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-1); }
.fbar::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.fchip i { font-style: normal; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mist); font-size: 12px; font-weight: 700; color: var(--text-2); }
.fchip:hover { color: var(--ink); background: var(--well); }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fchip[aria-pressed="true"] i { background: rgba(255, 255, 255, .16); color: #fff; }
.cat-sec { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 0; }
.cat-sec[hidden] { display: none; }
.cat-sec .sec-head { text-align: left; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; }
.cat-sec .sec-head h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.cat-sec .sec-head p { max-width: 560px; font-size: 15px; color: var(--text-2); }
.cat-end { padding-bottom: clamp(60px, 7vw, 100px); }

/* ---------- Dải kêu gọi cuối trang ---------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-right: 14px solid rgba(255, 255, 255, .08); border-top: 14px solid rgba(255, 255, 255, .08); z-index: -1; }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .74); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Chi tiết sản phẩm ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.6vw, 64px); align-items: start; padding-top: clamp(40px, 5vw, 64px); }
.pd-gallery { position: sticky; top: 24px; }
.pd-media { position: relative; aspect-ratio: 1; max-height: 60vh; margin-inline: auto; width: 100%; border-radius: 24px; overflow: hidden; background: var(--well); border: 1px solid var(--line); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media.is-cut img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.pd-media .badge { top: 18px; left: 18px; }
.pd-info h1 { margin: 10px 0 8px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.pd-spec { font-size: 15.5px; color: var(--text-2); }
.pd-price { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--blue-50); font-size: 15px; color: var(--text-2); }
.pd-price small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.pd-price b { font-size: 22px; font-weight: 800; color: var(--accent); }
.pd-desc { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--text); }
.pd-rows { margin-top: 18px; }
.pd-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pd-add.is-added { --bg: var(--ok); }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.pd-perks li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pd-perks .ic { flex: none; width: 20px; height: 20px; color: var(--blue); }
.pd-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.pd-more h2 { margin-bottom: 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; color: var(--ink); }
.pd-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--accent); }
.pd-link .ic { width: 16px; height: 16px; }

/* Hỏi – đáp */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 18px 18px; color: var(--text-2); line-height: 1.7; }

.rel-sec { padding-top: clamp(56px, 7vw, 96px); }
.rel-sec .sec-head { text-align: left; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.rel-sec .sec-head h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; color: var(--ink); }

/* ---------- Báo giá ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.step::before { counter-increment: st; content: "0" counter(st); display: block; margin-bottom: 14px; font: 700 34px/1 var(--f-num); color: var(--blue); }
.step b { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ink); }
.step p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.vtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.vtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.vtable th { padding: 14px 18px; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--well); border-bottom: 1px solid var(--line); white-space: nowrap; }
.vtable td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.vtable tr:last-child td { border-bottom: 0; }
.vtable td:first-child { font: 700 20px/1 var(--f-num); color: var(--ink); white-space: nowrap; }
.vtable .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.vtable .btn.is-added { --bg: var(--ok); --fg: #fff; border-color: transparent; }

/* ---------- Giới thiệu ---------- */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-txt h2 { margin: 10px 0 20px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.story-txt p { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--text); }
.story-media { position: relative; aspect-ratio: 4 / 3; max-height: 60vh; border-radius: 24px; overflow: hidden; background: var(--mist); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.locs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loc { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.loc:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-4px); }
.loc .ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--blue-50); color: var(--blue); box-sizing: border-box; }
.loc b { font-size: 16.5px; color: var(--ink); }
.loc p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.loc a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent); }
.loc a .ic { width: 16px; height: 16px; padding: 0; background: none; color: inherit; }

/* ---------- Liên hệ ---------- */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ccard { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out); }
.ccard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-4px); }
.ccard .ic { width: 46px; height: 46px; margin-bottom: 8px; padding: 12px; border-radius: 50%; background: var(--accent); color: #fff; box-sizing: border-box; }
.ccard small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ccard b { font-size: 18px; color: var(--ink); word-break: break-word; }
.ccard span { font-size: 14px; color: var(--text-2); }
.where { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.where-list { display: grid; gap: 12px; align-content: start; }
.where-list button { display: flex; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, background-color .2s; }
.where-list button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-50); }
.where-list .ic { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.where-list b { display: block; color: var(--ink); }
.where-list span { font-size: 14px; color: var(--text-2); }
.where-map { min-height: 380px; max-height: 60vh; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.where-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Kiến thức ---------- */
.feat-post { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(22px, 4vw, 56px); align-items: center; margin-bottom: clamp(36px, 4.5vw, 56px); }
.feat-post .post-media { aspect-ratio: 16 / 10; max-height: 60vh; margin: 0; border-radius: 24px; }
.feat-post h2 { margin: 10px 0 14px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.feat-post p { color: var(--text-2); line-height: 1.7; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; font-size: 13px; color: var(--text-3); }
.blog-all .post[hidden] { display: none; }
.blog-all { row-gap: 40px; }

/* Bài viết */
.art { max-width: 880px; padding-top: clamp(36px, 4.5vw, 56px); } /* bài viết 1 cột, căn giữa (đã bỏ cột phải 11/10/2026) */
.art-cover { aspect-ratio: 16 / 9; max-height: 60vh; border-radius: 24px; overflow: hidden; background: var(--mist); margin-bottom: clamp(26px, 3vw, 38px); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.aside-card h3 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.aside-prod { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.aside-prod + .aside-prod { border-top: 1px dashed var(--line-2); }
.aside-prod img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--well); }
.aside-prod b { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.aside-prod:hover b { color: var(--accent); }
.aside-cta { padding: 22px; border-radius: 20px; background: var(--deep); color: #fff; }
.aside-cta b { display: block; font-size: 18px; line-height: 1.3; }
.aside-cta p { margin: 8px 0 16px; font-size: 14px; color: rgba(255, 255, 255, .74); }
.aside-cta .btn { width: 100%; }

/* Văn bản dài (bài viết, chính sách) */
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(22px, 2.1vw, 28px); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; line-height: 1.35; color: var(--ink); }
.prose h4 { margin-top: 1.4em; font-size: 17px; font-weight: 700; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); }
.prose strong, .prose b { color: var(--ink); }
.prose img { max-height: 60vh; width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: 16px; }
.prose figure { margin-block: 1.6em; }
.prose figcaption { margin-top: 8px; font-size: 14px; text-align: center; color: var(--text-3); }
.prose blockquote { padding: 16px 20px; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--blue-50); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--well); color: var(--ink); }
.prose .yt { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--night); }
.prose .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* định dạng từ thanh công cụ soạn bài (11/10/2026): kẻ ngang, gạch ngang chữ, căn ảnh trái/giữa/phải */
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.prose s, .prose del { color: var(--text-3); }
.prose::after { content: ""; display: table; clear: both; }
.prose img[style*="float: left"], .prose figure.align-left { float: left; max-width: 48%; margin: .3em 1.4em 1em 0; }
.prose img[style*="float: right"], .prose figure.align-right { float: right; max-width: 48%; margin: .3em 0 1em 1.4em; }
.prose figure.align-center { display: table; margin-inline: auto; }
@media (max-width: 760px) {
  .prose img[style*="float"], .prose figure.align-left, .prose figure.align-right { float: none; max-width: 100%; margin: 1em auto; }
}
.art-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.art-foot span { font-size: 14px; color: var(--text-3); margin-right: 4px; }

/* ---------- Chính sách ---------- */
.policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4.6vw, 72px); align-items: start; padding-top: clamp(36px, 4.5vw, 56px); }
.toc { position: sticky; top: 24px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: background-color .2s, color .2s; }
.toc a .ic { width: 18px; height: 18px; color: var(--blue); }
.toc a:hover { background: var(--well); color: var(--ink); }
.toc a.is-on { background: var(--ink); color: #fff; }
.toc a.is-on .ic { color: #fff; }
.policy-sec { scroll-margin-top: 90px; }
.policy-sec + .policy-sec { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.policy-sec > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; color: var(--ink); }
.policy-sec > h2 .ic { width: 1em; height: 1em; color: var(--blue); }

/* Nút "xem tất cả" dưới khối bài viết trang chủ + link "Xem chi tiết" trong xem nhanh */
.sec-more { margin-top: clamp(28px, 3.4vw, 40px); text-align: center; }
.qv-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.qv-more .ic { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.qv-more:hover .ic { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --mhd: 62px; }
  .locs, .cgrid { grid-template-columns: repeat(2, 1fr); }
  .art { grid-template-columns: minmax(0, 1fr); }
  .art-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .pd, .pd-more, .story, .where, .feat-post, .policy { grid-template-columns: minmax(0, 1fr); }
  .pd-gallery { position: relative; top: 0; width: 100%; max-width: 560px; margin-inline: auto; }
  .toc { position: static; grid-auto-flow: column; overflow-x: auto; }
  .toc a { white-space: nowrap; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --mhd: 58px; }
  .hero.hero-page { min-height: 0; }
  .hero-page .hero-in, .hero-mini .hero-in { align-items: flex-end; padding-block: 28px 32px; }
  .fbar-wrap { position: static; }
  /* Mobile: hiện đủ mọi lựa chọn, xuống dòng thay vì vuốt ngang */
  .fbar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; padding: 6px; overflow: visible; border-radius: 26px; }
  .fchip { justify-content: center; min-width: 0; height: auto; min-height: 38px; padding: 6px 8px; gap: 6px; border-radius: 999px; background: var(--well); font-size: 13px; line-height: 1.2; text-align: center; white-space: nowrap; }
  .fchip i { flex: none; min-width: 22px; height: 20px; font-size: 11px; background: #fff; }
  .fchip:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 3px); }
  /* Tiêu đề nhóm: luôn tên nhóm trên, số sản phẩm dưới (đồng bộ mọi nhóm) */
  .cat-sec .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 380px) {
  .fchip { padding-inline: 4px; font-size: 12.5px; letter-spacing: -.01em; }
  .pd-perks { grid-template-columns: minmax(0, 1fr); }
  .locs, .cgrid { grid-template-columns: minmax(0, 1fr); }
  .art-aside { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 15.5px; }
  .vtable { font-size: 14px; }
  .vtable th, .vtable td { padding: 12px; }
  .where-map, .where-map iframe { min-height: 300px; }
}

/* =====================================================================
   CMS v4 — KHOẢNG CÁCH 3 TẦNG (đừng khai báo lại padding của section ở chỗ khác)
   Tầng 1 · nhịp trang: --rh-pad (hệ số khoảng trắng trong section), --rh-gap (khoảng hở giữa 2 section),
            --rh-hero (khoảng sau khối mở đầu) — CMS ghi vào <style id="cms-rhythm"> theo từng nhóm thiết bị.
   Tầng 2 · từng section: data-sp-t / data-sp-b = 0..4 (2 = chuẩn), riêng tablet -t, riêng mobile -m.
            padding = bật/tắt × max(0, (gốc + Δ × khoảng chuẩn) × nhịp)  →  mức "Chuẩn" trùng thiết kế gốc.
   Tầng 3 · phần tử: data-sp-e / data-sp-g, áp bằng assets/cms-sp.js (chạy cả trên bản công khai).
   ===================================================================== */
:root { --sec-pad: clamp(60px, 7vw, 100px); }
.sec { --pt0: var(--sec-pad); --pb0: var(--sec-pad); }
.sec-intro { --pt0: clamp(56px, 6vw, 84px); --pb0: clamp(48px, 5vw, 72px); }
.sec-promo { --pt0: clamp(44px, 5vw, 72px); --pb0: 30px; } /* 30px trắng giữa slide ưu điểm và khối Năng lực sản xuất */
.sec-quote { --pt0: clamp(36px, 4.4vw, 60px); --pb0: clamp(36px, 4.4vw, 60px); }
@media (max-width: 760px) {
  :root { --sec-pad: 56px; }
  .sec-intro, .sec-promo, .sec-quote { --pt0: 56px; --pb0: 56px; }
  .sec-promo { --pb0: 30px; }
}
.cat-sec { --pt0: clamp(40px, 5vw, 64px); --pb0: 0px; }
.cat-end { --pb0: clamp(60px, 7vw, 100px); }
.rel-sec { --pt0: clamp(56px, 7vw, 96px); }
.sec.pt0 { --pt0: 0px; }
.sec.pb0 { --pb0: 0px; }
.sec {
  padding-top: calc(var(--s-on-t, 1) * max(0px, (var(--pt0) + var(--s-dt, 0) * var(--sec-pad)) * var(--rh-pad, 1)));
  padding-bottom: calc(var(--s-on-b, 1) * max(0px, (var(--pb0) + var(--s-db, 0) * var(--sec-pad)) * var(--rh-pad, 1)));
}
main#main > * + * { margin-top: var(--rh-gap, 0px); }
main#main > .hero + * { margin-top: var(--rh-hero, 0px); }
[data-sp-t="0"] { --s-on-t: 0; --s-dt: 0; }
[data-sp-t="1"] { --s-on-t: 1; --s-dt: -.5; }
[data-sp-t="2"] { --s-on-t: 1; --s-dt: 0; }
[data-sp-t="3"] { --s-on-t: 1; --s-dt: .5; }
[data-sp-t="4"] { --s-on-t: 1; --s-dt: 1; }
[data-sp-b="0"] { --s-on-b: 0; --s-db: 0; }
[data-sp-b="1"] { --s-on-b: 1; --s-db: -.5; }
[data-sp-b="2"] { --s-on-b: 1; --s-db: 0; }
[data-sp-b="3"] { --s-on-b: 1; --s-db: .5; }
[data-sp-b="4"] { --s-on-b: 1; --s-db: 1; }
@media (min-width: 761px) and (max-width: 1099px) {
[data-sp-t-t="0"] { --s-on-t: 0; --s-dt: 0; }
[data-sp-t-t="1"] { --s-on-t: 1; --s-dt: -.5; }
[data-sp-t-t="2"] { --s-on-t: 1; --s-dt: 0; }
[data-sp-t-t="3"] { --s-on-t: 1; --s-dt: .5; }
[data-sp-t-t="4"] { --s-on-t: 1; --s-dt: 1; }
[data-sp-b-t="0"] { --s-on-b: 0; --s-db: 0; }
[data-sp-b-t="1"] { --s-on-b: 1; --s-db: -.5; }
[data-sp-b-t="2"] { --s-on-b: 1; --s-db: 0; }
[data-sp-b-t="3"] { --s-on-b: 1; --s-db: .5; }
[data-sp-b-t="4"] { --s-on-b: 1; --s-db: 1; }
}
@media (max-width: 760px) {
[data-sp-t-m="0"] { --s-on-t: 0; --s-dt: 0; }
[data-sp-t-m="1"] { --s-on-t: 1; --s-dt: -.5; }
[data-sp-t-m="2"] { --s-on-t: 1; --s-dt: 0; }
[data-sp-t-m="3"] { --s-on-t: 1; --s-dt: .5; }
[data-sp-t-m="4"] { --s-on-t: 1; --s-dt: 1; }
[data-sp-b-m="0"] { --s-on-b: 0; --s-db: 0; }
[data-sp-b-m="1"] { --s-on-b: 1; --s-db: -.5; }
[data-sp-b-m="2"] { --s-on-b: 1; --s-db: 0; }
[data-sp-b-m="3"] { --s-on-b: 1; --s-db: .5; }
[data-sp-b-m="4"] { --s-on-b: 1; --s-db: 1; }
}
/* khối văn bản tự do */
.rt-narrow { max-width: 820px; }
.rt-h { margin: 0 0 18px; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); text-wrap: balance; }
/* bộ ảnh + tài liệu ở trang chi tiết sản phẩm */
.pd-nav { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pd-arr { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.pd-arr .ic { width: 18px; height: 18px; }
.pd-arr:hover, .pd-arr:focus-visible { border-color: var(--blue); color: var(--blue); }
.pd-thumbs { flex: 1; min-width: 0; display: flex; gap: 10px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-th { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--well); overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pd-th:first-child { margin-left: auto; }
.pd-th:last-child { margin-right: auto; }
.pd-th.is-on { border-color: var(--blue); box-shadow: 0 0 0 2px #fff inset; }
.pd-th img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .pd-arr { width: 40px; height: 40px; } .pd-th { width: 48px; height: 48px; } .pd-nav { gap: 8px; } }
.pd-files { display: grid; gap: 8px; margin-top: 22px; }
.pd-files-t { margin: 0; font-weight: 700; color: var(--ink); }
.pd-file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pd-file .ic { width: 18px; height: 18px; color: var(--blue); flex: none; }
.pd-file small { margin-left: auto; color: var(--muted); font-weight: 500; }
.pd-file:hover { border-color: var(--blue); }
