:root {
  /* Bảng màu lấy từ logo Hoàng Anh: đỏ #D8002F, vàng #FFC711, đen than #222 */
  --primary: #d8002f;
  --primary-dark: #a80024;
  --accent: #ffc711;
  --accent-dark: #e6ac00;
  --dark: #222;
  --red: #d8002f;
  --red-dark: #a80024;
  --green: #2bb24c;
  --orange: #ff7a00;
  --text: #333;
  --muted: #888;
  --line: #ececec;
  --bg: #f1f1f1;
  --white: #fff;
  --soft-primary: #fff1f3;
  --soft-yellow: #fff8e6;

  /* ---------- Typography ---------- */
  /* Be Vietnam Pro hỗ trợ đầy đủ tiếng Việt; font dự phòng đều có dấu tiếng Việt */
  --font-sans: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Thang cỡ chữ: 400 là cỡ nội dung chuẩn */
  --fs-50: 11px;
  --fs-100: 12px;
  --fs-200: 13px;
  --fs-300: 14px;
  --fs-400: 15px;
  --fs-500: 16px;
  --fs-600: 18px;
  --fs-700: 20px;
  --fs-800: 24px;
  --fs-900: 28px;

  /* Cỡ theo vai trò (đổi theo màn hình ở phần responsive) */
  --fs-h1: var(--fs-800);
  --fs-h2: var(--fs-600);
  --fs-h3: var(--fs-500);
  --fs-price-lg: var(--fs-800);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-base: 1.6;
  --lh-relaxed: 1.75;

  --ls-caps: .02em;   /* chữ in hoa: tiêu đề, nhãn */
  --ls-label: .04em;  /* nhãn nhỏ in hoa */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--dark); }
b, strong, th { font-weight: var(--fw-bold); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.box { background: var(--white); margin-top: 24px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--dark); color: #fff; font-size: var(--fs-200); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.header-main { background: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,.15); border-bottom: 3px solid var(--accent); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { background: #fff; border-radius: 12px; padding: 4px 12px; flex: none; }
.logo img { height: 50px; width: auto; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; height: 40px; max-width: 560px; color: #999; padding-left: 16px; }
.search input { flex: 1; border: 0; outline: none; font-size: var(--fs-300); color: var(--text); padding: 0 10px; min-width: 0; height: 100%; text-overflow: ellipsis; }
.search input::placeholder { color: #999; }
.search button { background: var(--accent); border: 0; height: 100%; padding: 0 20px 0 18px; color: var(--dark); font-size: var(--fs-300); font-weight: var(--fw-semibold); border-radius: 0 999px 999px 0; }
.search button:hover { background: var(--accent-dark); }
.main-nav { list-style: none; display: flex; margin: 0 0 0 auto; padding: 0; color: #fff; font-weight: var(--fw-semibold); font-size: var(--fs-500); line-height: var(--lh-snug); white-space: nowrap; }
.main-nav li + li { border-left: 1px solid rgba(255,255,255,.35); }
.main-nav a { padding: 0 16px; display: block; }
.main-nav a:hover { color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; padding: 0; width: 44px; height: 44px; place-items: center; margin-left: -10px; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 400px 1fr; margin-top: 60px; background: #fff; }
.sidebar { border-right: 1px solid var(--line); padding-bottom: 16px; }
.sidebar-title { display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-size: var(--fs-600); font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--dark); letter-spacing: var(--ls-caps); text-transform: uppercase; border-bottom: 1px solid var(--line); margin: 0; }
.sidebar-title .burger, .sidebar-title .burger::before, .sidebar-title .burger::after { background: var(--primary); width: 26px; height: 3px; }
.cat-list { list-style: none; margin: 8px 0 0; padding: 0; }
/* Mỗi dòng danh mục: thanh đỏ bên trái (::before) hiện ra khi rê chuột / đang chọn / đang mở */
.cat-item > .cat-row { position: relative; display: flex; align-items: center; transition: background-color .2s ease; }
.cat-item > .cat-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); transform: scaleY(0); transition: transform .2s ease; }
.cat-item > .cat-row > a { flex: 1; display: flex; align-items: center; gap: 16px; padding: 8px 18px; min-height: 44px; font-size: var(--fs-400); font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--dark); transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.cat-item > .cat-row > a > .cat-name { transition: transform .2s ease; }
.cat-item img, .cat-item .noicon { width: 28px; height: 28px; flex: none; transition: transform .2s ease; }
.cat-item .noicon { font-size: 22px; line-height: 28px; text-align: center; }
.cat-item > .cat-row > a > .cat-name { flex: 1; }
/* Mũi tên chỉ sang phải; khi mở bảng con thì xoay lật lại (‹) báo "nhấn để thu gọn" */
.cat-item .chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px; color: #777; transform: rotate(-90deg); transition: transform .25s ease, color .2s ease; }
.cat-item.active .chev { transform: rotate(90deg); color: var(--primary); }
/* Đang mở */
.cat-item.active > .cat-row::before { transform: scaleY(1); }
.cat-item.active > .cat-row { background: var(--soft-primary); }
.cat-item.active > .cat-row > a { color: var(--primary); font-weight: var(--fw-semibold); }
/* Nhấn / chạm: phản hồi ngay, không chờ hover */
.cat-item > .cat-row > a:active { color: var(--primary); }
.cat-item > .cat-row:has(> a:active) { background: #ffe3e8; }
.cat-item > .cat-row > a:active > .cat-name, .cat-item > .cat-row > a:active > img, .cat-item > .cat-row > a:active > .noicon { transform: scale(.97); transition-duration: .08s; }
.cat-item > .cat-row > a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (hover: hover) {
  .cat-item > .cat-row:hover::before { transform: scaleY(1); }
  .cat-item > .cat-row:hover { background: var(--soft-primary); }
  .cat-item > .cat-row:hover > a { color: var(--primary); }
  .cat-item > .cat-row:hover > a > .cat-name { transform: translateX(3px); }
  .cat-item > .cat-row:hover img, .cat-item > .cat-row:hover .noicon { transform: scale(1.06); }
  /* Mũi tên đã xoay -90° nên translateY dương = dịch sang phải */
  .cat-item:not(.active) > .cat-row:hover .chev { transform: rotate(-90deg) translateY(3px); color: var(--primary); }
}
/* Hiệu ứng chung khi nội dung bảng con được chèn vào: trượt từ trái sang phải + hiện dần, các ô nối tiếp nhau */
@keyframes subIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* ---------- Danh mục con trên điện thoại: bảng trượt ngang trong ngăn kéo ---------- */
.drill { display: none; }
/* Chỉ có trong ngăn kéo điện thoại: ngăn kéo cho các trang ngoài trang chủ, nút đóng, link các trang chính */
.drawer-host, .drawer-close, .side-pages { display: none; }
.hotlines { padding: 14px 18px 0 46px; display: grid; gap: 10px; line-height: var(--lh-snug); }
.hotlines b { display: block; text-transform: uppercase; font-size: var(--fs-300); letter-spacing: var(--ls-caps); color: var(--dark); }
.hotlines a { color: var(--red); font-weight: var(--fw-semibold); }

.hero { position: relative; }
.hero-main { min-width: 0; display: flex; flex-direction: column; }

/* ---------- Mega menu danh mục ---------- */
/* Mở: trượt từ trái sang phải + hiện dần; đóng: trượt ngược lại rồi ẩn (visibility trễ đến hết hiệu ứng) */
.mega { position: absolute; top: 0; bottom: 0; left: 400px; right: 0; z-index: 30; background: #fff; border-left: 1px solid var(--line);
  box-shadow: 10px 8px 28px rgba(0,0,0,.14); padding: 18px 24px 20px; overflow-y: auto; overflow-x: hidden;
  opacity: 0; visibility: hidden; transform: translateX(-24px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.mega-inner { display: flex; flex-direction: column; gap: 16px; }
/* backwards (không phải both) để sau khi chạy xong, transform của hover / nhấn vẫn hoạt động */
.mega.open .mega-head { animation: subIn .25s ease backwards; }
.mega.open .mega-sub { animation: subIn .28s ease backwards; animation-delay: calc(var(--i) * 40ms + 40ms); }
.mega-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.mega-actions { display: flex; align-items: center; gap: 12px; }
.mega-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f4f4f4; color: #666; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.mega-close:hover { background: var(--soft-primary); color: var(--primary); transform: rotate(90deg); }
.mega-close:active { transform: scale(.92); }
.mega-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mega-head h3 { margin: 0; font-size: var(--fs-h2); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--primary); }
.mega-head a, .mega-more { color: var(--primary); font-size: var(--fs-200); font-weight: var(--fw-medium); white-space: nowrap; }
.mega-head a:hover, .mega-more:hover { text-decoration: underline; }
.mega-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mega-sub { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.mega-sub:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(168,0,36,.10); transform: translateY(-2px); background: #fffafb; }
.mega-sub:active { transform: scale(.98); box-shadow: 0 2px 6px rgba(0,0,0,.08); transition-duration: .08s; }
.mega-sub img { width: 84px; height: 84px; object-fit: contain; transition: transform .25s ease; }
.mega-sub:hover img { transform: scale(1.06); }
.mega-sub b { display: block; font-size: var(--fs-400); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--dark); transition: color .2s ease; }
.mega-sub:hover b { color: var(--primary); }
.mega-head a { display: inline-block; transition: transform .2s ease; }
.mega-head a:hover { transform: translateX(3px); }
.mega-sub small { color: var(--muted); font-size: var(--fs-200); line-height: var(--lh-snug); }
.hero-main .slider { flex: 1; aspect-ratio: auto; min-height: 340px; }
.hero-main .commit { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-main .commit div { padding: 18px 14px; }
/* H1 trang chủ: chỉ dành cho công cụ tìm kiếm và trình đọc màn hình, không hiện trên giao diện */
.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; }

.slider { position: relative; overflow: hidden; aspect-ratio: 3 / 1; background: #ddd; }
/* Ảnh hiện trọn (không cắt góc); phần khung dư lấp bằng chính ảnh đó phóng to, làm mờ */
.slider .slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .7s; }
.slider .slide.active { opacity: 1; }
.slider .slide::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.92) saturate(1.1); }
.slider .slide img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.22)); }
.dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
/* Vùng bấm 32px, chấm hiển thị 11px */
.dots button { width: 32px; height: 32px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots button.active::before { background: var(--accent); box-shadow: 0 0 0 2px #fff; }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 16px 10px 0; }
.list-intro { margin: 0 20px 14px; color: #555; font-size: var(--fs-400); line-height: var(--lh-relaxed); max-width: 900px; }
.sec-head h1, .sec-head h2 { margin: 0; font-size: var(--fs-h2); letter-spacing: var(--ls-caps); text-transform: uppercase; border-left: 5px solid var(--primary); padding-left: 12px; line-height: var(--lh-snug); }
.sec-head a { color: var(--primary); font-size: var(--fs-200); font-weight: var(--fw-medium); }
.sec-head a:hover { text-decoration: underline; }
.sec-head .btn-blue { color: #fff; }
.sec-head.plain h2, .sec-head.plain h3 { border: 0; text-transform: none; letter-spacing: 0; font-size: var(--fs-h2); padding-left: 16px; margin: 0; }

/* ---------- Category block ---------- */
.cat-block { display: grid; grid-template-columns: 300px 1fr; }
.cat-feature { position: relative; background: #2b070c; overflow: hidden; display: block; min-height: 420px; }
.cat-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
/* Lớp phủ đỏ đậm phía trên cho chữ nổi rõ, tối dần phía dưới (giống banner mẫu) */
.cat-feature::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(190,0,30,.92) 0%, rgba(150,0,25,.55) 30%, rgba(80,0,15,.12) 55%, rgba(20,0,5,.55) 100%); }
.cat-feature .bn-title { position: absolute; top: 20px; left: 18px; right: 18px; z-index: 2; color: #fff; font-weight: var(--fw-bold); font-size: 21px; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.cat-feature .bn-title b { display: block; font-size: 40px; line-height: 1.05; font-weight: 900; letter-spacing: .02em; }
/* Lớp phủ đỏ nhẹ hiện dần khi rê chuột; ảnh phóng nhẹ nhưng vẫn nằm trong khung (overflow: hidden) */
.cat-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(168,0,36,0) 40%, rgba(168,0,36,.18)); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.cat-feature:hover img { transform: scale(1.04); }
.cat-feature:hover::after { opacity: 1; }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 12px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.tile img { width: 120px; height: 120px; object-fit: contain; }
.tile span { font-size: var(--fs-300); font-weight: var(--fw-semibold); line-height: var(--lh-snug); color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .price { font-size: var(--fs-300); }

/* ---------- Product cards / carousel ---------- */
.carousel { position: relative; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(20% - 0px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.car-btn { position: absolute; top: 40%; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 6px rgba(0,0,0,.2); color: var(--primary); font-size: 22px; line-height: 1; z-index: 2; }
.car-btn.prev { left: 6px; } .car-btn.next { right: 6px; }
.card { scroll-snap-align: start; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; position: relative; }
.card-img { aspect-ratio: 1; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img .stamp { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, var(--primary) 60%, var(--accent)); color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-100); line-height: var(--lh-snug); padding: 4px 8px; letter-spacing: var(--ls-label); }
.badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: var(--dark); font-size: var(--fs-100); font-weight: var(--fw-bold); line-height: var(--lh-snug); padding: 2px 7px; border-radius: 3px; z-index: 1; }
.card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-name { font-size: var(--fs-300); font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.4); }
.card:hover .card-name { color: var(--primary); }
.price { color: var(--red); font-size: var(--fs-500); font-weight: var(--fw-bold); line-height: var(--lh-snug); font-variant-numeric: tabular-nums; }
.price del { color: var(--muted); font-weight: var(--fw-regular); margin-left: 6px; font-size: var(--fs-200); }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.grid .card { border-bottom: 1px solid var(--line); }

/* ---------- CTA banner ---------- */
.cta { margin-top: 24px; display: flex; align-items: center; gap: 32px; padding: 26px 40px; background: linear-gradient(100deg, #222 0%, #8a001e 45%, var(--primary) 100%); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-btn { background: linear-gradient(#ffd84a, var(--accent)); color: var(--dark); font-weight: var(--fw-bold); font-size: var(--fs-700); letter-spacing: var(--ls-caps); padding: 12px 28px; border-radius: 10px; box-shadow: 0 4px 0 #b88a00, 0 6px 14px rgba(0,0,0,.3); text-transform: uppercase; white-space: nowrap; }
.cta-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b88a00; }
.cta-text { font-size: var(--fs-900); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.cta-text small { display: block; margin-top: 4px; font-size: var(--fs-600); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: 0; text-transform: none; color: var(--accent); }

/* ---------- Video & news ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 16px; }
.video-wrap { aspect-ratio: 16/9; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-title { font-weight: var(--fw-semibold); font-size: var(--fs-500); line-height: var(--lh-snug); color: var(--dark); margin: 10px 0 2px; }
.small-date { color: var(--muted); font-size: var(--fs-100); line-height: var(--lh-snug); }
.side-list { display: flex; flex-direction: column; gap: 16px; max-height: 360px; overflow-y: auto; padding-right: 6px; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.mini img { width: 120px; height: 72px; object-fit: cover; }
/* Danh sách sản phẩm cạnh video: ảnh sản phẩm vuông, hiện đủ ảnh không cắt */
.side-list .mini { grid-template-columns: 96px 1fr; align-items: center; }
.side-list .mini img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.mini h3 { margin: 0 0 4px; font-size: var(--fs-300); font-weight: var(--fw-semibold); }
.mini:hover h3 { color: var(--primary); }
.news-title { text-align: center; font-size: var(--fs-h2); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--primary-dark); margin: 0; padding: 26px 0 0; }
.news-title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); margin: 10px auto 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; padding: 24px 16px; }

/* ---------- Commit strip ---------- */
.commit { display: grid; grid-template-columns: repeat(4, 1fr); }
.commit div { display: flex; align-items: center; gap: 12px; padding: 18px; border-right: 1px solid var(--line); }
.commit div:last-child { border-right: 0; }
.commit .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--soft-primary); color: var(--primary); display: grid; place-items: center; flex: none; font-size: 20px; }
.commit p { margin: 0; }
.commit b { display: block; text-transform: uppercase; font-size: var(--fs-300); letter-spacing: var(--ls-caps); line-height: var(--lh-snug); color: var(--dark); }
.commit span { font-size: var(--fs-200); line-height: var(--lh-snug); color: var(--muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: #fff; margin-top: 0; padding: 12px 16px; font-size: var(--fs-300); line-height: var(--lh-snug); color: #666; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #aaa; margin: 0 8px; }
.page-top { margin-top: 0; }

/* ---------- Product detail ---------- */
.detail { display: grid; grid-template-columns: 380px 1fr 280px; gap: 24px; padding: 20px 16px; }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1; border: 1px solid var(--line); padding: 0; background: #fff; opacity: .6; }
.thumbs button.active { border-color: var(--primary); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { min-width: 0; }
.info h1 { font-size: var(--fs-h1); margin: 0 0 8px; line-height: 1.3; overflow-wrap: anywhere; }
.meta { font-size: var(--fs-300); color: #555; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.meta a, .meta .meta-v { color: var(--primary); }
.specs { list-style: none; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); }
.specs li { padding: 5px 0; font-size: var(--fs-400); }
.specs li::before { content: "– "; }
.row { display: grid; grid-template-columns: 130px 1fr; align-items: center; padding: 8px 0; }
.instock { font-weight: var(--fw-semibold); }
.info .price { font-size: var(--fs-price-lg); line-height: var(--lh-tight); margin: 6px 0 8px; }
.info .price del { font-size: var(--fs-500); }
/* Trang chi tiết chỉ còn một nút gọi tư vấn */
.actions { display: grid; max-width: 360px; margin-top: 16px; }
.big-btn { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: var(--fs-400); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; height: 48px; border: 0; border-radius: 3px; }
.big-btn.red { background: var(--red); } .big-btn.red:hover { background: var(--red-dark); }
.aside-box { padding: 14px 16px; margin-bottom: 16px; }
.aside-box .aside-title { margin: 0 0 10px; font-weight: var(--fw-bold); line-height: var(--lh-snug); font-size: var(--fs-h3); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--primary); }
.aside-box.blue { background: var(--soft-primary); border: 1px solid #f7c6d0; }
.aside-box.yellow { background: var(--soft-yellow); border: 1px solid #f6e3b3; }
.aside-box.yellow .aside-title { text-align: center; }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-box li { display: flex; gap: 10px; align-items: center; text-transform: uppercase; font-size: var(--fs-200); font-weight: var(--fw-medium); line-height: var(--lh-snug); letter-spacing: var(--ls-caps); }
.aside-box li span { font-size: 18px; }
.aside-box p { margin: 8px 0; font-size: var(--fs-300); }
.aside-box .hot { color: var(--red); }

.detail-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 24px; align-items: start; }
.desc-box { background: #fff; padding: 20px; position: relative; }
.desc-box + .desc-box { margin-top: 16px; }
.box-title, .info-lists h2 { margin: 0 0 12px; font-size: var(--fs-h3); letter-spacing: var(--ls-caps); text-transform: uppercase; border-left: 4px solid var(--primary); padding-left: 10px; }
.info-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-lists ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.info-lists li::marker { color: var(--primary); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-300); line-height: var(--lh-snug); }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.spec-table th { width: 34%; background: #fafafa; font-weight: var(--fw-semibold); color: var(--dark); }
.spec-table tr:nth-child(even) td { background: #fcfcfc; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chip { border: 1px solid #ddd; border-radius: 16px; padding: 4px 14px; font-size: var(--fs-300); font-weight: var(--fw-medium); line-height: var(--lh-snug); transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--soft-primary); }
.chip:active { transform: scale(.96); transition-duration: .08s; }
.chip.active:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.desc { white-space: pre-line; max-height: 300px; overflow: hidden; position: relative; line-height: var(--lh-relaxed); }
.desc.expanded { max-height: none; }
.desc-html { white-space: normal; }
.desc-html p { margin: 0 0 12px; }
.desc-html h2, .desc.desc-html h3 { font-size: var(--fs-500); margin: 20px 0 8px; color: var(--dark); }
.desc-html ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 5px; }
.desc-html li::marker { color: var(--primary); }
.desc-html a { color: var(--primary); }

/* Trang giới thiệu */
.about { margin-top: 24px; line-height: var(--lh-relaxed); }
.about .sec-head { margin-bottom: 16px; }
.about-lead { font-size: var(--fs-600); font-weight: var(--fw-bold); color: var(--primary); }
.about-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 8px; }
.about-reasons > div { background: var(--soft-yellow); border-top: 3px solid var(--accent); padding: 16px; border-radius: 3px; }
.about-reasons span { font-size: var(--fs-800); }
.about-reasons h3 { font-size: var(--fs-400); margin: 8px 0 6px; color: var(--dark); }
.about-reasons p { margin: 0; font-size: var(--fs-300); }
.about-contact { background: var(--soft-primary); border-left: 5px solid var(--primary); padding: 16px 20px; margin-top: 20px; }
.about-contact h2 { font-size: var(--fs-500); margin: 0 0 8px; color: var(--primary); }
.about-contact p { margin: 0 0 8px; }
.about-contact ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 4px; }
.about-contact a { color: var(--primary); }
.about-contact .big-btn { color: #fff; max-width: 360px; }

/* Trang điều khoản chung */
html { scroll-behavior: smooth; }
.terms { margin-top: 16px; }
.terms-hero { position: relative; overflow: hidden; color: #fff; padding: 32px 28px 26px; border-radius: 6px; background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #ff4d4d); }
.terms-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,199,17,.45), transparent 70%); animation: terms-glow 6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes terms-glow { to { transform: translate(-40px, 30px) scale(1.2); } }
.terms-tag { display: inline-block; background: var(--accent); color: var(--dark); font-size: var(--fs-100); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); padding: 3px 10px; border-radius: 999px; }
.terms-hero h1 { color: #fff; font-size: var(--fs-900); margin: 12px 0 10px; max-width: 760px; }
.terms-hero p { margin: 0; max-width: 820px; opacity: .95; }
.terms-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: var(--fs-300); }
.terms-meta span { background: rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; }
.terms-meta a { color: #fff; }
.terms-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.terms-toc { position: sticky; top: 140px; background: #fff; padding: 16px; border-radius: 6px; border-top: 3px solid var(--primary); }
.terms-toc > b { display: block; text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-300); margin-bottom: 8px; }
.terms-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.terms-toc li { counter-increment: toc; }
.terms-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: var(--fs-300); line-height: var(--lh-snug); color: var(--text); border-left: 3px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.terms-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.terms-toc a:hover { background: var(--soft-primary); color: var(--primary); }
.terms-toc a.active { background: var(--soft-primary); color: var(--primary); border-left-color: var(--primary); font-weight: var(--fw-semibold); }
.terms-body { display: grid; gap: 14px; min-width: 0; }
.terms-card { background: #fff; padding: 20px 22px; border-radius: 6px; border: 1px solid var(--line); scroll-margin-top: 140px; transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.terms-card:hover { border-color: #f7c6d0; box-shadow: 0 6px 18px rgba(168,0,36,.08); transform: translateY(-2px); }
.terms-card h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-700); margin: 0 0 10px; }
.terms-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-size: var(--fs-300); font-variant-numeric: tabular-nums; }
.terms-ic { font-size: var(--fs-700); }
.terms-card .desc-html p:last-child, .terms-card .desc-html ul:last-child { margin-bottom: 0; }
.terms-note { background: var(--soft-yellow); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 3px; }
.terms-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: st; }
.terms-steps li { counter-increment: st; background: var(--soft-primary); border-radius: 6px; padding: 12px; position: relative; }
.terms-steps li::before { content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--dark); font-weight: var(--fw-bold); font-size: var(--fs-200); margin-bottom: 8px; }
.terms-steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.terms-steps b { display: block; color: var(--primary); margin-bottom: 4px; }
.terms-steps span { font-size: var(--fs-300); line-height: var(--lh-snug); }
.ship-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.ship-ways > div { border: 1px solid var(--line); border-radius: 6px; padding: 14px; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.ship-ways > div:hover { border-color: var(--primary); background: var(--soft-primary); }
.ship-ways > div > span { display: block; font-size: 30px; line-height: 1; margin-bottom: 8px; transition: transform .25s ease; }
.ship-ways > div:hover > span { transform: translateY(-3px) scale(1.1); }
.ship-ways > div > b { display: block; color: var(--primary); margin-bottom: 4px; }
.ship-ways p { margin: 0; font-size: var(--fs-300); line-height: var(--lh-snug); }
/* Danh sách đánh dấu ✓ (đạt) / ✕ (không đạt) */
.desc-html ul.check-list { list-style: none; padding: 0; gap: 8px; }
.check-list li { position: relative; padding: 9px 12px 9px 42px; border-radius: 6px; line-height: var(--lh-snug); transition: transform .2s ease; }
.check-list li::before { position: absolute; left: 12px; top: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: var(--fs-100); font-weight: var(--fw-bold); }
.check-list li:hover { transform: translateX(4px); }
.check-list.ok li { background: #effaf2; }
.check-list.ok li::before { content: "✓"; background: var(--green); }
.check-list.no li { background: var(--soft-primary); }
.check-list.no li::before { content: "✕"; background: var(--primary); }
.terms-faq { border-top: 1px solid var(--line); }
.terms-faq summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-weight: var(--fw-semibold); }
.terms-faq summary::-webkit-details-marker { display: none; }
.terms-faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: var(--fs-700); color: var(--primary); transition: transform .25s ease; }
.terms-faq[open] summary::after { transform: rotate(45deg); }
.terms-faq summary:hover { color: var(--primary); }
.terms-faq p { margin: 0 0 12px; animation: terms-in .3s ease; }
.terms-company { background: var(--soft-primary); border-left: 5px solid var(--primary); padding: 20px 22px; border-radius: 6px; }
.terms-company h2 { font-size: var(--fs-700); margin: 0 0 12px; color: var(--primary); }
.terms-company dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; }
.terms-company dt { font-weight: var(--fw-semibold); color: var(--dark); }
.terms-company dd { margin: 0; }
.terms-company a { color: var(--primary); }
.terms-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.terms-cta .big-btn { padding: 0 22px; }
.terms-cta .big-btn.red { color: #fff; }
.big-btn.ghost { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.big-btn.ghost:hover { background: var(--primary); color: #fff; }
/* Hiện dần khi cuộn tới, thuần CSS: trình duyệt không hỗ trợ scroll timeline thì nội dung vẫn hiện bình thường */
@keyframes terms-rise { from { opacity: 0; transform: translateY(24px); } }
@supports (animation-timeline: view()) {
  .reveal { animation: terms-rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes terms-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none !important; }
  .terms-card:hover { transform: none; transition: none; }
  .terms-hero::after, .terms-faq p { animation: none; }
  .ship-ways > div:hover > span, .check-list li:hover { transform: none; }
}
@media (max-width: 860px) {
  .terms-layout { grid-template-columns: 1fr; }
  .terms-toc { position: static; }
  .terms-steps { grid-template-columns: repeat(2, 1fr); }
  .terms-steps.steps-3, .ship-ways { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .terms-hero { padding: 24px 18px 20px; }
  .terms-hero h1 { font-size: var(--fs-800); }
  .terms-card, .terms-company { padding: 16px; }
  .terms-card h2 { font-size: var(--fs-600); }
  .terms-company dl { grid-template-columns: 1fr; gap: 2px; }
  .terms-company dd { margin-bottom: 8px; }
  .terms-cta .big-btn { flex: 1 1 100%; }
}

/* Trang dịch vụ thi công */
.svc { margin-top: 24px; line-height: var(--lh-relaxed); }
.svc a:not(.big-btn) { color: var(--primary); }
.svc .big-btn { color: #fff; padding: 0 24px; width: max-content; max-width: 100%; }
.svc-hero { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-top: 4px solid var(--primary); }
.svc-hero-text { padding: 32px; align-self: center; }
.svc-kicker { display: inline-block; background: var(--accent); color: var(--dark); font-size: var(--fs-200); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); padding: 3px 10px; border-radius: 3px; }
.svc-hero h1 { font-size: var(--fs-900); line-height: var(--lh-tight); margin: 12px 0; color: var(--dark); }
.svc-hero p { margin: 0 0 20px; color: #555; }
.svc-hero img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; display: block; }
.svc-sec { background: var(--white); padding: 24px 32px; margin-top: 16px; }
.svc-sec h2 { margin: 0 0 16px; font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: var(--ls-caps); border-left: 5px solid var(--primary); padding-left: 12px; line-height: var(--lh-snug); }
.svc-sec h3 { font-size: var(--fs-500); margin: 0 0 6px; color: var(--dark); line-height: var(--lh-snug); }
.svc-sec p { margin: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-grid.two { grid-template-columns: repeat(2, 1fr); }
.svc-card { border: 1px solid var(--line); border-radius: 4px; padding: 20px; transition: border-color .2s, box-shadow .2s; }
.svc-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.svc-card.flat { background: var(--soft-yellow); border-color: transparent; }
.svc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft-primary); font-size: var(--fs-700); margin-bottom: 10px; }
.svc-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-steps li { counter-increment: step; position: relative; padding-top: 52px; }
.svc-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: var(--fw-bold); display: grid; place-items: center; }
.svc-steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 48px; right: -8px; border-top: 2px dashed var(--line); }
.svc-steps p, .svc-card p { font-size: var(--fs-300); color: #555; }
.svc-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.svc-benefits li { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.svc-benefits li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: var(--fs-100); display: grid; place-items: center; }
.svc-benefits span { font-size: var(--fs-300); color: #555; }
.svc-end { background: var(--soft-primary); border-left: 5px solid var(--primary); }
.svc-end ul { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 4px; }

/* Blog: danh sách bài viết */
.blog { padding: 20px; }
.blog-h1 { margin: 0; font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: var(--ls-caps); border-left: 5px solid var(--primary); padding-left: 12px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--white); transition: box-shadow .2s, border-color .2s; }
a.post-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-card > div { padding: 14px 16px 16px; display: grid; gap: 6px; }
.post-card h2 { margin: 0; font-size: var(--fs-500); line-height: var(--lh-snug); }
a.post-card:hover h2 { color: var(--primary); }
.post-card p { margin: 0; font-size: var(--fs-300); color: #555; }
.post-card time { font-size: var(--fs-200); color: var(--muted); }
.post-cat { justify-self: start; display: inline-block; background: var(--soft-primary); color: var(--primary); font-size: var(--fs-100); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); padding: 2px 8px; border-radius: 3px; }

/* Blog: trang bài viết */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 24px; align-items: start; }
.post { background: var(--white); padding: 28px 36px; line-height: var(--lh-relaxed); }
.post h1 { font-size: var(--fs-900); line-height: var(--lh-tight); margin: 10px 0 8px; }
.post-meta { color: var(--muted); font-size: var(--fs-300); }
.post-cover { margin: 20px 0; }
/* aspect-ratio giữ sẵn chỗ cho ảnh trước khi tải xong (tránh xô lệch bố cục – CLS) */
.post-cover img { width: 100%; aspect-ratio: 7 / 5; max-height: 460px; object-fit: cover; display: block; border-radius: 4px; }
.toc { background: #fafafa; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 18px; margin: 0 0 20px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: var(--fs-300); }
.toc li { break-inside: avoid; padding: 2px 0; }
.toc a { color: var(--text); } .toc a:hover { color: var(--primary); }
.post-body { font-size: var(--fs-500); }
.post-body p { margin: 0 0 14px; }
.post-body h2 { font-size: var(--fs-700); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); scroll-margin-top: 120px; }
.post-body h2::before { content: ""; display: inline-block; width: 6px; height: 20px; background: var(--primary); margin-right: 10px; vertical-align: -3px; border-radius: 2px; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.post-body li::marker { color: var(--primary); font-weight: var(--fw-bold); }
.post-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.post-body ol.steps { list-style: none; padding: 0; counter-reset: st; }
.post-body ol.steps li { counter-increment: st; position: relative; padding: 10px 14px 10px 52px; background: #fafafa; border-radius: 4px; }
.post-body ol.steps li::before { content: counter(st); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: var(--fs-300); font-weight: var(--fw-bold); display: grid; place-items: center; }
.post-body figure { margin: 20px 0; }
.post-body figure img { width: 100%; aspect-ratio: 16 / 10; max-height: 420px; object-fit: contain; background: #f7f7f7; border-radius: 4px; display: block; }
.post-body figure.pair, .post-body figure.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 600px; margin-inline: auto; }
.post-body figure.trio { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
.post-body figure.pair img, .post-body figure.trio img { aspect-ratio: 1; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.post-body figcaption { grid-column: 1 / -1; text-align: center; font-size: var(--fs-300); color: var(--muted); font-style: italic; margin-top: 6px; }
.post-body .tip, .post-body .warn { padding: 12px 16px; border-radius: 4px; margin: 0 0 16px; font-size: var(--fs-400); }
.post-body .tip { background: #eefaf1; border-left: 4px solid var(--green); }
.post-body .warn { background: var(--soft-yellow); border-left: 4px solid var(--orange); }
.post-body .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-400); }
.post-body th { background: var(--primary); color: #fff; text-align: left; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.post-body tbody tr:nth-child(even) { background: #fafafa; }
.post-body td:first-child { text-align: center; color: var(--primary); white-space: nowrap; }
.faq { display: grid; gap: 10px; margin: 0 0 16px; }
.faq details { border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; }
.faq details[open] { border-color: var(--primary); }
.faq summary { cursor: pointer; font-weight: var(--fw-semibold); color: var(--dark); }
.faq details p { margin: 8px 0 0; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--soft-primary); border-left: 5px solid var(--primary); padding: 16px 20px; margin-top: 24px; }
.post-cta div { display: grid; gap: 2px; }
.post-cta span { font-size: var(--fs-300); color: #555; }
.post-cta .big-btn { color: #fff; padding: 0 24px; flex: none; }
.post-side { display: grid; gap: 16px; position: sticky; top: 110px; }
.post-side .aside-box { margin: 0; }
.side-cats { background: var(--white); padding: 16px 20px; }
.side-cats h3 { margin: 0 0 8px; font-size: var(--fs-400); text-transform: uppercase; letter-spacing: var(--ls-caps); border-left: 4px solid var(--primary); padding-left: 10px; }
.side-cats ul { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px dashed var(--line); }
.side-cats a { display: block; padding: 7px 0; font-size: var(--fs-300); }
.side-cats a:hover { color: var(--primary); }

/* Trang liên hệ */
.contact { margin-top: 24px; line-height: var(--lh-relaxed); }
.contact a:not(.big-btn) { color: var(--primary); }
.contact h2 { font-size: var(--fs-500); margin: 0 0 4px; }
.contact-head { background: var(--white); border-top: 4px solid var(--primary); padding: 28px 32px; text-align: center; }
.contact-head h1 { font-size: var(--fs-h1); margin: 0 0 10px; }
.contact-head p { margin: 0 auto; max-width: 760px; color: #555; }
.contact-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-cards li { background: var(--white); padding: 18px; display: flex; gap: 12px; align-items: flex-start; border-bottom: 3px solid var(--accent); }
.contact-cards .svc-ico { flex: none; margin: 0; }
.contact-cards h2 { font-size: var(--fs-300); color: var(--muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); }
.contact-cards p { margin: 0; font-size: var(--fs-400); overflow-wrap: anywhere; }
.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.contact-form-box, .contact-map { background: var(--white); padding: 24px; }
.contact-form-box h2, .contact-map h2 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: var(--ls-caps); border-left: 5px solid var(--primary); padding-left: 12px; margin-bottom: 16px; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: var(--fs-300); font-weight: var(--fw-semibold); }
.contact-form i { color: var(--primary); font-style: normal; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: var(--fw-regular); border: 1px solid #ccc; border-radius: 3px; padding: 10px 12px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft-primary); }
.contact-form .big-btn { color: #fff; }
.contact-form small { color: var(--muted); font-size: var(--fs-200); }
.contact-map p { margin: 0 0 12px; }
.contact-map iframe { width: 100%; height: 340px; border: 0; display: block; }
.info .lead { margin: 0 0 10px; color: #555; font-size: var(--fs-400); }
.desc:not(.expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff); }
.more { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--primary); font-weight: var(--fw-semibold); }
.related { background: #fff; }
.related h2 { margin: 0; padding: 14px 16px; font-size: var(--fs-h3); letter-spacing: var(--ls-caps); text-transform: uppercase; border-left: 5px solid var(--primary); border-bottom: 1px solid var(--line); }
.rel-item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rel-item img { width: 80px; height: 80px; object-fit: contain; }
.rel-item b { font-size: var(--fs-300); font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--dark); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-item:hover b { color: var(--primary); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.notfound { padding: 32px 20px; text-align: center; }
.notfound h1 { margin: 0 0 8px; font-size: var(--fs-h1); }
.notfound p { color: #555; }
.notfound .chips { justify-content: center; }
.notfound .big-btn { display: inline-flex; padding: 0 28px; color: #fff; }
.btn-blue { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 3px; font-weight: var(--fw-semibold); border: 0; display: inline-block; line-height: var(--lh-snug); }
.btn-blue:hover { background: var(--primary-dark); }

/* ---------- Footer ---------- */
.footer { background: #fff; margin-top: 40px; padding-top: 30px; border-top: 4px solid var(--primary); font-size: var(--fs-300); line-height: var(--lh-base); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer .ft-title { font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--primary); border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 4px; letter-spacing: var(--ls-caps); text-transform: uppercase; margin: 0 0 12px; font-size: var(--fs-400); }
.footer ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.footer ul.plain { list-style: none; padding: 0; }
.footer ul + .ft-title { margin-top: 22px; }
.footer a:hover { color: var(--primary); }
.footer p { margin: 6px 0; line-height: 1.7; }
.map { width: 100%; aspect-ratio: 4/3; border: 0; }
.copyright { border-top: 1px solid var(--line); margin-top: 26px; padding: 14px 16px; font-size: var(--fs-200); color: #666; }

/* ---------- Floating ---------- */
.float-contact { position: fixed; left: 12px; bottom: 30px; display: flex; flex-direction: column; gap: 14px; z-index: 60; }
.fc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: var(--fs-200); font-weight: var(--fw-bold); box-shadow: 0 0 0 5px rgba(0,0,0,.08); }
.fc-phone { background: var(--green); animation: ring 1.6s infinite; }
.fc-zalo { background: #1a9bdb; }
.fc-mail { background: var(--accent); color: var(--dark); }
.fc-label { display: none; }
@keyframes ring { 0%,100% { box-shadow: 0 0 0 0 rgba(43,178,76,.55); } 60% { box-shadow: 0 0 0 12px rgba(43,178,76,0); } }
.to-top { position: fixed; right: 16px; bottom: 24px; width: 38px; height: 38px; background: var(--primary); color: #fff; border: 0; border-radius: 3px; display: none; place-items: center; z-index: 60; }
.to-top.show { display: grid; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(90px); background: #222; color: #fff; padding: 10px 18px; border-radius: 4px; font-size: var(--fs-300); font-weight: var(--fw-medium); transition: transform .3s; z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.overlay.show { opacity: 1; visibility: visible; transition: opacity .25s ease; }

/* Người dùng bật "giảm chuyển động": bỏ dịch chuyển / phóng to, chỉ giữ đổi màu tức thì */
@media (prefers-reduced-motion: reduce) {
  .cat-item *, .cat-item > .cat-row::before, .mega, .mega *, .drill, .drill *, .sidebar > *, .cat-feature img, .cat-feature::after, .chip, .sidebar, .overlay { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .cat-item > .cat-row > a > .cat-name, .cat-item img, .cat-item .noicon, .mega-sub, .mega-sub img, .mega-head a, .mega-close, .cat-feature img, .chip { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 320px 1fr; margin-top: 24px; }
  .mega { left: 320px; padding: 16px 18px; }
  .mega-sub { grid-template-columns: 60px 1fr; padding: 8px 10px; }
  .mega-sub img { width: 60px; height: 60px; }
  .mega-sub b { font-size: var(--fs-300); }
  .header-inner { gap: 16px; }
  .main-nav { font-size: var(--fs-300); }
  .main-nav a { padding: 0 8px; }
  .search button { padding: 0 12px; }
  .track { grid-auto-columns: 25%; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 340px 1fr; }
  .detail aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .detail aside .aside-box { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-reasons { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-steps li::after { display: none; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root {
    --fs-h1: var(--fs-700);
    --fs-h2: var(--fs-500);
    --fs-h3: var(--fs-400);
    --fs-price-lg: var(--fs-700);
  }
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .drawer-host { display: block; }
  .drawer-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -12px -10px auto; border: 0; background: none; color: var(--dark); font-size: 30px; line-height: 1; }
  .side-pages { display: block; list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
  .side-pages a { display: flex; align-items: center; min-height: 44px; padding: 0 18px 0 62px; font-size: var(--fs-400); font-weight: var(--fw-medium); color: var(--dark); }
  .side-pages a:active { background: #ffe3e8; color: var(--primary); }
  /* Thanh liên hệ cố định ở đáy: chừa chỗ để không che nội dung cuối trang */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .float-contact { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom); }
  .fc { flex: 1; width: auto; height: 56px; border-radius: 0; box-shadow: none; animation: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
  .fc svg { width: 20px; height: 20px; }
  .fc-z { font-size: var(--fs-400); line-height: 20px; }
  .fc-label { display: block; font-size: var(--fs-200); font-weight: var(--fw-semibold); line-height: 1.2; }
  .to-top { bottom: calc(68px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .header-inner { gap: 12px; height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .logo img { height: 40px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  /* 16px để iOS không tự phóng to khi chạm vào ô tìm kiếm / số lượng */
  .search input { font-size: var(--fs-500); }
  .topbar span { font-size: var(--fs-50); letter-spacing: 0; }
  .hero { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 86vw; background: #fff; z-index: 80; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; }
  .sidebar { overflow-x: hidden; }
  /* Danh mục cha lùi sang trái và mờ đi, bảng danh mục con trượt vào phủ lên ngăn kéo */
  .sidebar > :not(.drill) { transition: transform .28s ease, opacity .28s ease; }
  .sidebar.drilled { overflow-y: hidden; }
  .sidebar.drilled > :not(.drill) { transform: translateX(-30%); opacity: 0; }
  .drill { display: block; position: absolute; inset: 0; z-index: 2; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateX(100%); transition: transform .28s ease, opacity .28s ease, visibility 0s .28s; }
  .drill.open { opacity: 1; visibility: visible; transform: none; transition: transform .28s ease, opacity .28s ease; }
  .drill-back { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--primary); font: inherit; font-weight: var(--fw-semibold); text-align: left; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
  .drill-back svg { transform: rotate(90deg); }
  .drill-back:active { background: #ffe3e8; }
  .drill-title { display: flex; align-items: center; gap: 12px; padding: 16px 18px 6px; font-size: var(--fs-500); line-height: var(--lh-snug); color: var(--dark); }
  .drill-title img, .drill-title .noicon { width: 28px; height: 28px; flex: none; font-size: 22px; line-height: 28px; text-align: center; }
  .drill-all { display: inline-block; margin: 0 18px 10px 58px; color: var(--primary); font-size: var(--fs-300); font-weight: var(--fw-medium); }
  .drill-list { list-style: none; margin: 0; padding: 0 0 16px; border-top: 1px solid var(--line); }
  .drill.open .drill-list li { animation: subIn .28s ease backwards; animation-delay: calc(var(--i) * 40ms + 80ms); }
  .drill-list a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--line); color: var(--dark); -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, color .2s ease; }
  .drill-list a:active { background: #ffe3e8; color: var(--primary); }
  .drill-list img { width: 48px; height: 48px; object-fit: contain; flex: none; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .drill-list span { flex: 1; min-width: 0; }
  .drill-list b { display: block; font-size: var(--fs-400); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
  .drill-list small { color: var(--muted); font-size: var(--fs-200); }
  .drill-list svg { flex: none; color: #999; transform: rotate(-90deg); }
  .sidebar-title { font-size: var(--fs-500); }
  .cat-block { grid-template-columns: 1fr; }
  .cat-feature { display: none; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .track { grid-auto-columns: 50%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .price { font-size: var(--fs-400); }
  .price del { font-size: var(--fs-100); }
  .cta { flex-direction: column; text-align: center; gap: 14px; padding: 22px 16px; }
  .cta-text { font-size: var(--fs-700); }
  .cta-text small { font-size: var(--fs-400); }
  .cta-btn { font-size: var(--fs-600); }
  .video-grid, .news-grid, .detail-bottom, .commit, .info-lists { grid-template-columns: 1fr; }
  .commit div { border-right: 0; border-bottom: 1px solid var(--line); }
  /* Điện thoại: 3 ô cam kết trên một hàng, biểu tượng nằm trên chữ */
  .hero-main .commit { grid-template-columns: repeat(3, 1fr); }
  .hero-main .commit div { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; border-bottom: 0; border-right: 1px solid var(--line); }
  .hero-main .commit div:last-child { border-right: 0; }
  .hero-main .commit span:not(.ico) { display: none; }
  .commit .ico { width: 32px; height: 32px; font-size: 15px; }
  .commit b { font-size: var(--fs-100); letter-spacing: 0; }
  .hero-main .slider { min-height: 220px; }
  .mega { display: none !important; }
  .sec-head h1, .sec-head h2 { padding-left: 10px; }
  .sec-head a { white-space: nowrap; padding: 12px 0; }
  .detail { grid-template-columns: 1fr; }
  .detail aside { grid-template-columns: 1fr; }
  .actions { max-width: none; }
  .desc-box { padding: 16px; }
  .about-reasons { grid-template-columns: 1fr; }
  .about-contact .big-btn { max-width: none; }
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero img { order: -1; max-height: 220px; }
  .svc-hero-text, .svc-sec { padding: 20px 16px; }
  .svc-hero h1 { font-size: var(--fs-h1); }
  .svc-grid, .svc-grid.two, .svc-steps, .svc-benefits { grid-template-columns: 1fr; }
  .svc .big-btn { width: 100%; padding: 0 12px; }
  .contact-head, .contact-form-box, .contact-map { padding: 20px 16px; }
  .contact-cards, .contact-main { grid-template-columns: 1fr; }
  .contact-map iframe { height: 260px; }
  .contact-form input, .contact-form textarea { font-size: var(--fs-500); }
  .blog { padding: 16px; }
  .blog-grid, .post-side { grid-template-columns: 1fr; }
  .post { padding: 20px 16px; }
  .post h1 { font-size: var(--fs-h1); }
  .post-body { font-size: var(--fs-400); }
  .post-body h2 { font-size: var(--fs-600); }
  .toc ol { columns: 1; }
  .post-body figure.pair, .post-body figure.trio { gap: 6px; }
  .post-cta { flex-direction: column; align-items: stretch; }
  .post-cta .big-btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Cải thiện UX/UI (2026-11): banner có thông điệp + nút, lối vào danh mục trên điện thoại,
   header gọn trên điện thoại, nút liên hệ trang sản phẩm, chip/ảnh nhỏ cuộn ngang, gợi ý tìm kiếm
   ===================================================================== */
.big-btn.blue { background: #1a9bdb; } .big-btn.blue:hover { background: #1385bd; }
.big-btn.yellow { background: var(--accent); color: var(--dark); } .big-btn.yellow:hover { background: var(--accent-dark); }
.big-btn:focus-visible, .hero-btn:focus-visible, .qc-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Banner trang chủ: thông điệp + nút hành động nằm trên ảnh (máy tính), dưới ảnh (điện thoại) */
.hero-visual { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hero-msg { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 56px 28px 22px; color: #fff;
  background: linear-gradient(180deg, rgba(20,0,5,0) 0%, rgba(20,0,5,.62) 45%, rgba(20,0,5,.82) 100%); pointer-events: none; }
.hero-msg > * { pointer-events: auto; }
.hero-msg h1 { margin: 0 0 6px; color: #fff; font-size: 28px; line-height: 1.25; max-width: 640px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-msg h1 b { color: var(--accent); }
.hero-msg p { margin: 0 0 14px; max-width: 600px; font-size: var(--fs-400); line-height: var(--lh-snug); color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: var(--fw-bold); font-size: var(--fs-400); transition: transform .15s ease, background-color .2s ease; }
.hero-btn:active { transform: scale(.97); }
.hero-btn.primary { background: var(--accent); color: var(--dark); } .hero-btn.primary:hover { background: #ffd447; }
.hero-btn.call { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); } .hero-btn.call:hover { background: rgba(255,255,255,.26); }
.hero-btn { white-space: nowrap; }
.hb-short { display: none; }
.slider .dots { z-index: 4; bottom: auto; top: 6px; justify-content: flex-end; padding-right: 10px; }

/* Lối vào danh mục nhanh (chỉ điện thoại / máy tính bảng; máy tính đã có cột danh mục) */
.quick-cats { display: none; }
.qc-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; text-align: center; font-size: var(--fs-200); font-weight: var(--fw-semibold); line-height: 1.25; color: var(--dark); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent; }
.qc-item:active { background: #ffe3e8; color: var(--primary); }
.qc-item img, .qc-item .noicon { width: 32px; height: 32px; font-size: 26px; line-height: 32px; }

/* Cuối mỗi khối danh mục trang chủ: nút xem tất cả (điện thoại) */
.sec-more { display: none; }

/* Trang sản phẩm: nhóm nút liên hệ */
.actions { max-width: 440px; gap: 10px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .big-btn { height: 46px; font-size: var(--fs-300); }
.actions-note { margin: 2px 0 0; font-size: var(--fs-200); color: var(--muted); line-height: var(--lh-snug); }

/* Gợi ý tìm kiếm */
.search { position: relative; overflow: visible; }
.search button { white-space: nowrap; }
.search button svg { display: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 90; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); overflow: hidden; display: none; }
.suggest.open { display: block; }
.suggest a { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px 12px; color: var(--dark); font-size: var(--fs-300); line-height: var(--lh-snug); border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.on { background: var(--soft-primary); color: var(--primary); }
.suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; }
.suggest .sg-all { display: block; text-align: center; font-weight: var(--fw-semibold); color: var(--primary); }
.suggest .sg-empty { padding: 12px; color: var(--muted); font-size: var(--fs-300); }

/* Không có kết quả tìm kiếm */
.empty-help { text-align: center; padding: 8px 16px 28px; }
.empty-help .chips { justify-content: center; border: 0; }
.empty-help .big-btn { display: inline-flex; padding: 0 24px; }

@media (max-width: 860px) {
  /* Header gọn: bỏ dòng tên công ty, logo + ô tìm kiếm cùng một hàng */
  .topbar { display: none; }
  .header-inner { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .menu-btn { margin-left: -6px; }
  .logo { padding: 3px 8px; border-radius: 10px; }
  .logo img { height: 30px; }
  .search { order: 0; flex-basis: auto; height: 40px; padding-left: 12px; }
  .search > svg { display: none; }
  .search input { padding: 0 6px; }
  .search button { width: 44px; padding: 0; display: grid; place-items: center; }
  .search button span { display: none; }
  .search button svg { display: block; }

  .hero { margin-top: 12px; }
  .hero-msg { position: static; padding: 14px 16px 16px; background: linear-gradient(100deg, #2a0710, #8a001e 60%, var(--primary)); }
  .hero-msg h1 { font-size: var(--fs-700); }
  .hero-msg p { font-size: var(--fs-300); margin-bottom: 12px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-btn { justify-content: center; height: 42px; padding: 0 10px; font-size: var(--fs-300); }
  .hb-long { display: none; } .hb-short { display: inline; }
  .hero-main .slider { flex: none; min-height: 0; aspect-ratio: 16 / 9; }

  .quick-cats { display: block; }
  .quick-cats .qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .quick-cats .qc-item:nth-child(3n) { border-right: 0; }

  /* Mỗi khối danh mục trang chủ chỉ hiện 4 sản phẩm + nút xem tất cả */
  .cat-block .tile:nth-child(n+5) { display: none; }
  .sec-more { display: flex; justify-content: center; align-items: center; height: 44px; margin: 0; color: var(--primary); font-weight: var(--fw-semibold); font-size: var(--fs-300); border-top: 1px solid var(--line); }
  .tile img { width: 100%; height: auto; aspect-ratio: 1; max-width: 140px; }

  /* Chip danh mục, breadcrumb, ảnh nhỏ sản phẩm: cuộn ngang một hàng thay vì xếp nhiều dòng */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; padding: 6px 14px; }
  .notfound .chips, .empty-help .chips { flex-wrap: wrap; justify-content: center; }
  .breadcrumb { white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .thumbs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: 0 0 64px; height: 64px; }
  .detail { padding: 12px 16px 20px; gap: 16px; }
  /* Cột lưới không được giãn theo dải ảnh nhỏ cuộn ngang (tránh tràn ngang trang) */
  .detail > *, .post-layout > * { min-width: 0; }
  .info h1 { margin-top: 4px; }
  .list-intro { margin: 0 16px 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .list-intro.open { display: block; }
  .intro-more { margin: -4px 16px 10px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: var(--fw-semibold); font-size: var(--fs-300); }
  .actions { max-width: none; }
}
@media (min-width: 861px) {
  .intro-more { display: none; }
}

/* Form liên hệ gửi thành công */
.form-done { background: #effaf2; border: 1px solid #b9e5c4; border-radius: 8px; padding: 18px 20px; color: #1d6b33; line-height: var(--lh-base); }
.form-done b { display: block; font-size: var(--fs-500); margin-bottom: 4px; }
.form-done p { margin: 0; color: var(--text); }
.form-done a { color: var(--primary); font-weight: var(--fw-semibold); }
