/* ============================================================
   GESTRA Việt Nam — design system theo gestra.com chính hãng
   Primary #002d72 · Steel #477d94 · Soft #edf2f4 · Accent #e6da38
   ============================================================ */
:root {
  --brand: #002d72;
  --brand-dark: #001d4d;
  --steel: #477d94;
  --steel-soft: #e3ecef;
  --ink: #1b2530;
  --muted: #5b6770;
  --line: #dbe3e9;
  --soft: #edf2f4;
  --accent: #e6da38;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(0, 29, 77, 0.10);
  --radius: 6px;
  --container: 1200px;
  /* alias cũ */
  --wika-blue: var(--brand);
  --wika-blue-dark: var(--brand-dark);
  --wika-blue-soft: var(--steel-soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1, h2, h3 { color: var(--brand); line-height: 1.2; font-weight: 700; }

.container, .header-inner, .footer-inner {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 8px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--brand); color: var(--white);
  font-weight: 800; font-size: 1.35rem; border-radius: 3px;
}
.brand-name { display: block; font-weight: 800; font-size: 1.05rem; color: var(--brand); letter-spacing: .01em; }
.brand-sub { display: block; font-size: .72rem; color: var(--steel); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav > a, .nav-dropdown summary {
  padding: 9px 13px; font-weight: 600; font-size: .94rem; color: var(--ink);
  border-radius: 4px; cursor: pointer;
}
.nav > a:hover, .nav-dropdown summary:hover { color: var(--brand); background: var(--soft); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; font-size: .7em; color: var(--steel); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 330px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.nav-dropdown-panel a {
  display: block; padding: 9px 12px; border-radius: 4px;
  font-size: .92rem; font-weight: 600; color: var(--ink);
}
.nav-dropdown-panel a:hover { background: var(--soft); color: var(--brand); }
.nav-cta {
  margin-left: 6px;
  background: var(--accent); color: var(--brand-dark) !important;
  padding: 10px 18px !important; border-radius: 4px; font-weight: 800 !important;
}
.nav-cta:hover { filter: brightness(1.04); background: var(--accent) !important; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 0; border-radius: 4px; cursor: pointer;
  font-weight: 700; font-size: .95rem; transition: filter .12s, background .12s;
}
.button-primary { background: var(--accent); color: var(--brand-dark); }
.button-primary:hover { filter: brightness(1.05); }
.button-secondary { background: var(--white); color: var(--brand); border: 1px solid var(--brand); }
.button-secondary:hover { background: var(--soft); }

/* ---------- Hero (trang chủ) ---------- */
.hero {
  background-color: var(--brand); color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(0,22,56,.94) 0%, rgba(0,29,77,.82) 48%, rgba(0,45,114,.60) 100%),
    url('/assets/img/b/e/nrgt26-2_spectorcompact_02.webp');
  background-size: cover; background-position: center;
}
.hero-inner { padding: 72px 0 60px; }
.hero-copy { max-width: 760px; }
.eyebrow {
  color: var(--accent); font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin: 0 0 14px; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.07rem; max-width: 640px; margin: 0 0 24px; }
.lead { font-size: 1.05rem; color: var(--muted); }

.search-panel {
  position: relative;
  display: flex; gap: 8px; align-items: stretch;
  background: var(--white); border-radius: 6px; padding: 8px;
  max-width: 660px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.search-panel input {
  flex: 1; border: 0; outline: none; padding: 10px 14px;
  font-size: 1rem; color: var(--ink); border-radius: 4px; min-width: 0;
}
.search-note { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 10px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .button-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .button-secondary:hover { background: rgba(255,255,255,.1); }

/* autocomplete */
.hero-ac {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: var(--white); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 8px 8px; box-shadow: var(--shadow); overflow: hidden; display: none;
}
.hero-ac.on { display: block; }
.hero-ac a {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  color: var(--ink); border-bottom: 1px solid var(--soft); font-size: .93rem;
}
.hero-ac a:last-child { border-bottom: none; }
.hero-ac a:hover, .hero-ac a.hl { background: var(--soft); }
.hero-ac .code { font-weight: 700; color: var(--brand); }
.hero-ac .mt { color: var(--muted); font-size: .82rem; margin-left: auto; white-space: nowrap; text-align: right; }
.hero-ac .all { justify-content: center; color: var(--brand); font-weight: 700; background: var(--soft); }

/* ---------- Metric strip ---------- */
.metric-strip { background: var(--soft); border-bottom: 1px solid var(--line); }
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 22px 0;
}
.metric { border-left: 3px solid var(--accent); padding-left: 14px; }
.metric strong { display: block; color: var(--brand); font-size: .95rem; }
.metric span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section.soft { background: var(--soft); }
.section-heading { margin-bottom: 30px; max-width: 780px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.kicker {
  color: var(--steel); font-size: .76rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px;
}
.section-heading h2 { font-size: 1.75rem; margin: 0 0 10px; }
.section-heading p { color: var(--muted); margin: 0; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .12s, box-shadow .12s;
}
.card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.card h3 { font-size: 1.06rem; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }

.category-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.category-media {
  display: flex; align-items: center; justify-content: center;
  height: 230px; padding: 8px; background: var(--white);
  border-bottom: 1px solid var(--soft); overflow: hidden;
}
.category-media img { width: 100%; height: 100%; max-height: 218px; object-fit: contain; }
.category-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.category-card-body h3 { padding: 0; margin: 0 0 7px; font-size: 1.06rem; }
.category-card-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.category-card-body p { padding: 0; margin: 0 0 8px; color: var(--muted); font-size: .92rem; }

/* nút nhỏ trong card */
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.btn-sm {
  flex: 1; text-align: center; padding: 9px 10px; border-radius: 6px;
  font-weight: 700; font-size: .85rem; transition: filter .12s, background .12s, color .12s;
}
.btn-primary { background: var(--accent); color: var(--brand-dark); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { background: var(--white); color: var(--brand); border: 1px solid var(--brand); }
.btn-outline:hover { background: var(--soft); }

/* ảnh phóng to được */
.zoomable { cursor: zoom-in; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 14, 30, .88);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  animation: lbfade .16s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 90vh; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }

/* gợi ý bấm phóng to trên gallery sản phẩm */
.product-gallery .gallery-main { position: relative; }
.product-gallery .gallery-main img { cursor: zoom-in; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(0,45,114,.86); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; pointer-events: none; opacity: .9;
}

/* nút "Thông tin" trong bảng model */
.model-table a.doc-view {
  display: inline-block; background: var(--steel-soft); color: var(--brand);
  padding: 5px 13px; border-radius: 6px; font-weight: 700; font-size: .82rem;
  text-decoration: none; transition: background .12s;
}
.model-table a.doc-view:hover { background: #d3e2e9; text-decoration: none; }
.doc-none { color: var(--line); }

/* cửa sổ đọc PDF (doc modal) */
.docmodal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(4,14,30,.9); display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: lbfade .16s ease;
}
.docmodal[hidden] { display: none; }
.docmodal-inner {
  width: min(1000px, 96vw); height: min(88vh, 920px);
  background: #fff; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.docmodal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px 11px 18px; background: var(--brand); color: #fff;
}
.docmodal-title { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docmodal-tools { display: flex; gap: 8px; flex-shrink: 0; }
.dm-btn {
  background: rgba(255,255,255,.16); color: #fff; border: 0;
  padding: 8px 14px; border-radius: 6px; font-weight: 700; font-size: .84rem; cursor: pointer;
}
.dm-btn:hover { background: rgba(255,255,255,.3); }
#docDl.dm-btn { background: var(--accent); color: var(--brand-dark); }
#docDl.dm-btn:hover { filter: brightness(1.05); }
.docmodal iframe { flex: 1; width: 100%; border: 0; background: #eef2f5; }
@media (max-width: 560px) {
  .docmodal { padding: 0; }
  .docmodal-inner { width: 100vw; height: 100vh; border-radius: 0; }
  .docmodal-title { font-size: .82rem; }
}

/* ---- ảnh đại diện blog ---- */
.post-hero {
  margin: 4px 0 26px; padding: 18px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.post-hero img { max-height: 360px; width: auto; max-width: 100%; object-fit: contain; }
.post-card-media {
  display: flex; align-items: center; justify-content: center;
  height: 200px; padding: 12px; background: var(--white);
  border-bottom: 1px solid var(--soft); overflow: hidden;
}
.post-card-media img { max-height: 176px; max-width: 100%; object-fit: contain; transition: transform .15s; }
.post-card-media:hover img { transform: scale(1.03); }

/* ---- trang Về chúng tôi ---- */
.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.about-copy h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.about-copy p { margin: 0 0 14px; color: var(--ink); }
.about-figure {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
}
.about-figure img { width: 100%; height: 360px; object-fit: cover; display: block; }
.about-figure.contain { padding: 16px; }
.about-figure.contain img { height: 328px; object-fit: contain; }
.about-band { position: relative; height: 360px; overflow: hidden; }
.about-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-band-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 0;
  background: linear-gradient(transparent, rgba(0,29,77,.78));
}
.about-band-cap span {
  display: block; width: min(var(--container), calc(100% - 40px)); margin: 0 auto;
  color: #fff; font-size: 1.2rem; font-weight: 800;
}
.about-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; gap: 24px; }
  .about-split.reverse .about-figure { order: 2; }
  .about-figure img { height: 280px; }
  .about-band { height: 240px; }
  .about-contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (trang trong) ---------- */
.page-hero {
  background-color: var(--brand); color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(0,22,56,.93) 0%, rgba(0,29,77,.85) 60%, rgba(0,35,92,.74) 100%),
    url('/assets/img/control-valves/general-purpose-control-valves/gestra_pn9000_actuator_sp500_positioner_installation_01.webp');
  background-size: cover; background-position: center;
}
.page-hero-inner { padding: 52px 0 46px; max-width: 860px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 800; margin: 0 0 12px; }
.page-hero .lead { color: rgba(255,255,255,.85); margin: 0 0 8px; }
.page-hero .hero-actions .button-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 14px 0 2px; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--steel); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 6px; color: var(--line); }

/* ---------- Product page ---------- */
.product-head { padding-top: 30px; }
.product-layout {
  display: grid; grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 44px; align-items: start;
}
.product-gallery .gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 300px;
}
.product-gallery .gallery-main img { max-height: 350px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs img {
  width: 86px; height: 86px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 4px; background: var(--white); padding: 8px;
}
.product-copy h1 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 6px 0 14px; }
.product-copy .lead { margin: 0 0 22px; }
.product-copy .search-note { color: var(--muted); font-size: .84rem; margin-top: 16px; }
.product-copy .search-note a { color: var(--steel); text-decoration: underline; }

.feature-block { margin: 0 0 38px; }
.feature-block:last-child { margin-bottom: 0; }
.feature-block h2 { font-size: 1.35rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--soft); }
.feature-block p { color: var(--ink); max-width: 860px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; max-width: 860px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--steel); font-weight: 800;
}

/* model table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.model-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.model-table th {
  background: var(--brand); color: var(--white); text-align: left;
  padding: 11px 16px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.model-table td { padding: 10px 16px; border-bottom: 1px solid var(--soft); }
.model-table tr:last-child td { border-bottom: none; }
.model-table tr:hover td { background: #f6f9fb; }
.model-table .code { font-weight: 700; color: var(--brand); white-space: nowrap; }
.model-table a { color: var(--steel); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.model-table a:hover { color: var(--brand); }

/* documents */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--white);
}
.doc-list li:hover { border-color: var(--steel); }
.doc-list a { color: var(--brand); font-weight: 600; font-size: .93rem; }
.doc-list a:hover { text-decoration: underline; text-underline-offset: 2px; }
.doc-tag {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 3px; background: var(--steel-soft); color: var(--brand); white-space: nowrap;
}
.doc-tag.doc-manual { background: #faf6dd; color: #6f6410; }
.doc-tag.doc-conformity { background: #e9f0e9; color: #2f6b43; }
.doc-tag.doc-brochure { background: #f3e7ed; color: #910048; }
.doc-ref { color: var(--muted); font-size: .78rem; margin-left: auto; }

/* RFQ banner */
.rfq-banner {
  display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--brand); color: var(--white);
  border-radius: var(--radius); padding: 32px 36px;
}
.rfq-banner h2 { color: var(--white); margin: 0 0 8px; font-size: 1.35rem; }
.rfq-banner p { margin: 0; color: rgba(255,255,255,.8); max-width: 660px; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 30px; align-items: start; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--brand); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel);
}
.field textarea { min-height: 120px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.contact-stack { display: flex; flex-direction: column; gap: 14px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-card h3 { margin: 0 0 8px; font-size: 1rem; }
.contact-card p { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.contact-card strong { display: block; font-size: .92rem; color: var(--brand); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.78); margin-top: 40px; }
.footer-inner { padding: 46px 0 26px; }
.footer-kicker {
  color: var(--accent); font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px;
}
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo .brand-mark { background: var(--white); color: var(--brand); }
.footer-logo-title { display: block; font-weight: 800; color: var(--white); }
.footer-logo-sub { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-company { font-size: .84rem; display: grid; gap: 2px; }
.footer-company strong { color: var(--white); }
.footer-column h3 { color: var(--white); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { font-size: .89rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { display: grid; gap: 12px; font-size: .88rem; }
.footer-contact span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-contact p { margin: 2px 0 0; }
.footer-contact a { color: var(--white); font-weight: 600; }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-cta strong { display: block; color: var(--white); font-size: 1.05rem; }
.footer-cta span { font-size: .88rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.8); }

/* ---------- Blog ---------- */
.article-wrap { padding-top: 34px; }
.article-body { max-width: 800px; }
.article-body h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 8px 0 10px; }
.post-meta { color: var(--muted); font-size: .85rem; margin: 0 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-body h2 { font-size: 1.4rem; margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--soft); }
.article-body h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body .lead { color: var(--muted); font-size: 1.06rem; }
.article-body a { color: var(--steel); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }.article-body a:hover { color: var(--brand); }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 0 0 20px; }
.article-body th { background: var(--brand); color: var(--white); text-align: left; padding: 9px 12px; font-size: .8rem; }
.article-body th a, .article-body th { color: var(--white); }
.article-body th a { text-decoration: underline; }
.article-body td { padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }
.article-body tr:nth-child(even) td { background: #f8fafc; }
.article-body em { color: var(--muted); }
.promo-box {
  margin: 36px 0 8px; padding: 26px 28px;
  background: var(--soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}
.promo-box h3 { margin: 4px 0 10px; font-size: 1.12rem; }
.promo-box p { color: var(--ink); font-size: .93rem; margin: 0 0 16px; }
.post-card { padding: 0 0 18px; }
.post-card .kicker { padding: 18px 20px 0; margin-bottom: 0; }
.post-card h3 { padding: 8px 20px 0; }
.post-card p { padding: 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 26px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 52px 0 46px; }
  .section { padding: 44px 0; }
}

/* ---------- Menu hamburger mobile (CSS-only) ---------- */
.nav-open-toggle { display: none; }
.nav-burger { display: none; }
@media (max-width: 920px) {
  .header-inner { flex-wrap: nowrap; justify-content: space-between; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    padding: 12px; margin-right: -6px; cursor: pointer; border-radius: 4px;
  }
  .nav-burger span {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: var(--brand); transition: transform .2s, opacity .2s;
  }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 20px 18px;
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-open-toggle:checked ~ .nav { display: flex; }
  .nav-open-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-open-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav > a, .nav-dropdown summary { padding: 12px 10px; font-size: 1rem; }
  .nav-dropdown summary { display: flex; align-items: center; justify-content: space-between; }
  .nav-dropdown-panel {
    position: static; min-width: 0; box-shadow: none; border: 0;
    padding: 0 0 4px 14px; background: transparent;
  }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .search-panel { flex-direction: column; }
  .search-panel .search-ic { display: none; }
  .search-panel input { padding-left: 14px; }
  .search-panel .button { width: 100%; }
}

/* ============================================================
   Bổ sung: tra mã trang chủ + form liên hệ (v2)
   ============================================================ */

/* ---- ô tra mã lớn + icon ---- */
.search-panel-lg { max-width: 720px; padding: 10px; border-radius: 10px; }
.search-panel .search-ic {
  display: grid; place-items: center; padding-left: 12px; color: var(--steel);
}
.search-panel-lg input { padding: 14px 14px 14px 8px; font-size: 1.05rem; }
.search-panel-lg .button { padding-inline: 26px; border-radius: 6px; }

/* ---- chips tra nhanh ---- */
.search-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips-label { color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.chip {
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06);
  color: #fff; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: .86rem; font-weight: 700; transition: background .12s, border-color .12s;
}
.chip:hover { background: var(--accent); color: var(--brand-dark); border-color: var(--accent); }

/* ---- lưới kết quả tức thì trên trang chủ ---- */
.home-search { background: var(--soft); border-bottom: 1px solid var(--line); padding: 30px 0 40px; }
.home-search[hidden] { display: none; }
.home-search-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.home-search-head h2 { font-size: 1.2rem; margin: 0; }
.hr-clear {
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .84rem;
}
.hr-clear:hover { color: var(--brand); border-color: var(--steel); }

/* ---- result cards (dùng chung trang chủ + /tim-kiem/) ---- */
.rcard { border: 1px solid var(--line); border-radius: 12px; background: var(--white); display: flex; flex-direction: column; transition: border-color .12s, box-shadow .12s; }
.rcard:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.rcard .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rcard .code { font-weight: 800; color: var(--brand); }
.rcard .grp { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.rcard .act { margin-top: auto; display: flex; gap: 8px; padding-top: 10px; }
.rcard .act a { flex: 1; text-align: center; font-size: .82rem; padding: 9px 6px; border-radius: 7px; font-weight: 700; }
.rcard .act .v { background: var(--brand); color: #fff; }
.rcard .act .v:hover { background: var(--brand-dark); }
.rcard .act .r { background: var(--steel-soft); color: var(--brand); }
.rcard .act .r:hover { background: #d6e4ea; }
.sr-cat { display: flex; flex-wrap: wrap; gap: 12px; }
.sr-cat a { flex: 1 1 220px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--white); font-size: .86rem; color: var(--muted); transition: border-color .12s; }
.sr-cat a:hover { border-color: var(--steel); }
.sr-cat a b { color: var(--brand); display: block; margin-bottom: 3px; font-size: .98rem; }
.sr-empty { text-align: center; color: var(--muted); padding: 26px; }

/* ---- trang liên hệ: bài giới thiệu ---- */
.contact-intro { max-width: 900px; margin: 0 auto; }
.contact-intro h2 { font-size: 1.7rem; margin: 6px 0 14px; }
.contact-intro h3 { font-size: 1.14rem; margin: 26px 0 8px; color: var(--brand); }
.contact-intro p { margin: 0 0 15px; }
.contact-intro .lead { color: var(--muted); font-size: 1.08rem; }

/* ---- form RFQ đẹp hơn ---- */
.form-panel { padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.form-head {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 26px 28px;
}
.form-head .kicker { color: var(--accent); margin-bottom: 6px; }
.form-head h2 { color: #fff; margin: 0 0 8px; font-size: 1.4rem; }
.form-head p { margin: 0; color: rgba(255,255,255,.82); font-size: .92rem; }
.form-body { padding: 26px 28px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.field .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); background: #fbfcfd; transition: border-color .12s, box-shadow .12s, background .12s;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa6b0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); background: #fff;
  box-shadow: 0 0 0 3px rgba(71,125,148,.18);
}
.form-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.form-actions .button-primary { padding-inline: 30px; }

/* ---- contact cards đẹp hơn ---- */
.contact-card { border-radius: 10px; }
.contact-card-primary { border-color: var(--steel); border-top: 3px solid var(--accent); }
.contact-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines .ci { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.contact-lines a { color: var(--brand); font-weight: 700; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 2px; }
.contact-lines span:not(.ci) { color: var(--ink); font-size: .9rem; }

/* ---- hình ảnh trang liên hệ ---- */
.contact-figure {
  margin: 6px 0 28px; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--white); box-shadow: var(--shadow);
}
.contact-figure img { width: 100%; height: auto; display: block; }
.contact-figure figcaption {
  padding: 11px 18px; font-size: .84rem; color: var(--muted);
  background: var(--soft); border-top: 1px solid var(--line);
}
.contact-figure figcaption strong { color: var(--brand); font-weight: 700; }
.contact-figure.float {
  float: right; width: 340px; max-width: 42%; margin: 6px 0 18px 28px;
}
.contact-figure.hero img { height: 320px; object-fit: cover; }
@media (max-width: 640px) {
  .contact-figure.float { float: none; width: auto; max-width: none; margin: 6px 0 24px; }
  .contact-figure.hero img { height: 210px; }
}
.contact-card-media {
  margin: -20px -20px 16px; overflow: hidden; border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--line); position: relative;
}
.contact-card-media img { width: 100%; height: 148px; object-fit: cover; display: block; }
.contact-card-media .cm-tag {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,29,77,.82); backdrop-filter: blur(2px);
}

/* ---- FAQ (câu hỏi thường gặp) ---- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; color: var(--brand);
  position: relative; padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; font-weight: 700; color: var(--steel);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 12px 16px 16px; }
.faq-a p { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.6; }
.faq-a a { color: var(--brand); font-weight: 600; }

/* ---- khối tin cậy ---- */
.trust-block .checklist { margin-top: 10px; }

/* ---- link blog liên quan ---- */
.blog-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.blog-link {
  display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  background: #fff; transition: border-color .12s, box-shadow .12s;
}
.blog-link:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.blog-link b { display: block; color: var(--brand); margin-bottom: 4px; font-size: .95rem; line-height: 1.35; }
.blog-link span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }

