:root {
  --ink: #142033;
  --muted: #5c6b7e;
  --line: #e4e9f0;
  --paper: #f4f6f8;
  --card: #ffffff;
  --navy: #12304f;
  --navy-2: #0c2238;
  --amber: #e37b12;
  --amber-2: #c45f00;
  --price: #c2410c;
  --ok: #0f766e;
  --shadow: 0 12px 30px rgba(18, 48, 79, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 "Be Vietnam Pro", "Segoe UI", sans-serif;
  padding-bottom: 72px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar { background: var(--navy-2); color: #d7e4f2; font-size: 13px; }
.topbar-inner { display: flex; gap: 18px; justify-content: space-between; padding: 8px 0; }
.topbar a { color: #ffd7a8; font-weight: 700; }

.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 0; }
.logo { display: flex; gap: 10px; align-items: center; }
.logo strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.logo small { color: var(--muted); font-size: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(160deg, var(--amber), #9a3412);
}
.search { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 16px; outline: none; }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 18px; font-weight: 700; cursor: pointer; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.hotline { display: flex; flex-direction: column; line-height: 1.15; padding: 6px 10px; }
.hotline span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hotline strong { color: var(--amber-2); }
.cart-pill, .menu-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font-weight: 700; cursor: pointer;
}
.cart-pill b {
  background: var(--amber); color: #fff; border-radius: 99px; padding: 0 6px; margin-left: 4px; font-size: 12px;
}
.menu-btn { display: none; }
.nav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 6px; overflow: auto; padding: 8px 0 10px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--navy); font-weight: 600; white-space: nowrap; }
.nav a.active, .nav a:hover { background: #e8f0f8; }

.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(227, 123, 18, 0.35), transparent 28%),
    linear-gradient(160deg, #12304f 0%, #1d4e79 55%, #0c2238 100%);
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; padding: 48px 0 42px; align-items: center; }
.eyebrow { color: #ffd7a8; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.03em; }
.hero p { color: #d5e4f2; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; border: 0; cursor: pointer;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px; padding: 18px;
}
.hero-card li { list-style: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero-card ul { margin: 0; padding: 0; }
.hero-card strong { display: block; }

.section { padding: 34px 0; }
.section h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.03em; }
.lead { color: var(--muted); margin: 0 0 18px; }

.cat-grid, .product-grid, .why-grid, .footer-grid { display: grid; gap: 14px; }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.cat-card, .card, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cat-card { padding: 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; }
.cat-card span { color: var(--amber-2); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.cat-card strong { font-size: 20px; display: block; margin: 4px 0; }
.cat-card p { margin: 0; color: var(--muted); font-size: 13px; }
.cat-dieu-hoa { background: linear-gradient(180deg, #fff, #e7f3ff); }
.cat-may-giat { background: linear-gradient(180deg, #fff, #eefbf6); }
.cat-binh-nong-lanh { background: linear-gradient(180deg, #fff, #fff4e8); }
.cat-tu-lanh { background: linear-gradient(180deg, #fff, #f3f0ff); }

.card { overflow: hidden; display: flex; flex-direction: column; }
.thumb {
  height: 148px; display: grid; place-items: center; color: var(--navy);
  font-weight: 800; letter-spacing: 0.04em; background: #e8eef5;
}
.thumb small { display: block; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.card-body, .panel { padding: 14px; }
.badge {
  display: inline-block; background: #fff4e8; color: var(--amber-2);
  border-radius: 99px; padding: 2px 8px; font-size: 12px; font-weight: 700; margin-bottom: 6px;
}
.card h3 { font-size: 15px; margin: 0 0 8px; min-height: 44px; }
.price { color: var(--price); font-size: 18px; font-weight: 800; }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-left: 6px; font-weight: 500; }
.card .btn { margin-top: 12px; width: 100%; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select, .field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff;
}
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 600;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.product-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 12px; }
.specs td { border-bottom: 1px solid var(--line); padding: 8px 0; }
.specs td:first-child { color: var(--muted); width: 40%; }
.qty { display: flex; gap: 8px; align-items: center; margin: 14px 0; }
.qty input { width: 72px; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.cart-table th, .cart-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 16px; align-items: start; }
.form-grid { display: grid; gap: 12px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.note, .alert {
  background: #fff8ef; border-left: 4px solid var(--amber); padding: 12px 14px; border-radius: 10px; color: #7c4a12;
}
.ok-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 16px; padding: 16px; }
.order-text {
  width: 100%; min-height: 180px; border-radius: 12px; border: 1px solid var(--line); padding: 12px; background: #0f172a; color: #e2e8f0;
}

.why-grid article, .prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.split { display: grid; gap: 14px; grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.prose h1 { margin-top: 0; }
.footer { background: var(--navy-2); color: #d5e2ef; margin-top: 20px; padding: 32px 0 18px; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
.footer a, .footer p { display: block; color: #b7c9da; margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 18px; padding-top: 12px; font-size: 13px; color: #93a8bd; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; background: #fff; border-top: 1px solid var(--line);
}
.dock a { flex: 1; text-align: center; padding: 12px 4px; font-weight: 800; color: var(--navy); }
.dock a:nth-child(2) { background: #e8f7ee; color: #047857; }
.empty { padding: 28px; text-align: center; }

@media (max-width: 900px) {
  .header-row, .hero-grid, .product-layout, .cart-layout, .cat-grid, .why-grid, .footer-grid, .split { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .search { order: 3; grid-column: 1 / -1; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-row { flex-direction: column; }
  .hide-sm { display: none; }
  .dock { display: flex; }
  .hotline { display: none; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}
