/*
Theme Name: Làm Mát Công Nghiệp
Theme URI: https://lammatcongnghiep.com
Author: Mr.Vũ
Description: Theme tinh gọn cho lammatcongnghiep.com — giải pháp làm mát, thông gió công nghiệp. Không jQuery, 1 file CSS, video YouTube tải khi bấm.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: lammat
*/

/* ---------- Biến màu & nền tảng ---------- */
:root {
  --brand: #7a1020;          /* đỏ đô */
  --brand-700: #5c0b17;
  --brand-800: #44070f;
  --brand-50: #fbf2f3;
  --brand-100: #f4dde0;
  --accent: #e7a520;         /* vàng nhấn cho nút phụ */
  --accent-700: #b67d0c;
  --cool: #0f7489;           /* xanh "mát" cho nhãn kỹ thuật */
  --cool-50: #e9f5f7;
  --steel: #1f2933;          /* thép tối */
  --steel-700: #2c3a47;
  --ink: #1b2129;
  --muted: #5d6874;
  --line: #e7e2de;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .06), 0 4px 16px rgba(20, 24, 31, .06);
  --shadow-lg: 0 10px 34px rgba(20, 24, 31, .14);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--steel); font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--steel); color: #dfe5ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
@media (min-width: 992px) { .section { padding: 80px 0; } }

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.section--dark .sec-head p { color: #b9c3cc; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.section--dark .eyebrow { color: var(--accent); }
.link-more { font-weight: 650; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; }

/* ---------- Nút ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--accent { background: var(--accent); color: #2a1a00; }
.btn--accent:hover { background: #f0b53a; color: #2a1a00; }
.btn--ghost { border-color: currentColor; color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand-50); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Thanh trên cùng & header ---------- */
.topbar { background: var(--brand-800); color: #f3dfe2; font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar__l, .topbar__r { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 991px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--steel); flex: none; }
.logo svg { width: 42px; height: 42px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__brand { font-weight: 850; font-size: 1.28rem; color: var(--brand); letter-spacing: -.02em; }
.logo__tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.custom-logo { max-height: 48px; width: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current-menu-parent > a { color: var(--brand); background: var(--brand-50); }
.nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav .sub-menu a { font-weight: 550; padding: 9px 12px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.sub-toggle { display: none; }
.header-cta { display: flex; gap: 8px; align-items: center; }
.header-cta .btn { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; color: var(--steel); }
.icon-btn svg { width: 22px; height: 22px; }

@media (max-width: 1439px) { .header-cta .btn--ghost { display: none; } }
@media (min-width: 992px) and (max-width: 1180px) { .nav a { padding: 10px 8px; font-size: .9rem; } .logo__tag { display: none; } }
@media (max-width: 991px) {
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .logo svg { width: 36px; height: 36px; }
  .logo__brand { font-size: 1.12rem; }
  .logo__tag { font-size: .62rem; }
  .icon-btn { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  /* Menu đóng: ẩn tại chỗ (không đẩy ra ngoài lề — tránh làm trang giãn ngang trên điện thoại) */
  .nav { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 120px; margin: 0; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-open { overflow: hidden; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 14px 4px; font-size: 1.02rem; }
  .nav .menu-item-has-children > a::after { display: none; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .nav .sub-open > .sub-menu { display: block; }
  .sub-toggle { display: flex; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); }
  .sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
  .sub-open > .sub-toggle svg { transform: rotate(180deg); }
  .nav__extra { display: grid !important; }
}
.nav__extra { display: none; gap: 10px; margin-top: 18px; }
.nav .nav__extra .btn { display: flex; padding: 10px 20px; font-size: 1rem; border-radius: 999px; }
.nav .nav__extra .btn--primary, .nav .nav__extra .btn--primary:hover { color: #fff; background: var(--brand); }
.nav .nav__extra .btn--ghost { color: var(--brand); border-color: var(--brand); background: transparent; }
.icon-btn .i-close, .nav-open .icon-btn .i-menu { display: none; }
.nav-open .icon-btn .i-close { display: block; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep, .crumbs .breadcrumb_last { color: var(--ink); }
.crumbs--light, .crumbs--light a { color: #e9cfd3; }
.crumbs--light .breadcrumb_last { color: #fff; }

/* ---------- Hero trang chủ ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% 20%, rgba(231,165,32,.18), transparent 60%), linear-gradient(135deg, var(--brand-800) 0%, var(--brand) 55%, #8f1a2c 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero .wrap { position: relative; display: grid; gap: 32px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 992px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 80px; } }
.hero h1 { color: #fff; font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.05rem); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: #ffd27a; }
.hero__lead { font-size: 1.08rem; color: #f5e3e6; max-width: 600px; }
.hero__lead a { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 26px; }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; list-style: none; margin: 0; padding: 0; font-size: .94rem; }
@media (min-width: 600px) { .trust { grid-template-columns: repeat(4, auto); justify-content: start; } }
.trust li { display: flex; gap: 8px; align-items: center; color: #fff; }
.trust svg { width: 20px; height: 20px; color: #ffd27a; flex: none; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #fff; }
.hero__badge { position: absolute; left: -10px; bottom: -14px; background: #fff; color: var(--steel); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 290px; }
.hero__badge > svg { width: 40px; height: 40px; flex: none; color: var(--brand); }
.hero__badge strong { display: block; font-size: 1.35rem; color: var(--brand); line-height: 1.1; }
.hero__badge span { font-size: .84rem; color: var(--muted); }
@media (max-width: 600px) { .hero__badge { left: 10px; } }

/* ---------- Lưới & thẻ ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid { gap: 22px; } }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.card__img { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__img img { transform: scale(1.04); }
.card--product .card__img { background: #fff; }
.card--product .card__img img { object-fit: contain; padding: 10px; }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.card__title a { color: var(--steel); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { color: var(--brand); }
.card__meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card__text { font-size: .92rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.price--contact { color: var(--cool); }
.chip svg { width: 14px; height: 14px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .78rem; font-weight: 700; text-decoration: none; }
.chip--cool { background: var(--cool-50); color: var(--cool); }
.card .chip { position: absolute; top: 10px; left: 10px; z-index: 1; }
.spec-mini { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 2px 0 0; padding: 0; }
.spec-mini li { font-size: .76rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--steel-700); }
@media (max-width: 480px) { .grid--4 { gap: 12px; } .card__body { padding: 12px; } .card__title { font-size: .95rem; } .card__text { display: none; } }

/* Thẻ giải pháp */
.grid--sol { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .grid--sol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid--sol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.sol { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: .2s; }
.sol:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.sol__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.sol__icon svg { width: 30px; height: 30px; }
.sol h3 { margin: 4px 0 0; font-size: 1.08rem; }
.sol h3 a { color: var(--steel); text-decoration: none; }
.sol h3 a::after { content: ""; position: absolute; inset: 0; }
.sol p { margin: 0; color: var(--muted); font-size: .93rem; }
.sol__more { margin-top: auto; font-weight: 700; color: var(--brand); font-size: .9rem; }

/* Chip lọc danh mục */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.filters a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; background: #fff; }
.filters a:hover, .filters a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Khối lợi thế, số liệu, quy trình ---------- */
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.why__item { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--steel-700); }
.why__item svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.why__item h3 { font-size: 1.02rem; margin: 0 0 4px; }
.why__item p { margin: 0; font-size: .92rem; color: #c3ccd4; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 22px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-weight: 850; font-size: 1.6rem; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1rem; margin: 0 0 4px; }
.steps p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Bảng chọn nhanh */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--steel); color: #fff; font-weight: 650; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.specs th { width: 42%; color: var(--steel-700); font-weight: 650; background: transparent; }
.specs tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- Video (tải khi bấm) ---------- */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; border: 0; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%); border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: background .15s, transform .15s; }
.yt:hover .yt__play { background: #c4122d; transform: translate(-50%, -50%) scale(1.06); }
.yt__play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt--v { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.yt--v img { object-position: center; }
.vcard { position: relative; display: flex; flex-direction: column; gap: 10px; }
.vcard .yt { border-radius: var(--radius); }
.vcard h3 { font-size: .98rem; margin: 0; line-height: 1.4; }
.vcard h3 a { color: inherit; text-decoration: none; }
.section--dark .vcard h3 a { color: #fff; }
.vcard .card__meta { color: inherit; opacity: .75; }
.video-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.video-grid .yt--v { aspect-ratio: 16 / 9; max-width: none; }
.video-grid .yt--v img { object-fit: cover; }

/* ---------- Trang nội dung ---------- */
.page-hero { background: linear-gradient(135deg, var(--brand-800), var(--brand)); color: #fff; padding: 8px 0 40px; }
.page-hero h1 { color: #fff; margin: 18px 0 10px; }
.page-hero p { color: #f2dbe0; max-width: 760px; margin: 0; font-size: 1.05rem; }
.page-hero .chip { background: rgba(255,255,255,.14); color: #fff; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; font-size: .9rem; color: #f2dbe0; }
.page-hero__meta a { color: #fff; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta svg { width: 16px; height: 16px; }
.benefits { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 18px 0 0; }
.benefits li { display: flex; gap: 8px; align-items: center; color: #fff; font-weight: 600; font-size: .95rem; }
.benefits svg { width: 18px; height: 18px; color: #ffd27a; }

.layout { display: grid; gap: 36px; padding: 36px 0 56px; }
@media (min-width: 992px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } .layout--wide { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; } }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 992px) { .sticky { position: sticky; top: 92px; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.box--brand { background: var(--brand-50); border-color: var(--brand-100); }
.box h2, .box h3 { font-size: 1.08rem; margin-bottom: 12px; }
.box ul { margin: 0; padding-left: 1.1em; }

.prose { font-size: 1.04rem; max-width: 780px; }
.prose > * + h2 { margin-top: 1.7em; }
.prose h2 { padding-top: 6px; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose table { margin: 1.2em 0; font-size: .94rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table thead th { white-space: normal; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 var(--radius) var(--radius) 0; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose a { font-weight: 600; }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; margin: 0 0 28px; max-width: 780px; }
.toc summary { font-weight: 750; cursor: pointer; color: var(--steel); }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; columns: 1; }
@media (min-width: 768px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 4px 0; break-inside: avoid; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--brand); }

.points { background: var(--cool-50); border: 1px solid #cfe7ec; border-radius: var(--radius-lg); padding: 18px 20px; margin: 22px 0 28px; max-width: 780px; }
.points h2 { font-size: 1.05rem; color: var(--cool); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.points h2 svg { width: 20px; height: 20px; }
.points ul { margin: 0; padding-left: 1.2em; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 650; position: relative; color: var(--steel); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Trang sản phẩm ---------- */
.product { display: grid; gap: 28px; padding: 24px 0 8px; grid-template-columns: minmax(0, 1fr); }
.product > *, .layout > *, .hero .wrap > * { min-width: 0; }
@media (min-width: 992px) { .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-top: 28px; } }
.gallery__main { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 74px; height: 74px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 2px; cursor: pointer; overflow: hidden; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.product__info h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 10px 0 8px; }
.product__sku { color: var(--muted); font-size: .88rem; }
.product__short { color: var(--muted); font-size: 1.02rem; }
.ticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; color: var(--cool); flex: none; margin-top: 2px; }
.pricebox { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; margin: 18px 0; }
.pricebox__label { font-size: .85rem; color: var(--muted); }
.pricebox .price { font-size: 1.8rem; line-height: 1.2; }
.pricebox small { color: var(--muted); }
.product__cta { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.product__cta .btn { white-space: normal; text-align: center; padding-inline: 12px; }
.product__cta .btn:first-child { grid-column: 1 / -1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.service-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .93rem; color: var(--steel-700); grid-template-columns: 1fr 1fr; }
.service-list li { display: flex; gap: 8px; align-items: center; }
.service-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.tabs-nav { position: sticky; top: 68px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); margin-top: 36px; }
.tabs-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs-nav a { padding: 14px 14px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; }
.tabs-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 991px) { .tabs-nav { top: 60px; } }

/* ---------- CTA + form ---------- */
.cta-band { background: linear-gradient(135deg, var(--steel) 0%, var(--steel-700) 100%); color: #dfe5ea; border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 28px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(122,16,32,.35); }
@media (min-width: 992px) { .cta-band { grid-template-columns: 1fr 1.1fr; padding: 44px; } }
.cta-band h2 { color: #fff; }
.cta-band .contact-lines { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-lines a { color: #fff; font-weight: 700; text-decoration: none; }
.contact-lines small { display: block; opacity: .75; font-size: .82rem; }
.form { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); }
.form h3 { grid-column: 1 / -1; margin: 0; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 5px; font-size: .86rem; font-weight: 650; color: var(--steel-700); }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d6d0cb; border-radius: 9px; background: #fff; font-size: 1rem; }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-100); }
.form .hp { position: absolute; left: -9999px; }
.form small { color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 18px; } }
.notice { grid-column: 1 / -1; padding: 12px 14px; border-radius: 9px; font-weight: 600; }
.notice--ok { background: #e8f6ee; color: #146c3a; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ---------- Footer ---------- */
.site-footer { background: #15191f; color: #aab4be; font-size: .93rem; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 32px; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d5dbe1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo__brand { color: #fff; }
.site-footer .logo__tag { color: #aab4be; }
.site-footer .contact-lines { margin-top: 16px; }
.site-footer .contact-lines svg { color: #e46a7d; }
.footer-bottom { border-top: 1px solid #262d36; padding: 16px 0 90px; font-size: .84rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 0; padding-bottom: 0; grid-template-columns: none; }
@media (min-width: 992px) { .footer-bottom { padding-bottom: 18px; } }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: #232a33; display: flex; align-items: center; justify-content: center; }
.social svg { width: 18px; height: 18px; }

/* Thanh liên hệ dưới đáy (mobile) + nút nổi (desktop) */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; font-size: .78rem; font-weight: 700; color: var(--steel); text-decoration: none; }
.mbar a svg { width: 22px; height: 22px; color: var(--brand); }
.mbar a.mbar__call { background: var(--brand); color: #fff; }
.mbar a.mbar__call svg { color: #fff; }
@media (min-width: 992px) { .mbar { display: none; } }
.fab { position: fixed; right: 18px; bottom: 22px; z-index: 60; display: none; flex-direction: column; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); text-decoration: none; font-weight: 800; font-size: .8rem; }
.fab svg { width: 24px; height: 24px; }
.fab__call { background: var(--brand); animation: pulse 2.4s infinite; }
.fab__zalo { background: #0068ff; }
@media (min-width: 992px) { .fab { display: flex; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(122,16,32,.5); } 70% { box-shadow: 0 0 0 16px rgba(122,16,32,0); } 100% { box-shadow: 0 0 0 0 rgba(122,16,32,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Phân trang, tìm kiếm, tiện ích */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; }
.pagination .current, .pagination a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid #d6d0cb; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.author-box { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.author-box svg { width: 48px; height: 48px; flex: none; }
.author-box p { margin: 0; font-size: .92rem; color: var(--muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 48px; }
.contact-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-bottom: 28px; }
.contact-cards .box { display: flex; gap: 12px; align-items: flex-start; }
.contact-cards svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.contact-cards strong { display: block; color: var(--steel); }
.contact-cards a { font-weight: 750; font-size: 1.08rem; text-decoration: none; }
.intro { max-width: 820px; font-size: 1.04rem; color: var(--steel-700); }

/* Thẻ giải pháp gọn trên điện thoại (đặt cuối để ghi đè) */
@media (max-width: 599px) {
  .sol { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 16px; }
  .sol__icon { width: 48px; height: 48px; grid-row: span 3; }
  .sol h3 { margin: 0; font-size: 1rem; }
  .sol p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; }
  .sol__more { display: none; }
}
