:root {
  --wagner-yellow: #FFCC00;
  --wagner-black: #1a1a1a;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --border: #e5e3dd;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Top bar ===== */
.topbar { background: var(--wagner-black); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { opacity: .85; }
.topbar a:hover { opacity: 1; }
.topbar-links { display: flex; gap: 20px; }

/* ===== Header ===== */
header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.logo .mark {
  background: var(--wagner-yellow); color: var(--wagner-black);
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900;
}
nav.mainnav { display: flex; gap: 32px; font-weight: 600; font-size: 15px; }
nav.mainnav a { padding: 8px 0; border-bottom: 2px solid transparent; }
nav.mainnav a:hover, nav.mainnav a.active { border-color: var(--wagner-yellow); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: 2px solid var(--wagner-black);
}
.btn-primary { background: var(--wagner-yellow); color: var(--wagner-black); }
.btn-primary:hover { background: #e6b800; }
.btn-outline { background: transparent; color: var(--wagner-black); }
.btn-outline:hover { background: var(--wagner-black); color: #fff; }

/* ===== Hero ===== */
.hero {
  background-color: #1a1a1a;
  background-image: linear-gradient(120deg, rgba(15,15,15,.88) 40%, rgba(15,15,15,.55) 100%), var(--hero-bg-img);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  color: #fff; position: relative; overflow: hidden;
}
.hero .container {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero .eyebrow {
  color: var(--wagner-yellow); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: 44px; line-height: 1.15; font-weight: 800; margin-bottom: 18px; }
.hero p { color: #d8d8d8; font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; }
.hero-stats div { border-left: 3px solid var(--wagner-yellow); padding-left: 14px; }
.hero-stats strong { display: block; font-size: 24px; }
.hero-stats span { font-size: 13px; color: #c7c7c7; }
.hero-visual { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-visual img { border-radius: 8px; }

/* ===== Section shared ===== */
section { padding: 72px 0; }
section.block { padding: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 24px; }
.tag {
  color: #a8790a; background: #fff3cf; display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head p { color: var(--ink-soft); max-width: 560px; margin-top: 8px; font-size: 15px; }
.section-alt { background: var(--bg-soft); }
.link-more { font-weight: 700; font-size: 14px; white-space: nowrap; border-bottom: 2px solid var(--wagner-yellow); padding-bottom: 2px; }

/* ===== Product grid (catalog) ===== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; font-weight: 600;
  background: #fff; cursor: pointer;
}
.chip.active { background: var(--wagner-black); color: #fff; border-color: var(--wagner-black); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card .thumb {
  height: 180px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card .info { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; color: #a8790a; background: #fff3cf;
  padding: 3px 9px; border-radius: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px;
}
.product-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.product-card .row-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-weight: 700; font-size: 13px; color: var(--ink); }
.product-card .view { font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--wagner-yellow); }
.product-card[hidden] { display: none; }
.product-card .card-sku { display: none; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.product-card .card-sku strong { color: var(--ink); }

/* ===== Solutions ===== */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 220px; color: #fff; }
.solution-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: transform .3s ease; }
.solution-card:hover img { transform: scale(1.06); }
.solution-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
}
.solution-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.solution-card span { font-size: 12.5px; color: #f0e6c0; font-weight: 600; }

/* ===== Why us ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.why-card { padding: 28px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.why-card .ic {
  width: 52px; height: 52px; border-radius: 50%; background: var(--wagner-yellow);
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px;
}
.why-card h4 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ===== CTA band ===== */
.cta-band { background: var(--wagner-yellow); color: var(--wagner-black); text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { margin-bottom: 24px; font-size: 15px; }
.cta-band .btn { border-color: var(--wagner-black); }

/* ===== Footer ===== */
footer { background: var(--wagner-black); color: #c9c9c9; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
footer h5 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: .5px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 13.5px; }
footer a:hover { color: var(--wagner-yellow); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo .mark {
  background: var(--wagner-yellow); color: #111; width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; letter-spacing: .5px;
}
.footer-logo .fl-name { color: var(--wagner-yellow); font-weight: 800; font-size: 20px; letter-spacing: 1.5px; line-height: 1.1; }
.footer-logo .fl-tag { color: #c9ab3b; font-size: 10px; letter-spacing: 2px; margin-top: 3px; }
.footer-bottom { border-top: 1px solid #333; padding: 18px 0; font-size: 12.5px; color: #999; }

/* ===== Product detail page ===== */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 16px 0; }
.breadcrumb a:hover { color: #a8790a; }
.product-hero { padding: 20px 0 56px; }
.product-hero .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: flex-start; }
.product-gallery {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 30px; min-height: 380px;
}
.product-gallery img { max-height: 360px; object-fit: contain; }
.p-category {
  color: #a8790a; background: #fff3cf; display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.product-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.p-lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.p-code { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.p-code strong { color: var(--ink); }
.p-actions { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.p-trust { list-style: none; font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 8px; }
.p-trust li:before { content: "✅ "; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin: 48px 0 28px; font-weight: 700; font-size: 15px; }
.tabs span { padding-bottom: 14px; color: var(--ink-soft); }
.tabs span.active { color: var(--ink); border-bottom: 3px solid var(--wagner-yellow); }

.lead-desc { font-size: 15.5px; color: var(--ink-soft); max-width: 820px; margin-bottom: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.feature-item {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff;
  display: flex; gap: 14px; align-items: flex-start;
}
.feature-item .ic { font-size: 24px; line-height: 1; }
.feature-item p { font-size: 14px; color: var(--ink-soft); }

.spec-table { width: 100%; border-collapse: collapse; max-width: 820px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 14px 16px; font-size: 14.5px; }
.spec-table td:first-child { color: var(--ink-soft); width: 38%; background: var(--bg-soft); font-weight: 600; }
.spec-table td:last-child { font-weight: 700; }

.app-list { list-style: none; max-width: 820px; }
.app-list li {
  padding: 14px 18px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.app-list li:before { content: "▸"; color: var(--wagner-yellow); font-weight: 900; font-size: 18px; }

.why-band { background: var(--bg-soft); }
.why-list { list-style: none; font-size: 14.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 10px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.related-card .thumb { height: 150px; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.related-card .thumb img { max-height: 130px; object-fit: contain; padding: 10px; }
.related-card .info { padding: 14px; }
.related-card h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.related-card p { font-size: 12.5px; color: var(--ink-soft); }

.source-note { font-size: 12px; color: #999; text-align: center; padding: 20px 0; border-top: 1px solid var(--border); margin-top: 20px; }

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero .grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  nav.mainnav { display: none; }
}

/* ===== Mobile: bớt thông tin không cần thiết (không đổi desktop/tablet ở trên) ===== */
@media (max-width: 640px) {
  .topbar { display: none; }
  .header-cta .btn-outline { display: none; }
  .header-inner { height: 64px; }
  .logo { font-size: 20px; }
  .logo .mark { width: 34px; height: 34px; font-size: 18px; }

  .hero .container { padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 16px; }
  .hero-stats span { display: none; }
  .hero-visual { display: none; }

  section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 22px; }
  .link-more { display: none; }

  .why-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { height: 160px; }

  .footer-col-company { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .related-card .thumb { height: 100px; }
  .related-card .thumb img { max-height: 80px; }
  .related-card .info { padding: 10px; }
  .related-card h4 { font-size: 13px; }
  .related-card p { display: none; }

  /* Card sản phẩm: chỉ hiện tên + mã sản phẩm để rút ngắn chiều dài trang */
  .product-card .thumb { height: 130px; }
  .product-card .badge { display: none; }
  .product-card .card-desc { display: none; }
  .product-card .card-sku { display: block; margin-bottom: 10px; }
  .product-card h4 { font-size: 14px; margin-bottom: 4px; }
  .product-card .info { padding: 12px; }
  .product-card .price { display: none; }
  .product-card .row-bottom { justify-content: flex-end; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Contact page (Liên hệ) ===== */
.contact-lead { color: var(--ink-soft); font-size: 16px; max-width: 640px; margin: 14px 0 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }

.info-card {
  background: var(--bg-soft); border-left: 4px solid var(--wagner-yellow); border-radius: 8px;
  padding: 20px 22px; margin-bottom: 20px;
}
.info-card .info-label {
  color: #a8790a; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.info-card .info-main { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.info-card .info-sub { font-size: 13.5px; color: var(--ink-soft); }
.info-card .info-link { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; border-bottom: 2px solid var(--wagner-yellow); }

.dealer-note {
  font-size: 14px; color: var(--ink-soft); background: #fff3cf; border-radius: 8px; padding: 16px 18px; margin-top: 4px;
}
.dealer-note strong { color: var(--ink); }

.contact-form-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 28px; }
.contact-form-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.contact-form-card > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--wagner-yellow); }
.form-group textarea { resize: vertical; min-height: 110px; }
.contact-form-card .btn-primary { width: 100%; text-align: center; border: none; font-size: 15px; padding: 13px 20px; }
.contact-form-card .btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.form-status { padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.form-status-success { background: #eaf7ea; color: #1e7d1e; border: 1px solid #bfe6bf; }
.form-status-error { background: #fdecec; color: #b42318; border: 1px solid #f6c6c2; }

.map-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
