/* Theme Lưu Ích 2026 - giao diện chính (từ bản mẫu website_luuich_mau đã duyệt 03/11/2026) */
/* Bảng màu xanh lá TƯƠI SÁNG (chốt 03/11/2026): xanh lá #2E7D32, xanh non #7CB518, nền trắng / xanh rất nhạt, vàng #F4C430 cho khuyến mãi */
:root {
  --brand-900: #1b5e20;
  --brand-800: #2e7d32;
  --brand-700: #388e3c;
  --brand-600: #43a047;
  --accent: #7cb518;
  --accent-hover: #8cc823;
  --accent-ink: #4a7309;
  --accent-on-dark: #ecf9c4;
  --on-accent: #14361a;
  --tint: #eef7e6;
  --tint-line: #cfe6b8;
  --hero-glow: rgba(124, 181, 24, .28);
  --hero-glow2: rgba(27, 94, 32, .55);
  --focus: rgba(124, 181, 24, .45);
  --dealer-a: #2e7d32;
  --dealer-b: #1b5e20;
  --on-dark: #ffffff;
  --on-dark-muted: #eef7ea;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313331d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  --soil: #6b4a2e;
  --soil-200: #eadfcb;
  --cream: #f1f8ec;
  --paper: #ffffff;
  --pic-a: #eef6e8;
  --pic-b: #f8fbf5;
  --row-alt: #f6faf2;
  --straw: #f4c430;
  --straw-50: #fff8dc;
  --navy: #2d296d; /* màu logo, chỉ dùng cho tên thương hiệu */
  --ink: #1b2a1c;
  --ink-soft: #344535;
  --muted: #4f5f53;
  --line: #dfe9d6;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(27, 42, 28, .06), 0 8px 24px rgba(27, 42, 28, .08);
  --wrap: 1180px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--brand-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17.5px/1 var(--font); text-decoration: none; cursor: pointer; transition: .15s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-dark { background: var(--brand-800); color: #fff; }
.btn-dark:hover { background: var(--brand-900); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-line { border-color: var(--brand-800); color: var(--brand-800); }
.btn-line:hover { background: var(--brand-800); color: #fff; }
.btn-straw { background: var(--straw); color: #3b2a05; }
.btn-straw:hover { background: #f0c351; color: #3b2a05; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section { padding: 84px 0; }
.wrap.section { padding-left: 20px; padding-right: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0; }
.bg-cream { background: var(--cream); }

/* Thanh trên cùng */
.topbar { background: var(--brand-900); color: var(--on-dark-muted); font-size: 15px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 40px; align-items: center; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--accent-on-dark); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; }

/* Đầu trang */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 64px; height: auto; }
.brand b { display: block; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: 10px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16.5px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .nav .current-menu-item > a, .nav .current-menu-ancestor > a { background: var(--tint); color: var(--brand-900); }
.nav .sub, .nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 270px; display: none; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
}
.nav li:hover > .sub, .nav li:focus-within > .sub,
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub a, .nav .sub-menu a { font-weight: 500; }
.nav .sub-menu li { position: relative; }
.nav .sub-menu .sub-menu { left: 100%; top: 0; }
.nav .sub .grp, .nav .sub-menu .grp { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); padding: 10px 12px 2px; }
.header-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% 20%, var(--hero-glow), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, var(--hero-glow2), transparent 60%),
    linear-gradient(160deg, var(--brand-800), var(--brand-900));
}
.hero::after { /* hạt đất */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--accent-on-dark); }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero .lead { font-size: 21px; color: var(--on-dark-muted); max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); border: 6px solid rgba(255, 255, 255, .08); }
.hero-badge {
  position: absolute; left: -22px; bottom: -22px; background: #fff; color: var(--ink); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 260px;
}
.hero-badge .seal { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--brand-800); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.hero-badge b { display: block; font-size: 16.5px; line-height: 1.25; }
.hero-badge small { color: var(--muted); font-size: 14.5px; }

/* Dải số liệu */
.stats { margin-top: -40px; position: relative; z-index: 2; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { padding: 26px 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 38px; font-weight: 800; color: var(--brand-800); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 16.5px; }

/* 3 lý do */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reason { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; }
.reason .num { position: absolute; top: 22px; right: 26px; font: italic 600 44px/1 var(--font-serif); color: var(--soil-200); }
.reason .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 18px; }
.reason .ico svg { width: 30px; height: 30px; }
.reason p { color: var(--muted); margin: 0; font-size: 17.5px; }

/* Sản phẩm */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 16.5px var(--font); padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card .pic { height: 280px; background: linear-gradient(180deg, var(--pic-a), var(--pic-b)); padding: 18px; }
/* multiply: nền trắng của ảnh bao hòa vào nền thẻ */
.card .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.tag { align-self: flex-start; font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.tag-hc { background: var(--soil-200); color: var(--soil); }
.tag-hcsh { background: var(--tint); color: var(--accent-ink); }
.tag-la { background: #e3ecfb; color: #2b4f8f; }
.specs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.specs span { font-size: 14.5px; background: var(--cream); border-radius: 8px; padding: 3px 8px; color: var(--ink); }
.card[hidden] { display: none; }

/* Khuyến mãi */
.promo { background: var(--straw-50); border-top: 1px solid #f1e2b6; border-bottom: 1px solid #f1e2b6; }
.promo .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.promo .eyebrow { color: #9a6c06; }
.promo h2 { color: #3b2a05; }
.promo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promo li a { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); border: 1px solid #f1e2b6; }
.promo li a:hover { border-color: var(--straw); }
.promo time { font-size: 14.5px; color: #9a6c06; font-weight: 600; white-space: nowrap; }

/* Truy xuất */
.trace { background: var(--brand-900); color: var(--on-dark-muted); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.trace h2 { color: #fff; }
.trace .eyebrow { color: var(--accent-on-dark); }
.trace-form { background: #fff; border-radius: var(--radius-lg); padding: 26px; color: var(--ink); }
.trace-form label { font-weight: 700; display: block; margin-bottom: 8px; }
.trace-form .row { display: flex; gap: 10px; }
.trace-form input { flex: 1; min-width: 0; height: 56px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 16px; font: 600 19px var(--font); letter-spacing: .06em; }
.trace-form input:focus { outline: 3px solid var(--focus); border-color: var(--accent-ink); }
.trace-form small { display: block; color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.trace-result { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 16.5px; display: none; }

/* Lịch sử */
.timeline { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; position: relative; margin-top: 56px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--soil-200); }
.tl { position: relative; padding: 36px 14px 0 0; }
.tl::before { content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.tl b { display: block; font-size: 24px; color: var(--brand-800); font-weight: 800; }
.tl span { font-size: 16px; color: var(--muted); line-height: 1.5; display: block; }
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about .photo { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.about blockquote { margin: 24px 0 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; font: italic 500 22px/1.45 var(--font-serif); color: var(--brand-900); }

/* Kiến thức + tin */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.post:hover { box-shadow: var(--shadow); color: var(--ink); }
.post .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 18px 20px 22px; }
.post .meta { font-size: 14px; color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post h3 { margin: 6px 0 6px; font-size: 20px; }
.post p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Đại lý CTA */
.dealer { background: linear-gradient(120deg, var(--dealer-a), var(--dealer-b)); color: var(--on-dark); border-radius: 28px; padding: 44px 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dealer h2 { color: #fff; margin-bottom: 6px; }
.dealer p { margin: 0; color: var(--on-dark-muted); }

/* Chân trang */
.footer { background: var(--brand-900); color: var(--on-dark-muted); margin-top: 84px; font-size: 17px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 60px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--accent-on-dark); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .logo-box { background: #fff; border-radius: 14px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .logo-box img { width: 56px; }
.footer .logo-box b { color: var(--navy); font-size: 16px; }
.footer .copy { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer .copy .wrap { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-size: 15px; gap: 12px; flex-wrap: wrap; grid-template-columns: none; }

/* Thanh gọi nhanh trên điện thoại */
.mbar { display: none; }
.nav .grp-li { pointer-events: none; }

/* ===== Trang sản phẩm ===== */
.crumbs { font-size: 15px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-800); }
.pd { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; padding: 28px 0 64px; align-items: start; }
.gallery .main { background: linear-gradient(180deg, var(--pic-a), var(--pic-b)); border-radius: var(--radius-lg); border: 1px solid var(--line); aspect-ratio: 1 / 1.05; display: grid; place-items: center; padding: 28px; }
.gallery .main { position: relative; overflow: hidden; }
.gallery .main img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; mix-blend-mode: multiply; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs button { width: 78px; height: 78px; border-radius: 12px; border: 2px solid var(--line); background: var(--pic-b); padding: 6px; cursor: pointer; }
.gallery .thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 10px 0 14px; }
.pd-info .lead { font-size: 20.5px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.fact { background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.fact small { display: block; font-size: 14.5px; color: var(--muted); }
.fact b { font-size: 17.5px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-check { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--accent-ink); border-radius: 12px; font-size: 16.5px; background: var(--tint); }
.tabs { position: sticky; top: 77px; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 6px; overflow-x: auto; }
.tabs a { padding: 14px 14px; font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--brand-800); border-color: var(--accent); }
.pd-sec { padding: 56px 0 0; scroll-margin-top: 140px; }
.pd-sec h2 { font-size: 1.95rem; }
.comp { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 17.5px; }
table.t th, table.t td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { background: var(--brand-800); color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
table.t tbody tr:nth-child(even) { background: var(--row-alt); }
table.t td.v { font-weight: 700; color: var(--brand-800); white-space: nowrap; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.benefits li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 58px; position: relative; }
.benefits li::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent) var(--check-icon) center / 15px no-repeat;
}
.benefits li.wide { grid-column: 1 / -1; background: var(--tint); border-color: var(--tint-line); }
.dose td:first-child b { display: block; color: var(--brand-900); }
.dose td:first-child span { font-size: 16px; color: var(--muted); }
.note { color: var(--muted); font-size: 16.5px; margin-top: 12px; }

/* ===== Đáp ứng ===== */
@media (max-width: 1400px) {
  .header-cta { display: none; }
}
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .timeline::before { display: none; }
  .nav a { padding: 10px 8px; font-size: 15.5px; }
  .header-cta { display: none; }
}
@media (max-width: 920px) {
  body { font-size: 18px; padding-bottom: 76px; }
  .section { padding: 60px 0; }
  .topbar .tb-left .hide-m { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .nav a { font-size: 18px; padding: 13px 12px; }
  .nav .sub, .nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 76px; gap: 36px; }
  .hero-badge { left: 12px; bottom: -18px; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .reasons, .posts { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 14px; }
  .promo .wrap, .trace, .about, .pd, .comp { grid-template-columns: 1fr; }
  .trace { padding: 30px 22px; border-radius: 22px; }
  .trace > * { min-width: 0; }
  .hero .lead { font-size: 19.5px; }
  .dealer { padding: 30px 24px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .pd { gap: 28px; }
  .tabs { top: 76px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 97%, transparent); border-top: 1px solid var(--line);
  }
  .mbar .btn { min-height: 56px; }
  .mbar.one { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .wrap.section { padding-left: 16px; padding-right: 16px; }
  .topbar .tb-right { display: none; }
  .brand img { width: 52px; }
  .brand b { font-size: 17px; }
  .card .body { padding: 14px; }
  .card .pic { height: 190px; padding: 12px; }
  .card h3 { font-size: 17.5px; }
  .card p { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .trace-form .row { flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  table.t th, table.t td { padding: 10px 12px; font-size: 16.5px; }
}

/* ===== Phần riêng cho WordPress ===== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.brand .custom-logo { width: 64px; height: auto; }

/* Đầu trang con (trang, bài viết, danh mục) */
.page-head { background: linear-gradient(160deg, var(--brand-800), var(--brand-900)); color: var(--on-dark); padding: 44px 0 40px; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 6px 0 0; }
.page-head .eyebrow { color: var(--accent-on-dark); margin-bottom: 4px; }
.page-head .crumbs, .page-head .crumbs a { color: var(--on-dark-muted); padding: 0; }
.page-head .meta { color: var(--on-dark-muted); margin-top: 10px; font-size: 16px; }

/* Nội dung soạn trong WordPress */
.entry { max-width: 820px; }
.entry-wide { max-width: none; }
.entry > *:first-child { margin-top: 0; }
.entry, .entry * { overflow-wrap: anywhere; }
.entry h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
.entry h3 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.entry h4 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry li { margin-bottom: .35em; }
.entry img { border-radius: 12px; height: auto; }
.entry a { color: var(--brand-700); }
.entry blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.entry table { width: 100% !important; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 17px; background: #fff; }
.entry table td, .entry table th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.entry table tr:nth-child(even) { background: var(--row-alt); }
.entry iframe, .entry video { max-width: 100%; }
.entry .wp-caption { max-width: 100%; }
.entry .wp-caption-text, .entry figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }
/* Form truy xuất cũ nằm trong nội dung trang sản phẩm */
.entry form { background: var(--tint); border: 1px dashed var(--accent-ink); border-radius: var(--radius); padding: 16px 18px; margin: 1em 0; }
.entry input[type="text"], .entry input[type="email"], .entry input[type="tel"], .entry input[type="number"], .entry textarea, .entry select {
  max-width: 100%; height: 50px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 14px; font: 500 18px var(--font); background: #fff;
}
.entry textarea { height: auto; padding: 12px 14px; }
.entry input[type="submit"], .entry button[type="submit"] {
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brand-800); color: #fff; font: 700 17px var(--font); cursor: pointer; margin-top: 8px;
}
.entry font[color] { color: inherit; }

/* Shortcode cũ của theme 1901 (grid_N...) */
.legacy-grid { margin-bottom: 1em; }
.legacy-clear { clear: both; }
.legacy-hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Trang sản phẩm: phần nội dung chi tiết lấy từ trang cũ */
.pd-body { padding: 8px 0 0; }

/* Danh sách bài viết */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post .thumb.ph { display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-700), var(--brand-900)); color: var(--on-dark); font: italic 600 22px var(--font-serif); padding: 20px; text-align: center; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-chips a { text-decoration: none; }
.cat-chips a.chip-btn.on { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; }
.pagination .page-numbers.current { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav a { text-decoration: none; font-weight: 600; }
.single-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.side-box { background: var(--cream); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.side-box h3 { font-size: 18px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-box li a { text-decoration: none; color: var(--ink); font-size: 16.5px; line-height: 1.4; display: block; }
.side-box li a:hover { color: var(--brand-700); }
.side-box time { display: block; font-size: 14px; color: var(--muted); }
.empty { padding: 40px; background: var(--cream); border-radius: var(--radius-lg); text-align: center; }
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 54px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 16px; font: 500 18px var(--font); }

/* Truy xuất: ô số seri + số lô chung 1 khung trắng */
.trace-box { background: #fff; border-radius: var(--radius-lg); padding: 26px; color: var(--ink); }
.trace-box .trace-form { background: none; padding: 0; border-radius: 0; }
.trace-form .alt { margin-top: 14px; font-size: 15.5px; }
.trace-form .alt summary { cursor: pointer; color: var(--brand-700); font-weight: 600; }
.trace-form .alt .row { margin-top: 10px; }

@media (max-width: 920px) {
  .post-list { grid-template-columns: 1fr 1fr; }
  .layout-2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .alignleft, .alignright { float: none; margin: 0 0 16px; }
  .entry table { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  .post-list { grid-template-columns: 1fr; }
  .page-head { padding: 32px 0 28px; }
  .empty { padding: 24px 16px; }
  .search-form { flex-wrap: wrap; }
  .search-form .btn { flex: 1 0 100%; }
}

/* Trang kết quả truy xuất (nội dung do đoạn mã Insert PHP in ra) */
.entry.trace-output { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; max-width: 760px; }
.entry.trace-output table { border: 0; }
.entry.trace-output th, .entry.trace-output td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
.entry.trace-output th { width: 38%; color: var(--muted); font-weight: 600; }
.entry.trace-output tr:nth-child(even) { background: transparent; }
.entry.trace-output hr { display: none; }
.entry.trace-output h4 { font-size: 1.2rem; }
.entry.trace-output > a:last-child, .entry.trace-output p:last-child > a:only-child { display: inline-flex; margin-top: 12px; padding: 10px 20px; border: 2px solid var(--brand-800); border-radius: 999px; text-decoration: none; font-weight: 700; }

/* Trang Liên hệ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.contact-card .addr { color: var(--ink-soft); }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-card li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.contact-card li span { min-width: 108px; color: var(--muted); }
.contact-card li a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.contact-grid.three { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 1080px) { .contact-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .contact-grid, .contact-grid.three { grid-template-columns: 1fr; } }
.contact-form-box { background: var(--cream); border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 22px; max-width: 980px; }
.contact-form-box h2 { font-size: 1.4rem; }
.contact-form-box p { margin: 0 0 14px; }
.contact-form-box label { font-weight: 600; display: block; }
.contact-form-box input[type="text"], .contact-form-box input[type="email"], .contact-form-box input[type="tel"], .contact-form-box textarea {
  width: 100%; max-width: 640px; min-height: 50px; border-radius: 10px; border: 1.5px solid var(--line); padding: 10px 14px; font: 500 18px var(--font); background: #fff; margin-top: 6px;
}
.contact-form-box textarea { min-height: 140px; }
.contact-form-box input[type="submit"] { min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--brand-800); color: #fff; font: 700 17px var(--font); cursor: pointer; }

/* Tên công ty dài (web tiếng Anh) không được đẩy nút menu ra ngoài màn hình */
.brand { min-width: 0; flex: 0 1 auto; }
.brand > span { min-width: 0; }
.menu-btn { flex: none; }
@media (max-width: 560px) {
  .header .wrap { gap: 12px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 12.5px; line-height: 1.3; }
}
