/*
Theme Name: Gia Tùng – Cổng xếp
Description: Theme nhẹ cho congxepmiennam.com: cổng xếp inox, cổng xếp điện, cổng xếp nhôm. Giữ URL web cũ (mu-plugin tlp-legacy-urls).
Version: 1.0.0
Text Domain: tlp
*/

/* ---------- Biến ---------- */
:root {
	--ink: #1b2026;
	--ink-2: #2b333c;
	--ink-3: #3a444f;
	--text: #2a2f36;
	--muted: #5d6874;
	--line: #e2e6ea;
	--bg: #ffffff;
	--bg-alt: #f3f5f7;
	--steel: #c9d1d9;
	--red: #c8102e;
	--primary: #c8102e; /* biến dùng chung với mu-plugin tlp-quan-tri (nút chia sẻ, mục lục) */
	--red-dark: #a10c24;
	--red-soft: #fdecef;
	--zalo: #0068ff;
	--ok: #13804a;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 6px 18px rgba(16, 24, 32, .07);
	--shadow-lg: 0 12px 40px rgba(16, 24, 32, .16);
	--container: 1200px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 72px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.screen-reader-text, .hp { position: absolute !important; 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: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #d5dbe1; }
.section--dark h2, .section--dark h3 { color: #fff; }
@media (min-width: 992px) { .section { padding: 80px 0; } }
.section-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.section--dark .section-head p { color: #aab4be; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; text-align: left; }
.section-head--row h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section--dark .eyebrow { color: #ff8a9b; }
.section-foot { text-align: center; margin-top: 32px; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 8px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--accent, .btn--red { background: var(--red); color: #fff; }
.btn--accent:hover, .btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--primary, .btn--dark { background: var(--ink); color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); color: var(--ink); }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { background: #0052cc; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: .92rem; }

/* ---------- Thanh trên + header ---------- */
.topbar { background: var(--ink); color: #b9c2cb; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: #fff; }
.topbar__addr { display: none; }
.topbar__right { display: flex; gap: 18px; margin-left: auto; }
@media (min-width: 768px) { .topbar__addr { display: inline-flex; align-items: center; gap: 6px; } }
@media (max-width: 767px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(16, 24, 32, .08); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.logo img { width: auto; height: 46px; }
.logo__name { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: .01em; }
.logo__name small { font-weight: 600; font-size: .74rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
@media (max-width: 479px) { .logo img { height: 40px; } .logo__name { font-size: .98rem; } .logo__name small { font-size: .68rem; white-space: nowrap; } }
.header-call { display: none; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; white-space: nowrap; }
.header-call .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--red); color: #fff; }
.header-call small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); line-height: 1; }
.header-call span { line-height: 1.2; font-size: 1.05rem; }
.header-quote { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.header-phone-sm { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 8px; background: var(--red); color: #fff; }
.header-phone-sm:hover { color: #fff; background: var(--red-dark); }

.main-nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: #fff; z-index: 200; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 0 0 24px; }
.main-nav.is-open { transform: none; box-shadow: var(--shadow-lg); }
.main-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nav-close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.main-nav .menu { list-style: none; margin: 0; padding: 8px 0; }
.main-nav .menu a { display: block; padding: 12px 20px; color: var(--ink); font-weight: 600; }
.main-nav .menu a[aria-current="page"], .main-nav .current-menu-item > a { color: var(--red); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 12px; }
.main-nav .sub-menu a { font-weight: 500; padding: 8px 20px; font-size: .95rem; color: var(--muted); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 18, .5); z-index: 150; }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
	.nav-toggle, .header-phone-sm, .main-nav__head, .nav-backdrop { display: none !important; }
	.main-nav { position: static; width: auto; transform: none; overflow: visible; padding: 0; background: none; }
	.main-nav .menu { display: flex; gap: 2px; padding: 0; }
	.main-nav .menu > li { position: relative; }
	.main-nav .menu > li > a { padding: 24px 10px; font-size: .95rem; }
	.main-nav .menu > li > a:hover { color: var(--red); }
	.main-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 0; display: none; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
	.main-nav .sub-menu a { color: var(--ink); padding: 9px 18px; }
	.main-nav .sub-menu a:hover { background: var(--bg-alt); color: var(--red); }
	.menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
	.header-call { display: flex; }
}

/* ---------- Hero trang chủ ---------- */
.hero { position: relative; color: #fff; background: var(--ink) center/cover no-repeat; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 20, 25, .94) 0%, rgba(16, 20, 25, .82) 45%, rgba(16, 20, 25, .35) 100%); }
@media (max-width: 767px) { .hero::before { background: linear-gradient(180deg, rgba(16, 20, 25, .78) 0%, rgba(16, 20, 25, .9) 100%); } }
.hero__inner { padding: 56px 0 48px; max-width: 680px; }
@media (min-width: 992px) { .hero__inner { padding: 96px 0 88px; } }
.hero .eyebrow { color: #ff9aa9; }
.hero__title { color: #fff; margin-bottom: 16px; }
.hero__title span { color: #ff5c74; }
.hero__text { font-size: 1.08rem; color: #d8dee4; max-width: 600px; }
.hero__points { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 8px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: #eef1f4; }
.hero__points .icon { color: #4ade80; margin-top: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero__actions .btn--light:hover { background: #fff; color: var(--ink); }
@media (max-width: 479px) { .hero__actions .btn { flex: 1 1 100%; } }

/* ---------- Dải cam kết ---------- */
.usps { background: #fff; border-bottom: 1px solid var(--line); }
.usps__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .usps__grid { grid-template-columns: repeat(4, 1fr); } }
.usp { display: flex; gap: 12px; padding: 18px 8px; align-items: flex-start; }
.usp .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.usp strong { display: block; color: var(--ink); line-height: 1.3; font-size: .97rem; }
.usp span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 2px; }

/* ---------- Lưới, thẻ ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid { gap: 24px; } }
.grid--products { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid--products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid--products { grid-template-columns: repeat(4, 1fr); } }
.grid--posts, .grid--cats { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--posts, .grid--cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--posts { grid-template-columns: repeat(3, 1fr); } .grid--cats { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfd6dc; }
.card__media { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
@media (min-width: 768px) { .card__body { padding: 16px 16px 18px; } }
.card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card__title { font-size: 1rem; margin: 0; line-height: 1.35; }
.card__title a { color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--red); font-size: 1.02rem; }
.card__price small { font-weight: 500; color: var(--muted); font-size: .78rem; display: block; }
.card__price--ask { color: var(--ink); font-weight: 700; font-size: .95rem; }
.card__more { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--red); font-size: .92rem; }
.card__code { position: absolute; top: 10px; left: 10px; background: rgba(27, 32, 38, .86); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; z-index: 1; }
.img-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e9edf1, #d7dde3); }

/* Thẻ danh mục */
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; min-height: 260px; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 20, 25, .05) 20%, rgba(16, 20, 25, .9) 100%); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__body { margin-top: auto; padding: 20px; }
.cat-card h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.cat-card h3 a { color: #fff; }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-card p { margin: 0; color: #cfd6dd; font-size: .9rem; }
.cat-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .85rem; font-weight: 700; color: #ff9aa9; }

/* ---------- Bảng giá ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .88rem; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td strong { color: var(--red); }
.price-table a { color: var(--ink); font-weight: 600; }
.price-table a:hover { color: var(--red); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.price-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.price-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .price-cards { grid-template-columns: repeat(4, 1fr); } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.price-card h3 { margin: 0; font-size: 1.02rem; }
.price-card__value { font-size: 1.4rem; font-weight: 800; color: var(--red); line-height: 1.2; }
.price-card__value small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.price-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.price-card a { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .92rem; }

/* ---------- Quy trình ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px 20px 20px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2rem; font-weight: 800; color: #ff5c74; line-height: 1; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: #aeb8c2; font-size: .93rem; }

/* ---------- Video ---------- */
.videos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video figcaption { font-weight: 600; color: var(--ink); margin-top: 8px; font-size: .95rem; line-height: 1.4; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.yt__play::after { content: ""; position: absolute; left: 26px; top: 13px; border: 9px solid transparent; border-left: 15px solid #fff; border-right: 0; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .yt { margin: 1.2em 0; }

/* ---------- Giới thiệu ---------- */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .about { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.fact { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 16px; }
.fact strong { display: block; font-size: 1.5rem; color: var(--red); line-height: 1.2; }
.fact span { color: var(--muted); font-size: .88rem; }
.addr-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.addr-list li { display: flex; gap: 10px; align-items: flex-start; }
.addr-list .icon { color: var(--red); margin-top: 4px; }
.addr-list strong { color: var(--ink); }

/* ---------- Hỏi đáp ---------- */
.faq details, .prose details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 10px; }
.faq summary, .prose summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker, .prose summary::-webkit-details-marker { display: none; }
.faq summary::after, .prose summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--red); }
.faq details[open] summary::after, .prose details[open] summary::after { content: "–"; }
.faq details > :not(summary), .prose details > :not(summary) { padding: 0 18px; }
.faq details > :last-child, .prose details > :last-child { padding-bottom: 16px; margin-bottom: 0; }

/* ---------- Tiêu đề trang ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 20px 0 32px; }
.page-hero--compact { padding-bottom: 24px; }
.page-hero__title { margin: 8px 0 10px; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.page-hero__lead { color: var(--muted); max-width: 760px; font-size: 1.04rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .86rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9aa4ae; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600; }
@media (max-width: 767px) {
	/* điện thoại: danh mục thành 1 hàng vuốt ngang, sản phẩm lên gần màn hình đầu */
	.page-hero .chips { flex-wrap: nowrap; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.page-hero .chips::-webkit-scrollbar { display: none; }
	.page-hero .chip { white-space: nowrap; flex: none; }
	.page-hero__actions { gap: 8px; }
	.page-hero__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; white-space: nowrap; }
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.entry__meta { display: flex; gap: 14px; color: var(--muted); font-size: .9rem; }
.entry__cover { margin: 0 0 24px; border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Nội dung bài ---------- */
.prose { font-size: 1.02rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.6em 0 .6em; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); }
.prose h3 { margin: 1.4em 0 .5em; }
.prose img { border-radius: var(--radius); margin: 1em auto; height: auto; }
.prose li { margin: .25em 0; }
.prose li > p { margin: 0; }
.prose a:not(.btn), .svc a, .custom-box a, .author-box p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg-alt); }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.notice { padding: 12px 16px; border-radius: 8px; font-weight: 600; margin: 0 0 12px; }
.notice--success { background: #e7f6ee; color: #0d5c35; }
.notice--error { background: var(--red-soft); color: var(--red-dark); }
.empty { color: var(--muted); }

/* ---------- Trang sản phẩm ---------- */
.product__top { display: grid; gap: 24px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 992px) { .product__top { grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 24px; } }
.product__gallery { min-width: 0; }
.product__main { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.product__thumbs button { flex: 0 0 76px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--bg-alt); cursor: pointer; }
.product__thumbs button.is-active { border-color: var(--red); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__cat { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.product__title { margin: 6px 0 10px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.product__lead { color: var(--muted); font-size: 1.04rem; }
.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--red-soft); border: 1px solid #f6c9d1; border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.price-box__label { font-size: .85rem; font-weight: 600; color: var(--red-dark); width: 100%; }
.price-box__value { font-size: 1.7rem; font-weight: 800; color: var(--red); line-height: 1.2; }
.price-box__note { font-size: .85rem; color: var(--muted); width: 100%; }
.price-box--ask { background: var(--bg-alt); border-color: var(--line); }
.price-box--ask .price-box__value { color: var(--ink); font-size: 1.3rem; }
.specs { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; background: #fff; font-size: .96rem; }
.specs h2, .specs__title { font-size: 1.05rem; margin: 0 0 8px; }
.specs h2:not(:first-child) { margin-top: 12px; }
.specs ul { margin: 0; padding-left: 1.1em; }
.specs li { margin: 3px 0; }
.specs p { margin: 6px 0 0; }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.product__actions .btn--accent { grid-column: 1 / -1; }
.product__trust { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.product__trust li { display: flex; gap: 8px; align-items: center; }
.product__trust .icon { color: var(--ok); }
.product__body { display: grid; gap: 32px; padding-bottom: 56px; }
@media (min-width: 992px) { .product__body { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.product__aside { align-self: start; }
@media (min-width: 992px) { .product__aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.aside-card { background: var(--ink); color: #cfd6dd; border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 10px; }
.aside-card h2 { color: #fff; font-size: 1.15rem; margin: 0; }
.aside-card p { margin: 0 0 6px; font-size: .93rem; }
.aside-card .btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.aside-card .btn--light:hover { background: #fff; color: var(--ink); }
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.subnav .chips { margin: 0; padding: 10px 16px; flex-wrap: nowrap; overflow-x: auto; }
.subnav .chip { white-space: nowrap; min-height: 34px; }

/* ---------- Form báo giá ---------- */
.quote { background: var(--ink); padding: 56px 0; color: #cfd6dd; }
@media (min-width: 992px) { .quote { padding: 80px 0; } }
.quote__card { display: grid; gap: 32px; }
@media (min-width: 992px) { .quote__card { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }
.quote h2 { color: #fff; }
.quote .eyebrow { color: #ff9aa9; }
.quote__hotline { display: inline-flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; color: #fff; margin: 8px 0 16px; }
.quote__hotline:hover { color: #ff9aa9; }
.quote__hotline .icon { width: 44px; height: 44px; padding: 11px; background: var(--red); border-radius: 50%; }
.quote__perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.quote__perks li { display: flex; gap: 10px; align-items: flex-start; }
.quote__perks .icon { color: #4ade80; margin-top: 4px; }
.quote__form { display: grid; grid-template-columns: 1fr; gap: 14px; background: #fff; color: var(--text); padding: 22px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .quote__form { grid-template-columns: 1fr 1fr; padding: 28px; } }
.quote__form .full { grid-column: 1 / -1; }
.quote__form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.quote__form input, .quote__form select, .quote__form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cbd3db; border-radius: 8px; background: #fff; font-size: 1rem; }
.quote__form textarea { min-height: 96px; resize: vertical; }
.quote__form input:focus, .quote__form select:focus, .quote__form textarea:focus { border-color: var(--ink); outline: 2px solid rgba(200, 16, 46, .25); }
.quote__note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.quote__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Liên hệ ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 992px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 40px; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.contact-card h2 { font-size: 1.2rem; }
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dt { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--bg-alt); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-facade { height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background-color: #eef1f4; background-image: linear-gradient(#dfe4e9 1px, transparent 1px), linear-gradient(90deg, #dfe4e9 1px, transparent 1px), linear-gradient(35deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%); background-size: 32px 32px, 32px 32px, 100% 100%; }
.map-facade > svg { width: 44px; height: 44px; fill: var(--red); filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.map-facade__addr { margin: 0; max-width: 34ch; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 10px; }
.map-facade__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Chân trang ---------- */
.site-footer { background: #12161a; color: #9aa5b0; padding: 48px 0 96px; font-size: .93rem; }
@media (min-width: 992px) { .site-footer { padding-bottom: 28px; } }
.site-footer a { color: #d5dbe1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #ff5c74; margin-top: 3px; }
.footer-hotline { font-size: 1.15rem; font-weight: 800; color: #fff !important; }
.copyright { border-top: 1px solid #262d34; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
.copyright p { margin: 0; }

/* ---------- Nút liên hệ nổi ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1.3fr 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 24, 32, .1); padding-bottom: env(safe-area-inset-bottom); }
.mobile-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: .78rem; font-weight: 700; color: var(--ink); }
.mobile-cta .icon { width: 22px; height: 22px; }
.mobile-cta__call { background: var(--red); color: #fff !important; }
.mobile-cta__zalo .icon { color: var(--zalo); }
.mobile-cta__quote .icon { color: var(--ink); }
.float-cta { display: none; }
@media (min-width: 992px) {
	.mobile-cta { display: none; }
	.float-cta { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: grid; gap: 10px; }
	.float-cta a { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; box-shadow: var(--shadow-lg); transition: transform .15s; }
	.float-cta a:hover { transform: scale(1.06); color: #fff; }
	.float-cta .icon { width: 26px; height: 26px; }
	.float-cta__call { background: var(--red); }
	.float-cta__zalo { background: var(--zalo); }
}
@media (max-width: 991px) { body { padding-bottom: 58px; } }

/* ---------- Phân trang, 404 ---------- */
.pagination { margin-top: 32px; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: #fff; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.notfound { text-align: center; padding: 72px 16px; }
.notfound__code { font-size: 5rem; font-weight: 800; color: var(--red); line-height: 1; }

/* ---------- Khác ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.branch-box { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 16px; margin: 1em 0; }
.pay-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 1em 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .topbar, .mobile-cta, .float-cta, .quote, .site-footer { display: none !important; } }

/* ---------- Bài viết SEO: tóm tắt, khung kêu gọi, chú thích, hộp tác giả ---------- */
.tldr { background: var(--red-soft); border: 1px solid #f6c9d1; border-left: 5px solid var(--red); border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0; }
.tldr strong { display: block; color: var(--red-dark); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin-bottom: 6px; }
.tldr ul { margin: 0; padding-left: 1.1em; }
.tldr li { margin: .3em 0; }
.cta-box { background: var(--ink); color: #d5dbe1; border-radius: var(--radius-lg); padding: 18px 22px; margin: 1.8em 0; }
.cta-box strong { color: #fff; }
.cta-box a { color: #ff9aa9; font-weight: 700; }
.prose .caption { font-size: .88rem; color: var(--muted); margin-top: -.6em; text-align: center; }
.author-box { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 32px; background: var(--bg-alt); font-size: .92rem; color: var(--muted); }
.author-box img { width: 56px; height: auto; flex: none; background: #fff; border-radius: 8px; padding: 4px; }
.author-box strong { color: var(--ink); }
.author-box p { margin: 2px 0; }
.svc { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .svc { grid-template-columns: repeat(2, 1fr); } }
.svc li { background: var(--bg-alt); border-radius: var(--radius); padding: 14px 16px; font-size: .93rem; color: var(--muted); }
.svc strong { display: block; color: var(--ink); margin-bottom: 2px; }
.specs table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.specs th, .specs td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 600; width: 44%; padding-right: 12px; }
.specs td { color: var(--ink); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.custom-box { margin-top: 16px; border: 1px dashed #e8a1ae; border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.custom-box > strong { display: block; color: var(--red-dark); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin-bottom: 4px; }
.custom-box p { margin: 0 0 8px; color: var(--muted); font-size: .93rem; }
.custom-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.custom-box li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.custom-box li .icon { color: var(--red); }
.custom-box a { color: var(--ink); }
.custom-box a:hover { color: var(--red); }

/* Trang liên hệ: gửi gì để báo giá nhanh + nơi đã lắp */
.contact-help { display: grid; gap: 28px; }
@media (min-width: 992px) { .contact-help { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 48px; } }
.contact-help h2 { margin: 6px 0 10px; }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 12px 14px 12px 44px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.contact-help a, .contact-areas a { text-decoration: underline; text-underline-offset: 3px; }
.contact-areas { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.contact-areas h3 { margin: 0 0 12px; }
.contact-areas .chips { list-style: none; padding: 0; margin: 0 0 14px; }
.contact-areas p { margin: 0; color: var(--muted); font-size: .95rem; }
