/* Trang công khai: dịch vụ, cẩm nang, cửa hàng. Không dùng JS để tải nhanh trên điện thoại. */
:root {
  color-scheme: light dark;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #fff; --soft: #f5f8fc; --card: #fff;
  --primary: #2563eb; --primary-ink: #fff; --accent: #0ea5e9; --navy: #0b1b3a; --navy-2: #12305f; --amber: #f59e0b;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 20px 40px -18px rgba(15, 23, 42, .3);
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef8; --ink-2: #c3cfe0; --muted: #93a4bc; --line: #26354d; --bg: #0b1424; --soft: #101c30; --card: #13203a;
    --primary: #60a5fa; --primary-ink: #06122a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 16px 36px -16px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.7 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(30px, 5.4vw, 50px); margin: 0 0 14px; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding-top: 52px; padding-bottom: 52px; }
.center { text-align: center; }
.soft { background: var(--soft); }
.muted { color: var(--muted); }
.sec-title { font-size: clamp(23px, 3.2vw, 31px); margin: 0 0 24px; }
.big { font-size: 18.5px; color: var(--ink-2); }
.pre { white-space: pre-line; }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 15.5px; border-radius: 13px; text-decoration: none;
  box-shadow: 0 8px 18px -10px var(--primary); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px var(--primary); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 38px; padding: 6px 15px; font-size: 14.5px; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 17px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: #0b1b3a; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .6); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Đầu trang */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.brand { flex: none; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--primary); }

/* Đường dẫn */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-bottom: 18px; color: inherit; opacity: .78; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Phần mở đầu */
.hero {
  --c: #2563eb; color: #fff; padding: 34px 0 56px; position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 88% -10%, color-mix(in srgb, var(--c) 70%, transparent), transparent 70%),
    radial-gradient(600px 360px at -5% 110%, rgba(14, 165, 233, .28), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-2));
}
.hero .lead { color: #d6e2f5; }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; max-width: 700px; margin: 0 0 20px; }
.hero-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 18px; color: #fff; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.hero-ic svg { width: 30px; height: 30px; }
.hero-soft { color: var(--ink); padding-bottom: 40px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero-soft .lead { color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.chips svg { width: 16px; height: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.stats div { min-width: 118px; padding: 12px 18px; border-radius: 15px; background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17); }
.stats b { display: block; font-size: 25px; line-height: 1.2; font-weight: 800; }
.stats small { font-size: 13px; color: #d6e2f5; }

/* Thẻ dịch vụ */
.grid-svc { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.svc-card { display: flex; flex-direction: column; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.svc-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); margin-bottom: 14px; }
.svc-ic svg { width: 25px; height: 25px; }
.svc-card h3 { margin: 0 0 7px; font-size: 19px; }
.svc-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.svc-card small { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); }
.svc-card small svg { width: 18px; height: 18px; color: var(--c); transition: transform .18s; }
.svc-card:hover small svg { transform: translateX(3px); }

/* Nội dung */
.layout { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin: 42px 0 16px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; scroll-margin-top: 80px; display: flex; align-items: center; gap: 9px; }
.prose h3::before { content: ""; flex: none; width: 5px; height: 20px; border-radius: 3px; background: var(--primary); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose figure { margin: 24px 0; }
.prose figure img { display: block; width: 100%; border-radius: 14px; }
.prose .table-wrap { margin: 20px 0 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th { text-align: left; font-weight: 700; color: #fff; background: var(--navy-2); }
.prose th, .prose td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--soft); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child, .prose th:first-child { white-space: nowrap; font-weight: 700; }
.prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
/* Đoạn mở bài: câu trả lời trực tiếp, chữ to hơn để khách thấy ngay */
.prose > p:first-child { font-size: 18.5px; line-height: 1.68; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .prose th { background: #1b2c4d; } }
.checks { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.checks li { display: flex; gap: 11px; margin: 0 !important; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 3px; border-radius: 50%; color: #047857; background: #d1fae5; stroke-width: 3; }
.price-card { position: sticky; top: 82px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.price-card small { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); margin-bottom: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.price-card li { padding: 9px 0; border-top: 1px solid var(--line); }

/* Các bước */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }
.steps li { counter-increment: s; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; font-weight: 800; color: var(--primary-ink); background: var(--primary); }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { font-size: 14.5px; line-height: 1.55; color: var(--muted); display: block; }

/* Câu hỏi */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }

/* Viên chọn nhanh */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pills a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 99px; text-decoration: none; transition: border-color .15s, color .15s; }
.pills a:hover { border-color: var(--primary); color: var(--primary); }
.pills svg { width: 15px; height: 15px; }
.area { padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.area:first-of-type { border-top: 0; padding-top: 0; }
.area h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; }
.area h3 svg { width: 20px; height: 20px; color: var(--primary); }

/* Nhận xét */
.grid-reviews { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review { margin: 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stars { color: var(--amber); letter-spacing: 2px; }
.review blockquote { margin: 8px 0 10px; font-size: 15.5px; }
.review figcaption { font-size: 13px; color: var(--muted); }

/* Bài viết */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { padding: 7px 15px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 99px; text-decoration: none; }
.filters a.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tag { display: inline-block; padding: 3px 11px; margin-bottom: 11px; font-size: 12.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border-radius: 99px; text-decoration: none; }
.tag svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; }
.thumb { aspect-ratio: 5 / 2; overflow: hidden; background: var(--soft); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.thumb-art { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c); background: radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--c) 30%, transparent), transparent 62%), color-mix(in srgb, var(--c) 11%, var(--card)); }
.thumb-art svg { width: 44px; height: 44px; }
.grid-posts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card, .featured { display: block; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.post-card:hover, .featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card:hover img, .featured:hover img { transform: scale(1.03); }
.post-card-in { padding: 17px 19px 19px; }
.post-card h3 { margin: 0 0 8px; font-size: 18.5px; line-height: 1.32; }
.post-card p, .featured p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card small, .featured small { font-size: 13px; color: var(--muted); }
.featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 22px; }
.featured .thumb { aspect-ratio: auto; min-height: 280px; }
.featured-in { align-self: center; padding: 28px 30px; }
.featured h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); }
.meta { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.meta svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.post-cover { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; margin: 6px 0 26px; border-radius: var(--r); box-shadow: var(--shadow-lg); }
/* Banner ghép khi chưa có ảnh bìa: nền thương hiệu + avatar + tên cửa hàng, đúng tỉ lệ 5:2 */
.brand-cover { width: 100%; height: 100%; aspect-ratio: 5 / 2; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(700px 320px at 82% -8%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 72%),
    radial-gradient(500px 280px at 4% 115%, rgba(14, 165, 233, .32), transparent 70%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.brand-cover-in { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-align: center; padding: 12px; }
.brand-cover-in img { width: 88px; height: 88px; object-fit: cover; border-radius: 22px; border: 3px solid rgba(255, 255, 255, .4); box-shadow: var(--shadow-lg); background: var(--soft); }
.brand-cover-in b { font-size: 16.5px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.brand-cover-ic { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; color: #fff; background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.brand-cover-ic svg { width: 40px; height: 40px; }
article .brand-cover { margin: 6px 0 26px; border-radius: var(--r); box-shadow: var(--shadow-lg); }.toc { margin: 0 0 28px; padding: 18px 22px; background: var(--soft); border-radius: 14px; font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.prose { font-size: 17.5px; }
.layout .prose { font-size: 16.5px; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 10px; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); }
.inline-cta > div { flex: 1 1 270px; }
.inline-cta h2 { margin: 0 0 4px; font-size: 21px; }
.inline-cta p { margin: 0; font-size: 15px; color: var(--muted); }
.inline-cta p a svg { width: 14px; height: 14px; vertical-align: -2px; margin-left: 3px; }
.preview-bar { padding: 10px 20px; text-align: center; font-size: 14px; font-weight: 700; color: #78350f; background: #fde68a; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--r); }

/* Dải kêu gọi */
.band { color: #fff; background: linear-gradient(120deg, #1d4ed8, #0284c7); }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 38px; padding-bottom: 38px; }
.band h2 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 29px); }
.band p { margin: 0; color: #dbeafe; }

/* Cửa hàng */
.shop-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.shop-hero img { display: block; width: 100%; height: clamp(180px, 32vw, 420px); object-fit: cover; }
.area-label { margin: 14px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.area-wait { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.shop-main { padding-top: 18px; padding-bottom: 50px; }
.shop-main h2 { font-size: 23px; margin: 34px 0 12px; }
.shop-main ol { padding-left: 22px; }
.shop-main ol li { margin-bottom: 6px; }
.shop-prices { margin: 0 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.shop-prices table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.shop-prices th { text-align: left; font-weight: 700; background: var(--soft); }
.shop-prices th, .shop-prices td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.shop-prices tbody tr:last-child td { border-bottom: 0; }
.shop-prices td:last-child, .shop-prices th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.shop-card small + small { margin-top: 2px; }
.area .sec-title svg { width: 22px; height: 22px; vertical-align: -3px; margin-right: 6px; color: var(--primary); }
.shop-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.shop-head img { flex: none; width: 88px; height: 88px; object-fit: cover; border-radius: 22px; border: 3px solid var(--bg); box-shadow: var(--shadow-lg); }
.shop-head h1 { margin: 0 0 4px; font-size: clamp(26px, 4vw, 38px); }
.shop-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; color: #c2410c; background: #ffedd5; border-radius: 16px; }
.shop-ic svg { width: 26px; height: 26px; }
.shop-ic.big { width: 88px; height: 88px; border-radius: 22px; }
.addr { display: flex; gap: 8px; color: var(--ink-2); }
.addr svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--primary); }
.grid-shops { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shop-card { display: flex; align-items: center; gap: 13px; padding: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; }
.shop-card:hover { border-color: var(--primary); }
.shop-card img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 16px; }
.shop-card b { display: block; line-height: 1.35; }
.shop-card small { font-size: 13px; line-height: 1.4; color: var(--muted); display: block; }

/* Tải app */
[hidden] { display: none !important; }
.install-hero { text-align: center; }
.install-hero .lead { margin-left: auto; margin-right: auto; }
.store-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; min-width: 186px; padding: 11px 20px 11px 16px; text-align: left; color: #0b1f4b; background: #fff;
  border: 0; border-radius: 15px; font: inherit; cursor: pointer; text-decoration: none; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .7); transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .8); }
.store-btn svg { flex: none; width: 27px; height: 27px; color: #1d4ed8; }
.store-btn small { display: block; font-size: 12px; line-height: 1.25; font-weight: 500; color: #64748b; }
.store-btn b { display: block; font-size: 17px; line-height: 1.25; font-weight: 800; }
.web-link { font-size: 14.5px; color: #d6e2f5; }
.web-link:hover { color: #fff; }
.nav-app { display: inline-flex; align-items: center; gap: 5px; color: var(--primary) !important; }
.nav-app svg { width: 16px; height: 16px; }
.install-icon { display: block; width: 96px; height: 96px; margin: 8px auto 18px; border-radius: 24px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .7); }
.install-steps { scroll-margin-top: 78px; padding: 22px 24px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.install-steps h2 { margin: 0 0 12px; font-size: 21px; }
.install-steps ol { margin: 0; padding-left: 22px; }
.install-steps li { margin-bottom: 8px; }
.notice { padding: 14px 18px; margin: 0 0 18px; background: var(--soft); border-radius: 14px; }
.notice.warn { color: #78350f; background: #fef3c7; }
.notice .btn { margin-top: 10px; display: flex; width: fit-content; }

/* Chân trang */
.foot { padding: 46px 0 34px; color: #b9c7dc; background: var(--navy); font-size: 14.5px; line-height: 1.6; }
.foot .brand { color: #fff; margin-bottom: 10px; }
.foot a { color: #dbe6f6; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr 1fr; }
.foot h2 { margin: 0 0 10px; font-size: 14.5px; letter-spacing: 0; color: #fff; }
.foot ul { list-style: none; margin: 0 0 18px; padding: 0; }
.foot li { margin-bottom: 5px; }
.foot-tel { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: #fff !important; }
.foot-tel svg { width: 18px; height: 18px; }
.foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.foot-nap li { display: flex; gap: 8px; align-items: flex-start; }
.foot-nap svg { flex: none; width: 15px; height: 15px; margin-top: 4px; opacity: .8; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-social a { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.foot-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8ea2bf; }

/* Trang uy tín: giới thiệu, liên hệ, chính sách */
.doc h2 { font-size: 23px; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.small-note { font-size: 14px; margin-top: 14px; }
.stats-row { display: grid; gap: 10px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 30px; }
.stats-row div { padding: 16px 8px; text-align: center; line-height: 1.35; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); }
.stats-row b { display: block; font-size: 30px; line-height: 1.1; color: var(--primary); letter-spacing: -.02em; }
.stats-row small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 480px) { .stats-row b { font-size: 25px; } .stats-row small { font-size: 12.5px; } }
.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 8px; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: inherit; text-decoration: none; font-size: 15.5px; line-height: 1.5; }
a.contact-card { transition: transform .18s, border-color .18s; }
a.contact-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.contact-card > svg { flex: none; width: 22px; height: 22px; padding: 9px; box-sizing: content-box; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: 12px; }
.contact-card span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); font-size: 13px; }
.pills a svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }

/* Bài viết: an toàn, tác giả */
.safety { display: flex; gap: 12px; margin: 0 0 24px; padding: 14px 18px; color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; font-size: 15.5px; line-height: 1.55; }
.safety svg { flex: none; width: 22px; height: 22px; color: #ea580c; margin-top: 1px; }
.safety p { margin: 0; }
.author-box { display: flex; gap: 16px; margin: 34px 0 0; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.author-box p { margin: 4px 0 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.author-box a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px; text-decoration: none; }
.author-box a svg { width: 16px; height: 16px; }
.author-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 14px; }
.author-ic svg { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) {
  .safety { color: #fed7aa; background: #2a1708; border-color: #7c2d12; }
}

/* Nút cố định trên điện thoại */
.dock { display: none; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .price-card { position: static; }
  .featured { display: block; }
  .featured .thumb { min-height: 0; aspect-ratio: 5 / 2; }
  .featured-in { padding: 18px 20px 22px; }
  .post-cover { aspect-ratio: 16 / 9; }
  .brand-cover, article .brand-cover { aspect-ratio: 16 / 9; }
  .shop-hero img { height: 180px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .section { padding-top: 38px; padding-bottom: 38px; }
  body { padding-bottom: 76px; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .dock .btn { flex: 1; padding: 8px 12px; font-size: 15px; }
}
@media (max-width: 480px) {
  .top nav { gap: 14px; font-size: 14.5px; }
  .top nav .btn { display: none; } /* đã có nút cố định ở cuối màn hình */
  .brand { font-size: 16.5px; }
  .prose { font-size: 16.5px; }
  .shop-head img, .shop-ic.big { width: 64px; height: 64px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
