/* ============================================================
   ANEST IWATA VIETNAM CATALOGUE — DESIGN SYSTEM
   Bảng màu riêng: Navy công nghiệp + Xanh dương năng lượng
   (không sao chép bảng màu/CSS trang nguồn anestiwataamericas.com)
   ============================================================ */

:root {
  --navy-950: #071427;
  --navy-900: #0c1f3d;
  --navy-800: #12294f;
  --navy-700: #1a3766;
  --navy-600: #234a86;
  --navy-100: #e7ecf5;
  --navy-50:  #f3f6fb;

  --flame-600: #0e5fc2;
  --flame-500: #1877e0;
  --flame-400: #4d9bef;
  --flame-100: #dcebfd;

  --steel-700: #48556b;
  --steel-500: #6b7789;
  --steel-300: #aab3c0;
  --steel-100: #e7eaef;

  --bg: #f6f7fa;
  --surface: #ffffff;
  --text: #16202e;
  --text-muted: #5b6779;
  --border: #e2e6ee;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 20, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 20, 40, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 20, 40, 0.16);

  --container: 1240px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--flame-500); color: #fff; }
.btn-primary:hover { background: var(--flame-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--navy-700); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--steel-300);
  font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--steel-300); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links span { color: var(--flame-400); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy-900); }
.logo .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--flame-500), var(--flame-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
}
.logo .brand-sub { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--navy-50); color: var(--flame-600); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-50); color: var(--navy-800);
  border: none; cursor: pointer;
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 20%, var(--navy-700), var(--navy-950) 70%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,76,34,0.35), transparent 70%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(234,76,34,0.16);
  color: var(--flame-400);
  border: 1px solid rgba(234,76,34,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero h1 span { color: var(--flame-400); }
.hero p { font-size: 17px; color: var(--steel-300); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 44px; }
.hero-stats div strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats div span { font-size: 13px; color: var(--steel-300); }
.hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-visual img { border-radius: var(--radius-md); width: 100%; }

/* ---------- Section headings ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }
.section-eyebrow { color: var(--flame-600); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.section-head h2 { font-size: 30px; font-weight: 800; color: var(--navy-900); }
.section-head p { color: var(--text-muted); max-width: 560px; margin-top: 8px; }

/* ---------- Category grid (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--flame-400); }
.cat-card .cat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--navy-50);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}
.cat-card h3 { font-size: 15px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.cat-card span { font-size: 12px; color: var(--text-muted); }

/* ---------- Product grid ---------- */
.product-toolbar {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 24px;
}
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 14px; font-family: var(--font);
}
.search-box::before { content: "🔍"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: 0.5; }
.result-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab-chip {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--navy-50); color: var(--navy-800); cursor: pointer; border: 1px solid transparent;
}
.tab-chip.active { background: var(--navy-900); color: #fff; }
.subcat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.subcat-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--flame-100); color: var(--flame-600); cursor: pointer; border: 1px solid transparent;
}
.subcat-chip.active { background: var(--flame-500); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--navy-600); }
.product-card .thumb {
  aspect-ratio: 4/3; background: var(--navy-50);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  position: relative;
}
.product-card .thumb img { max-height: 100%; object-fit: contain; }
.product-card .cat-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--navy-900); color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 15px; font-weight: 700; color: var(--navy-900); }
.product-card p { font-size: 13px; color: var(--text-muted); flex: 1; }
.product-card .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.link-arrow { font-size: 13px; font-weight: 700; color: var(--flame-600); }
.link-arrow:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.img-broken img { display: none; }
.img-broken::after { content: "Ảnh đang cập nhật"; font-size: 12px; color: var(--text-muted); }
.pd-image.img-broken::after { content: "Ảnh sản phẩm đang cập nhật"; }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--flame-600); }
.pd-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; margin-bottom: 60px; }
.pd-image { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.pd-image img { max-height: 360px; }
.pd-info .cat-tag-lg { display: inline-block; background: var(--flame-100); color: var(--flame-600); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.pd-info h1 { font-size: 32px; font-weight: 800; color: var(--navy-900); margin-bottom: 14px; }
.pd-info .lead { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.pd-info .actions { display: flex; gap: 12px; margin-bottom: 30px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--navy-50); padding: 12px 14px; border-radius: var(--radius-sm); }
.feature-list .emoji { font-size: 18px; }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 30px; }
.tab-btn { padding: 12px 22px; font-weight: 700; font-size: 14px; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--navy-900); border-color: var(--flame-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.spec-table tr:nth-child(even) { background: var(--navy-50); }
.spec-table td { padding: 13px 20px; font-size: 14px; }
.spec-table td:first-child { font-weight: 700; color: var(--navy-800); width: 40%; }

.app-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-list li { background: var(--navy-900); color: #fff; font-size: 13px; padding: 8px 16px; border-radius: 999px; }

.why-box { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 30px 34px; border-radius: var(--radius-lg); margin-top: 20px; }
.why-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--flame-400); margin-bottom: 10px; }

.why-us { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 30px; }
.why-us .item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.why-us .item .ic { font-size: 28px; margin-bottom: 10px; }
.why-us .item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--navy-900); }
.why-us .item p { font-size: 12px; color: var(--text-muted); }

.company-why { background: linear-gradient(135deg, var(--flame-500), var(--flame-600)); color: #fff; padding: 32px 36px; border-radius: var(--radius-lg); margin-top: 30px; }
.company-why h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.company-why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 24px; }
.company-why-list li { font-size: 14px; line-height: 1.5; }
.company-why-contact { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.25); }
.company-why-contact h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; margin-bottom: 10px; }
.company-why-contact p { font-size: 15px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 6px; }
.company-why-contact a { color: #fff; text-decoration: underline; }
.zalo-link { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.18); padding: 7px 14px 7px 8px; border-radius: 999px; text-decoration: none !important; font-size: 14px; }
.zalo-link:hover { background: rgba(255,255,255,0.3); }
.zalo-link svg { flex-shrink: 0; }
@media (max-width: 640px) { .company-why-list { grid-template-columns: 1fr; } }

.related-title { font-size: 22px; font-weight: 800; color: var(--navy-900); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--flame-400); }
.footer-brand p { font-size: 13px; margin: 14px 0; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .why-us { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .why-us { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
