/* =========================================================
   WEBSITE VẬT TƯ CHÍNH NGẠCH
   Hệ thống thiết kế dùng chung
   ========================================================= */

:root {
  --navy: #14324D;
  --navy-dark: #0B2033;
  --navy-light: #2B5678;
  --accent: #E8871E;
  --accent-dark: #C96F0F;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --text: #20262D;
  --text-muted: #5C6773;
  --border: #E1E5EA;
  --green: #1F7A4D;
  --green-bg: #E4F3EA;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(20,50,77,0.08);
  --shadow-md: 0 10px 26px rgba(20,50,77,0.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
img, svg { display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-dark); color: #C6D2DC; font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { text-decoration: none; color: inherit; }
.lang-toggle { display: flex; align-items: center; gap: 8px; }
.lang-toggle .opt { padding: 2px 7px; border-radius: 3px; cursor: pointer; font-weight: 600; }
.lang-toggle .opt.active { background: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 60; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; color: var(--navy); letter-spacing: .2px; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.logo .custom-logo-link { display: block; flex-shrink: 0; }
.logo img.custom-logo { display: block; max-height: 52px; width: auto; max-width: 160px; object-fit: contain; }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--navy); border-color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; padding: 4px; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(11,32,51,.45); z-index: 55; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: .15s ease; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Trust bar ---------- */
.trust-bar { background: #EBF1F6; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }
.trust-bar .container { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--navy); }
.trust-item .icon { color: var(--green); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(125deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; padding: 64px 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 38px; color: #fff; margin-bottom: 18px; }
.hero p { font-size: 16.5px; color: #D6E1EA; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; height: 320px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
.hero-visual span { font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: 27px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 15px; }
.section-alt { background: var(--surface); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: .15s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cat-card .cat-icon { width: 54px; height: 54px; border-radius: 50%; background: #EBF1F6; color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cat-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.cat-card span { font-size: 13px; color: var(--text-muted); }

/* ---------- Product grid / card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .product-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid-3 { grid-template-columns: 1fr; } }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .15s; }
.product-card:hover { box-shadow: var(--shadow-md); border-color: #C9D3DB; }
.product-thumb { height: 165px; background: linear-gradient(135deg, #EBF1F6, #DCE4EA); display: flex; align-items: center; justify-content: center; color: #92A1AC; position: relative; }
.product-thumb .badge { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-code { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.product-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; min-height: 42px; }
.product-title a { text-decoration: none; color: inherit; }
.product-specs { list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-muted); }
.product-specs li { padding-left: 12px; position: relative; }
.product-specs li::before { content: "—"; position: absolute; left: 0; }
.product-hint { font-size: 12.5px; color: var(--navy); font-weight: 700; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border); }
.product-price .price-amount { font-size: 16px; font-weight: 800; color: var(--accent-dark); }
.product-price .price-note { font-size: 11px; color: var(--text-muted); }
.product-actions { display: flex; gap: 8px; padding: 0 16px 16px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 20px; letter-spacing: .2px; }
.badge .icon { width: 14px; height: 14px; }
.badge-co { background: var(--green-bg); color: var(--green); }
.badge-new { background: #FFF1E0; color: var(--accent-dark); }
.badge-import { background: #E7EEF5; color: var(--navy); }

/* ---------- Why-us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { text-align: center; padding: 10px; }
.why-item .cat-icon { margin: 0 auto 16px; width: 58px; height: 58px; background: var(--navy); color: #fff; }
.why-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.why-item p { font-size: 13.5px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; padding: 44px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 25px; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #B9C6D1; padding: 52px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
/* Bản đồ footer — hàng riêng, rộng full */
.footer-map-col { grid-column: 1 / -1; width: 100%; }
.footer-map { width: 100%; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); }
.footer-map iframe { display: block; width: 100%; height: 400px; border: 0; }
.footer-map-link.footer-map-link, .footer-grid a.footer-map-link { display: block; padding: 10px 14px; font-size: 13.5px; color: #F59E0B; text-decoration: underline; }
@media (max-width: 640px) { .footer-map iframe { height: 300px; } }
.footer-grid h4 { color: #fff; font-size: 14.5px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #B9C6D1; text-decoration: none; font-size: 13.5px; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 13.5px; color: #B9C6D1; }
.footer-about-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 12.5px; color: #7E8FA0; }
.contact-line { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); padding: 18px 0 0; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Product listing layout (filters) ---------- */
.pd-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.filter-box-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); margin-bottom: 18px; font-size: 15px; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 13px; color: var(--navy); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .4px; }
.filter-option { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); margin-bottom: 10px; cursor: pointer; }
.filter-option input { accent-color: var(--accent); width: 16px; height: 16px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.results-bar select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13.5px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 700; }
.pagination a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Product detail ---------- */
.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0 10px; }
.gallery-main { height: 340px; background: linear-gradient(135deg, #EBF1F6, #DCE4EA); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #92A1AC; margin-bottom: 12px; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs div { width: 66px; height: 66px; border-radius: 5px; background: #EBF1F6; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs div.active { border-color: var(--accent); }
.pdp-badges { display: flex; gap: 8px; margin-bottom: 14px; }
.pdp-code { font-size: 13px; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.pdp-title { font-size: 26px; margin-bottom: 14px; }
.pdp-desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.pdp-price-box { background: var(--bg); border: 1px dashed #C9D3DB; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; font-size: 13.5px; color: var(--text-muted); display: flex; gap: 10px; }
.pdp-price-real { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.pdp-price-amount { font-size: 28px; font-weight: 800; color: var(--accent-dark); }
.pdp-price-unit { font-size: 14px; color: var(--text-muted); margin-left: 4px; }
.pdp-price-subnote { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--text-muted); }
.pdp-price-subnote .icon { width: 15px; height: 15px; margin-top: 1px; }
.pdp-actions { display: flex; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.pdp-meta { display: flex; gap: 22px; margin-top: 18px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.pdp-meta a { color: var(--navy); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin: 44px 0 24px; }
.tab-btn { padding: 12px 20px; font-weight: 700; font-size: 14.5px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.tab-btn.active { color: var(--navy); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.spec-table tr:nth-child(even) { background: var(--bg); }
table.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
table.spec-table td:first-child { font-weight: 700; color: var(--navy); width: 36%; }

.related-title { font-size: 20px; margin: 48px 0 20px; }

/* ---------- About / legal page ---------- */
.legal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); }
.legal-box h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; }
.legal-box h3 .icon { color: var(--accent); }
.legal-box p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; }
.legal-box p:last-child { margin-bottom: 0; }
.doc-placeholder { height: 170px; background: repeating-linear-gradient(45deg, #EDF2F6, #EDF2F6 10px, #E3E9EE 10px, #E3E9EE 20px); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #8494A2; font-size: 13px; margin-top: 14px; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0; }
.stat-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-box strong { display: block; font-size: 26px; color: var(--accent); margin-bottom: 4px; }
.stat-box span { font-size: 12.5px; color: #C6D2DC; }

/* ---------- RFQ page ---------- */
.rfq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.rfq-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.rfq-list h3 { font-size: 16px; margin-bottom: 16px; }
.rfq-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rfq-item:last-of-type { border-bottom: none; }
.rfq-item-thumb { width: 58px; height: 58px; background: #EBF1F6; border-radius: 5px; flex-shrink: 0; }
.rfq-item-info { flex: 1; }
.rfq-item-info strong { display: block; font-size: 14px; margin-bottom: 3px; }
.rfq-item-info span { font-size: 12.5px; color: var(--text-muted); }
.rfq-item-qty { display: flex; align-items: center; gap: 6px; }
.rfq-item-qty input { width: 46px; padding: 6px; border: 1px solid var(--border); border-radius: 4px; text-align: center; font-size: 13px; }
.rfq-item-remove { color: #C0392B; font-size: 13px; cursor: pointer; text-decoration: none; font-weight: 700; margin-left: 8px; }
.rfq-note { background: #FFF6E9; border: 1px solid #F3D9AF; color: #8A5A15; font-size: 13px; padding: 12px 14px; border-radius: 6px; margin-top: 16px; display: flex; gap: 10px; }

form.rfq-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select { padding: 11px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px; font-family: inherit; color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-required { color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 220px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .filter-box { position: static; }
  .pdp-layout { grid-template-columns: 1fr; gap: 28px; }
  .rfq-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }

  nav.main-nav { position: fixed; top: 0; right: -300px; width: 290px; height: 100vh; background: #fff; flex-direction: column; align-items: flex-start; gap: 4px; padding: 90px 26px 26px; box-shadow: -6px 0 24px rgba(0,0,0,.15); transition: right .25s ease; z-index: 65; overflow-y: auto; }
  nav.main-nav.open { right: 0; }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .nav-overlay.open { display: block; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .hide-sm { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   PHẦN MỞ RỘNG v2
   (vẫn giữ mô hình ẩn giá / yêu cầu báo giá, không giỏ hàng)
   ========================================================= */

/* Topbar v2 — dải badge tin cậy + giờ hỗ trợ */
.topbar-v2 { background: var(--navy-dark); color: #C6D2DC; font-size: 12.5px; padding: 7px 0; }
.topbar-v2 .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-badges { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-badges span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.topbar-badges .icon { width: 14px; height: 14px; color: #7FC49A; }
.topbar-support { white-space: nowrap; }

/* Header chính — logo / thanh tìm kiếm / hotline / CTA / RFQ mini */
.header-main { padding: 16px 0; }
.header-main .container { display: flex; align-items: center; gap: 22px; }
.search-bar { flex: 1; display: flex; max-width: 560px; border: 2px solid var(--navy); border-radius: 6px; overflow: hidden; height: 44px; }
.search-bar select { border: none; background: #EEF2F5; padding: 0 10px; font-size: 12.5px; border-right: 1px solid var(--border); color: var(--text-muted); max-width: 140px; }
.search-bar input { flex: 1; border: none; padding: 0 14px; font-size: 14px; outline: none; min-width: 0; }
.search-bar button { background: var(--navy); border: none; color: #fff; padding: 0 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-hotline { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: inherit; }
.header-hotline .icon-circle { width: 42px; height: 42px; border-radius: 50%; background: #EEF3F7; color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-hotline strong { display: block; font-size: 16.5px; color: var(--navy); line-height: 1.3; }
.header-hotline span { font-size: 11px; color: var(--text-muted); }
.rfq-mini { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--navy); text-decoration: none; flex-shrink: 0; }
.rfq-mini .count { position: absolute; top: -6px; right: -12px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.rfq-mini .label { font-size: 11px; font-weight: 700; margin-top: 3px; white-space: nowrap; }

/* Nav bar tối — chỉ hiện desktop, thay cho main-nav hiện desktop */
.nav-bar { background: var(--navy); display: none; }
.nav-bar .container { display: flex; align-items: center; gap: 2px; height: 50px; }
.cat-trigger { background: var(--accent); color: #fff; height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; border: none; cursor: pointer; flex-shrink: 0; }
.nav-bar-links { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav-bar-links a { color: #DCE6EF; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 0 15px; height: 50px; display: flex; align-items: center; gap: 4px; }
.nav-bar-links a:hover, .nav-bar-links a.active { background: rgba(255,255,255,.1); color: #fff; }
@media (min-width: 981px) {
  .nav-bar { display: block; }
  .site-header .main-nav { display: none; }
}

/* Trust bar 4 ô — icon + tiêu đề + mô tả */
.trust4-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust4-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.trust4-item .icon-box { width: 44px; height: 44px; border-radius: 8px; background: #EEF3F7; color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust4-item h4 { font-size: 13.5px; margin-bottom: 4px; }
.trust4-item p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Dải danh mục 8 icon */
.catrow-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.catrow-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 8px; text-align: center; text-decoration: none; color: inherit; transition: .15s; }
.catrow-item:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.catrow-item .thumb { width: 54px; height: 54px; border-radius: 50%; background: #EEF3F7; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.catrow-item span { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; display: block; }

/* Khối 2 cột: sản phẩm nổi bật (tab + lưới nhỏ) / cập nhật mới (danh sách dọc) */
.split-2col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.panel-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.panel-head h3 { font-size: 16px; }
.panel-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.panel-tabs button { border: 1px solid var(--border); background: #fff; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.panel-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mini-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mini-thumb { height: 100px; background: linear-gradient(135deg, #EEF2F5, #DCE4EA); display: flex; align-items: center; justify-content: center; color: #92A1AC; position: relative; }
.mini-thumb .badge { position: absolute; top: 8px; left: 8px; }
.mini-body { padding: 10px 12px; }
.mini-body .product-code { font-size: 10.5px; }
.mini-body h4 { font-size: 12.5px; font-weight: 700; line-height: 1.35; margin: 4px 0 8px; min-height: 34px; }
.mini-body h4 a { color: inherit; text-decoration: none; }
.mini-cta { display: block; text-align: center; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--accent); padding: 7px; border-radius: 5px; text-decoration: none; }
.mini-list-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.mini-list-item:last-child { border-bottom: none; }
.mini-list-thumb { width: 60px; height: 60px; border-radius: 6px; background: linear-gradient(135deg, #EEF2F5, #DCE4EA); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #92A1AC; }
.mini-list-info { flex: 1; min-width: 0; }
.mini-list-info .badge { margin-bottom: 4px; }
.mini-list-info h4 { font-size: 12.5px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.mini-list-info h4 a { color: inherit; text-decoration: none; }
.mini-list-info span.hint { font-size: 11.5px; color: var(--navy); font-weight: 700; }

/* Banner giải pháp B2B */
.b2b-banner { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; color: #fff; }
.b2b-banner-content { padding: 40px; }
.b2b-banner-content h2 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.b2b-banner-content > p { color: #D6E1EA; font-size: 14px; max-width: 480px; margin-bottom: 4px; }
.b2b-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.b2b-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #E4EBF1; }
.b2b-feature .icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.b2b-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.b2b-visual { background: rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); padding: 20px; text-align: center; font-size: 13px; }

/* Dải thương hiệu / đối tác */
.brand-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.brand-chip { height: 58px; background: #fff; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #9AA7B2; letter-spacing: .3px; font-size: 12px; text-align: center; padding: 4px; }

/* Why-us 6 ô */
.why-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* Blog + đăng ký bản tin */
.blog-layout { display: grid; grid-template-columns: 2.3fr 1fr; gap: 24px; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-thumb { height: 110px; background: linear-gradient(135deg, #EEF2F5, #DCE4EA); display: flex; align-items: center; justify-content: center; color: #92A1AC; }
.blog-body { padding: 14px; }
.blog-date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.blog-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text); min-height: 56px; }
.blog-link { font-size: 12px; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.newsletter-box { background: var(--navy); border-radius: var(--radius); padding: 26px; color: #fff; }
.newsletter-box h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.newsletter-box p { font-size: 12.5px; color: #C6D2DC; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 20px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border: none; border-radius: 5px; font-size: 13px; min-width: 0; }
.newsletter-box .social-label { font-size: 12px; color: #C6D2DC; margin-bottom: 10px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; flex-shrink: 0; }

/* Footer — chứng nhận */
.footer-cert { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cert-badge { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #C6D2DC; max-width: 165px; line-height: 1.3; }
.cert-badge .icon { color: var(--accent); flex-shrink: 0; }

/* Responsive cho khối v2 */
@media (max-width: 980px) {
  .header-main .container { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; flex-basis: 100%; }
  .header-hotline { display: none; }
  .trust4-grid { grid-template-columns: repeat(2, 1fr); }
  .catrow-grid { grid-template-columns: repeat(4, 1fr); }
  .split-2col { grid-template-columns: 1fr; }
  .b2b-banner { grid-template-columns: 1fr; }
  .b2b-visual { display: none; }
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
  .why-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .nav-bar-links a { color: var(--text); }
}

@media (max-width: 600px) {
  .topbar-badges span:nth-child(n+3) { display: none; }
  .topbar-support { display: none; }
  .trust4-grid { grid-template-columns: 1fr; }
  .catrow-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-grid { grid-template-columns: 1fr; }
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .why-grid-6 { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .b2b-banner-content { padding: 26px 22px; }
  .b2b-features { grid-template-columns: 1fr; }
}

/* =========================================================
   PHẦN TÍCH HỢP WORDPRESS
   ========================================================= */

/* Đẩy header sticky xuống khi có admin bar (lúc đăng nhập wp-admin) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Ẩn nội dung cho trình đọc màn hình (chuẩn WordPress core) */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; }

/* Phân trang mặc định của paginate_links() dùng class .page-numbers */
.pagination .page-numbers { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text); font-size: 13.5px; font-weight: 700; background: #fff; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers.dots { border: none; }

/* Thông báo trạng thái gửi yêu cầu báo giá thành công / lỗi */
.form-alert { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.form-alert-success { background: var(--green-bg); color: var(--green); border: 1px solid #BEE0CC; }
.form-alert-error { background: #FBEAEA; color: #B23B3B; border: 1px solid #F0C4C4; }
.form-alert .icon { flex-shrink: 0; margin-top: 2px; }

/* Sản phẩm đơn lẻ được chọn để báo giá từ trang chi tiết sản phẩm */
.rfq-single-product { display: flex; gap: 14px; align-items: center; padding: 4px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.rfq-single-product .rfq-item-thumb { width: 64px; height: 64px; }
.rfq-empty-note { font-size: 13.5px; color: var(--text-muted); padding: 4px 0 18px; }

/* Honeypot chống bot — ẩn khỏi người dùng thật */
.vattu-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; width: 0; overflow: hidden; }

/* Trạng thái rỗng (không có sản phẩm khớp bộ lọc) */
.empty-state { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--text-muted); font-size: 14.5px; }

/* Nội dung bài viết / trang khi soạn bằng trình soạn thảo WordPress mặc định */
.entry-content { font-size: 15px; color: var(--text); max-width: 820px; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { margin: 0 0 14px 22px; padding: 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: 6px; }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; margin: 22px 0 10px; }

.cat-icon svg.icon { width: 26px; height: 26px; }

/* =========================================================
   TỐI ƯU HIỂN THỊ ĐIỆN THOẠI (v1.1)
   ========================================================= */
html, body { overflow-x: hidden; }
img, iframe, video { max-width: 100%; }
.mobile-bar { display: none; }

@media (max-width: 980px) {
  /* Header cao cố định 78px làm vỡ bố cục khi tìm kiếm xuống dòng → để tự co giãn */
  .site-header .container { height: auto; }
  .header-main { padding: 10px 0; }
  .header-main .container { gap: 10px 12px; }
  .header-main .logo { flex: 1; min-width: 0; white-space: normal; font-size: 15px; line-height: 1.25; }
  .header-main .logo small { font-size: 9px; letter-spacing: .6px; }
  .logo img.custom-logo { max-height: 38px; max-width: 54px; }
  .header-main > .container > .btn-accent,
  .header-main .rfq-mini { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; }
  .search-bar { height: 42px; }
  nav.main-nav a { font-size: 16px; padding: 14px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }

  /* Thanh trên cùng: 1 dòng cuộn ngang, không chiếm chỗ */
  .topbar-v2 { padding: 6px 0; font-size: 11.5px; }
  .topbar-badges { flex-wrap: nowrap; overflow-x: auto; gap: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .topbar-badges::-webkit-scrollbar { display: none; }
  .topbar-badges span:nth-child(n+3) { display: inline-flex; }

  /* Header không dính khi cuộn (đã có thanh Gọi/Báo giá cố định phía dưới) */
  .site-header { position: static; }
  .search-bar select { display: none; }
  .search-bar input { font-size: 16px; }

  /* Hero */
  .hero { padding: 28px 0 32px; }
  .hero .container { gap: 22px; }
  .hero h1 { font-size: 26px; margin-bottom: 12px; }
  .hero p { font-size: 15px; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 13px 16px; }
  .hero-visual { height: 170px; }

  /* Khoảng cách & tiêu đề các khối */
  .section { padding: 34px 0; }
  .section-title { font-size: 21px; }
  .section-sub { font-size: 14px; }
  .section-head { margin-bottom: 20px; gap: 8px; }
  .trust4-item { padding: 14px; }
  .catrow-item { padding: 14px 6px; font-size: 12.5px; }
  .b2b-banner-content { padding: 22px 18px; }
  .b2b-actions { flex-direction: column; }
  .b2b-actions .btn { width: 100%; }
  .cta-band { padding: 30px 0; }
  .cta-band h2 { font-size: 21px; }

  /* Form: 16px để iPhone không tự phóng to khi bấm vào ô nhập */
  .form-group input, .form-group textarea, .form-group select,
  .newsletter-form input { font-size: 16px; }
  .btn { min-height: 44px; }

  /* Footer gọn hơn: các cột liên kết chia 2, About / Liên hệ / Bản đồ full dòng */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .footer-grid > div:first-child, .footer-grid > div:nth-last-child(2), .footer-grid > .footer-map-col { grid-column: 1 / -1; }
  .footer-grid ul { gap: 12px; }
  .footer-grid a { padding: 2px 0; }
  .footer-map iframe { height: 260px; }
  .footer-bottom { font-size: 12px; padding-bottom: 76px; }

  /* Thanh hành động cố định phía dưới: Gọi ngay + Yêu cầu báo giá */
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.14); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 8px; font-weight: 800; font-size: 14.5px; text-decoration: none; }
  .mobile-bar .mb-call { background: var(--navy); color: #fff; }
  .mobile-bar .mb-rfq { background: var(--accent); color: #fff; }
  .mobile-bar .icon { width: 18px; height: 18px; }
  body { padding-bottom: 60px; }
}

/* =========================================================
   KHUNG ẢNH SẢN PHẨM THẬT (v1.2)
   Ảnh đại diện upload lên có kích thước bất kỳ → ép vừa khung, cắt giữa, không tràn
   ========================================================= */
.product-thumb, .mini-thumb, .mini-list-thumb, .blog-thumb, .gallery-main { overflow: hidden; }
.product-thumb img, .mini-thumb img, .mini-list-thumb img, .blog-thumb img, .gallery-main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini-thumb { height: 150px; }
.mini-list-thumb { width: 72px; height: 72px; }
.mini-thumb .badge { z-index: 1; }
.product-thumb .badge { z-index: 1; }
@media (max-width: 600px) { .mini-thumb { height: 170px; } }

/* =========================================================
   HIỆN ĐỦ ẢNH SẢN PHẨM (v1.3) — không cắt ảnh, khung vuông nền trắng
   Ảnh sản phẩm có thể là ảnh vuông/dọc/ngang → dùng contain thay cho cover
   ========================================================= */
.product-thumb, .mini-thumb, .gallery-main { height: auto; aspect-ratio: 1 / 1; background: #fff; }
.product-thumb img, .mini-thumb img, .gallery-main img, .mini-list-thumb img { object-fit: contain; background: #fff; }
.mini-list-thumb { background: #fff; border: 1px solid var(--border); }
.gallery-thumbs div { background-color: #fff; border-color: var(--border); }
.gallery-thumbs div.active { border-color: var(--accent); }
@media (max-width: 600px) { .mini-thumb { height: auto; } }

/* =========================================================
   LOGO FOOTER, TRANG LIÊN HỆ, TRANG NỘI DUNG (v1.4)
   ========================================================= */
.footer-about-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; color: #fff; line-height: 1.3; margin-bottom: 12px; }
.footer-logo-tile { flex-shrink: 0; width: 84px; height: 84px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.footer-logo-tile img.footer-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.entry-wide { max-width: 980px; }
.entry-content h3 { color: var(--navy); font-size: 18px; margin: 22px 0 6px; }
.entry-content h3 + p { margin-top: 0; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; margin-top: 10px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.contact-card > .icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-card strong { display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.contact-card span, .contact-card a { font-size: 14.5px; color: var(--text); text-decoration: none; }
.contact-card a:hover { color: var(--accent-dark); text-decoration: underline; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.contact-map-link { display: block; padding: 10px 14px; font-size: 13.5px; font-weight: 700; color: var(--accent-dark); }
@media (max-width: 980px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-logo-tile { width: 72px; height: 72px; } .contact-map iframe { height: 300px; } }

/* v1.5 — icon danh mục tròn, khối theo nhóm, nút liên hệ nổi */
.catrow-grid { gap: 10px; }
.catrow-item { background: transparent; border: 0; box-shadow: none; padding: 8px 4px; }
.catrow-item:hover { box-shadow: none; border: 0; transform: translateY(-3px); }
.catrow-item .thumb { width: 72px; height: 72px; background: #fff; border: 2px solid #DCE6EE; margin-bottom: 10px; transition: .15s; }
.catrow-item:hover .thumb { border-color: var(--accent); background: #FFF4EC; }
.catrow-item .thumb .icon { width: 30px; height: 30px; }
.home-group { padding-top: 12px; padding-bottom: 12px; }
.home-group .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-group .view-all { font-weight: 700; font-size: 13.5px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.home-group .view-all:hover { text-decoration: underline; }
.float-contact { position: fixed; right: 14px; bottom: 90px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.float-contact a { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); font-weight: 800; font-size: 12px; transition: transform .15s; }
.float-contact a:hover { transform: scale(1.1); }
.float-contact .icon { width: 22px; height: 22px; }
.fc-zalo { background: #0068FF; }
.fc-call { background: #1FA45B; animation: fcpulse 2s infinite; }
.fc-rfq { background: var(--accent); }
@keyframes fcpulse { 0% { box-shadow: 0 0 0 0 rgba(31,164,91,.6); } 70% { box-shadow: 0 0 0 14px rgba(31,164,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,164,91,0); } }
@media (max-width: 980px) {
  .home-group-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .catrow-grid { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .catrow-item { flex: 0 0 92px; scroll-snap-align: start; }
  .catrow-item .thumb { width: 60px; height: 60px; }
  .float-contact { bottom: 80px; right: 10px; }
  .float-contact a { width: 44px; height: 44px; }
  .fc-call, .fc-rfq { display: none; }
}

/* v1.7 — chỉnh cho điện thoại và laptop màn hình nhỏ */
@media (min-width: 981px) and (max-width: 1280px) {
  .header-main .container { gap: 14px; }
  .header-main .logo { font-size: 17px; }
  .search-bar { min-width: 200px; }
  .search-bar select { display: none; }
  .header-hotline span { display: none; }
  .header-main .btn-accent { padding-left: 12px; padding-right: 12px; font-size: 13px; }
  .site-header .container { gap: 14px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .header-main .logo { font-size: 15px; }
  .rfq-mini .label { display: none; }
}
@media (max-width: 980px) {
  .float-contact .fc-call, .float-contact .fc-rfq { display: none; }
}
@media (max-width: 600px) {
  .home-group-grid .product-body { padding: 10px; gap: 6px; }
  .home-group-grid .product-title { font-size: 13.5px; min-height: 0; }
  .home-group-grid .product-specs { font-size: 12px; }
  .home-group-grid .product-hint { font-size: 12px; }
  .home-group-grid .product-actions { flex-direction: column; gap: 6px; padding: 0 10px 10px; }
  .home-group-grid .product-actions .btn { width: 100%; min-width: 0; }
  .product-grid .product-actions { flex-wrap: wrap; }
  .float-contact { bottom: 78px; right: 8px; }
  .float-contact a { width: 40px; height: 40px; font-size: 11px; opacity: .95; }
}

/* ===== v1.8 — Cải thiện truy cập (WCAG 2.2 AA) & tìm sản phẩm ===== */
:root { --accent-text: #A85A0A; --on-accent: #0B2033; }
.screen-reader-text { position: absolute !important; 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: 8px; top: -60px; z-index: 1000; background: var(--navy-dark); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid #1B6FD6; outline-offset: 2px; }
.search-bar:focus-within { outline: 3px solid #1B6FD6; outline-offset: 2px; }
.search-bar input:focus-visible { outline: none; }
main:focus { outline: none; }
/* chữ trên nền cam: đổi sang navy đậm (trắng/cam chỉ đạt 2,65:1) */
.cat-trigger, .btn-accent, .cta-band .btn, .mini-cta, .rfq-mini .count, .mobile-bar .mb-rfq, .fc-rfq { color: var(--on-accent); }
.rfq-mini .count { color: var(--on-accent); }
.view-all, .blog-link, .product-card .code, .pcode { color: var(--accent-text); }
.cat-wrap { position: relative; display: flex; }
.cat-menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--border); border-radius: 0 0 8px 8px; box-shadow: var(--shadow-md); z-index: 60; padding: 6px 0; }
.cat-menu[hidden] { display: none; }
.cat-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--text); text-decoration: none; font-size: 14px; min-height: 44px; align-items: center; }
.cat-menu a:hover, .cat-menu a:focus-visible { background: var(--bg); color: var(--navy); }
.cat-menu a span { color: var(--text-muted); font-size: 12.5px; }
.cat-menu .cat-all { border-top: 1px solid var(--border); font-weight: 700; color: var(--navy); }
.main-nav .sub-link { padding-left: 32px; font-size: 14px; color: var(--text-muted); }
.hero-compact { padding: 44px 0; }
.hero-compact .container { grid-template-columns: 1.05fr .95fr; gap: 36px; }
.hero-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-photo { position: relative; display: block; background: #fff; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; text-decoration: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(11,32,51,.85); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-photo:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.b2b-single { grid-template-columns: 1fr; }
.blog-grid-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* bộ lọc & kết quả */
.filter-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.filter-details > summary::-webkit-details-marker { display: none; }
.filter-count { background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 8px; margin-left: 8px; }
fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
fieldset legend { font-weight: 700; font-size: 13.5px; color: var(--navy); padding: 0; margin-bottom: 6px; }
.filter-option { min-height: 36px; display: flex; align-items: center; gap: 8px; }
.filter-n { color: var(--text-muted); font-size: 12.5px; margin-left: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); text-decoration: none; font-size: 13px; background: #fff; }
.active-filters a:hover { background: var(--bg); }
.results-count { margin: 0; color: var(--text-muted); font-size: 14px; }
.empty-state { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state .btn { margin: 4px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle { min-width: 44px; min-height: 44px; }
.text-muted, .product-card .unit { color: var(--text-muted); }
@media (max-width: 980px) {
  .search-bar { height: 46px; }
  .home-group-grid .product-card:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 980px) { .hero-compact .container { grid-template-columns: 1fr; } .hero-photos { grid-template-columns: repeat(4, 1fr); gap: 8px; } .hero-photo span { display: none; } }
@media (max-width: 560px) { .hero-photos { grid-template-columns: repeat(2, 1fr); } .hero-photos .hero-photo:nth-child(n+3) { display: none; } }

.hero-banner-img { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); }
.hero-banner-img img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
@media (max-width: 560px) { .hero-banner-img img { max-height: 200px; } }

/* v1.8.2 — mô tả nhóm hàng, cam kết, chỉ đường */
.catrow-item .catrow-desc { font-size: 11.5px; font-weight: 400; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }
.pdp-commit { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-commit li { display: flex; align-items: center; gap: 8px; background: #F4F6F8; border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text); }
.pdp-commit .icon { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; }
.directions-btn { display: inline-block; margin-top: 8px; padding: 8px 16px; min-height: 36px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); font-weight: 700; font-size: 13px; text-decoration: none; background: #fff; }
.directions-btn:hover { background: var(--bg); }
.directions-link { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 6px; white-space: nowrap; }
@media (max-width: 560px) { .pdp-commit { grid-template-columns: 1fr; } }

/* v1.8.4 — hiệu ứng nhẹ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes vattu-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-compact .container > div:first-child { animation: vattu-fade-up .6s ease both; }
.hero-photos { animation: vattu-fade-up .7s .15s ease both; }
.hero-banner-img { animation: vattu-fade-up .7s .15s ease both; }
.product-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-3px); }
.btn { transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.hero-photo img { transition: transform .35s ease; }
.hero-photo:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.catrow-item .thumb.has-img { overflow: hidden; background: #fff; }
.catrow-item .thumb.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.term-intro { color: var(--text-muted); font-size: 14.5px; max-width: 760px; margin: -6px 0 16px; line-height: 1.55; }
