/* =====================================================================================================================
   SiSuSite – theme mặc định (ST-41). Hệ token: cấp 1 sửa ở Quản trị → Giao diện (in đè :root sau tệp này); sắc độ suy ra bằng color-mix.
   Phong cách web bán hàng Việt Nam: mật độ dày, chữ 14px, thẻ sản phẩm gọn, nút liên hệ luôn trong tầm tay, ưu tiên điện thoại (375px).
   ===================================================================================================================== */

/* ---------- 1. Token ---------- */
:root {
  /* Màu thương hiệu */
  --color-primary: #1b5fd9;
  --color-primary-ink: #ffffff;
  --color-accent: #e5262b;
  --color-zalo: #0068ff;
  --color-success: #12a150;
  --color-warning: #f59e0b;
  /* Bề mặt */
  --color-bg: #f2f4f7;
  --color-surface: #ffffff;
  --color-topbar-bg: #0f2c64;
  --color-topbar-ink: #dbe5ff;
  --color-header-bg: #ffffff;
  --color-footer-bg: #0f1a2e;
  --color-footer-ink: #c7cfdd;
  /* Chữ + đường kẻ */
  --color-text: #1a1d23;
  --color-muted: #667085;
  --color-line: #e4e7ec;
  /* Chữ */
  --font-body: "Be Vietnam Pro", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-size: 14px;
  /* Hình khối */
  --radius: 8px;
  --container: 1240px;

  /* Suy ra (không sửa ở quản trị) */
  --c-primary-700: color-mix(in srgb, var(--color-primary) 78%, #000);
  --c-primary-100: color-mix(in srgb, var(--color-primary) 14%, #fff);
  --c-primary-50: color-mix(in srgb, var(--color-primary) 7%, #fff);
  --c-accent-50: color-mix(in srgb, var(--color-accent) 9%, #fff);
  --r-sm: calc(var(--radius) * .5);
  --r-lg: calc(var(--radius) * 1.5);
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 24px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sh-2: 0 8px 24px rgba(16, 24, 40, .12);
  --focus: 0 0 0 3px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

/* ---------- 2. Nền ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: var(--font-size)/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-3); }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--color-surface); padding: 8px 12px; border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }
.muted { color: var(--color-muted); }
.small { font-size: var(--fs-sm); }
.page { padding-top: var(--sp-3); padding-bottom: var(--sp-6); }
.empty { padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--color-muted); background: var(--color-surface); border-radius: var(--radius); }

/* ---------- 3. Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1; white-space: nowrap; cursor: pointer; background: var(--color-surface); color: var(--color-text); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { color: inherit; }
.btn-primary { background: var(--color-primary); color: var(--color-primary-ink); }
.btn-primary:hover { background: var(--c-primary-700); color: var(--color-primary-ink); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--color-accent) 85%, #000); color: #fff; }
.btn-zalo { background: var(--color-zalo); color: #fff; }
.btn-zalo:hover { background: color-mix(in srgb, var(--color-zalo) 85%, #000); color: #fff; }
.btn-outline { border-color: var(--color-line); background: var(--color-surface); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-soft { background: var(--c-primary-50); color: var(--color-primary); }
.btn-soft:hover { background: var(--c-primary-100); color: var(--color-primary); }
.btn-light { background: #fff; color: var(--color-primary); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-lg { height: 44px; padding: 0 20px; font-size: var(--fs-md); }
.btn-icon { width: 36px; padding: 0; }
.btn-block { width: 100%; }
.zalo-badge { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; border-radius: 4px; background: #fff; color: var(--color-zalo); font-size: 10px; font-weight: 800; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--c-accent-50); color: var(--color-accent); font-size: 11px; font-weight: 700; }
.chip, .chips a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--color-line); background: var(--color-surface); font-size: var(--fs-sm); white-space: nowrap; }
.chip:hover, .chips a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.active, .chips a.active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-ink); }
.chips { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- 4. Header ---------- */
.s-topbar { background: var(--color-topbar-bg); color: var(--color-topbar-ink); font-size: var(--fs-xs); }
.s-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 30px; }
.s-topbar nav { display: flex; gap: var(--sp-4); }
.s-topbar a:hover { color: #fff; }
.s-header { background: var(--color-header-bg); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--color-line); }
.s-header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); padding-top: 10px; padding-bottom: 10px; }
.s-logo { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.s-logo img { max-height: 48px; width: auto; }
.s-logo-text { font-size: var(--fs-xl); font-weight: 800; color: var(--color-primary); letter-spacing: -.01em; white-space: nowrap; }
.s-search { display: flex; align-items: stretch; height: 40px; border: 2px solid var(--color-primary); border-radius: var(--radius); background: #fff; overflow: hidden; }
.s-search svg { align-self: center; margin-left: 10px; color: var(--color-muted); flex: none; }
.s-search input { flex: 1; min-width: 0; border: 0; padding: 0 10px; outline: none; background: transparent; }
.s-search button { border: 0; padding: 0 18px; background: var(--color-primary); color: var(--color-primary-ink); font-weight: 600; cursor: pointer; }
.s-actions { display: flex; align-items: center; gap: var(--sp-2); }
.s-hotline { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-2); }
.s-hotline span { display: flex; flex-direction: column; line-height: 1.2; }
.s-hotline small { color: var(--color-muted); font-size: var(--fs-xs); }
.s-hotline b { color: var(--color-accent); font-size: var(--fs-md); }
.s-hotline .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent-50); color: var(--color-accent); }
.s-nav { background: var(--color-primary); color: var(--color-primary-ink); }
.s-nav .container { display: flex; align-items: center; gap: 2px; height: 40px; overflow-x: auto; scrollbar-width: none; }
.s-nav .container::-webkit-scrollbar { display: none; }
.s-nav a, .s-nav summary { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; color: inherit; }
.s-nav a:hover, .s-nav summary:hover { background: rgba(255, 255, 255, .14); color: inherit; }
.s-nav details { position: static; }
.s-nav summary { list-style: none; background: rgba(0, 0, 0, .14); }
.s-nav summary::-webkit-details-marker { display: none; }
.s-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-surface); color: var(--color-text); box-shadow: var(--sh-2); border-top: 1px solid var(--color-line); }
.s-mega .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3) var(--sp-5); padding-top: var(--sp-4); padding-bottom: var(--sp-5); height: auto; overflow: visible; }
.s-mega strong a { display: block; height: auto; padding: 6px 0; font-size: var(--fs-md); color: var(--color-text); background: none; }
.s-mega ul { list-style: none; margin: 0; padding: 0; }
.s-mega li a { display: block; height: auto; padding: 4px 0; font-weight: 400; color: var(--color-muted); background: none; }
.s-mega a:hover { background: none !important; color: var(--color-primary) !important; }
.s-mheader, .s-msearch, .s-bottom, .s-call { display: none; }

/* ---------- 5. Khối trang ---------- */
.section { margin-top: var(--sp-4); background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.section-head h2 { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: .01em; display: flex; align-items: center; gap: var(--sp-2); }
.section-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--color-accent); }
.section-head a { color: var(--color-primary); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.section-head .chips { flex: 1; justify-content: flex-end; }
.page-head { background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); }
.page-head h1 { font-size: var(--fs-xl); }
.page-head p { margin: 6px 0 0; color: var(--color-muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: var(--sp-2); font-size: var(--fs-xs); color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs ol { display: contents; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: #98a2b3; }
.card { background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-4); }

/* Hero + banner */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-2); margin-top: var(--sp-3); }
.hero a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-main { aspect-ratio: 16 / 7; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--sp-2); }
.hero-single { grid-template-columns: 1fr; }
.commitments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-2); }
.commitment { display: flex; align-items: center; gap: var(--sp-2); background: var(--color-surface); border-radius: var(--radius); padding: 10px var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }
.commitment .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-50); color: var(--color-primary); flex: none; }

/* Danh mục dạng ô */
.cat-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--sp-2); }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--sp-2) 4px; border-radius: var(--radius); text-align: center; font-size: var(--fs-sm); }
.cat-tile:hover { background: var(--c-primary-50); }
.cat-tile img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; background: var(--color-bg); }
.cat-tile b { display: block; font-weight: 600; line-height: 1.3; }
.cat-tile small { display: block; color: var(--color-muted); font-size: var(--fs-xs); }

/* Thương hiệu */
.brand-chips, .brand-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.brand-chips a { padding: 6px 12px; border: 1px solid var(--color-line); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; }
.brand-chips a:hover { border-color: var(--color-primary); }
.brand-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.brand-strip a { display: grid; place-items: center; aspect-ratio: 2 / 1; border: 1px solid var(--color-line); border-radius: var(--r-sm); padding: var(--sp-2); background: #fff; font-weight: 700; font-size: var(--fs-sm); text-align: center; }
.brand-strip img { max-height: 100%; width: auto; object-fit: contain; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-2); }
.brand-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--sp-3); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); text-align: center; font-size: var(--fs-sm); }
.brand-tile img { height: 56px; width: auto; object-fit: contain; }
.brand-letter { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary-50); color: var(--color-primary); font-size: var(--fs-xl); font-weight: 800; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--sp-3); }
.az a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--color-surface); font-weight: 700; font-size: var(--fs-sm); }

/* Dải mời hợp tác */
.band { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-lg);
  background: linear-gradient(110deg, var(--color-primary), var(--c-primary-700)); color: var(--color-primary-ink); }
.band h2 { font-size: var(--fs-xl); margin: 4px 0 6px; }
.band p { margin: 0; opacity: .9; max-width: 62ch; }
.band .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }

/* ---------- 6. Thẻ + lưới sản phẩm ---------- */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-2); }
.p-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; position: relative; }
.p-card:hover { box-shadow: var(--sh-2); border-color: transparent; }
.p-img { display: block; aspect-ratio: 1; background: #fff; }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.p-body { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-2); flex: 1; }
.p-label { font-size: var(--fs-xs); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 17px; }
.p-name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 2); }
.p-spec { align-self: flex-start; font-size: 11px; color: var(--color-primary); background: var(--c-primary-50); border-radius: 4px; padding: 2px 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.p-actions .btn { height: 32px; flex: 1; padding: 0 8px; }
.p-actions .btn-icon { flex: none; width: 32px; }
.p-flag { position: absolute; top: 6px; left: 6px; z-index: 1; }

/* Trang danh sách: lọc + thanh công cụ */
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.filters { background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-3); position: sticky; top: 120px; }
.filters h2, .filters h3 { font-size: var(--fs-sm); text-transform: uppercase; color: var(--color-muted); margin: var(--sp-3) 0 var(--sp-2); }
.filters h2:first-child, .filters h3:first-child { margin-top: 0; }
.filters ul, .tree { list-style: none; margin: 0; padding: 0; }
.filters li a, .tree a { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 5px 0; font-size: var(--fs-sm); }
.filters li a.active, .tree a.active { color: var(--color-primary); font-weight: 600; }
.tree ul { list-style: none; padding-left: var(--sp-3); margin: 0; }
.choices { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow: auto; }
.choice { display: flex; align-items: center; gap: var(--sp-2); padding: 4px 0; font-size: var(--fs-sm); cursor: pointer; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.toolbar select { height: 32px; border: 1px solid var(--color-line); border-radius: var(--r-sm); padding: 0 8px; background: #fff; }
.results { min-width: 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: var(--sp-4); }
.pager a, .pager span { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); background: var(--color-surface); border: 1px solid var(--color-line); font-weight: 600; font-size: var(--fs-sm); }
.pager .current, .pager [aria-current] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-ink); }

/* ---------- 7. Trang sản phẩm ---------- */
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-5); background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-4); }
.gallery { display: flex; flex-direction: column; gap: var(--sp-2); }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.gallery-thumbs a, .gallery-thumbs button { aspect-ratio: 1; border: 1px solid var(--color-line); border-radius: var(--r-sm); overflow: hidden; background: #fff; padding: 0; cursor: pointer; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.product-info h1 { font-size: 22px; font-weight: 700; }
.meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--color-muted); }
.meta a { color: var(--color-primary); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.facts span, .facts li { display: inline-flex; gap: 4px; padding: 4px 10px; border-radius: var(--r-sm); background: var(--color-bg); font-size: var(--fs-sm); list-style: none; }
.facts b { font-weight: 600; }
.cta-box { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px dashed color-mix(in srgb, var(--color-accent) 45%, #fff); border-radius: var(--radius); background: var(--c-accent-50); }
.cta-box .note, .note { font-size: var(--fs-sm); color: var(--color-muted); margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cta-row .btn { flex: 1 1 160px; height: 44px; font-size: var(--fs-md); }
.qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--color-line); border-radius: var(--r-sm); background: #fff; }
.qty button { width: 36px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; outline: none; }
.quote-add { display: flex; gap: var(--sp-2); }
.mark { color: var(--color-accent); font-weight: 700; }
.detail-section { margin-top: var(--sp-3); background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-4); }
.detail-section > h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--color-line); }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.spec-table th { width: 34%; color: var(--color-muted); font-weight: 500; background: var(--color-bg); }

/* Nội dung soạn thảo */
.prose { font-size: var(--fs-md); line-height: 1.65; max-width: 860px; overflow-wrap: anywhere; }
.prose h2 { font-size: var(--fs-xl); margin: var(--sp-5) 0 var(--sp-2); }
.prose h3 { font-size: var(--fs-lg); margin: var(--sp-4) 0 var(--sp-2); }
.prose img { border-radius: var(--r-sm); margin: var(--sp-3) 0; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--color-line); padding: 6px 8px; }
.prose blockquote { margin: var(--sp-3) 0; padding: var(--sp-2) var(--sp-4); border-left: 4px solid var(--color-primary); background: var(--c-primary-50); }

/* Bài viết */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.post-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; }
.post-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-card .body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { font-size: var(--fs-md); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card p { margin: 0; color: var(--color-muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 8. Form (hỏi giá, liên hệ, đánh giá) ---------- */
.lead-section, .feedback { margin-top: var(--sp-3); }
.lead-form, .fb-form, .quote-form { display: flex; flex-direction: column; gap: var(--sp-3); background: var(--color-surface); border-radius: var(--radius); padding: var(--sp-4); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.lead-form label, .fb-form label, .quote-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); font-weight: 500; }
.lead-form input, .lead-form textarea, .lead-form select, .fb-form input, .fb-form textarea, .quote-form input, .quote-form textarea, .search input[type=search] {
  height: 40px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: var(--r-sm); background: #fff; font-size: 16px; }
.lead-form textarea, .fb-form textarea, .quote-form textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus, .fb-form input:focus, .fb-form textarea:focus, .quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--focus); }
.hp { position: absolute !important; left: -10000px !important; }
.form-error { color: var(--color-accent); font-size: var(--fs-sm); }
.lead-done { padding: var(--sp-4); border-radius: var(--radius); background: color-mix(in srgb, var(--color-success) 10%, #fff); color: color-mix(in srgb, var(--color-success) 80%, #000); font-weight: 600; }
.lead { font-size: var(--fs-md); color: var(--color-muted); }

/* Danh sách hỏi giá */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-3); align-items: start; }
.quote-items { background: var(--color-surface); border-radius: var(--radius); }
.quote-head { display: flex; justify-content: space-between; padding: var(--sp-3); border-bottom: 1px solid var(--color-line); font-weight: 600; }
.quote-items .item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--color-line); }
.quote-items .item img { width: 56px; height: 56px; object-fit: contain; }

/* Hỏi đáp + đánh giá */
.rating-summary { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; }
.rating-score { font-size: 36px; font-weight: 800; line-height: 1; }
.rating-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.rating-line { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: var(--sp-2); align-items: center; font-size: var(--fs-xs); }
.rating-line .bar { height: 6px; border-radius: 3px; background: var(--color-line); overflow: hidden; }
.rating-line .bar i { display: block; height: 100%; background: var(--color-warning); }
.star-row { display: inline-flex; color: var(--color-warning); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 26px; color: var(--color-line); cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--color-warning); }
.fb-list { display: flex; flex-direction: column; }
.fb-item { padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-line); }
.fb-head { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--color-muted); }
.fb-head b { color: var(--color-text); }
.fb-question { font-weight: 600; margin: 4px 0; }
.fb-reply { margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--color-primary); background: var(--c-primary-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); }

/* ---------- 9. Footer ---------- */
.s-footer { margin-top: var(--sp-6); background: var(--color-footer-bg); color: var(--color-footer-ink); font-size: var(--fs-sm); }
.s-footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: var(--sp-5); padding-top: var(--sp-6); padding-bottom: var(--sp-5); }
.s-footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: var(--sp-3); }
.s-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.s-footer a:hover { color: #fff; }
.s-footer .s-brand { color: #fff; font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--sp-2); display: block; }
.s-footer .s-footer-logo img { max-height: 48px; width: auto; margin-bottom: var(--sp-2); }
.s-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: var(--sp-3); padding-bottom: var(--sp-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-xs); opacity: .8; }
.s-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.s-social a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .08); }

/* Thông báo nhỏ (theme.js) */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: #1a1d23; color: #fff; padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--sh-2); z-index: 60; font-size: var(--fs-sm); max-width: calc(100vw - 32px); }

/* Trang lỗi 404 */
.notfound { text-align: center; padding: var(--sp-6) var(--sp-4); background: var(--color-surface); border-radius: var(--radius); }
.notfound b { display: block; font-size: 64px; font-weight: 800; color: var(--color-primary); line-height: 1; }

/* ---------- 10. Đáp ứng ---------- */
@media (max-width: 1199px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .brand-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product { grid-template-columns: 1fr; gap: var(--sp-4); }
  .s-footer-grid { grid-template-columns: 1fr 1fr; }
  .s-hotline span { display: none; }
  .quote-layout { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body { padding-bottom: 60px; }
  .s-topbar, .s-header-main .s-search, .s-actions { display: none; }
  .s-header-main { grid-template-columns: auto minmax(0, 1fr) auto; padding-top: 6px; padding-bottom: 6px; gap: var(--sp-2); }
  .s-logo img { max-height: 36px; }
  .s-logo-text { font-size: var(--fs-lg); }
  .s-mheader { display: contents; }
  .s-msearch { display: block; padding: 0 var(--sp-3) var(--sp-2); }
  .s-msearch .s-search { height: 38px; border-width: 1px; }
  .s-menu summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer; }
  .s-menu summary::-webkit-details-marker { display: none; }
  .s-menu-panel { position: fixed; inset: 0 20% 0 0; background: var(--color-surface); z-index: 50; overflow: auto; padding: var(--sp-3); box-shadow: var(--sh-2); }
  .s-menu-panel ul { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
  .s-menu-panel li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
  .s-menu-panel strong { display: block; margin-bottom: var(--sp-2); color: var(--color-muted); font-size: var(--fs-xs); text-transform: uppercase; }
  .s-menu[open] summary { position: fixed; top: 6px; right: 6px; z-index: 51; background: var(--color-surface); border-radius: 50%; }
  .s-call { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent-50); color: var(--color-accent); }
  .s-nav .container { height: 38px; padding: 0 var(--sp-2); }
  .s-nav details { display: none; }
  .s-bottom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--color-surface); border-top: 1px solid var(--color-line); padding-bottom: env(safe-area-inset-bottom); }
  .s-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; font-size: 11px; font-weight: 600; position: relative; }
  .s-bottom a .count { position: absolute; top: 4px; left: calc(50% + 6px); }
  .s-bottom .call { color: var(--color-accent); }
  .s-bottom .zalo { color: var(--color-zalo); }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero-main { aspect-ratio: 16 / 9; }
  .commitments { grid-template-columns: 1fr 1fr; }
  .commitment { padding: var(--sp-2); font-size: var(--fs-xs); }
  .cat-tiles { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .cat-tiles::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 82px; }
  .cat-tile img { width: 56px; height: 56px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: var(--sp-2) var(--sp-2) var(--sp-3); margin-top: var(--sp-2); border-radius: 0; margin-left: calc(var(--sp-3) * -1); margin-right: calc(var(--sp-3) * -1); }
  .section-head h2 { font-size: var(--fs-md); }
  .band { flex-direction: column; align-items: flex-start; padding: var(--sp-4); }
  .product { padding: var(--sp-3); }
  .product-info h1 { font-size: var(--fs-xl); }
  .fields { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .s-footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); padding-top: var(--sp-5); }
  .quote-items .item { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .gallery-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .toast { bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .s-topbar, .s-header, .s-nav, .s-footer, .s-bottom, .p-actions, .cta-box { display: none !important; } body { background: #fff; } }

/* ---------- 11. Bổ sung trang sản phẩm ---------- */
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--color-line); border-radius: var(--r-sm); overflow: hidden; }
dl.facts > div { display: contents; }
dl.facts dt, dl.facts dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--color-line); font-size: var(--fs-sm); }
dl.facts dt { color: var(--color-muted); background: var(--color-bg); }
dl.facts dd { font-weight: 600; }
dl.facts > div:last-child dt, dl.facts > div:last-child dd { border-bottom: 0; }
.product-info .chips .badge { height: 26px; padding: 0 10px; border-radius: 13px; background: var(--c-primary-50); color: var(--color-primary); font-weight: 600; }
.quote-add { flex-wrap: wrap; align-items: center; }
.quote-add .btn { flex: 1 1 220px; }
.gallery-main { order: -1; }
.hero-side:has(> :only-child) { grid-template-rows: 1fr; }
@media (max-width: 767px) {
  .hero-side:has(> :only-child) { grid-template-columns: 1fr; }
  .quote-add .btn, .cta-row .btn { flex-basis: 100%; }
  .gallery-thumbs { order: 1; }
}

/* ---------- 12. Bổ sung trang danh sách ---------- */
.page-head { display: flex; align-items: center; gap: var(--sp-3); }
.page-head > img, .page-head picture img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.page + .chips, .page > .chips { margin-bottom: var(--sp-3); }
.chip[aria-current], .tree a[aria-current] { color: var(--color-primary); font-weight: 600; }
.chip[aria-current] { border-color: var(--color-primary); background: var(--c-primary-50); }
.filters fieldset { border: 0; margin: var(--sp-3) 0 0; padding: 0; }
.filters legend { font-size: var(--fs-sm); text-transform: uppercase; color: var(--color-muted); font-weight: 700; margin-bottom: var(--sp-2); padding: 0; }
.filters label { display: flex; align-items: center; gap: var(--sp-2); padding: 4px 0; font-size: var(--fs-sm); cursor: pointer; }
.filters input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--color-primary); }
@media (max-width: 991px) {
  .filters .tree, .filters > div:has(> .tree) { display: none; }
  .filters:not(:has(form)) { display: none; }
  .filters fieldset { margin-top: 0; }
  .filters fieldset label { display: inline-flex; margin-right: var(--sp-3); }
}
@media (max-width: 767px) {
  .page-head { padding: var(--sp-3); }
  .page-head > img, .page-head picture img { width: 56px; height: 56px; }
  .page-head h1 { font-size: var(--fs-lg); }
}

/* ---------- 13. Nhóm chọn trong form ---------- */
.lead-form fieldset, .quote-form fieldset, .fb-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lead-form legend, .quote-form legend, .fb-form legend { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; padding: 0; width: 100%; }
.lead-form label:has(> input[type=radio]), .quote-form label:has(> input[type=radio]), .fb-form label:has(> input[type=radio]),
.lead-form label:has(> input[type=checkbox]), .quote-form label:has(> input[type=checkbox]) {
  flex-direction: row; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--color-line); border-radius: 18px; font-weight: 500; cursor: pointer; }
.lead-form label:has(> input:checked), .quote-form label:has(> input:checked), .fb-form label:has(> input:checked) { border-color: var(--color-primary); background: var(--c-primary-50); color: var(--color-primary); }
.lead-form input[type=radio], .quote-form input[type=radio], .fb-form input[type=radio], .lead-form input[type=checkbox], .quote-form input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--color-primary); }
.quote-head { align-items: center; gap: var(--sp-2); }
.quote-head h2 { font-size: var(--fs-lg); }
.quote-head a { font-size: var(--fs-sm); color: var(--color-primary); white-space: nowrap; }
