/* ========================
   M.C.K. Steel Centre — Design System
   Industrial Red / Steel Gray / Corporate
======================== */
:root {
  /* PRIMARY: Bright Red — M.C.K. "Clean Catalog" (Direction A) */
  --navy-900: #6e1018;  /* deep red — footer / strip bg */
  --navy-800: #9a1623;  /* hover / gradient end */
  --navy-700: #c0202f;  /* PRIMARY brand red (MCK) */
  --navy-600: #e23b2e;  /* bright red accent */
  --blue-500: #e23b2e;  /* ACCENT (red bright) */
  --blue-100: #fbe9e7;  /* pink tint surface */
  --blue-50:  #fbf1f0;  /* pink tint surface (faint) */

  --green: #1f8a5b;     /* success / in-stock */
  --green-bg: #e7f6ee;

  --ink-950: #0a0c0f;
  --ink-900: #15181c;   /* ink / heading */
  --ink-800: #1a1d21;
  --ink-700: #4a5159;   /* body text */
  --ink-600: #5a616a;
  --ink-500: #7a808a;   /* muted */
  --ink-400: #a09b94;   /* faint / mono caption */
  --ink-300: #dcd9d5;
  --ink-200: #eceae7;   /* hairline border */
  --ink-100: #f3f1ee;
  --ink-50:  #fcfbfa;   /* warm white page bg */
  --white:   #ffffff;

  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #b91c1c;
  --red-bg: #fee2e2;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(21,24,28,0.04), 0 1px 1px rgba(21,24,28,0.03);
  --shadow:    0 4px 14px rgba(192,32,47,0.10), 0 1px 2px rgba(21,24,28,0.04);
  --shadow-lg: 0 14px 40px rgba(192,32,47,0.16), 0 4px 8px rgba(21,24,28,0.04);
  --glow-primary: 0 0 0 4px rgba(192,32,47,0.20);

  --font-th: "Anuphan", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-en: "Archivo", "Inter", system-ui, sans-serif;
  --font-mono: "Archivo", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* chat page — lock page scroll, ให้ flex chain จัดการ scroll ภายใน */
html:has(.chat-mode),
body:has(.chat-mode) { overflow: hidden; height: 100%; }
.chat-mode { height: 100dvh !important; overflow: hidden; }
.chat-mode main { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
body {
  font-family: var(--font-th);
  background: var(--ink-50);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
/* ซ่อนเฉพาะสายตา แต่ screen reader ยังอ่านได้ (accessibility) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ========================
   APP SHELL
======================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  background: #fff;
  color: var(--ink-800);
  border-bottom: 1px solid var(--ink-200);
}
.topbar-strip {
  background: #9a1623;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 3px 0;
  border-bottom: none;
}
.topbar-strip .wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; gap: 24px; }
.topbar-strip .right { display: flex; gap: 18px; }
.topbar-strip a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); }
.topbar-strip a:hover { color: #fff; }

.topbar-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-name { line-height: 1.1; }
.brand-name .th { font-weight: 600; font-size: 15px; }
.brand-name .en { font-size: 11px; opacity: 0.7; font-family: var(--font-en); letter-spacing: 0.04em; text-transform: uppercase; }

.topbar-search { flex: 1; max-width: 560px; position: relative; }
.topbar-search input {
  width: 100%;
  padding: 7px 46px 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  color: var(--ink-900);
  outline: none;
}
.topbar-search input::placeholder { color: var(--ink-400); }
.topbar-search input:focus { background: #fff; color: var(--ink-900); border-color: var(--navy-700); }
.topbar-search input:focus::placeholder { color: var(--ink-300); }
.topbar-search .search-go:hover { color: var(--red) !important; }

/* Placeholder ทั่วเว็บ: สีจางชัดเจน + เอียง กันสับสนว่ากรอกข้อมูลแล้ว (ตัวอย่างข้อความ ≠ ค่าจริง) */
input::placeholder, textarea::placeholder { color: var(--ink-300); opacity: 1; font-style: italic; }

/* ── Search autocomplete dropdown ─────────────────────────── */
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--ink-200, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 9000;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px;
}
.search-suggest-empty { padding: 18px 16px; color: var(--ink-400, #9ca3af); font-size: 14px; text-align: center; }
.search-suggest-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: inherit; cursor: pointer;
}
.search-suggest-row:hover { background: var(--ink-50, #f9fafb); }
.search-suggest-row .ss-img {
  position: relative;
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; overflow: hidden;
  background: var(--ink-50, #f3f4f6); display: block;
}
.search-suggest-row .ss-img img { width: 100%; height: 100%; object-fit: contain; }
.search-suggest-row .ss-info { flex: 1; min-width: 0; }
.search-suggest-row .ss-name {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--blue-600, #1e40af);
  line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-suggest-row .ss-sku { display: block; font-size: 11.5px; color: var(--ink-400, #9ca3af); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest-row .ss-right { flex: 0 0 auto; text-align: right; }
.search-suggest-row .ss-price { display: block; font-size: 14px; font-weight: 700; color: var(--ink-800, #1f2937); }
.search-suggest-row .ss-stock { display: block; font-size: 11px; margin-top: 1px; }
.search-suggest-row .ss-stock.in { color: #16a34a; }
.search-suggest-row .ss-stock.out { color: #dc2626; }
.search-suggest-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px; margin-top: 4px;
  border: none; border-top: 1px solid var(--ink-100, #f3f4f6);
  background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--blue-600, #1e40af);
  border-radius: 0 0 9px 9px;
}
.search-suggest-all:hover { background: var(--blue-50, #eff6ff); }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  border: none; background: transparent; color: var(--ink-700);
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--ink-100); color: var(--navy-700); }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #f97316; color: white;
  border-radius: 9px; font-size: 11px;
  display: grid; place-items: center; font-weight: 600;
  font-family: var(--font-en);
}

.nav {
  background: white;
  border-bottom: 1px solid var(--ink-200);
}
.nav-wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.nav a {
  padding: 11px 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy-700); }
.nav a.active { color: var(--navy-700); border-bottom-color: var(--navy-700); font-weight: 600; }
.nav .spacer { flex: 1; }
.nav .pill { background: var(--blue-50); color: var(--navy-700); padding: 2px 8px; border-radius: 999px; font-size: 11px; }

/* Nav dropdown trigger */
.nav-dd { display: inline-flex; align-items: center; cursor: pointer; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 4px; }

/* main content */
main { flex: 1; }
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0 0 4px; font-weight: 700; letter-spacing: -0.01em; }
.page-head .crumb { font-size: 12px; color: var(--ink-500); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.page-head .crumb a { color: var(--ink-500); cursor: pointer; }
.page-head .crumb a:hover { color: var(--navy-700); }

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  background: white;
  color: var(--ink-900);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: var(--ink-100); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--navy-700); color: white; border-color: var(--navy-700);
}
.btn-primary:hover { background: var(--navy-800); border-color: var(--navy-800); }

.btn-accent {
  background: var(--blue-500); color: white; border-color: var(--blue-500);
}
.btn-accent:hover { background: #1761d4; border-color: #1761d4; }

.btn-outline {
  background: white; color: var(--navy-700); border-color: var(--ink-200);
}
.btn-outline:hover { border-color: var(--navy-700); background: var(--blue-50); }

.btn-ghost { background: transparent; color: var(--ink-700); border: none; }
.btn-ghost:hover { background: var(--ink-100); }

.btn-danger { background: white; color: var(--red); border-color: var(--ink-200); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }

.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ========================
   CARD
======================== */
.card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-200);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

/* ========================
   PRODUCT CARDS
======================== */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: flex-start; }

.filter-card { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.filter-group { padding: 16px 20px; border-bottom: 1px solid var(--ink-200); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 12px; font-weight: 600; color: var(--ink-500); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.filter-item { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13.5px; cursor: pointer; color: var(--ink-700); }
.filter-item input[type="checkbox"], .filter-item input[type="radio"] { accent-color: var(--navy-700); width: 16px; height: 16px; }
.filter-item:hover { color: var(--navy-700); }
.filter-item .count { margin-left: auto; color: var(--ink-400); font-size: 12px; font-family: var(--font-en); }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .result-count { color: var(--ink-500); font-size: 13px; }
.toolbar .spacer { flex: 1; }
.toolbar select {
  padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--ink-200);
  background: white; font-size: 13px;
}
.toolbar .view-toggle { display: flex; background: white; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 2px; }
.toolbar .view-toggle button { border: none; background: transparent; padding: 6px 10px; border-radius: 6px; color: var(--ink-500); }
.toolbar .view-toggle button.active { background: var(--navy-700); color: white; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.15s;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-img {
  aspect-ratio: 1 / 1;
  background: var(--ink-50);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-200);
}
.product-img .ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(11, 58, 130, 0.04) 12px 13px),
    var(--ink-50);
  display: grid; place-items: center;
  color: var(--ink-400);
  font-family: var(--font-mono); font-size: 11px;
}
.product-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--navy-700); color: white;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.product-tag.new { background: var(--green); }
.product-tag.sale { background: #dc2626; }
.product-tag.hot { background: #ea580c; }
.product-fav {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: white; border: 1px solid var(--ink-200); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink-400);
}
.product-fav:hover { color: #dc2626; border-color: #dc2626; }
.product-fav.on { color: #dc2626; border-color: #dc2626; }

.product-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-sku { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.02em; }
.product-name { font-size: 14px; font-weight: 600; color: var(--ink-900); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 0.22em; min-height: 3.2em; }
.product-desc { font-size: 12px; color: var(--ink-500); line-height: 1.4; min-height: 2.8em; }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.product-price { font-family: var(--font-en); font-weight: 700; font-size: 17px; color: var(--navy-800); letter-spacing: -0.01em; }
.product-price .unit { font-size: 11px; font-weight: 500; color: var(--ink-500); margin-left: 4px; }
.product-price-old { font-family: var(--font-en); font-size: 12px; color: var(--ink-400); text-decoration: line-through; }
.product-stock { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.product-stock.low { color: var(--amber); }
.product-stock.out { color: var(--red); }
.product-actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.product-actions .btn { flex: 1; padding: 8px 10px; font-size: 12.5px; }

.dealer-price-row {
  background: linear-gradient(180deg, #fff7e6 0%, #fef3c7 100%);
  border-top: 1px dashed #d97706;
  border-bottom: 1px dashed #d97706;
  padding: 6px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.dealer-price-row .label { color: var(--amber); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.dealer-price-row .price { font-family: var(--font-en); font-weight: 700; color: var(--amber); }

/* ========================
   PRODUCT DETAIL
======================== */
.pdp-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: flex-start; }
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-main-img {
  aspect-ratio: 1 / 1;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  position: relative;
  overflow: hidden;
}
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pdp-thumb {
  aspect-ratio: 1 / 1;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--ink-200);
  position: relative;
  cursor: pointer;
}
.pdp-thumb.active { border-color: var(--navy-700); box-shadow: 0 0 0 2px var(--blue-100); }

.pdp-info h1 { font-size: 26px; margin: 8px 0 6px; line-height: 1.2; letter-spacing: -0.01em; }
.pdp-info .pdp-sku { font-family: var(--font-mono); color: var(--ink-500); font-size: 12.5px; }
.pdp-info .pdp-rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; font-size: 13px; color: var(--ink-500); }
.pdp-info .stars { color: #f59e0b; }
.pdp-price-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 16px 0;
}
.pdp-price { font-family: var(--font-en); font-weight: 700; font-size: 32px; color: var(--navy-800); letter-spacing: -0.02em; }
.pdp-price .vat { font-size: 12px; color: var(--ink-500); font-weight: 500; margin-left: 8px; }
.pdp-price-old { font-family: var(--font-en); font-size: 16px; color: var(--ink-400); text-decoration: line-through; }
.pdp-dealer-callout {
  margin-top: 10px;
  background: #fef3c7; color: var(--amber);
  padding: 8px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; background: white; }
.qty-stepper button { border: none; background: transparent; width: 36px; height: 38px; color: var(--ink-700); font-size: 16px; }
.qty-stepper button:hover { background: var(--ink-100); color: var(--navy-700); }
.qty-stepper input { width: 50px; height: 38px; border: none; text-align: center; font-family: var(--font-en); font-weight: 600; outline: none; border-left: 1px solid var(--ink-200); border-right: 1px solid var(--ink-200); }

.pdp-actions { display: flex; gap: 10px; margin-top: 12px; }

.pdp-spec { width: 100%; border-collapse: collapse; margin-top: 16px; }
.pdp-spec tr { border-bottom: 1px solid var(--ink-200); }
.pdp-spec tr:last-child { border-bottom: none; }
.pdp-spec td { padding: 10px 12px; font-size: 13px; }
.pdp-spec td:first-child { color: var(--ink-500); width: 35%; }
.pdp-spec td:last-child { font-weight: 500; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ink-200); margin: 32px 0 16px; }
.tabs button {
  border: none; background: transparent; padding: 10px 16px;
  font-size: 14px; font-weight: 500; color: var(--ink-500);
  border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--navy-700); border-bottom-color: var(--navy-700); font-weight: 600; }

/* ========================
   CART / QUOTATION
======================== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: flex-start; }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--ink-200);
  align-items: flex-start;
}
.cart-line:last-child { border-bottom: none; }
.cart-line-img {
  width: 80px; height: 80px;
  background: var(--ink-50); border-radius: 8px;
  position: relative; overflow: hidden; border: 1px solid var(--ink-200);
}
.cart-line-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cart-line-sku { font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); margin: 3px 0 8px; }
.cart-line-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cart-line-note {
  width: 100%; margin-top: 8px;
  border: 1px solid var(--ink-200); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; resize: vertical;
  min-height: 36px; max-height: 80px;
}
.cart-line-note:focus { outline: none; border-color: var(--blue-500); }
.cart-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 110px; }
.cart-line-price { font-family: var(--font-en); font-weight: 700; font-size: 16px; color: var(--navy-800); }
.cart-line-unit { font-size: 11px; color: var(--ink-500); }
.cart-line-remove { background: none; border: none; color: var(--ink-400); padding: 4px; }
.cart-line-remove:hover { color: var(--red); }

.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; }
.summary-row .label { color: var(--ink-500); }
.summary-row .value { font-family: var(--font-en); font-weight: 500; }
.summary-row.total { border-top: 1px dashed var(--ink-200); margin-top: 6px; padding-top: 12px; font-size: 16px; font-weight: 700; }
.summary-row.total .value { color: var(--navy-800); font-size: 20px; }
.summary-row.discount .value { color: var(--green); }

.empty-state { padding: 60px 24px; text-align: center; }
.empty-state .icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--ink-300); }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; }
.empty-state p { color: var(--ink-500); margin: 0 0 16px; }

/* ========================
   FORMS
======================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.col-2 { grid-column: span 2; }
.form-field label { font-size: 12.5px; font-weight: 500; color: var(--ink-700); }
.form-field label .req { color: var(--red); margin-left: 2px; }
.form-field input, .form-field textarea, .form-field select {
  padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--ink-200);
  background: white; font-size: 14px;
  outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(29, 111, 229, 0.12);
}
.form-field .hint { font-size: 11.5px; color: var(--ink-500); }
.form-field .err { font-size: 11.5px; color: var(--red); }

/* ========================
   LOGIN
======================== */
.login-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(29, 111, 229, 0.18), transparent 40%),
    radial-gradient(ellipse at 80% 100%, rgba(11, 58, 130, 0.25), transparent 50%),
    linear-gradient(180deg, var(--navy-900), var(--navy-700));
  color: white;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.login-promo { padding: 64px 60px; display: flex; flex-direction: column; justify-content: space-between; }
.login-promo .brand-block { display: flex; align-items: center; gap: 14px; }
.login-promo .brand-block .brand-logo { width: 56px; height: 56px; font-size: 22px; }
.login-promo .brand-block .brand-name .th { font-size: 18px; }
.login-promo .brand-block .brand-name .en { font-size: 12px; }
.login-promo h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; }
.login-promo .promo-features { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.login-promo .promo-feat { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.login-promo .promo-feat:first-child { border-top: none; }
.login-promo .promo-feat .ic { width: 36px; height: 36px; flex: none; border-radius: 8px; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: #93c5fd; }
.login-promo .promo-feat .t { font-weight: 600; margin-bottom: 2px; }
.login-promo .promo-feat .d { font-size: 12.5px; opacity: 0.7; }
.login-promo .legal { font-size: 11px; opacity: 0.5; }

.login-panel { background: white; color: var(--ink-900); display: grid; place-items: center; padding: 32px; }
.login-card { width: 100%; max-width: 420px; }
.login-card h2 { margin: 0 0 6px; font-size: 24px; }
.login-card .sub { color: var(--ink-500); font-size: 13.5px; margin: 0 0 24px; }
.role-switch { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink-100); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.role-switch button { border: none; background: transparent; padding: 10px; font-size: 13px; font-weight: 500; border-radius: 7px; color: var(--ink-500); }
.role-switch button.active { background: white; color: var(--navy-700); box-shadow: var(--shadow-sm); font-weight: 600; }

.demo-creds {
  margin-top: 18px;
  background: var(--blue-50); border: 1px dashed var(--blue-500);
  border-radius: 8px; padding: 10px 12px;
  font-size: 12px; color: var(--navy-700);
  display: flex; flex-direction: column; gap: 4px;
}
.demo-creds code { font-family: var(--font-mono); background: white; padding: 1px 5px; border-radius: 3px; }

/* ========================
   DASHBOARD
======================== */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 100px); }
.dash-side { background: white; border-right: 1px solid var(--ink-200); padding: 16px 12px; }
.dash-side h5 { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; margin: 8px 0 4px; }
.dash-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-700); cursor: pointer;
}
.dash-side a:hover { background: var(--ink-100); color: var(--navy-700); }
.dash-side a.active { background: var(--blue-50); color: var(--navy-700); font-weight: 600; }
.dash-side a .count { margin-left: auto; background: var(--ink-100); color: var(--ink-700); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-family: var(--font-en); }
.dash-side a.active .count { background: var(--navy-700); color: white; }

.dash-main { padding: 28px 32px; background: var(--ink-50); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi {
  background: white; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.kpi .label { font-size: 12px; color: var(--ink-500); margin-bottom: 8px; }
.kpi .value { font-family: var(--font-en); font-weight: 700; font-size: 26px; color: var(--ink-900); letter-spacing: -0.01em; }
.kpi .delta { font-family: var(--font-en); font-size: 12px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.kpi .delta.up { color: var(--green); }
.kpi .delta.down { color: var(--red); }
.kpi .ic { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 8px; background: var(--blue-50); color: var(--navy-700); display: grid; place-items: center; }

.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }

.table-wrap { background: white; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; }
.table-wrap .table-head { padding: 14px 18px; border-bottom: 1px solid var(--ink-200); display: flex; align-items: center; gap: 12px; }
.table-wrap .table-head h3 { margin: 0; font-size: 14px; }
.table-wrap .spacer { flex: 1; }

table.data {
  width: 100%; border-collapse: collapse;
}
table.data th {
  text-align: left; padding: 10px 16px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--ink-50); border-bottom: 1px solid var(--ink-200);
}
table.data td {
  padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--ink-100);
  vertical-align: middle;
}
table.data tr:hover td { background: var(--ink-50); }
table.data tr:last-child td { border-bottom: none; }
table.data .num { font-family: var(--font-en); font-variant-numeric: tabular-nums; }
table.data .mono { font-family: var(--font-mono); font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.chip.ok { background: var(--green-bg); color: var(--green); }
.chip.warn { background: var(--amber-bg); color: var(--amber); }
.chip.bad { background: var(--red-bg); color: var(--red); }
.chip.info { background: var(--blue-100); color: var(--navy-700); }
.chip.neutral { background: var(--ink-100); color: var(--ink-700); }

/* mini avatar */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-100); color: var(--navy-700);
  display: inline-grid; place-items: center;
  font-weight: 600; font-size: 12px; font-family: var(--font-en);
  flex: none;
}

/* ========================
   PDF PREVIEW (Thai formal style)
======================== */
.pdf-shell {
  background: var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; align-items: center;
}
.pdf-doc {
  width: 794px; /* A4 at 96dpi */
  min-height: 1122px; /* 1px under A4 threshold to prevent blank page 2 */
  box-sizing: border-box;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 28px 40px 24px;
  font-size: 11px; line-height: 1.38;
  position: relative;
  color: #111;
}
.pdf-doc .pdf-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 2.5px solid var(--navy-700); }
.pdf-doc .pdf-logo-wrap { display: flex; gap: 12px; align-items: center; }
.pdf-doc .pdf-logo {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  flex: none;
}
.pdf-doc .pdf-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdf-doc .pdf-co .name-th { font-weight: 700; font-size: 15px; color: var(--navy-800); }
.pdf-doc .pdf-co .name-en { font-size: 11px; color: var(--ink-700); font-family: var(--font-en); margin-bottom: 4px; }
.pdf-doc .pdf-co .addr { font-size: 10.5px; color: var(--ink-700); line-height: 1.4; }
.pdf-doc .pdf-title { text-align: right; }
.pdf-doc .pdf-title h1 { margin: 0; font-size: 26px; letter-spacing: 0.04em; color: var(--navy-700); }
.pdf-doc .pdf-title .en { font-size: 11px; color: var(--ink-500); letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--font-en); }
.pdf-doc .pdf-title .docno { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; }

.pdf-meta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin: 12px 0 10px; }
.pdf-meta .box { border: 1px solid #d4d8e0; padding: 12px 14px; border-radius: 4px; }
.pdf-meta .box .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-500); font-weight: 600; margin-bottom: 4px; font-family: var(--font-en); }
.pdf-meta .box .name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.pdf-meta .box .row { font-size: 11px; margin-bottom: 2px; }
.pdf-meta .info-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 11px; }
.pdf-meta .info-row dt { color: var(--ink-500); font-weight: 500; }
.pdf-meta .info-row dd { margin: 0; font-weight: 600; font-family: var(--font-en); }

.pdf-table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.pdf-table th {
  background: var(--navy-700); color: white;
  padding: 6px 8px; font-size: 10px; font-weight: 600;
  text-align: left;
}
.pdf-table th.right { text-align: right; }
.pdf-table th.center { text-align: center; }
.pdf-table td { padding: 7px 8px; font-size: 10.5px; border-bottom: 1px solid #e2e6ee; vertical-align: top; }
.pdf-table td.right { text-align: right; font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.pdf-table td.center { text-align: center; font-family: var(--font-en); }
.pdf-table tr.note td { background: #fbfbfc; font-size: 10.5px; color: var(--ink-500); padding: 4px 10px 10px 10px; font-style: italic; }
.pdf-table td .sku { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); }
.pdf-table tfoot td {
  padding: 7px 10px;
  font-size: 11px;
  border-bottom: none;
}
.pdf-table tfoot tr.subtotal td { border-top: 1px solid #c0c5cf; padding-top: 9px; }
.pdf-table tfoot tr.grand td { background: #f4f6fb; font-weight: 700; font-size: 13px; color: var(--navy-800); }

.pdf-bottom { display: grid; grid-template-columns: 1fr 240px; gap: 20px; margin-top: 10px; }
.pdf-terms { font-size: 10.5px; }
.pdf-terms h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; color: var(--navy-700); }
.pdf-terms ol { margin: 0; padding-left: 18px; color: var(--ink-700); }
.pdf-terms ol li { margin-bottom: 3px; line-height: 1.45; }

.pdf-totals-box { border: 1px solid #d4d8e0; border-radius: 4px; padding: 12px 14px; background: #fafbfc; }
.pdf-totals-box .row { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.pdf-totals-box .row .l { font-family: var(--font-th); font-variant-numeric: normal; color: var(--ink-700); }
.pdf-totals-box .row.total { font-size: 14px; font-weight: 700; color: var(--navy-800); border-top: 1.5px solid var(--navy-700); padding-top: 6px; margin-top: 3px; }

.pdf-signatures { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pdf-sig {
  border-top: 1px solid var(--ink-300);
  padding-top: 6px;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-700);
  position: relative;
  min-height: 96px;
}
.pdf-sig .sig-line { height: 54px; display: grid; place-items: center; }
.pdf-sig .stamp {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 10px;
  transform: rotate(-12deg);
  letter-spacing: 0.15em;
  opacity: 0.85;
}
.pdf-sig .name { font-weight: 600; color: var(--ink-900); font-size: 11.5px; }
.pdf-sig .role { font-size: 10px; color: var(--ink-500); }

.pdf-footer-bar {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--ink-200);
  display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-500);
  font-family: var(--font-en);
}

.pdf-controls {
  position: sticky; top: 0;
  background: white; border-bottom: 1px solid var(--ink-200);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
  z-index: 5;
}

/* ========================
   MODAL
======================== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(11, 30, 64, 0.55);
  display: grid; place-items: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow: auto;
  animation: slideUp 0.2s ease;
}
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--ink-200); display: flex; align-items: center; gap: 16px; }
.modal-head h3 { margin: 0; font-size: 16px; flex: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--ink-200); display: flex; justify-content: flex-end; gap: 8px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-7px); }
  35%      { transform: translateX(7px); }
  55%      { transform: translateX(-5px); }
  75%      { transform: translateX(4px); }
  90%      { transform: translateX(-2px); }
}

/* ========================
   TOAST
======================== */
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  background: var(--navy-900); color: white;
  border-radius: 10px; padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideRight 0.25s ease;
  font-size: 13.5px;
  min-width: 280px;
  max-width: 400px;
}
.toast .ic { color: #4ade80; flex: none; }
.toast.err .ic { color: #fca5a5; }
@keyframes slideRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* responsive */
@media (max-width: 1024px) {
  .catalog-layout, .cart-layout, .pdp-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .login-bg { grid-template-columns: 1fr; }
  .login-promo { padding: 40px 32px; }
}

/* ========================
   LOGO
======================== */
.brand-logo {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  flex: none;
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}

/* ========================
   HOMEPAGE
======================== */
.home { background: var(--white); }

/* ═══════════════════════════════════════════
   HERO MAIN v3 (bold, quotation-focused)
═══════════════════════════════════════════ */
.hero-main {
  position: relative;
  background: #f0f4ff;
  overflow: hidden;
  padding: 72px 0 80px;
  min-height: 580px;
  display: flex; align-items: center;
}
.hero-main-bg { position: absolute; inset: 0; pointer-events: none; }
/* Hero background slideshow (crossfade + manual controls) */
.hero-bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; user-select: none;
  opacity: 0; transition: opacity 1s ease;
}
.hero-bg-photo.active { opacity: 0.45; }
.hero-bg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(15,23,42,0.15); background: rgba(255,255,255,0.82);
  color: var(--navy-700); cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(3px); transition: background 0.15s ease;
  pointer-events: auto;
}
.hero-bg-arrow:hover { background: #fff; }
.hero-bg-prev { left: 18px; }
.hero-bg-prev svg { transform: rotate(180deg); }
.hero-bg-next { right: 18px; }
.hero-bg-dots {
  position: absolute; z-index: 4; bottom: 16px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 0;
  pointer-events: auto;
}
.hero-bg-dot {
  /* WCAG 2.5.8: 24×24px touch target; padding 8px → content area 8×8 */
  width: 24px; height: 24px; border-radius: 50%; border: none; padding: 8px;
  background: rgba(15,23,42,0.25) content-box;
  cursor: pointer; transition: width 0.2s ease, background 0.2s ease;
}
.hero-bg-dot.active { background: var(--navy-700) content-box; width: 38px; border-radius: 4px; }
.hmb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,64,175,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hmb-glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.hmb-glow-l { width: 600px; height: 600px; background: #3b82f6; opacity: 0.1; top: -200px; left: -150px; }
.hmb-glow-r { width: 400px; height: 400px; background: #ea580c; opacity: 0.09; bottom: -100px; right: 5%; }
.hmb-diagonal {
  position: absolute; right: -100px; top: 0; bottom: 0; width: 50%;
  background: white;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  box-shadow: -12px 0 40px rgba(30,64,175,0.06);
}

/* ปุ่มดาวน์โหลด Catalog — สีเขียว เด่น */
.btn-catalog { background: #ea580c; color: #fff; border: 1px solid #ea580c; }
.btn-catalog:hover { background: #c2410c; border-color: #c2410c; color: #fff; }

/* ═══════════════ HERO SLIDER (RMC-style) ═══════════════ */
.hero-slider {
  position: relative;
  height: clamp(440px, 56vw, 640px);
  overflow: hidden;
  background: #0b1f3a;
}
.hslider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.15, 1);
  will-change: transform;
}
.hslide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hslide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  user-select: none; pointer-events: none;
}
.hslide-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,14,28,0.86) 0%, rgba(7,14,28,0.6) 42%, rgba(7,14,28,0.18) 78%, rgba(7,14,28,0.05) 100%);
}
.hslide-inner { position: relative; z-index: 2; color: #fff; width: 100%; }
.hslide-eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.3em; font-weight: 700; font-size: 13px;
  color: #9dc0ff; text-transform: uppercase; margin-bottom: 14px;
}
.hslide-title {
  font-size: clamp(32px, 4.8vw, 68px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px; max-width: 760px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hslide-sub {
  font-size: clamp(15px, 1.5vw, 20px); line-height: 1.6;
  color: #e7eefb; max-width: 580px; margin: 0 0 30px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.hslide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy-700); color: #fff;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(30,64,175,0.4);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hslide-btn:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30,64,175,0.5); }

.hslider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; cursor: pointer; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.hslider-arrow:hover { background: rgba(255,255,255,0.28); }
.hslider-prev { left: 18px; }
.hslider-prev svg { transform: rotate(180deg); }
.hslider-next { right: 18px; }

.hslider-dots {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.hslider-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hslider-dot.active { background: #fff; width: 30px; border-radius: 5px; }

/* ── Centered heading band under the slider ── */
.home-band { background: #fff; padding: 56px 0 12px; text-align: center; }
.home-band-h2 {
  font-size: clamp(24px, 3vw, 40px); font-weight: 800;
  color: var(--ink-900); letter-spacing: -0.02em; line-height: 1.28; margin: 0 0 26px;
}
.home-band-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hslider-arrow { width: 38px; height: 38px; }
  .hslider-prev { left: 8px; }
  .hslider-next { right: 8px; }
  .hslide-veil { background: linear-gradient(90deg, rgba(7,14,28,0.9) 0%, rgba(7,14,28,0.72) 60%, rgba(7,14,28,0.45) 100%); }
}

.hero-main-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center; width: 100%;
}
.hero-main-copy { max-width: 600px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(234,88,12,0.08);
  border: 1px solid rgba(234,88,12,0.2);
  border-radius: 999px; padding: 5px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #c2410c; font-family: var(--font-en);
  margin-bottom: 24px; width: fit-content;
}
.hero-tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ea580c; flex: none;
  animation: pulse-soft 2s ease-in-out infinite;
}

.hero-main-h1 {
  font-size: 72px; font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink-900);
}
.hero-main-accent {
  display: inline-block;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #ea580c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative;
}
.hero-main-accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #1e40af, #ea580c);
}

.hero-main-sub {
  font-size: 20px; line-height: 1.65;
  color: var(--ink-600); max-width: 560px;
  margin: 0 0 32px;
}

.hero-main-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hm-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white; border: none; border-radius: 12px;
  padding: 16px 28px; font-size: 16px; font-weight: 700;
  font-family: var(--font-th); cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 6px 20px rgba(30,64,175,0.3);
}
.hm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,64,175,0.4); filter: brightness(1.08); }
.hm-btn-primary:active { transform: translateY(0); }

.hm-btn-quote {
  display: inline-flex; align-items: center; gap: 10px;
  background: #c2410c; color: white; /* orange-700: คอนทราสต์กับขาว ~5.2:1 ผ่าน WCAG AA (เดิม #ea580c ~3.4:1 ตก) */
  border: none; border-radius: 12px;
  padding: 16px 28px; font-size: 16px; font-weight: 700;
  font-family: var(--font-th); cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 6px 20px rgba(234,88,12,0.3);
}
.hm-btn-quote:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(234,88,12,0.4); filter: brightness(1.08); }

.hero-main-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1.5px solid var(--ink-200);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; color: var(--ink-700);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Hero Quote Card */
.hq-card {
  background: white; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(30,64,175,0.12), 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  animation: fadeUp 0.8s cubic-bezier(0.2,0.8,0.2,1) 0.2s backwards;
}
.hq-top-bar {
  height: 6px;
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #ea580c 100%);
}
.hq-body { padding: 28px; }
.hq-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--ink-900);
  margin-bottom: 10px;
}
.hq-desc {
  font-size: 13.5px; color: var(--ink-500);
  line-height: 1.6; margin: 0 0 24px;
}
.hq-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.hq-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.hq-step-num {
  width: 26px; height: 26px; border-radius: 13px;
  background: var(--navy-700); color: white;
  font-size: 12px; font-weight: 700; font-family: var(--font-en);
  display: grid; place-items: center; flex: none;
}
.hq-step-label { font-size: 13.5px; font-weight: 500; color: var(--ink-800); }
.hq-features {
  display: flex; gap: 0; margin-top: 16px;
  border-top: 1px solid var(--ink-200); padding-top: 14px;
}
.hq-feat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--ink-500); text-align: center;
}

/* ═══════════════════════════════════════════
   CATEGORY CAROUSEL — clean white cards + blue icons
═══════════════════════════════════════════ */
.catcar { position: relative; padding: 0 4px; }
.catcar-track {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 10px 2px 18px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.catcar-track::-webkit-scrollbar { display: none; }
/* 2-row grid layout (5 per row) */
.catgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .catgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.catcar-card {
  flex: 0 0 224px;
  background: #fff; border: 1px solid #eef2f8; border-radius: 14px;
  padding: 12px 12px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.catcar-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(37,99,235,0.16); border-color: #c7d7f5; }
.catcar-icon { width: 92px; height: 92px; display: grid; place-items: center; }
.catcar-icon svg { width: 84px; height: 84px; }
.catcar-icon.has-photo { width: 100%; height: 150px; }
.catcar-icon.has-photo .catcar-glyph { display: none; }
.catcar-photo { max-width: 100%; max-height: 150px; object-fit: contain; }
.catcar-label { font-size: 15px; font-weight: 700; color: var(--ink-800); text-align: center; line-height: 1.35; }
.catcar-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: var(--navy-700);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(15,23,42,0.10);
  transition: background .15s ease, color .15s ease;
}
.catcar-arrow:hover { background: var(--navy-700); color: #fff; }
.catcar-prev { left: -16px; }
.catcar-prev svg { transform: rotate(180deg); }
.catcar-next { right: -16px; }
@media (max-width: 640px) {
  .catcar-arrow { display: none; }
  .catcar-card { flex: 0 0 180px; max-width: none; padding: 30px 18px; gap: 18px; }
  .catcar-icon { width: 76px; height: 76px; }
  .catcar-icon svg { width: 70px; height: 70px; }
}

/* ═══════════════ AWARDS / DEALER / CERTIFICATIONS ═══════════════ */
.awards-sec { background: #fff; padding: 60px 0 12px; }
.awards-head { text-align: center; margin-bottom: 42px; }
.awards-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--ink-900); margin: 0 0 10px; letter-spacing: -0.02em; }
.awards-head p { color: var(--ink-600); font-size: 15px; max-width: 660px; margin: 0 auto; line-height: 1.7; }
/* แถบแบรนด์หน้าแรก — แถวละ 5 (responsive) */
.home-brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 1100px) { .home-brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .home-brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .home-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.awards-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px 52px; }
.award-item { width: 280px; text-align: center; }
.award-img { height: 190px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.award-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.award-ph {
  display: none; width: 96px; height: 96px; border-radius: 16px;
  background: #f1f5f9; color: #94a3b8; align-items: center; justify-content: center;
}
.award-img.is-empty { border: 1.5px dashed #d8dfea; border-radius: 16px; }
.award-img.is-empty .award-ph { display: inline-flex; }
.award-label { font-size: 15px; font-weight: 700; color: var(--ink-900); line-height: 1.4; }
.award-desc { font-size: 13px; color: var(--ink-600); line-height: 1.55; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.award-lightbox-title { display: block; font-weight: 700; font-size: 16px; }
.award-lightbox-desc { display: block; font-size: 13.5px; opacity: 0.85; margin-top: 6px; line-height: 1.6; }

/* คลิกรูปตัวแทน/ใบรับรองเพื่อซูม (lightbox) */
.award-img.is-zoomable { position: relative; cursor: zoom-in; border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.award-img.is-zoomable:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 22px rgba(15,23,42,.12); }
.award-img.is-zoomable:focus-visible { outline: 2px solid var(--brand, #2563eb); outline-offset: 3px; }
.award-zoom-hint {
  position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.62); color: #fff; border-radius: 999px;
  opacity: 0; transform: scale(.85); transition: opacity .18s ease, transform .18s ease; pointer-events: none;
}
.award-img.is-zoomable:hover .award-zoom-hint,
.award-img.is-zoomable:focus-visible .award-zoom-hint { opacity: 1; transform: scale(1); }
.award-img.is-empty .award-zoom-hint { display: none; }

.award-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,12,20,.86); backdrop-filter: blur(3px);
  padding: 28px; cursor: zoom-out;
  animation: awardFade .18s ease;
}
@keyframes awardFade { from { opacity: 0; } to { opacity: 1; } }
.award-lightbox-figure {
  margin: 0; max-width: min(92vw, 1000px); max-height: 90vh; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: awardZoom .2s cubic-bezier(.2,.8,.25,1);
}
@keyframes awardZoom { from { transform: scale(.9); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.award-lightbox-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.award-lightbox-figure figcaption { color: #f1f5f9; font-size: 15px; text-align: center; line-height: 1.5; max-width: 640px; }
.award-lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  border: none; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer; transition: background .15s ease;
}
.award-lightbox-close:hover { background: rgba(255,255,255,.28); }
@media (max-width: 640px) {
  .awards-grid { gap: 28px 22px; }
  .award-item { width: 160px; }
  .award-img { height: 140px; }
}

/* ═══════════════════════════════════════════
   CATEGORIES 8 — horizontal card list
═══════════════════════════════════════════ */
.cat8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat8-card {
  background: white; border: 1.5px solid var(--ink-200);
  border-radius: 14px; padding: 20px 18px;
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.2s cubic-bezier(0.2,0.8,0.2,1);
}
.cat8-card:hover {
  border-color: var(--c8-accent, var(--navy-700));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.cat8-stripe {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--c8-accent, var(--navy-700));
  opacity: 0; transition: opacity 0.2s;
}
.cat8-card:hover .cat8-stripe { opacity: 1; }
.cat8-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: color-mix(in oklab, var(--c8-accent, #1e40af) 10%, white);
  display: grid; place-items: center;
  transition: transform 0.3s cubic-bezier(0.5,1.5,0.5,1);
}
.cat8-card:hover .cat8-icon { transform: scale(1.1) rotate(-5deg); }
.cat8-body { flex: 1; min-width: 0; }
.cat8-en { font-family: var(--font-en); font-size: 10px; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.cat8-th { font-size: 15px; font-weight: 700; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat8-arrow {
  width: 28px; height: 28px; border-radius: 14px; flex: none;
  background: var(--ink-100); color: var(--ink-500);
  display: grid; place-items: center;
  transition: all 0.18s;
}
.cat8-card:hover .cat8-arrow {
  background: var(--c8-accent, var(--navy-700)); color: white;
  transform: translateX(2px);
}

@media (max-width: 1100px) {
  .hero-main-inner { grid-template-columns: 1fr; }
  .hero-main-h1 { font-size: 52px; }
  .hmb-diagonal { display: none; }
  .cat8-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-main-h1 { font-size: 40px; }
  .cat8-grid { grid-template-columns: 1fr; }
}

  position: relative;
  background: #f8faff;
  color: white;
  overflow: hidden;
  padding: 80px 0 80px;
  min-height: 680px;
  display: flex; align-items: center;
}
.hero-v2-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-v2-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,64,175,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-v2-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
}
.hero-v2-glow-a { width: 700px; height: 700px; background: #3b82f6; top: -200px; left: -150px; opacity: 0.15; }
.hero-v2-glow-b { width: 500px; height: 500px; background: #ea580c; bottom: -150px; right: 10%; opacity: 0.1; }
.hero-v2-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  width: 100%;
}
.hero-v2-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(234,88,12,0.1);
  border: 1px solid rgba(234,88,12,0.25);
  border-radius: 999px; padding: 6px 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #c2410c;
  margin-bottom: 24px;
  width: fit-content;
  font-family: var(--font-en);
}
.hero-v2-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #ea580c; animation: pulse-soft 2s ease-in-out infinite; flex: none; }
.hero-v2-h1 {
  font-size: 62px; line-height: 1.0;
  font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--ink-900);
}
.hero-v2-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #f97316 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.hero-v2-sub {
  font-size: 15px; line-height: 1.7; color: var(--ink-500);
  max-width: 520px; margin: 0 0 36px;
}
.hero-v2-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ea580c; color: white;
  border: none; border-radius: 10px;
  padding: 14px 24px; font-size: 15px; font-weight: 600;
  font-family: var(--font-th); cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 6px 20px rgba(234,88,12,0.35);
  position: relative; overflow: hidden;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(234,88,12,0.5); background: #c2410c; }
.btn-hero-primary:active { transform: translateY(0); }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1.5px solid var(--ink-200);
  color: var(--ink-900); border-radius: 10px;
  padding: 14px 22px; font-size: 15px; font-weight: 500;
  font-family: var(--font-th); cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.btn-hero-ghost:hover { border-color: var(--navy-700); color: var(--navy-700); box-shadow: var(--shadow); }
.hero-v2-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1px solid var(--ink-200);
  color: var(--ink-600);
  border-radius: 999px; padding: 5px 12px; font-size: 12px;
  box-shadow: var(--shadow-sm);
}

/* Hero right — cards */
.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.hero-card-main {
  background: white;
  border: 1.5px solid var(--ink-200);
  border-radius: 16px; padding: 20px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-card-main:hover { transform: translateY(-2px); border-color: #ea580c; box-shadow: 0 12px 32px rgba(234,88,12,0.15); }
.hero-card-icon { width: 80px; height: 80px; flex: none; }
.hero-card-info { flex: 1; }
.hero-card-label { font-size: 11px; color: #ea580c; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-en); margin-bottom: 4px; }
.hero-card-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink-900); }
.hero-card-price { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--navy-700); }
.hero-card-btn {
  flex: none; background: #fff7ed; border: 1px solid #fed7aa;
  color: #c2410c; border-radius: 8px; padding: 8px 14px;
  font-size: 12.5px; cursor: pointer; display: flex; align-items: center; gap: 4px;
  font-family: var(--font-th); transition: all 0.15s; white-space: nowrap;
}
.hero-card-btn:hover { background: #ea580c; color: white; border-color: #ea580c; }
.hero-mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-mini-card {
  background: white;
  border: 1.5px solid var(--ink-200);
  border-radius: 12px; padding: 16px 14px;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.hero-mini-card:hover { transform: translateY(-2px); border-color: var(--navy-700); box-shadow: var(--shadow); }
.hero-mini-icon { margin-bottom: 8px; }
.hero-mini-val { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--ink-900); letter-spacing: -0.02em; }
.hero-mini-label { font-size: 10.5px; color: var(--ink-500); margin-top: 3px; }

/* ── METRICS BAR ── */
.metrics-bar {
  background: white;
  border-bottom: 1px solid var(--ink-200);
  padding: 32px 0;
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric-cell {
  text-align: center; padding: 12px 16px;
  border-right: 1px solid var(--ink-200);
}
.metric-cell:last-child { border-right: none; }
.metric-num {
  font-family: var(--font-en); font-weight: 800; font-size: 40px;
  color: var(--navy-700); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 6px;
}
.metric-label { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 2px; }
.metric-note { font-size: 12px; color: var(--ink-500); }

/* ── BENTO GRID ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}
.bento-card {
  background: white; border: 1.5px solid var(--ink-200);
  border-radius: 16px; padding: 24px;
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.22s cubic-bezier(0.2,0.8,0.2,1);
  min-height: 160px;
}
.bento-large { grid-column: span 1; grid-row: span 2; min-height: 320px; }
.bento-wide  { grid-column: span 2; }
.bento-small { grid-column: span 1; }
.bento-card:hover {
  border-color: var(--bento-accent, var(--navy-700));
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.bento-bg-accent {
  position: absolute; right: -30px; bottom: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: color-mix(in oklab, var(--bento-accent) 8%, white);
  transition: transform 0.3s;
}
.bento-card:hover .bento-bg-accent { transform: scale(1.4); }
.bento-icon {
  width: 64px; height: 64px;
  background: color-mix(in oklab, var(--bento-accent, #0a6e3d) 10%, white);
  border-radius: 14px; display: grid; place-items: center;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.5,1.5,0.5,1);
}
.bento-card:hover .bento-icon { transform: scale(1.1) rotate(-5deg); }
.bento-large .bento-icon { width: 80px; height: 80px; }
.bento-info { flex: 1; position: relative; z-index: 1; }
.bento-en { font-family: var(--font-en); font-size: 11px; font-weight: 600; color: var(--ink-500); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.bento-th { font-size: 18px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.bento-large .bento-th { font-size: 24px; }
.bento-count { font-size: 12px; color: var(--ink-500); }
.bento-arrow {
  position: absolute; right: 20px; bottom: 20px;
  width: 34px; height: 34px; border-radius: 17px;
  background: color-mix(in oklab, var(--bento-accent) 12%, white);
  color: var(--bento-accent, var(--navy-700));
  display: grid; place-items: center;
  transition: transform 0.2s, background 0.2s;
  z-index: 1;
}
.bento-card:hover .bento-arrow { transform: translateX(3px); background: var(--bento-accent); color: white; }

/* ── DEALER BANNER ── */
.dealer-banner {
  background: var(--blue-50);
  color: var(--ink-800); padding: 48px 0;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200);
}
.dealer-banner::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(192,32,47,0.025) 16px 17px);
  pointer-events: none;
}
.dealer-banner-inner {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.dealer-banner-left { flex: 1; min-width: 260px; }
.dealer-banner-tag {
  display: inline-block;
  background: var(--blue-100); color: var(--navy-700);
  border: 1px solid transparent;
  border-radius: 999px; padding: 5px 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; font-family: var(--font-en);
  margin-bottom: 14px;
}
.dealer-banner-h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.1; color: var(--ink-900); }
.dealer-banner-h2 span { color: var(--navy-700); }
.dealer-banner-left p { color: var(--ink-600); margin: 0; font-size: 14px; line-height: 1.5; }
.dealer-tiers { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-pill {
  background: #fff; border: 1px solid var(--ink-200);
  border-radius: 12px; padding: 14px 16px; text-align: center; min-width: 90px;
  transition: all 0.18s;
}
.tier-pill:hover { border-color: var(--navy-700); box-shadow: 0 8px 20px rgba(192,32,47,0.10); transform: translateY(-2px); }
.tier-pill-name { font-size: 12px; color: var(--ink-500); margin-bottom: 4px; font-family: var(--font-en); }
.tier-pill-pct { font-family: var(--font-en); font-weight: 800; font-size: 22px; color: var(--tier-color, var(--navy-700)); letter-spacing: -0.02em; }
.tier-pill-req { font-size: 10px; color: var(--ink-500); margin-top: 3px; }
.btn-dealer-cta {
  background: var(--navy-700); color: #fff;
  border: none; border-radius: 10px;
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  font-family: var(--font-th); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.18s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(192,32,47,0.30);
}
.btn-dealer-cta:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(192,32,47,0.40); }

/* ── BRANDS v2 (static clean grid) ── */
.brands-v2 {
  background: linear-gradient(180deg, #0f1f17 0%, #02240e 100%);
  color: white; padding: 72px 0;
  position: relative;
}
.brands-v2::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.brands-v2 .section-head h2 { color: white; }
.brands-v2 .section-head p  { color: rgba(255,255,255,0.6); }
.brands-v2-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative; z-index: 1;
  margin-bottom: 20px;
}
.brand-v2-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  transition: all 0.18s; cursor: default;
}
.brand-v2-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.brand-v2-logo {
  height: 52px; width: 100%;
  display: grid; place-items: center;
  border-radius: 7px; font-size: 17px;
  padding: 0 10px;
}
.brand-v2-country { font-size: 11px; color: rgba(255,255,255,0.55); text-align: center; }
.brand-v2-badge {
  background: rgba(234,88,12,0.15); color: #fb923c;
  border-radius: 999px; padding: 2px 8px;
  font-size: 10px; font-family: var(--font-en); font-weight: 600;
}
.brands-v2-note {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.35); font-size: 11.5px;
  position: relative; z-index: 1;
}
.brands-v2-note code {
  background: rgba(255,255,255,0.08);
  border-radius: 4px; padding: 1px 6px;
  font-family: var(--font-mono); font-size: 11px;
}

/* ── CUSTOMERS v2 ── */
.customers-v2 { background: var(--ink-50); padding: 72px 0; }
.customers-v2-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 48px;
}
.customer-v2-card {
  background: white; border: 1px solid var(--ink-200);
  border-radius: 12px; padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: all 0.18s;
}
.customer-v2-card:hover { border-color: var(--navy-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,110,61,0.08); }
.customer-v2-logo {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; font-family: var(--font-en);
}
.customer-v2-name { font-size: 11px; color: var(--ink-700); text-align: center; font-weight: 500; line-height: 1.3; }

/* Testimonials v2 */
.testimonials-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-v2 {
  background: white; border: 1px solid var(--ink-200);
  border-radius: 16px; padding: 24px;
  transition: all 0.2s;
}
.testimonial-v2:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,110,61,0.08); }
.testimonial-v2-stars { color: #f59e0b; display: flex; gap: 2px; margin-bottom: 12px; }
.testimonial-v2-text {
  color: var(--ink-700); font-size: 13.5px; line-height: 1.65;
  margin: 0 0 16px; font-style: italic;
}
.testimonial-v2-by { display: flex; align-items: center; gap: 10px; }

/* ── CTA v2 ── */
.cta-v2 {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); color: white;
  padding: 80px 0;
}
.cta-v2-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta-v2-h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.cta-v2-sub { color: rgba(255,255,255,0.65); margin: 0; font-size: 15px; }
.cta-v2-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.cta-v2-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: white; border-radius: 999px; padding: 8px 16px; font-size: 13px;
  text-decoration: none; transition: all 0.15s; cursor: pointer;
}
.cta-contact-pill:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }

/* ── keep old hero styles for fallback ── */
.hero { position: relative; background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%); color: white; overflow: hidden; padding: 64px 0 80px; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .hero-v2-inner { grid-template-columns: 1fr; }
  .hero-v2-h1 { font-size: 44px; }
  .hero-mini-cards { grid-template-columns: repeat(3, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-column: span 2; grid-row: span 1; min-height: 160px; }
  .bento-wide  { grid-column: span 2; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-v2-grid { grid-template-columns: repeat(4, 1fr); }
  .customers-v2-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-v2 { grid-template-columns: 1fr; }
  .dealer-banner-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero-v2-h1 { font-size: 36px; }
  .hero-mini-cards { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .brands-v2-grid, .customers-v2-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-v2-inner { flex-direction: column; }
  .cta-v2-actions { align-items: flex-start; }
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 70% 20%, rgba(29, 111, 229, 0.25), transparent 50%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 18px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #93c5fd; }
.hero-h1 {
  font-size: 56px; line-height: 1.05;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.hero-h1-accent {
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px; line-height: 1.55;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.trust-item {
  display: flex; gap: 12px; align-items: flex-start;
  color: rgba(255,255,255,0.85);
}
.trust-item > svg { color: #93c5fd; flex: none; margin-top: 2px; }
.trust-item .muted { color: rgba(255,255,255,0.55) !important; }

/* hero visual */
.hero-visual { position: relative; }
.hero-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.4));
}
.hero-floating-badge {
  position: absolute;
  display: flex; gap: 10px; align-items: center;
  background: white;
  color: var(--ink-900);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 2;
  top: -16px; left: -20px;
  font-family: var(--font-th);
}
.hero-floating-badge-2 {
  top: auto; left: auto;
  bottom: -20px; right: -16px;
}
.hero-floating-badge .badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--blue-500);
  color: white;
  display: grid; place-items: center;
  flex: none;
}
.hero-floating-badge .badge-title { font-size: 11px; color: var(--ink-500); }
.hero-floating-badge .badge-sub { font-size: 13px; font-weight: 700; color: var(--ink-900); }

/* STATS STRIP */
.stats-strip {
  background: var(--ink-900);
  color: white;
  padding: 28px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stat-cell {
  text-align: center;
  padding: 8px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 13.5px; font-weight: 600; }
.stat-sub { font-size: 11.5px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* SECTION HEAD */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px; flex-wrap: wrap;
}
.section-head .hero-eyebrow { color: #c2410c; margin-bottom: 12px; } /* orange-700: ผ่าน contrast บนพื้นขาว (เดิม #ea580c ~3.2:1 ตก) */
.section-head .hero-eyebrow .dot { background: var(--blue-500); }
.section-head[data-light="true"] .hero-eyebrow { color: #93c5fd; }
.section-head[data-light="true"] h2, .section-head[data-light="true"] p { color: white; }
.section-head h2 {
  margin: 0 0 6px; font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section-head p {
  margin: 0; color: var(--ink-500);
  font-size: 14px; max-width: 560px;
}

/* CATEGORY GRID */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cat-card {
  display: flex; gap: 16px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cat-color);
  opacity: 0;
  transition: opacity 0.15s;
}
.cat-card:hover {
  border-color: var(--cat-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover .cat-card-arrow { transform: translateX(4px); color: var(--cat-color); }
.cat-card-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--cat-color) 8%, white);
  display: grid; place-items: center;
  flex: none;
}
.cat-card-body { flex: 1; display: flex; flex-direction: column; }
.cat-card-en {
  font-family: var(--font-en);
  font-size: 11.5px; font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 4px;
}
.cat-card-th {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.cat-card-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
}
.cat-card-arrow {
  width: 28px; height: 28px;
  border-radius: 14px;
  background: var(--ink-100);
  color: var(--ink-500);
  display: grid; place-items: center;
  transition: all 0.2s;
}

/* PROMO BANNER */
.promo-banner {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(251, 191, 36, 0.15), transparent 50%),
    linear-gradient(135deg, #0a6e3d 0%, #02240e 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: ""; position: absolute; right: -20%; top: -20%;
  width: 60%; height: 140%;
  background: repeating-linear-gradient(45deg, transparent 0 16px, rgba(255,255,255,0.03) 16px 17px);
  pointer-events: none;
}
.promo-tier-stack {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
}
.tier-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  align-items: center;
  gap: 16px;
}
.tier-card.tier-platinum { background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.04)); border-color: rgba(251, 191, 36, 0.4); }
.tier-card .tier-name { font-weight: 700; }
.tier-card .tier-disc { font-family: var(--font-en); font-weight: 800; font-size: 22px; color: #fbbf24; letter-spacing: -0.02em; }
.tier-card .tier-desc { font-size: 11.5px; opacity: 0.6; text-align: right; }

/* BRANDS SECTION */
.brands-section {
  background: linear-gradient(180deg, #0f1f17 0%, #02240e 100%);
  color: white;
  padding: 60px 0 70px;
  position: relative;
}
.brands-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.brand-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.brand-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.15s;
}
.brand-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); transform: translateY(-2px); }
.brand-logo-tile {
  height: 56px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 18px;
  padding: 0 12px;
  letter-spacing: 0.02em;
}
.brand-meta { display: flex; justify-content: space-between; align-items: center; }
.brand-country { font-size: 11px; color: rgba(255,255,255,0.7); }
.brand-meta .muted { color: rgba(255,255,255,0.4) !important; font-family: var(--font-en); }

/* CUSTOMERS SECTION */
.customers-section { background: var(--ink-50); padding: 60px 0 70px; }
.customer-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 40px;
}
.customer-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  transition: all 0.15s;
}
.customer-card:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.customer-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.customer-name {
  font-size: 11.5px;
  color: var(--ink-700);
  line-height: 1.3;
  font-weight: 500;
}

.testimonial-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.testimonial-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.testimonial-card p {
  margin: 12px 0 18px;
  color: var(--ink-700);
  line-height: 1.55;
  font-size: 13.5px;
}
.testimonial-by { display: flex; align-items: center; gap: 12px; }
.testimonial-quote { display: flex; align-items: center; gap: 6px; color: var(--green); }

/* CTA FINAL */
.cta-final {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  background-image: radial-gradient(ellipse at 100% 0%, rgba(29,111,229,0.06), transparent 50%);
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { grid-template-columns: 1fr; padding: 32px; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .customer-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid, .brand-grid, .customer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================
   PRODUCT PHOTO (rich SVG illustration)
======================== */
.product-photo {
  position: absolute; inset: 0;
  overflow: hidden;
  display: grid; place-items: stretch;
}
.product-photo-bg {
  position: absolute; inset: 0;
  background: #ffffff !important;
}
.product-photo-grid {
  display: none;
}
.product-photo-svg {
  position: relative;
  width: 100%; height: 100%;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .product-photo-svg {
  transform: scale(1.08) rotate(-2deg);
}

.product-img { background: transparent !important; }
.product-img .ph { display: none; }
.cart-line-img .product-photo { border-radius: 8px; }

/* ========================
   ANIMATIONS / EFFECTS
======================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes count-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bg-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].in-view { transition-delay: 80ms; }
.reveal[data-delay="2"].in-view { transition-delay: 160ms; }
.reveal[data-delay="3"].in-view { transition-delay: 240ms; }
.reveal[data-delay="4"].in-view { transition-delay: 320ms; }
.reveal[data-delay="5"].in-view { transition-delay: 400ms; }

/* enrich the topbar interactions */
.topbar { backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 200; }
.icon-btn { position: relative; transition: background 0.15s, transform 0.15s; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .badge { animation: pulse-soft 2.2s ease-in-out infinite; }

/* button shine effect */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-accent::after {
  content: ""; position: absolute; top: 0; left: 0; width: 30%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-200%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-accent:hover::after { transform: translateX(400%); }
.btn-primary, .btn-accent { transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 64, 175, 0.28); }
.btn-primary:active, .btn-accent:active { transform: translateY(0); }
.btn-lg.btn-primary { box-shadow: 0 6px 18px rgba(30, 64, 175, 0.22); }

/* CARD hover lift */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.product-card { transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s, border-color 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(30,64,175,0.10); }
.product-tag { animation: scaleIn 0.4s ease; }

/* hero floating badges */
.hero-floating-badge { animation: float 4s ease-in-out infinite; }
.hero-floating-badge-2 { animation: float 4s ease-in-out infinite; animation-delay: 2s; }
.hero-h1-accent { background-size: 200% 100%; animation: bg-pan 6s linear infinite; }

/* hero grid bg pulse */
.hero-grid-bg::after {
  content: ""; position: absolute; inset: -50%;
  background: radial-gradient(ellipse, rgba(22, 163, 74, 0.18), transparent 50%);
  animation: float 8s ease-in-out infinite;
}

/* link & nav hover */
.nav a {
  position: relative; transition: color 0.15s;
}
.nav a::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--navy-700);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s ease;
}
.nav a:hover::before { transform: scaleX(0.6); }
.nav a.active::before { transform: scaleX(1); }

/* category card icon micro-bounce */
.cat-card-icon { transition: transform 0.3s cubic-bezier(0.5, 1.5, 0.5, 1); }
.cat-card:hover .cat-card-icon { transform: scale(1.1) rotate(-6deg); }

/* MARQUEE strip for brand carousel */
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex; gap: 16px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-wrap.fade-edges {
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

/* trust items entrance */
.trust-item { animation: fadeUp 0.6s ease backwards; }
.trust-item:nth-child(1) { animation-delay: 0.4s; }
.trust-item:nth-child(2) { animation-delay: 0.55s; }
.trust-item:nth-child(3) { animation-delay: 0.7s; }

/* counter */
.stat-num { display: inline-block; animation: count-up 0.6s ease backwards; }

/* hero copy entrance */
.hero-eyebrow, .hero-h1, .hero-sub, .hero-cta {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero-h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.25s; }
.hero-cta { animation-delay: 0.4s; }
.hero-trust { animation: fadeIn 1s ease 0.5s backwards; }

/* hero visual entrance */
.hero-visual-card { animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards; }

/* modal entrance */
.modal { animation: scaleIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.toast { animation: slideRight 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* dealer tier pulse */
.tier-platinum { animation: pulse-soft 3s ease-in-out infinite; }

/* testimonial card */
.testimonial-card { transition: transform 0.25s, box-shadow 0.25s; }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* customer card */
.customer-card { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.customer-card:hover .customer-logo { animation: pulse-soft 1.4s ease-in-out infinite; }

/* table row gradient hover */
table.data tr { transition: background 0.15s; }

/* form field focus ring */
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* page enter */
main > * { animation: fadeIn 0.4s ease; }

/* PDF table row image */
.pdf-table td.pdf-img-cell {
  padding: 4px;
  width: 50px;
}
.pdf-table .pdf-thumb {
  width: 44px; height: 44px;
  background: linear-gradient(180deg, #fafbfc, #f1f5f9);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.pdf-table .pdf-thumb svg { width: 100%; height: 100%; display: block; }

/* nice scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }

/* selection */
::selection { background: var(--blue-100); color: var(--navy-900); }

/* utilities */
.marquee-item {
  flex: none;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
}
.marquee-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.marquee-item .brand-logo-tile {
  width: 100%;
  height: 48px;
  font-size: 16px;
}
.flex { display: flex; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.between { justify-content: space-between; } .center { align-items: center; }
.muted { color: var(--ink-500); }
.mono { font-family: var(--font-mono); }
.en { font-family: var(--font-en); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 600; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-right { text-align: right; }
.divider { height: 1px; background: var(--ink-200); margin: 16px 0; }

/* ── Loading Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid var(--ink-200); border-top-color: var(--navy-700);
  animation: spin 0.75s linear infinite;
}
.spinner-sm {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: white;
  animation: spin 0.75s linear infinite; vertical-align: middle;
}

/* ========================================================
   MOBILE RESPONSIVE — เพิ่มเติมครอบคลุม < 768px
======================================================== */
@media (max-width: 768px) {

  /* ── TopBar ── */
  .topbar-strip { display: none; }
  .topbar-main { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name .th { font-size: 13px; }
  .brand-name .en { display: none; }
  .topbar-search { order: 3; flex: 0 0 100%; max-width: 100%; margin: 0; }
  .topbar-actions { margin-left: auto; }
  .icon-btn .hide-sm { display: none !important; }

  /* ── Nav ── */
  .nav-wrap { padding: 0 8px; }
  .nav a { padding: 9px 7px; font-size: 12px; }

  /* ── Containers ── */
  .container, .container-narrow { padding: 14px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head h1 { font-size: 19px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head h2 { font-size: 21px; }

  /* ── Hero ── */
  .hero-main { padding: 36px 0 40px; min-height: auto; }
  .hero-main-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-main-h1 { font-size: 34px; margin-bottom: 14px; }
  .hero-main-sub { font-size: 14px; margin-bottom: 20px; }
  .hero-main-right { display: none; }
  .hm-btn-primary, .hm-btn-quote { padding: 12px 18px; font-size: 14px; }
  .hero-main-trust { gap: 6px; }
  .hm-trust-pill { font-size: 11px; padding: 5px 10px; }

  /* ── Metrics ── */
  .metrics-bar { padding: 20px 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-num { font-size: 28px; }
  .metric-label { font-size: 12px; }

  /* ── Categories 8 ── */
  .cat8-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat8-card { padding: 14px 12px; gap: 10px; }
  .cat8-icon { width: 40px; height: 40px; border-radius: 10px; }
  .cat8-th { font-size: 13px; }

  /* ── Dealer Banner ── */
  .dealer-banner { padding: 32px 0; }
  .dealer-banner-inner { flex-direction: column; gap: 20px; }
  .dealer-banner-h2 { font-size: 20px; }
  .dealer-tiers { gap: 6px; flex-wrap: wrap; }
  .tier-pill { min-width: 68px; padding: 10px 10px; }
  .tier-pill-pct { font-size: 18px; }
  .btn-dealer-cta { width: 100%; justify-content: center; }

  /* ── Customers grid ── */
  .customers-v2-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .customer-v2-logo { width: 40px; height: 40px; font-size: 16px; }
  .customer-v2-name { font-size: 10px; }

  /* ── Catalog ── */
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .filter-group { padding: 12px 16px; }

  /* ── Product Grid ── */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px; gap: 4px; }
  .product-sku { font-size: 10px; }
  .product-name { font-size: 13px; height: 2.7em; }
  .product-desc { display: none; }
  .product-price { font-size: 15px; }
  .product-actions { padding: 0 10px 10px; gap: 4px; }
  .product-actions .btn { flex: 1; padding: 7px 4px; font-size: 11px; gap: 4px; }

  /* ── Product Detail ── */
  .pdp-layout { grid-template-columns: 1fr; gap: 20px; }
  .pdp-info h1 { font-size: 19px; }
  .pdp-price { font-size: 26px; }
  .pdp-actions { flex-direction: column; }
  .pdp-actions .btn { width: 100%; justify-content: center; }

  /* ── Cart ── */
  .cart-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr auto; gap: 10px; }
  .cart-line-img { width: 64px; height: 64px; }
  .cart-line-name { font-size: 13px; }

  /* ── Checkout ── */
  .form-grid { grid-template-columns: 1fr; }
  .form-field.col-2 { grid-column: span 1; }

  /* ── Login ── */
  .login-bg { grid-template-columns: 1fr; }
  .login-promo { display: none; }
  .login-panel { padding: 24px 16px; min-height: 100vh; align-items: flex-start; padding-top: 48px; }
  .login-card { max-width: 100%; }

  /* ── Dashboard ── */
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { border-right: none; border-bottom: 1px solid var(--ink-200); padding-bottom: 8px; }
  .dash-main { padding: 16px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi .value { font-size: 20px; }
  .chart-grid { grid-template-columns: 1fr; }

  /* ── Tables ── */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data { min-width: 520px; }

  /* ── Footer ── */
  footer > div > div { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  footer > div > div > div:first-child { grid-column: span 2; }

  /* ── Checkout stepper ── */
  .card .flex.gap-16.center { gap: 6px; }
  .card .flex.gap-16.center span { font-size: 11.5px; }

  /* ── Toast offset ── avoid overlapping AI chat button ── */
  .toasts { bottom: 84px; right: 14px; }
  .toast { min-width: auto; max-width: calc(100vw - 28px); font-size: 12.5px; padding: 10px 14px; }

  /* ── Modal ── */
  .modal-bg { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 0 0; }
}

/* ── Extra small — < 480px ── */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-main-h1 { font-size: 28px; }
  .kpi-row { grid-template-columns: 1fr; }
  .cat8-grid { grid-template-columns: 1fr; }
  .customers-v2-grid { grid-template-columns: repeat(2, 1fr); }
  .dealer-tiers { grid-template-columns: repeat(2, 1fr); display: grid; }
  .tier-pill { min-width: auto; }
  footer > div > div { grid-template-columns: 1fr !important; }
  footer > div > div > div:first-child { grid-column: span 1; }
}

/* ── AI Chat Widget — full screen on mobile ── */
@media (max-width: 768px) {
  .ai-chat-panel {
    bottom: 80px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    height: calc(100dvh - 100px) !important;
    max-height: 560px;
  }
  .ai-chat-btn {
    bottom: 16px !important;
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
}

/* ── Steel Calculator ── */
.sc-header { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.sc-header-img { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sc-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(0,0,0,.07); padding: 28px 28px 24px; }
.sc-dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.sc-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.sc-result-price { font-size: 38px; font-weight: 900; color: #fff; line-height: 1; }
.sc-actions .btn { flex: 1 1 140px; justify-content: center; }

@media (max-width: 640px) {
  .sc-header { flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .sc-header-img { width: 72px; height: 72px; border-radius: 10px; }
  .sc-header h1 { font-size: 17px !important; }
  .sc-header p { font-size: 13px !important; }
  .sc-card { padding: 16px 14px; border-radius: 12px; }
  .sc-dim-grid { gap: 10px; }
  .sc-result-price { font-size: 30px; }
  .sc-actions { flex-direction: column; }
  .sc-actions .btn { width: 100%; flex: none; }
}

/* ════════════════════════════════════════════════════════════════
   DIRECTION A — "Clean Catalog" homepage
   Light, airy, premium · brand red #c0202f · Anuphan + Archivo
════════════════════════════════════════════════════════════════ */
.mono { font-family: var(--font-en); }

/* ── HERO ─────────────────────────────────────────────────────── */
.ha-hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--ink-200); }
/* รูปเครน/โรงเหล็ก เต็ม banner จางอยู่ด้านหลัง */
.ha-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.32;
  z-index: 0; pointer-events: none; user-select: none;
}
/* ไล่เฉดขาวฝั่งซ้าย → จางทางขวา ให้ตัวอักษรซ้ายอ่านชัด รูปเด่นทางขวา */
.ha-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(252,251,250,0.88) 0%, rgba(252,251,250,0.5) 50%, rgba(252,251,250,0.15) 100%);
}
.ha-hero-inner {
  position: relative; z-index: 1;
  display: block; padding-top: 76px; padding-bottom: 76px; min-height: 420px;
}
.ha-hero-copy { max-width: 640px; }
.ha-badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 9px;
  background: var(--blue-100); color: var(--navy-700);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 24px;
}
.ha-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-700); }
.ha-hero-h1 {
  font-size: 58px; line-height: 1.05; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink-900); margin: 0;
}
.ha-hero-h1 span { color: var(--navy-700); }
.ha-hero-lead {
  margin: 22px 0 0; font-size: 18px; line-height: 1.6;
  color: var(--ink-600); max-width: 480px;
}
.ha-hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.ha-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 15px 26px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s; line-height: 1.2;
}
.ha-btn-primary { background: var(--navy-700); color: #fff; }
.ha-btn-primary:hover { background: var(--navy-800); }
.ha-btn-secondary { background: #fff; color: var(--ink-800); border-color: var(--ink-300); }
.ha-btn-secondary:hover { border-color: var(--navy-700); color: var(--navy-700); }
.ha-hero-checks { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.ha-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-700); }
.ha-check-tick { color: var(--green); font-weight: 800; }

.ha-hero-card {
  position: absolute; right: 22px; top: 22px; z-index: 5;
  background: #fff; border: 1px solid var(--ink-200); border-radius: 14px;
  padding: 15px 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); width: 208px;
}
.ha-hero-card-code { font-size: 11px; font-weight: 700; color: var(--ink-400); letter-spacing: 0.08em; }
.ha-hero-card-name { font-size: 14.5px; font-weight: 600; margin-top: 6px; line-height: 1.3; color: var(--ink-800); }
.ha-hero-card-price { font-size: 22px; font-weight: 800; color: var(--navy-700); margin-top: 8px; }

/* ── TRUST BAR ────────────────────────────────────────────────── */
.ha-trust-wrap { background: #fff; border-top: 1px solid var(--ink-200); border-bottom: 1px solid var(--ink-200); }
.ha-trust { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 0; padding-bottom: 0; }
.ha-trust-cell { padding: 26px 30px; border-right: 1px solid var(--ink-100); }
.ha-trust-cell:last-child { border-right: none; }
.ha-trust-no { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--navy-700); margin-bottom: 8px; }
.ha-trust-title { font-size: 16px; font-weight: 600; color: var(--ink-800); }
.ha-trust-sub { font-size: 13px; color: var(--ink-500); margin-top: 3px; }

/* ── CATEGORY TILES (override generic catcar) ─────────────────── */
.catcar-card {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  padding: 22px; background: #fff; border: 1px solid var(--ink-200);
  border-radius: 14px; text-decoration: none; transition: all 0.18s;
}
.catcar-card:hover {
  border-color: var(--navy-700); box-shadow: 0 10px 26px rgba(192,32,47,0.10);
  transform: translateY(-3px);
}
.catcar-chip {
  width: 52px; height: 52px; border-radius: 11px; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
}
.catcar-chip svg { width: 32px; height: 32px; }
.catcar-text { text-align: left; }
.catcar-label { font-size: 16px; font-weight: 600; color: var(--ink-800); line-height: 1.25; text-align: left; }
.catcar-en { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-400); text-transform: uppercase; margin-top: 4px; }

/* ── FEATURED PRODUCTS ────────────────────────────────────────── */
.ha-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ha-prod-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--ink-200); border-radius: 16px; overflow: hidden;
  text-decoration: none; transition: all 0.18s;
}
.ha-prod-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.10); transform: translateY(-3px); }
.ha-prod-media {
  position: relative; height: 170px;
  background: repeating-linear-gradient(135deg, #f4f2ef 0 12px, #eeebe7 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.ha-prod-media svg { width: 74px; height: 74px; }
.ha-prod-stock {
  position: absolute; top: 12px; left: 12px;
  background: var(--green-bg); border: 1px solid #bfe6d2; color: var(--green);
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px;
}
.ha-prod-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ha-prod-code { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-400); }
.ha-prod-name { font-size: 15.5px; font-weight: 600; color: var(--ink-800); line-height: 1.35; flex: 1; }
.ha-prod-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--ink-100);
}
.ha-prod-price span { font-size: 12px; color: var(--ink-400); }
.ha-prod-price b { font-size: 22px; font-weight: 800; color: var(--navy-700); }
.ha-prod-link { font-size: 13px; color: var(--ink-700); white-space: nowrap; }

/* ── PDF-QUOTE CTA BAND ───────────────────────────────────────── */
.ha-cta {
  border-radius: 20px; background: linear-gradient(100deg, #c0202f 0%, #9a1623 100%);
  padding: 50px 52px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px;
  align-items: center; color: #fff;
}
.ha-cta-text h2 { font-size: 36px; font-weight: 700; line-height: 1.12; margin: 0; }
.ha-cta-text p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 560px; }
.ha-cta-btns { display: flex; flex-direction: column; gap: 12px; }
.ha-cta-btn-white, .ha-cta-btn-ghost {
  font-size: 16px; font-weight: 700; padding: 16px; border-radius: 12px;
  text-align: center; cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
}
.ha-cta-btn-white { background: #fff; color: var(--navy-700); }
.ha-cta-btn-white:hover { background: #f2e8e6; }
.ha-cta-btn-ghost { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; font-weight: 600; }
.ha-cta-btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ha-hero-inner { padding-top: 48px; padding-bottom: 48px; min-height: 0; }
  .ha-hero-h1 { font-size: 46px; }
  .ha-hero-bg { opacity: 0.2; }
  .ha-hero::before { background: linear-gradient(180deg, rgba(252,251,250,0.8) 0%, rgba(252,251,250,0.5) 100%); }
  .ha-trust { grid-template-columns: repeat(2, 1fr); }
  .ha-trust-cell:nth-child(2) { border-right: none; }
  .ha-trust-cell:nth-child(1), .ha-trust-cell:nth-child(2) { border-bottom: 1px solid var(--ink-100); }
  .ha-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .ha-cta { grid-template-columns: 1fr; gap: 24px; padding: 38px 32px; }
  .ha-cta-text h2 { font-size: 30px; }
}
@media (max-width: 640px) {
  .ha-hero-h1 { font-size: 38px; }
  .ha-hero-lead { font-size: 16px; }
  .ha-hero-cta .ha-btn { flex: 1 1 100%; }
  .ha-trust { grid-template-columns: 1fr; }
  .ha-trust-cell { border-right: none; border-bottom: 1px solid var(--ink-100); }
  .ha-trust-cell:last-child { border-bottom: none; }
  .ha-featured-grid { grid-template-columns: 1fr; }
  .ha-cta { padding: 30px 22px; }
  .ha-cta-text h2 { font-size: 26px; }
}
