/*
 * detdaydaiminh.vn — CSS dùng chung. Theme "nhà máy dệt hiện đại": xanh lá logo (#0a8a4a) + xanh đậm + xám sáng + cam nhấn.
 * Màu chỉ khai báo ở :root. Không icon/emoji trong chữ (SVG vẽ nét qua ico()). Sửa file → tăng ASSET_VER trong app/view.php.
 * Mục: 1 token · 2 nền tảng · 3 nút/form/card · 4 header + menu · 5 menu mobile · 6 footer · 7 lưới thẻ · 8 trang sản phẩm
 *      (6 style) · 9 trang chủ / danh mục / cẩm nang / liên hệ / bài viết · 10 toast/modal · 11 mobile (giữ cuối)
 */

/* ---------- 1. Token ---------- */
:root {
  --green: #077a40; --green-2: #12a35a; --green-3: #4bb74a; --green-dark: #0b4d2e; --green-deep: #063622; --green-soft: #e7f5ec; --green-soft-2: #cfeadb;
  --ink: #15201a; --ink-2: #334139; --muted: #5f6b64; --line: #dfe6e1; --line-2: #c6d1ca;
  --bg: #f4f7f5; --paper: #ffffff; --paper-2: #f9fbf9;
  --accent: #bc5215; --accent-2: #ff8a3d; --accent-dark: #93400f; --accent-soft: #fff0e6;
  --ok: #1f7a48; --warn: #b7791f; --danger: #b3261e; --info: #2b5c8a;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 10px 30px rgba(11, 77, 46, .12); --shadow-sm: 0 2px 10px rgba(11, 77, 46, .08);
  --font: 'Be Vietnam Pro', 'BVP Fallback', Arial, sans-serif;
  --head-h: 112px; --wrap: 1280px;
  --pa: var(--accent); --pa-soft: var(--accent-soft);   /* màu nhấn trang sản phẩm (ghi đè inline theo products.accent) */
}

/* ---------- 2. Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
body.no-scroll { overflow: hidden; }
main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 40px; } h2 { font-size: 28px; } h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
p a:not([class]) { font-weight: 600; }
p a:not([class]):hover, p a:not([class]):focus-visible { background: var(--green-soft); border-radius: 3px; box-shadow: 0 0 0 2px var(--green-soft); }
.site-foot p a:not([class]):hover, .site-foot p a:not([class]):focus-visible { background: none; box-shadow: none; color: #fff; text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 880px; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.sec { margin: 56px auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; } .sec-head h2 a { color: inherit; } .sec-head .muted { margin: 6px 0 0; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.more .ico { width: 18px; height: 18px; transition: transform .15s; } .more:hover .ico { transform: translateX(3px); }
.ico { width: 22px; height: 22px; flex: none; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: var(--ink-2); } .crumb a:hover { color: var(--green); } .crumb-sep { color: var(--line-2); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green-dark); color: #fff; padding: 8px 12px; z-index: 999; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
a, button, .btn { transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s, opacity .15s; }

/* ---------- 3. Nút / form / card ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--green); background: var(--green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; text-decoration: none; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ico { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-soft); color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); } .btn-danger:hover { background: #8e1c16; border-color: #8e1c16; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; }
label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
label i { color: var(--danger); font-style: normal; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(18, 163, 90, .15); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; } .hp, .field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.center-card { text-align: center; padding: 56px 24px; margin: 48px 0; }
.center-card .btn-row { justify-content: center; margin-top: 18px; }
.err-code { font-size: 72px; font-weight: 800; color: var(--green-3); line-height: 1; margin-bottom: 8px; letter-spacing: -.04em; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--green-soft); color: var(--green-dark); }
.pill.ok { background: #e3f1e8; color: var(--ok); } .pill.warn { background: #fbefd9; color: var(--warn); } .pill.danger { background: #f8e0de; color: var(--danger); } .pill.tag { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.msg { display: none; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin: 0 0 14px; }
.msg.show { display: block; } .msg.err { background: #fdecea; color: var(--danger); } .msg.ok { background: #e3f1e8; color: var(--ok); } .msg.warn { background: #fbefd9; color: var(--warn); } .msg.info { background: #e1ebf4; color: var(--info); }
.prose { font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 25px; margin-top: 1.6em; } .prose h3 { font-size: 19px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 24px; } .prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14.5px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; } .prose th { background: var(--green-soft); color: var(--green-dark); }
.prose img { border-radius: var(--radius-sm); margin: 1.2em auto; }
.prose figure { margin: 1.4em 0; } .prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--green-3); background: var(--green-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose .note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 26px; }
.toc b { display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; } .toc li { margin: 3px 0; break-inside: avoid; } .toc a { color: var(--ink-2); font-weight: 500; } .toc a:hover { color: var(--green); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; } .faq-item summary .ico { width: 18px; height: 18px; color: var(--green); transition: transform .2s; }
.faq-item[open] summary .ico { transform: rotate(180deg); } .faq-item[open] summary { color: var(--green-dark); }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); } .faq-a p { margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-weight: 600; } .pager a.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 4. Header + menu ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(11, 77, 46, .06); }
.topbar { background: var(--green-deep); color: #cfe5d8; font-size: 13px; height: 34px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.top-left, .top-right { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar a, .topbar span.top-addr, .top-right > span { display: inline-flex; align-items: center; gap: 7px; color: #cfe5d8; white-space: nowrap; }
.topbar a:hover { color: #fff; } .topbar .ico { width: 15px; height: 15px; color: var(--green-3); }
.mainbar { height: 78px; }
.mainbar .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 48px; width: auto; } .brand:hover { opacity: .85; }
.brand-txt { display: flex; flex-direction: column; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.15; }
.brand-txt b { font-size: 17px; font-weight: 800; color: var(--green-dark); letter-spacing: -.01em; text-transform: uppercase; } .brand-txt small { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; height: 100%; }
.nav-link, .nav-item > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 999px; }
.nav-link:hover, .nav-item > a:hover, .nav-link.on, .nav-item.on > a { color: var(--green-dark); background: var(--green-soft); }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item .chev { width: 16px; height: 16px; transition: transform .2s; } .nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.sub { display: none; position: absolute; left: 50%; top: calc(100% - 8px); transform: translateX(-50%); width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; z-index: 70; }
.nav-item:hover .sub, .nav-item.open .sub { display: block; }
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sub-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-sm); color: var(--ink); }
.sub-card:hover { background: var(--green-soft); color: var(--green-dark); }
.sub-thumb { flex: none; width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); } .sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-body b { display: block; font-size: 14.5px; } .sub-body small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.sub-all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 10px; font-weight: 600; } .sub-all .ico { width: 16px; height: 16px; }
.head-cta { flex: none; }
.burger { display: none; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* ---------- 5. Menu mobile (tấm trượt phải) ---------- */
.mnav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--paper); z-index: 90; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.mnav.open { transform: none; visibility: visible; transition: transform .25s, visibility 0s; }
.mnav-shade { position: fixed; inset: 0; background: rgba(6, 54, 34, .45); z-index: 85; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mnav-shade.open { opacity: 1; pointer-events: auto; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); } .mnav-head img { height: 40px; width: auto; }
.mnav-close { border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.mnav-body { flex: 1; overflow-y: auto; padding: 10px 0; }
.mnav-link { display: block; padding: 12px 22px; font-weight: 700; font-size: 16px; color: var(--ink); } .mnav-link.on { color: var(--green); }
.mnav-sub { display: block; padding: 8px 22px 8px 38px; color: var(--ink-2); font-size: 14.5px; border-left: 3px solid var(--green-soft-2); margin-left: 22px; }
.mnav-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mnav-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--green-dark); }

/* ---------- 6. Footer ---------- */
.site-foot { background: var(--green-deep); color: #cfe5d8; margin-top: 64px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.1fr .8fr .8fr; gap: 36px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand img { margin-bottom: 14px; height: 56px; width: auto; }
.foot-legal { color: #fff; font-weight: 700; }
.foot-h { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.foot-h2 { margin-top: 18px; }
.foot-col p { margin: 0 0 10px; } .foot-col p b { color: #fff; } .foot-col a { color: #e3f1e8; display: block; padding: 3px 0; }
.foot-col p a { display: inline; padding: 0; color: var(--green-3); font-weight: 600; } .foot-col a:hover { color: #fff; }
.foot-badge img { margin: 12px 0 0; background: #fff; border-radius: 6px; padding: 4px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #a9c9b7; flex-wrap: wrap; }
.foot-social { display: flex; gap: 8px; } .foot-social a { padding: 4px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #e3f1e8; } .foot-social a:hover { border-color: var(--green-3); color: #fff; }

/* ---------- 7. Lưới thẻ sản phẩm / bài viết / danh mục ---------- */
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pgrid-4 { grid-template-columns: repeat(4, 1fr); } .pgrid-3 { grid-template-columns: repeat(3, 1fr); }
.pcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; min-width: 0; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard-img { display: block; aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-cat { font-size: 11.5px; color: var(--green); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pcard-name { font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 0; } .pcard-name a { color: var(--ink); }
.pcard-desc { font-size: 13.5px; color: var(--muted); margin: 0; }
.pcard-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--green); } .pcard-more svg { width: 16px; height: 16px; flex: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-img img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.post-card-body { padding: 16px 18px 18px; } .post-card-body time { font-size: 12.5px; color: var(--muted); } .post-card-body h3 { font-size: 17px; margin: 6px 0 8px; } .post-card-body h3 a { color: var(--ink); } .post-card-body h3 a:hover { color: var(--green); } .post-card-body p { font-size: 14px; color: var(--ink-2); margin: 0; }
.post-card.big { grid-column: span 3; display: grid; grid-template-columns: 1.3fr 1fr; } .post-card.big .post-card-img img { height: 100%; aspect-ratio: auto; } .post-card.big .post-card-body { padding: 28px; align-self: center; } .post-card.big h3 { font-size: 26px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.cat-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); } .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .cat-card:hover .cat-img img { transform: scale(1.04); }
.cat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.cat-n { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .1em; } .cat-body b { font-size: 19px; } .cat-body p { color: var(--muted); font-size: 14px; margin: 0; }
.cat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--green); font-size: 14px; } .cat-more .ico { width: 16px; height: 16px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.cat-tabs a { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 14px; } .cat-tabs a:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }

/* ---------- 8. Trang sản phẩm — bố cục chung + 6 style ---------- */
.pd-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.pd-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 36px 20px 44px; }
.pd-hero-txt .crumb { margin-bottom: 18px; }
.pd-hero h1 { font-size: 42px; margin-bottom: 10px; }
.pd-tagline { font-size: 20px; font-weight: 600; color: var(--pa); margin: 0 0 12px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 22px; font-size: 14px; color: var(--ink-2); }
.pd-meta span { display: inline-flex; align-items: center; gap: 7px; } .pd-meta .ico { width: 18px; height: 18px; color: var(--pa); }
.pd-acts .btn-accent { background: var(--pa); border-color: var(--pa); } .pd-acts .btn-accent:hover { filter: brightness(.9); }
.pd-fig { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pd-fig img { width: 100%; height: 100%; object-fit: cover; }
.pd-fig-empty img { width: 40%; height: auto; opacity: .35; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--bg); padding: 0; cursor: pointer; }
.pd-thumb.on, .pd-thumb:hover { border-color: var(--pa); } .pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-feats { padding: 36px 0; background: var(--bg); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; } .feat-grid-2 { grid-template-columns: repeat(2, 1fr); } .feat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.feat .ico { width: 30px; height: 30px; color: var(--green); margin-bottom: 12px; } .feat h3 { font-size: 17px; margin-bottom: 6px; } .feat p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.feat-n { display: inline-block; font-size: 12px; font-weight: 800; color: var(--pa); letter-spacing: .1em; margin-bottom: 10px; }
.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 44px; padding-bottom: 20px; align-items: start; }
.pd-sec { margin-bottom: 44px; } .pd-sec > h2 { font-size: 26px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--pa); display: inline-block; }
.spec-tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.spec-tbl th, .spec-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-tbl th { width: 38%; font-weight: 600; color: var(--ink-2); background: var(--paper-2); } .spec-tbl tr:last-child th, .spec-tbl tr:last-child td { border-bottom: 0; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.app-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.app-list .ico { width: 20px; height: 20px; color: var(--pa); margin-top: 2px; }
.pd-side { position: sticky; top: calc(var(--head-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 17px; } .side-card p { font-size: 14px; color: var(--ink-2); } .side-card .btn { margin-bottom: 10px; }
.side-card .btn-accent { background: var(--pa); border-color: var(--pa); }
.side-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; } .side-link .ico { width: 16px; height: 16px; }
.side-posts a { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14.5px; font-weight: 500; } .side-posts a:first-of-type { border-top: 0; } .side-posts a:hover { color: var(--green); }
/* style: industrial — mặc định (nền sáng, viền xám, nhấn cam) */
/* style: clean — nhiều khoảng trắng, chữ mảnh hơn, ảnh contain */
.pd.style-clean .pd-hero { background: #fff; border-bottom: 0; } .pd.style-clean .pd-hero-in { padding-top: 56px; padding-bottom: 64px; }
.pd.style-clean .pd-hero h1 { font-weight: 600; font-size: 44px; } .pd.style-clean .pd-fig { background: #fff; border: 1px solid var(--line); } .pd.style-clean .pd-fig img { object-fit: contain; padding: 6%; }
.pd.style-clean .pd-feats { background: #fff; padding-top: 0; } .pd.style-clean .feat { border: 0; border-top: 2px solid var(--pa); border-radius: 0; background: transparent; padding: 18px 0 0; }
.pd.style-clean .spec-tbl th { background: #fff; }
/* style: dark — hero nền xanh đậm, chữ sáng */
.pd.style-dark .pd-hero { background: linear-gradient(135deg, var(--green-deep), #0d1f16 70%); color: #e9f3ed; border-bottom: 0; }
.pd.style-dark .pd-hero h1, .pd.style-dark .pd-hero .lead { color: #fff; } .pd.style-dark .crumb, .pd.style-dark .crumb a, .pd.style-dark .pd-meta { color: #a9c9b7; } .pd.style-dark .kicker { color: var(--pa); }
.pd.style-dark .pd-fig { background: rgba(255,255,255,.06); box-shadow: 0 20px 60px rgba(0,0,0,.35); } .pd.style-dark .pd-thumb { background: rgba(255,255,255,.08); }
.pd.style-dark .pd-feats { background: var(--green-deep); } .pd.style-dark .feat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #e9f3ed; } .pd.style-dark .feat h3 { color: #fff; } .pd.style-dark .feat p { color: #cfe5d8; }
/* style: warm — tông be ấm */
.pd.style-warm .pd-hero { background: #fbf6ee; border-bottom-color: #efe3d1; } .pd.style-warm .pd-fig { background: #f3e9da; } .pd.style-warm .pd-feats { background: #f7efe3; }
.pd.style-warm .feat { background: #fffaf2; border-color: #efe3d1; } .pd.style-warm .spec-tbl th { background: #fbf6ee; } .pd.style-warm .app-list li { background: #fffaf2; border-color: #efe3d1; }
/* style: tech — lưới mờ kiểu bản vẽ */
.pd.style-tech .pd-hero { background: #f6f8fa; background-image: linear-gradient(rgba(15,118,110,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(15,118,110,.07) 1px, transparent 1px); background-size: 28px 28px; }
.pd.style-tech .pd-hero h1 { font-family: var(--font); letter-spacing: -.02em; } .pd.style-tech .pd-fig { border: 1px solid var(--line-2); background: #fff; }
.pd.style-tech .spec-tbl { font-variant-numeric: tabular-nums; } .pd.style-tech .spec-tbl th { background: #eef5f4; color: #0f766e; font-family: ui-monospace, Consolas, monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pd.style-tech .feat { border-left: 3px solid var(--pa); border-radius: 0 var(--radius) var(--radius) 0; }
/* style: bold — tiêu đề rất lớn, dải màu chéo */
.pd.style-bold .pd-hero { background: var(--paper); position: relative; overflow: hidden; }
.pd.style-bold .pd-hero::before { content: ''; position: absolute; top: 0; bottom: 0; right: -10%; width: 55%; background: var(--pa-soft); transform: skewX(-12deg); z-index: 0; }
.pd.style-bold .pd-hero-in { position: relative; z-index: 1; } .pd.style-bold .pd-hero h1 { font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.pd.style-bold .pd-fig { border-radius: 28px 8px 28px 8px; box-shadow: var(--shadow); } .pd.style-bold .pd-sec > h2 { font-size: 32px; font-weight: 800; }
/* ảnh nội dung do pipeline đặt (app/pipeline.php pl_html_place_images) */
.prose .pd-img { margin: 1.6em 0; } .prose .pd-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 0; box-shadow: var(--shadow-sm); }

/* ---------- 9. Trang chủ / danh mục / cẩm nang / liên hệ / bài viết / giới thiệu ---------- */
.hero { background: radial-gradient(1200px 600px at 85% 10%, #0f6b3f 0%, var(--green-deep) 55%, #052a1a 100%); color: #e3f1e8; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 80%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.hero .kicker { color: var(--green-3); } .hero h1 { color: #fff; font-size: 48px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 18px; }
.hero .lead { color: #cfe5d8; font-size: 18.5px; margin-bottom: 28px; }
.hero .btn-accent { box-shadow: 0 10px 30px rgba(242, 107, 29, .35); }
.hero-stats { list-style: none; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hero-stats b { display: block; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; } .hero-stats span { font-size: 13px; color: #a9c9b7; }
.hero-art { position: relative; } .hero-art img { border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.hero-chip .ico { width: 18px; height: 18px; color: var(--green); } .chip-a { left: -28px; top: 48px; } .chip-b { right: -20px; bottom: 60px; }
.sec-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; margin: 56px 0; }
.sec-steps { background: var(--green-deep); color: #e3f1e8; padding: 60px 0; margin: 56px 0 0; }
.sec-steps h2 { color: #fff; } .sec-steps .kicker { color: var(--green-3); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 22px; }
.steps span { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent-2); letter-spacing: .14em; margin-bottom: 12px; } .steps h3 { color: #fff; font-size: 18px; } .steps p { margin: 0; color: #cfe5d8; font-size: 14.5px; }
.cta { margin: 64px 0 0; background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { color: #fff; font-size: 28px; margin-bottom: 8px; } .cta p { margin: 0; color: #d9ecdf; max-width: 620px; } .cta-acts { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.cta .btn-accent { box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.site-foot { margin-top: 0; } .cta + .site-foot, main + .site-foot { margin-top: 0; }
.phero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 30px 0 36px; }
.phero h1 { margin-bottom: 8px; } .phero .lead { margin-bottom: 0; } .phero .kicker { margin-bottom: 6px; }
.phero-post { padding-bottom: 28px; } .phero-post h1 { font-size: 36px; max-width: 820px; } .post-meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.post-wrap { padding-top: 32px; } .post-cover { margin: 0 0 24px; } .post-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 1200/630; object-fit: cover; }
.post-excerpt { font-size: 18px; color: var(--ink-2); border-left: 4px solid var(--green-3); padding-left: 16px; margin-bottom: 26px; }
.about-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 40px; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-stats { margin: 0; padding: 0; border: 0; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; } .about-stats b { color: var(--green-dark); font-size: 32px; } .about-stats span { color: var(--muted); }
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.place { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; } .place .ico { width: 28px; height: 28px; color: var(--green); margin-bottom: 10px; } .place h3 { font-size: 17px; } .place p { margin: 0 0 8px; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr; gap: 12px; }
.info-card { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-card > .ico { width: 26px; height: 26px; color: var(--green); margin-top: 2px; } .info-card h3 { font-size: 15.5px; margin-bottom: 4px; } .info-card p { margin: 0 0 4px; color: var(--ink-2); font-size: 14.5px; } .info-card .more { font-size: 13.5px; }
.contact-form h2 { font-size: 24px; } .map-wrap iframe { border-radius: var(--radius); } .contact-grid + .map-wrap { margin-top: 0; }
.arc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 40px; }

/* ---------- 9b. Tra cứu phiếu giao hàng (app/pages/lookup.php, lookup.js) + Turnstile "chỉ hiện khi cần" (common.js) ---------- */
.hide { display: none !important; }
.ts-wrap { display: none; margin: 0 0 14px; } .ts-wrap.show { display: block; } .ts-error { font-size: 13px; color: var(--danger); }
.lk-wrap { margin: 36px auto 56px; }
.lk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lk-card { padding: 30px 32px; border-top: 4px solid var(--green); }
.lk-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; } .lk-head > svg { flex: none; width: 40px; height: 40px; color: var(--green); padding: 8px; background: var(--green-soft); border-radius: var(--radius-sm); box-sizing: content-box; }
.lk-head h2 { font-size: 22px; margin: 2px 0 4px; } .lk-head p { margin: 0; font-size: 14px; }
.lk-input { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 20px; letter-spacing: .16em; text-transform: uppercase; padding: 13px 14px; }
.lk-input:read-only { background: var(--paper-2); color: var(--ink-2); }
.field small { display: block; margin-top: 6px; font-size: 12.5px; }
.lk-result { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin: 0 0 18px; background: var(--green-soft); border: 1px solid var(--green-soft-2); border-radius: var(--radius); }
.lk-result > svg { flex: none; width: 34px; height: 34px; color: var(--green); } .lk-result b { display: block; font-size: 15px; margin-bottom: 2px; overflow-wrap: anywhere; } .lk-result a { font-weight: 600; }
.lk-side { display: flex; flex-direction: column; gap: 14px; }
.lk-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.lk-step > span { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; }
.lk-step h3 { font-size: 16px; margin: 4px 0 4px; } .lk-step p { margin: 0; font-size: 14px; color: var(--ink-2); }
.lk-note { padding: 16px 18px; background: var(--accent-soft); border: 1px dashed var(--accent-2); border-radius: var(--radius); } .lk-note h3 { font-size: 15px; margin: 0 0 6px; color: var(--accent-dark); } .lk-note p { margin: 0; font-size: 14px; color: var(--ink-2); }
form.busy .lk-input { opacity: .7; }

/* ---------- 10b. Khung nhắn tin hỗ trợ (app/widgets.php, widgets.js; cụm nút liên hệ nổi: assets/chat-widget.css) ----------
   Chép bố cục ruouthuduc.vn §9h, màu đổi sang token xanh lá của site. Hộp chat: đáy ngang với nút "Nhắn tin hỗ trợ"
   (nút cuối cụm, cụm cách đáy 120px — chat-widget.css), cách cụm 16px về bên trái. */
.sp-panel { position: fixed; right: 101px; bottom: 120px; z-index: 160; width: 372px; max-width: calc(100vw - 130px); height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sp-panel[hidden] { display: none; }
@media (max-height: 600px) and (min-width: 821px) { .sp-panel { right: 16px; bottom: 74px; height: calc(100vh - 90px); } }
.sp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.sp-head-t { flex: 1; min-width: 0; } .sp-head-t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sp-head-t span { display: block; font-size: 12px; opacity: .85; }
.sp-hbtn { flex: none; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .15s; }
.sp-hbtn svg { width: 18px; height: 18px; } .sp-hbtn:hover { background: rgba(255,255,255,.28); } .sp-hbtn:active { transform: scale(.94); }
.sp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sp-greet { align-self: center; max-width: 94%; background: var(--green-soft); border: 1px dashed var(--green-soft-2); color: var(--ink-2); border-radius: var(--radius); padding: 10px 12px; font-size: 13.5px; text-align: center; }
.sp-day { align-self: center; font-size: 12px; color: var(--muted); padding: 2px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.sp-msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; }
.sp-msg p { margin: 0; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.45; }
.sp-msg small { font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.sp-msg.me { align-self: flex-end; align-items: flex-end; } .sp-msg.me p { background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.sp-msg.them { align-self: flex-start; align-items: flex-start; } .sp-msg.them p { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sp-img { display: block; max-width: 240px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--paper); } .sp-img img { display: block; width: 100%; }
.sp-msg p.sp-img-gone { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-style: italic; font-size: 13px; }
.sp-older { align-self: center; font-size: 13px; }
.sp-alert { padding: 9px 14px; background: #fbefd9; color: var(--warn); font-size: 13.5px; border-top: 1px solid var(--line); }
.sp-intro { padding: 10px 12px 4px; border-top: 1px solid var(--line); background: var(--paper-2); } .sp-intro p { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); }
.sp-intro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .sp-intro-row input { padding: 9px 11px; font-size: 14px; border-radius: 10px; }
.sp-intro-row.one { grid-template-columns: 1fr; margin-top: 8px; } .sp-intro .ts-wrap { margin: 8px 0 0; }
.sp-attach { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 13px; } .sp-attach img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.sp-attach span { flex: 1; min-width: 0; color: var(--ink-2); }
.sp-attach-x { flex: none; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--green); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.sp-attach-x svg { width: 15px; height: 15px; } .sp-attach-x:hover { background: var(--green-soft); border-color: var(--green-3); }
.sp-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.sp-note { margin: 0; padding: 0 14px 10px; font-size: 12px; color: var(--muted); background: var(--paper); }
.sp-form textarea { flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.4; }
.sp-pick { flex: none; width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--green); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sp-pick svg { width: 22px; height: 22px; transition: transform .15s; }
.sp-pick:hover { background: var(--green-soft); border-color: var(--green-3); } .sp-pick:hover svg { transform: scale(1.08); }
.sp-pick:active svg { transform: scale(.96); } .sp-pick:disabled { opacity: .5; cursor: default; }
.sp-form .btn { height: 42px; }

/* ---------- 10. Toast / modal ---------- */
#rtd-toasts { position: fixed; top: 16px; right: 16px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 14px; opacity: 0; transform: translateY(-8px); transition: all .3s; max-width: 360px; }
.toast.show { opacity: 1; transform: none; } .toast.err { background: var(--danger); } .toast.warn { background: var(--warn); } .toast.ok { background: var(--ok); }
.modal-shade { position: fixed; inset: 0; background: rgba(6, 54, 34, .5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--paper); border-radius: var(--radius); padding: 26px; max-width: 420px; width: 100%; box-shadow: var(--shadow); } .modal p { margin-bottom: 18px; } .modal .btn-row { justify-content: flex-end; }

/* ---------- 11. Mobile (giữ cuối) ---------- */
@media (max-width: 1100px) {
  .foot-grid { grid-template-columns: 1fr 1fr; } .pgrid-4 { grid-template-columns: repeat(3, 1fr); } .feat-grid { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); }
  .sub { width: 620px; } .top-addr { display: none !important; }
}
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .topbar { display: none; } .mainbar { height: 64px; } .brand img { height: 40px; } .brand-txt b { font-size: 14px; } .brand-txt small { display: none; }
  .nav, .head-cta { display: none; } .burger { display: inline-flex; margin-left: auto; }
  h1 { font-size: 30px; } h2 { font-size: 24px; }
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 32px; } .hero h1 { font-size: 34px; } .hero-art img { aspect-ratio: 4/3; } .chip-a { left: 8px; top: 12px; } .chip-b { right: 8px; bottom: 14px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .cat-grid, .post-grid, .place-grid { grid-template-columns: 1fr 1fr; } .post-card.big { grid-column: span 2; grid-template-columns: 1fr; }
  .pgrid-4, .pgrid-3 { grid-template-columns: repeat(2, 1fr); }
  .pd-hero-in { grid-template-columns: 1fr; gap: 24px; padding-top: 22px; padding-bottom: 30px; } .pd-hero-img { order: -1; } .pd-hero h1 { font-size: 30px; } .pd.style-bold .pd-hero h1 { font-size: 36px; }
  .pd-body { grid-template-columns: 1fr; gap: 24px; } .pd-side { position: static; }
  .about-top, .contact-grid, .lk-grid { grid-template-columns: 1fr; } .lk-card { padding: 22px 18px; }
  /* Khung chat phủ toàn màn hình (widgets.js gán chiều cao theo visualViewport khi bàn phím mở) */
  .sp-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; max-width: none; height: auto; border-radius: 0; border: 0; z-index: 400; }
  .sp-note { display: none; }
  body.sp-open { overflow: hidden; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .sec { margin: 40px auto; } .sec-band, .sec-steps { padding: 40px 0; margin: 40px 0; } .sec-steps { margin-bottom: 0; }
  .arc { padding: 22px 20px; } .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  body { font-size: 15px; } .wrap { padding: 0 16px; }
  .pgrid, .pgrid-4, .pgrid-3, .cat-grid, .post-grid, .feat-grid, .steps, .place-grid, .foot-grid, .app-list, .form-row { grid-template-columns: 1fr; }
  .post-card.big { grid-column: span 1; }
  .hero h1 { font-size: 29px; } .hero .lead { font-size: 16px; } .hero-stats b { font-size: 24px; }
  .pd-hero h1 { font-size: 26px; } .pd-tagline { font-size: 17px; } .pd-sec > h2 { font-size: 22px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-lg { padding: 13px 20px; font-size: 15px; } .phero { padding: 22px 0 26px; } .phero-post h1 { font-size: 26px; }
  .cta h2 { font-size: 23px; } .foot-bottom { flex-direction: column; }
}
