/* ==========================================================================
   Compact Nhất Quán — design tokens (ui-ux-pro-max: palette "Automotive" #52,
   font pairing "Corporate Trust": Lexend + Source Sans 3)
   ========================================================================== */
:root {
	--ink-950: #0B1120;
	--ink-900: #0F172A;
	--ink-800: #1E293B;   /* primary */
	--ink-700: #334155;   /* secondary */
	--ink-500: #475569;   /* muted text — 7.5:1 on white */
	--ink-300: #94A3B8;
	--line: #E2E8F0;
	--bg: #F8FAFC;
	--bg-alt: #EEF2F6;
	--card: #FFFFFF;
	--red-600: #DC2626;   /* accent / CTA */
	--red-700: #B91C1C;
	--red-50: #FEF2F2;
	--ok: #15803D;

	--font-head: "Lexend", system-ui, sans-serif;
	--font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .08);
	--shadow: 0 6px 24px -8px rgb(15 23 42 / .18);
	--wrap: 1200px;
	--gutter: 16px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--ink-900);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-700); text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.ic { flex-shrink: 0; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 2px solid transparent;
	font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-outline { border-color: var(--ink-800); color: var(--ink-800); background: transparent; }
.btn-outline:hover { background: var(--ink-800); color: #fff; }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }
.btn-ghost { background: var(--bg-alt); color: var(--ink-800); }
.btn-ghost:hover { background: var(--ink-800); color: #fff; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red-700); text-decoration: none; }
.link-arrow .ic { transition: transform .18s var(--ease); }
.link-arrow:hover .ic, a:hover > .link-arrow .ic { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--bg-alt); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--ink-950); color: #CBD5E1; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: #E2E8F0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: #fff; }
@media (max-width: 767px) { .topbar p { display: none; } .topbar-inner { justify-content: center; } .topbar-links a + a { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--red-600); color: #fff; font: 700 1.35rem/1 var(--font-head); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 700 1.3rem/1 var(--font-head); letter-spacing: .06em; }
.brand-text small { font-size: .8rem; color: var(--ink-500); margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: var(--ink-300); }

.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--ink-800); font-weight: 600; text-decoration: none; }
.nav-link:hover, .has-mega.open > .nav-link { background: var(--bg-alt); color: var(--ink-900); }
.nav-link .ic { transition: transform .2s var(--ease); }
.has-mega { position: static; }
.mega {
	position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.mega-grid { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.mega-title { display: flex; justify-content: space-between; gap: 8px; font: 600 1rem/1.3 var(--font-head); color: var(--ink-900); text-decoration: none; padding-bottom: 8px; border-bottom: 2px solid var(--red-600); margin-bottom: 8px; }
.mega-title:hover { color: var(--red-700); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-700); text-decoration: none; }
.mega li a:hover { color: var(--red-700); }
.count { font-size: .8rem; font-weight: 600; color: var(--ink-500); background: var(--bg-alt); border-radius: 999px; padding: 1px 8px; align-self: center; }
.mega-foot { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter) 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--ink-500); font-size: .95rem; }
@media (hover: hover) and (min-width: 1024px) {
	.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
	.has-mega:hover > .nav-link .ic { transform: rotate(180deg); }
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega.open > .nav-link .ic { transform: rotate(180deg); }

@media (max-width: 1023px) {
	.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-900); cursor: pointer; }
	.site-nav {
		position: fixed; inset: var(--nav-top, 110px) 0 0 0; z-index: 49; background: #fff; flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform .25s var(--ease); visibility: hidden;
	}
	.site-nav.open { transform: none; visibility: visible; }
	.nav-list { flex-direction: column; }
	.nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.mega { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; transform: none; }
	.has-mega.open .mega { display: block; }
	.mega-grid { grid-template-columns: 1fr; padding: 12px 0; gap: 16px; }
	.mega-foot { padding: 0 0 12px; flex-direction: column; }
	.nav-cta { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink-900); color: #CBD5E1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p:last-child { color: var(--ink-500); margin: 0; }
.section-dark .section-head p { color: var(--ink-300); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.section-title { margin-bottom: 24px; }
.eyebrow { font: 600 .8rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--red-700); margin-bottom: 8px; }
.section-dark .eyebrow, .hero .eyebrow { color: #FCA5A5; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #334155 0%, transparent 60%), var(--ink-900); color: #CBD5E1; overflow: hidden; }
.hero-inner { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 72px; padding-bottom: 72px; } }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
.hero h1 span { display: block; color: #F87171; font-size: .62em; font-weight: 600; margin-top: .35em; }
.hero-lead { font-size: 1.1rem; max-width: 60ch; color: #CBD5E1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }
.hero-stats { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgb(255 255 255 / .12); }
.hero-stats strong { display: block; font: 700 1.6rem/1.1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .88rem; color: var(--ink-300); line-height: 1.35; display: block; margin-top: 4px; }
.hero-media { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); aspect-ratio: 1 / .85; display: grid; place-items: center; }
.hero-media img { max-height: 100%; width: auto; object-fit: contain; }
.hero-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink-900); color: #fff; font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.hero-tag span { background: var(--red-600); border-radius: 999px; padding: 2px 8px; font-size: .78rem; }
.hero-tag:hover { color: #fff; background: var(--ink-800); }
@media (max-width: 767px) { .hero-media { display: none; } .hero-stats strong { font-size: 1.3rem; } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.cat-card:hover { box-shadow: var(--shadow); border-color: #CBD5E1; transform: translateY(-2px); color: inherit; }
.cat-media { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cat-media img { max-height: 100%; width: auto; object-fit: contain; }
.cat-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.cat-body h3 { font-size: 1.05rem; }
.cat-body p { color: var(--ink-500); font-size: .95rem; flex: 1; }
@media (max-width: 599px) {
	.cat-card { flex-direction: row; }
	.cat-media { width: 112px; flex-shrink: 0; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 10px; }
	.cat-body { padding: 14px; }
	.cat-body p { display: none; }
	.cat-body h3 { font-size: 1rem; }
}

/* ---------- Product cards ---------- */
.grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { box-shadow: var(--shadow); border-color: #CBD5E1; }
.card-media { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 20px; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.chip { position: absolute; top: 12px; left: 12px; background: var(--ink-800); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.card-body { padding: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.card-model { font: 700 .82rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--red-700); margin-bottom: 6px; }
.card-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 12px; }
.card-title a { color: var(--ink-900); text-decoration: none; }
.card-title a:hover { color: var(--red-700); }
.card-specs { margin: 0 0 16px; display: grid; gap: 4px; font-size: .9rem; flex: 1; align-content: start; }
.card-specs div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.card-specs dt { color: var(--ink-500); }
.card-specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- Steps / why ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; }
.steps p { color: var(--ink-500); font-size: .95rem; flex: 1; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red-50); color: var(--red-700); font: 700 1rem/1 var(--font-head); margin-bottom: 12px; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.why-grid li { padding: 24px; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-lg); background: rgb(255 255 255 / .03); }
.why-grid .ic { color: #F87171; margin-bottom: 12px; }
.why-grid p { margin: 0; color: var(--ink-300); }

/* ---------- Posts ---------- */
.post-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-card-media { aspect-ratio: 16 / 9; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); padding: 12px; }
.post-card-media img { max-height: 100%; width: auto; object-fit: contain; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.1rem; }
.post-card-body h3 a { color: var(--ink-900); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--red-700); }
.post-card-body p { color: var(--ink-500); font-size: .95rem; flex: 1; }
.post-meta { font-size: .85rem; color: var(--ink-500); margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink-900), var(--ink-700)); color: #CBD5E1; padding: 48px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero & breadcrumb ---------- */
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 28px 0 32px; }
.page-hero p { color: var(--ink-500); max-width: 75ch; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; font-size: .9rem; color: var(--ink-500); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-300); }
.crumbs a { color: var(--ink-700); text-decoration: none; }
.crumbs a:hover { color: var(--red-700); text-decoration: underline; }

/* ---------- Catalog ---------- */
.catalog { padding-top: 32px; }
.catalog-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; max-width: 100%; }
.tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tab:hover { border-color: var(--ink-700); color: var(--ink-900); }
.tab.is-active { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.tab.is-active .count { background: rgb(255 255 255 / .18); color: #fff; }
.search-box { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-500); flex: 1 1 260px; max-width: 360px; }
.search-box:focus-within { border-color: var(--ink-800); box-shadow: 0 0 0 3px rgb(30 41 59 / .12); }
.search-box input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; color: var(--ink-900); min-height: 44px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subtab { min-height: 40px; padding: 6px 14px; border-radius: 8px; border: 1px dashed var(--ink-300); background: transparent; font: 600 .95rem var(--font-body); color: var(--ink-700); cursor: pointer; }
.subtab.is-active { border-style: solid; border-color: var(--red-600); color: var(--red-700); background: var(--red-50); }
.result-count { color: var(--ink-500); font-size: .95rem; }
.empty { padding: 32px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
@media (max-width: 767px) { .search-box { max-width: none; } }

/* ---------- Product page ---------- */
.product-top { background: var(--card); border-bottom: 1px solid var(--line); padding: 24px 0 40px; }
.product-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.gallery-main { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.gallery-slide { position: absolute; inset: 0; margin: 0; padding: 32px; display: grid; place-items: center; opacity: 0; transition: opacity .25s var(--ease); }
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { max-height: 100%; width: auto; object-fit: contain; }
@media (max-width: 599px) { .gallery-main { aspect-ratio: 4 / 3; } .gallery-slide { padding: 12px; } .thumb { width: 64px; height: 64px; } }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; height: 76px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active, .thumb:hover { border-color: var(--red-600); }
.product-info h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.badges { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--bg-alt); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-700); }
.lead { font-size: 1.08rem; color: var(--ink-700); }
.quick-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0 24px; }
.quick-specs div { background: #fff; padding: 12px 14px; }
.quick-specs dt { font-size: .82rem; color: var(--ink-500); }
.quick-specs dd { margin: 2px 0 0; font: 600 1.15rem/1.3 var(--font-head); font-variant-numeric: tabular-nums; color: var(--ink-900); }
.quick-specs small { font: 400 .8rem var(--font-body); color: var(--ink-500); }
.product-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: .9rem; color: var(--ink-500); margin-top: 14px; }

.product-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .product-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.product-main h2 { font-size: 1.45rem; margin-top: 8px; }
.product-main h2 + * { margin-top: 12px; }
.product-main > * + h2 { margin-top: 40px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.features li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.feat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--red-50); color: var(--red-700); flex-shrink: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 45%; font-weight: 600; color: var(--ink-700); background: var(--bg); }
.spec-table td { font-variant-numeric: tabular-nums; }
.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.apps li { display: flex; gap: 10px; align-items: flex-start; }
.apps .ic { color: var(--ok); margin-top: 3px; }
.product-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) { .product-side { position: sticky; top: 96px; } }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 10px; }
.side-h { font-size: 1.1rem; margin: 0; }
.side-box p { margin: 0; color: var(--ink-500); font-size: .95rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.doc-list a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; background: var(--bg); color: var(--ink-800); text-decoration: none; font-weight: 600; }
.doc-list a:hover { background: var(--bg-alt); color: var(--red-700); }
.sticky-cta { display: none; }
@media (max-width: 767px) {
	.sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgb(15 23 42 / .3); }
	.sticky-name { font-weight: 700; font-family: var(--font-head); }
	.single-san_pham .float-actions { bottom: 84px; }
	.single-san_pham .site-footer { padding-bottom: 72px; }
}

/* ---------- Prose (bài viết) ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; color: #1F2937; }
.prose h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 600; }
.prose a { font-weight: 600; }
.article-cover { margin: 0 0 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; place-items: center; }
.article-cover img { max-height: 380px; width: auto; }
.article-cta { margin-top: 48px; padding: 24px; border-radius: var(--radius-lg); background: var(--ink-900); color: #CBD5E1; display: grid; gap: 16px; }
.article-cta h2 { color: #fff; font-size: 1.3rem; }
.article-cta p { margin: 0; }
.article-cta .btn-outline { border-color: rgb(255 255 255 / .55); color: #fff; }
.article-cta .btn-outline:hover { background: #fff; color: var(--ink-900); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink-900); text-decoration: none; }
a.contact-card:hover { border-color: var(--red-600); color: var(--ink-900); }
.contact-card .ic { color: var(--red-600); }
.contact-card span { display: flex; flex-direction: column; }
.contact-card strong { font-family: var(--font-head); }
.map-wrap { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; color: var(--ink-800); font-size: .95rem; }
.field label span { color: var(--red-600); }
.field input, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff;
	font: 400 1rem/1.4 var(--font-body); color: var(--ink-900); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink-800); box-shadow: 0 0 0 3px rgb(30 41 59 / .15); }
.field.has-error input { border-color: var(--red-600); }
.field-err { color: var(--red-700); font-size: .88rem; margin: 0; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--red-700); }

/* ---------- Quote modal ---------- */
.quote-modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45); }
.quote-modal::backdrop { background: rgb(11 17 32 / .6); }
.quote-modal[open] { animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.quote-form { padding: 24px; }
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote-head h2 { margin: 0; font-size: 1.4rem; }
.quote-sub { color: var(--ink-500); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--ink-300); padding-top: 56px; font-size: .96rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; } }
.footer-about p { margin-top: 16px; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { color: #F87171; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-top: 20px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: grid; gap: 10px; }
.float-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; min-width: 52px; justify-content: center; padding: 0 16px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .45); }
.float-call { background: var(--red-600); }
.float-call:hover { background: var(--red-700); color: #fff; }
.float-zalo { background: #0068FF; }
.float-zalo:hover { background: #0052CC; color: #fff; }
@media (max-width: 767px) { .float-btn span { display: none; } .float-btn { padding: 0; } }

/* ---------- Misc ---------- */
.nav-links, .pagination { margin-top: 32px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; margin-right: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink-800); }
.page-numbers.current { background: var(--ink-800); color: #fff; }
.notfound { text-align: center; }
.notfound .cta-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
