/* ===========================================================
   Charoenmit Public Website — Design System v2 (ตาม Mockup)
   Navy #003366 / Grey #A7A8AC / Font: Prompt
   =========================================================== */

/* หมายเหตุ: ฟอนต์ Prompt โหลดผ่าน <link rel=preconnect>+<link> ใน _header.php แล้ว
   (ไม่ใช้ @import ที่นี่เพราะจะบล็อกการเรนเดอร์ซ้ำอีกรอบ) */

:root {
  --navy:       #003366;
  --navy-dark:  #002347;
  --navy-mid:   #1a3a55;
  --primary:    #003366;
  --amber:      #003366;
  --amber-dark: #002347;
  --amber-light:#E6ECF2;
  --orange:     #003366;
  --steel:      #4B5563;
  --steel-light:#94A3B8;
  --bg:         #FAFAF9;
  --bg-soft:    #EEE6DB;
  --sand:       #D6C6B8;
  --sand-soft:  #EEE6DB;
  --white:      #FFFFFF;
  --line-1:     #E5E7EB;
  --line-2:     #D1D5DB;
  --text:       #111827;
  --text-soft:  #4B5563;
  --text-muted: #9CA3AF;
  --success:    #16A34A;
  --danger:     #DC2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.display {
  font-family: 'Prompt', system-ui, sans-serif;font-weight: 700;letter-spacing: -0.02em;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   STICKY NAV — transparent over hero → solid white on scroll
   ============================================================ */
.site-topnav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 24px rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* กันเบราว์เซอร์เก่าที่ไม่รองรับ backdrop-filter → พื้นทึบขึ้นเพื่ออ่านออก */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-topnav { background: rgba(255,255,255,0.95); }
}
/* Home: float transparently over the hero */
/* designed banners are self-contained → nav sits ABOVE (in-flow), banner shows full below.
   solid navy at top (white text), solid white on scroll (.scrolled rules) */
body.has-hero .site-topnav { position: sticky; }
body.has-hero .site-topnav:not(.scrolled) {
  background: var(--navy-dark, #002347);
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}

/* ============ Top Bar ============ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: opacity 0.25s, max-height 0.3s, padding 0.3s, border-color 0.3s;
}
/* transparent over hero: blend into hero */
body.has-hero .site-topnav:not(.scrolled) .top-bar {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.14);
}
/* scrolled: collapse the strip for a compact bar */
.site-topnav.scrolled .top-bar {
  max-height: 0; padding: 0; opacity: 0; overflow: hidden; border-bottom: none;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-info a { color: inherit; }
.top-bar-info a:hover { color: #fff; }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { color: rgba(255,255,255,0.65); }
.top-bar-social a:hover { color: #fff; }

/* ============ Site Header ============ */
.site-header { background: transparent; border-bottom: none; }
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent, #003366);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,51,102,0.25);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.logo-text { line-height: 1.18; }
.logo-name { font-size: 16px; font-weight: 700; color: var(--accent, #003366); letter-spacing: 0.01em; transition: color 0.3s; }
.logo-sub  { font-size: 9.5px; color: var(--text-muted, #A7A8AC); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; transition: color 0.3s; }
/* transparent-over-hero logo (white) */
body.has-hero .site-topnav:not(.scrolled) .logo-mark { background: #fff; color: var(--accent, #003366); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
body.has-hero .site-topnav:not(.scrolled) .logo-name { color: #fff; }
body.has-hero .site-topnav:not(.scrolled) .logo-sub  { color: rgba(255,255,255,0.7); }

/* Navigation — top-level links only (mega menu styled separately) */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a,
.main-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #1A2333;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  white-space: nowrap;
  gap: 5px;
}
/* hover = soft navy-tint pill · active = ตัวหนา + ขีดส้มใต้ (ตาม mockup) */
.main-nav .nav-link:hover { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); }
.main-nav .nav-link.active { background: transparent; color: var(--navy, #003366); font-weight: 700; }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 1px; height: 3px; border-radius: 3px; background: #D99A2B; }
.main-nav .nav-link.active:hover { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); }
.main-nav .nav-link:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(0,51,102,0.35); }
.main-nav .nav-has-dropdown { cursor: default; }
/* transparent-over-hero nav (white text, translucent pills) */
body.has-hero .site-topnav:not(.scrolled) .main-nav .nav-link { color: rgba(255,255,255,0.92); }
body.has-hero .site-topnav:not(.scrolled) .main-nav .nav-link:hover { background: rgba(255,255,255,0.16); color: #fff; }
body.has-hero .site-topnav:not(.scrolled) .main-nav .nav-link.active { background: rgba(255,255,255,0.20); color: #fff; }
body.has-hero .site-topnav:not(.scrolled) .main-nav .nav-link:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,0.6); }

.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn { border-radius: 100px; padding-left: 20px; padding-right: 20px; }
/* ปุ่มเบอร์โทร — outline pill (ตาม mockup) */
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid var(--line-2, #D7DEE6);
  color: var(--navy, #003366); font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.header-phone svg { color: var(--navy, #003366); flex-shrink: 0; }
.header-phone:hover { border-color: var(--navy, #003366); box-shadow: 0 4px 14px rgba(0,51,102,0.12); }
.menu-toggle {
  display: none; background: transparent;
  border: 1.5px solid var(--accent, #003366); border-radius: 8px;
  padding: 7px 11px; cursor: pointer; color: var(--accent, #003366);
  font-size: 17px; line-height: 1; transition: all 0.2s;
}
body.has-hero .site-topnav:not(.scrolled) .menu-toggle { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.btn-primary { background: var(--navy-dark); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: var(--amber-dark); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid currentColor; }
.btn-line { background: #06C755; color: var(--white); }
.btn-line:hover { background: #04A148; color: var(--white); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-accent { background: var(--accent, #003366); color: #fff; box-shadow: 0 4px 14px rgba(0,51,102,0.22); }
.btn-accent:hover { background: var(--accent-dark, #002347); color: #fff; }
/* over the hero, the header CTA pops as a white button */
body.has-hero .site-topnav:not(.scrolled) .header-cta .btn-accent { background: #fff; color: var(--accent, #003366); }
body.has-hero .site-topnav:not(.scrolled) .header-cta .btn-accent:hover { background: rgba(255,255,255,0.9); }
.btn-lg { padding: 12px 24px; font-size: 14px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ============ Lightweight Grid (Bootstrap-compatible, mobile-first) ============ */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > * { padding: 0 12px; width: 100%; }      /* mobile-first: stack full width + gutter */
.row.g-3 { row-gap: 16px; }
.row.g-4 { row-gap: 24px; }
.row.g-5 { row-gap: 40px; }
/* fixed widths at all breakpoints (declared after .row > * so they win) */
.col      { flex: 1 0 0%; width: auto; }
.col-12   { width: 100%; }
.col-6    { width: 50%; }
@media (min-width: 576px) { .col-sm-6 { width: 50%; } }
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-5 { width: 41.6667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; }
}

/* ============ Hero ============ */
.hero {
  background: var(--navy-dark);
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%),
                    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.018) 20px 21px);
  color: var(--white);
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,51,102,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 11px; font-weight: 500;
  color: #FFFFFF; letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: 'Prompt', system-ui, sans-serif;font-weight: 700;letter-spacing: -0.02em;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: #CBD5E1; }
.hero h1 .line { display: block; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.82); max-width: 560px; line-height: 1.7; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 32px;
}
.hero-stat { padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.1); margin-right: 0; }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: 'Prompt', system-ui, sans-serif;font-weight: 700;letter-spacing: -0.02em; font-size: 40px; color: var(--white); line-height: 1; }
.hero-stat .label { font-size: 12px; color: var(--steel-light); margin-top: 6px; }
.hero-visual { position: relative; height: 380px; }
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 18px 20px; width: 210px;
}
.hero-card.c1 { top: 20px; left: 0; }
.hero-card.c2 { top: 130px; right: 0; }
.hero-card.c3 { bottom: 30px; left: 50px; }
.hero-card .icon { font-size: 26px; margin-bottom: 8px; }
.hero-card .title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.hero-card .desc { font-size: 11px; color: var(--steel-light); line-height: 1.5; }

/* ============ Sections ============ */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-soft); }
.section-dark { background: var(--navy-dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 26px; position: relative;
}
.section-eyebrow::before { content: '—'; position: absolute; left: 0; }
.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy-dark); margin-bottom: 14px; line-height: 1.2;
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-eyebrow { color: var(--steel-light); }
.section-desc { font-size: 16px; color: var(--text-soft); max-width: 620px; margin: 0 auto; }

/* ============ Product Card ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(15,41,64,0.04);
}
.product-card:hover {
  border-color: var(--accent, #003366);
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(15,41,64,0.14);
}
.product-img {
  aspect-ratio: 1; background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--sand-soft, #EEE6DB) 0%, #FFFFFF 55%, #E7EDF3 100%);
  color: var(--navy, #003366);
}
.product-img-placeholder svg { width: 52px; height: 52px; opacity: 0.5; }
.product-img-placeholder .ph-brand {
  font-weight: 800; letter-spacing: 4px; font-size: 13px;
  color: var(--navy, #003366); opacity: 0.45;
}
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent, #003366); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 8px rgba(0,51,102,0.25);
}
.product-badge svg { width: 12px; height: 12px; }
.product-badge.danger { background: var(--danger); color: var(--white); }
.product-badge.new { background: var(--navy-dark); color: var(--white); }
.product-info { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 10px; color: var(--accent, #003366); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.product-cat  { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.product-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-1); }
.product-price { font-family: 'Prompt', system-ui, sans-serif;font-weight: 700;letter-spacing: -0.02em; font-size: 17px; color: var(--navy-dark); }
.product-price.muted { font-family: 'Prompt', system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 500; color: var(--text-muted); }
.product-card-link { font-size: 12.5px; color: var(--accent, #003366); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; white-space: nowrap; margin-left: auto; }
.product-card:hover .product-card-link { gap: 8px; }

/* ============ Portfolio ============ */
.pf-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pf-filter {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  background: var(--bg-soft); color: var(--text-soft);
  border: 1px solid var(--line-1); transition: all 0.15s;
}
.pf-filter:hover { border-color: var(--accent, #003366); color: var(--accent, #003366); }
.pf-filter.active { background: var(--accent, #003366); color: #fff; border-color: var(--accent, #003366); font-weight: 600; }
.pf-count { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.pf-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line-1);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,41,64,0.04);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s, border-color 0.25s;
}
.pf-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(15,41,64,0.14); border-color: var(--accent, #003366); }
.pf-thumb { aspect-ratio: 16/10; background: var(--bg-soft); position: relative; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.pf-card:hover .pf-thumb img { transform: scale(1.06); }
.pf-thumb-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--sand-soft, #EEE6DB) 0%, #FFFFFF 55%, #E7EDF3 100%);
  color: var(--navy, #003366);
}
.pf-thumb-ph svg { width: 46px; height: 46px; opacity: 0.5; }
.pf-thumb-ph span { font-weight: 800; letter-spacing: 4px; font-size: 12px; opacity: 0.45; }
.pf-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; background: var(--accent, #003366); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 11px; border-radius: 100px; box-shadow: 0 2px 8px rgba(0,51,102,0.25); }
.pf-badge svg { width: 11px; height: 11px; }
.pf-cat { position: absolute; bottom: 12px; right: 12px; background: rgba(15,23,42,0.72); color: #fff; font-size: 10px; padding: 4px 11px; border-radius: 100px; backdrop-filter: blur(8px); font-weight: 500; }
.pf-body { padding: 16px 18px 18px; }
.pf-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.pf-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.pf-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pf-meta svg { width: 13px; height: 13px; }
.pf-products { font-size: 11px; color: var(--text-soft); line-height: 1.6; border-top: 1px dashed var(--line-1); padding-top: 10px; display: flex; gap: 7px; align-items: flex-start; }
.pf-products svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: var(--accent, #003366); opacity: 0.8; }
.pf-link { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--accent, #003366); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.pf-card:hover .pf-link { gap: 8px; }

/* ============ Categories Grid ============ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.category-card {
  background: var(--white); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 28px 20px 22px; text-align: center;
  position: relative; overflow: hidden;
  display: block; text-decoration: none; color: var(--text);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s, border-color 0.25s;
}
/* accent bar that sweeps in on hover */
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--sand));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,51,102,0.15); border-color: transparent; }
.category-card:hover::before { transform: scaleX(1); }
.category-icon {
  width: 64px; height: 64px;
  background: var(--bg-soft);
  color: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.category-card:hover .category-icon { background: var(--navy); color: var(--white); transform: scale(1.08) rotate(-3deg); }
.category-name { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; letter-spacing: -0.01em; }
.category-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px;
  background: var(--bg-soft); color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.category-card:hover .category-count { background: var(--navy); color: var(--white); }

/* ============ Brands Strip ============ */
.brands-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; align-items: center; }
.brand-item {
  text-align: center; padding: 16px;
  background: var(--white); border: 1px solid var(--line-1);
  border-radius: 6px; transition: all 0.2s;
}
.brand-item:hover { border-color: var(--amber); }
.brand-item img { max-height: 48px; width: auto; margin: 0 auto; }
.brand-fallback { font-size: 12px; font-weight: 700; color: var(--navy-dark); letter-spacing: 0.05em; }

/* ============ Page Header (inner pages) ============ */
.page-header {
  background: var(--navy-dark);
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%),
                    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.015) 20px 21px);
  color: var(--white); padding: 48px 0; position: relative; overflow: hidden;
}
.page-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--amber); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; margin-bottom: 8px; }
.breadcrumb { font-size: 12px; color: var(--steel-light); }
.breadcrumb a { color: var(--amber); }
/* breadcrumb sits on the dark page-header → light links */
.page-header .breadcrumb { color: rgba(255,255,255,0.6); }
.page-header .breadcrumb a { color: rgba(255,255,255,0.9); }
.page-header .breadcrumb a:hover { color: #fff; }

/* ============ Catalog hero banner ============ */
.catalog-hero { position: relative; color: #fff; background-size: cover; background-position: center; background-repeat: no-repeat; }
.catalog-hero-inner { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: center; padding: 42px 20px 34px; }
.catalog-hero .breadcrumb { margin-bottom: 14px; font-size: 12px; }
.catalog-hero .breadcrumb, .catalog-hero .breadcrumb a { color: rgba(255,255,255,0.72); }
.catalog-hero .breadcrumb a:hover { color: #fff; }
.catalog-hero-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.16; letter-spacing: -0.01em; margin-bottom: 10px; }
.catalog-hero-title span { color: var(--sand, #D6C6B8); }
.catalog-hero-sub { font-size: 15px; color: rgba(255,255,255,0.82); margin-bottom: 24px; }
.catalog-hero-feats { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.chf { display: flex; align-items: center; gap: 11px; }
.chf-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; color: var(--sand, #D6C6B8); flex-shrink: 0; }
.chf-txt { font-size: 13px; font-weight: 600; line-height: 1.35; color: #fff; }
.chf-txt span { display: block; font-weight: 400; font-size: 12px; color: rgba(255,255,255,0.62); }
/* contact card */
.catalog-hero-contact { background: rgba(0,18,40,0.55); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(8px); border-radius: 16px; padding: 18px; }
.chc-head { font-size: 13px; font-weight: 700; color: var(--sand, #D6C6B8); text-align: center; margin-bottom: 14px; }
.chc-phone { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.07); margin-bottom: 9px; text-decoration: none; transition: background 0.15s; }
.chc-phone:last-child { margin-bottom: 0; }
.chc-phone:hover { background: rgba(255,255,255,0.15); }
.chc-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--sand, #D6C6B8); color: var(--navy-dark, #002347); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chc-num { display: flex; flex-direction: column; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.05; }
.chc-num small { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.62); margin-top: 3px; }
/* trust strip */
.catalog-hero-trust { background: rgba(0,16,36,0.6); border-top: 1px solid rgba(255,255,255,0.1); }
.catalog-hero-trust .container { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 13px 20px; justify-content: center; }
.catalog-hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.85); }
.catalog-hero-trust svg { color: var(--sand, #D6C6B8); flex-shrink: 0; }
@media (max-width: 900px) {
  .catalog-hero-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .catalog-hero-feats { gap: 14px 16px; }
  .chf { width: calc(50% - 8px); }
  .catalog-hero-trust .container { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============ Filter Sidebar (Catalog) ============ */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.filter-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; align-self: start; }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding: 10px 14px; background: var(--bg-soft); border-radius: 6px; flex-wrap: wrap; gap: 10px; }
.catalog-result-count { font-size: 13px; color: var(--text-soft); }

/* ============ Product Detail ============ */
.product-detail-img { background: var(--bg-soft); border-radius: 8px; overflow: hidden; aspect-ratio: 1; margin-bottom: 10px; }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-thumb {
  aspect-ratio: 1; border: 2px solid var(--line-1);
  border-radius: 4px; overflow: hidden; cursor: pointer;
}
.product-thumb.active { border-color: var(--amber); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Color swatches */
.color-swatches { display: flex; gap: 8px; margin-top: 8px; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 4px;
  border: 3px solid transparent; cursor: pointer;
  transition: border-color 0.15s;
}
.color-swatch.active { border-color: var(--amber); }

/* Star rating */
.star-rating { display: inline-flex; gap: 2px; align-items: center; }
.star { font-size: 13px; color: var(--text-muted); }
.star.filled { color: var(--amber); }
.rating-count { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

/* Quantity picker */
.qty-picker {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line-2); border-radius: 4px;
  overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 36px; height: 36px;
  background: var(--bg-soft); border: none;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-weight: 700;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--line-2); }
.qty-input {
  width: 56px; height: 36px; border: none;
  text-align: center; font-size: 14px; font-weight: 600;
  font-family: inherit; color: var(--navy-dark);
}
.qty-unit { font-size: 12px; color: var(--text-muted); margin-left: 8px; }

/* Product tabs */
.product-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line-1); margin-bottom: 24px; }
.product-tab {
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  color: var(--text-soft); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.15s;
}
.product-tab.active { color: var(--amber); border-bottom-color: var(--amber); font-weight: 600; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table tr:nth-child(odd) td:first-child { background: var(--bg-soft); }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-1); }
.spec-table td:first-child { font-weight: 600; color: var(--navy-dark); width: 35%; }

/* ============ CTA Banner ============ */
.cta-banner {
  background: var(--cta-banner-bg, #003366);
  color: var(--cta-banner-text, #FFFFFF); padding: 56px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%); }
.cta-banner-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center; position: relative; }
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 8px; color: #FFFFFF; }
.cta-banner p { font-size: 14px; color: rgba(255,255,255,0.82); }
.cta-banner-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* contact button pops as white on the navy banner */
.cta-banner .btn-primary { background: #FFFFFF; color: var(--navy-dark, #002347); }
.cta-banner .btn-primary:hover { background: var(--sand, #D6C6B8); color: var(--navy-dark, #002347); }

/* ============ Footer ============ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 56px 0 24px; border-top: 3px solid var(--sand, #D6C6B8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-size: 16px; font-weight: 600; color: var(--white); margin: 12px 0 8px; }
.footer-tagline { font-size: 13px; line-height: 1.7; max-width: 300px; margin-bottom: 14px; }
.footer-col-title { font-size: 10px; color: var(--steel-light); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col-link { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-decoration: none; }
.footer-col-link:hover { color: var(--white); }
/* Two-branch contact block in footer */
.footer-branch { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-branch:last-of-type { border-bottom: none; }
.footer-branch-name { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.footer-branch .footer-col-link { margin-bottom: 4px; }
.footer-branch-addr { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.55; margin-top: 4px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 11px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom .credit strong { color: var(--steel-light); }

/* ============ About Stats Strip ============ */
.about-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0;
}
.about-stat { padding: 28px 24px; border-right: 1px solid rgba(255,255,255,0.1); }
.about-stat:last-child { border-right: none; }
.about-stat .num { font-family: 'Prompt', system-ui, sans-serif;font-weight: 700;letter-spacing: -0.02em; font-size: 40px; color: var(--white); line-height: 1; }
.about-stat .label { font-size: 12px; color: var(--steel-light); margin-top: 6px; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination a, .pagination span {
  padding: 7px 13px; border: 1px solid var(--line-1);
  border-radius: 4px; font-size: 12px; color: var(--text); text-decoration: none;
}
.pagination a:hover { background: var(--bg-soft); border-color: var(--amber); }
.pagination .current { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }

/* ============ Empty State ============ */
.empty-state { text-align: center; padding: 72px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.35; }
.empty-state-title { font-size: 17px; color: var(--text-soft); margin-bottom: 8px; }
.empty-state-desc { font-size: 13px; }

/* ============ Floating LINE ============ */
.float-line {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  background: #06C755; color: var(--white);
  padding: 13px 22px; border-radius: 100px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(6,199,85,0.4);
  display: flex; align-items: center; gap: 8px;
}
.float-line:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(6,199,85,0.5); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .cta-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner-actions { justify-content: center; }
  .about-stats-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; flex-direction: column; padding: 12px; box-shadow: 0 16px 32px rgba(15,23,42,0.16); z-index: 200; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
  .hero-stats { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats-strip { grid-template-columns: 1fr 1fr; }
}



/* ==============================================================
   MEGA DROPDOWN MENU — v3 Redesign (Better UX/UI)
   ============================================================== */

.nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-chevron {
  font-size: 11px; font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  border-radius: 50%;
  margin-left: 6px;
  background: rgba(0, 51, 102, 0.10);
  color: var(--navy, #003366);
  opacity: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.nav-dropdown-wrap:hover .nav-chevron,
.nav-dropdown-wrap.open .nav-chevron { transform: rotate(180deg); background: var(--navy, #003366); color: #fff; }
/* หน้า catalog (active) → ให้ปุ่มสินค้าดูเด่นว่ามีเมนูย่อย */
.nav-dropdown-wrap.active .nav-chevron { background: var(--navy, #003366); color: #fff; }

/* ── Container ── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 620px;
  background: #FFFFFF;
  border-radius: 0 0 14px 14px;
  border: 1px solid #E2E8F0;
  border-top: 3px solid var(--nav-active, #003366);
  box-shadow: 0 28px 70px rgba(15,23,42,0.20), 0 6px 20px rgba(15,23,42,0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
  z-index: 500;
  overflow: hidden;
}
.nav-dropdown-wrap:hover .mega-menu,
.nav-dropdown-wrap.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ── Mega menu: category-first layout ── */
.mega-inner { display: block !important; }

.mega-section-head {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px 10px;
  font-size: 10px; font-weight: 700;
  color: #374151; text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid #F1F5F9;
}
/* 3-column clickable category menu */
.mega-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 6px;
  padding: 10px 10px 14px;
}
.mega-cats-grid .mega-item { border-radius: 8px !important; }

/* footer: brand chips + tool buttons */
.mega-foot {
  border-top: 1px solid #EEF2F7;
  background: #F8FAFC;
  padding: 13px 16px 15px;
}
.mega-brands {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 7px 14px; margin-bottom: 12px;
}
.mega-foot-label { font-size: 11px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: 0.06em; width: 100%; }
.mega-brand-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: #374151;
  text-decoration: none; transition: color 0.12s;
}
.mega-brand-chip:hover { color: var(--accent, #003366); }
.mega-brand-logo-img {
  height: 20px; width: auto; max-width: 64px; object-fit: contain;
  display: block; border-radius: 3px;
}

/* LINE Login button + account chip (header) */
.btn-line { background: #06C755 !important; color: #fff !important; border: none !important; }
.btn-line:hover { background: #05b14c !important; }
.header-account {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  transition: background 0.15s;
}
.header-account:hover { background: rgba(127,127,127,0.14); }
.header-account-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent, #003366); color: #fff; font-weight: 600; font-size: 13px;
  flex-shrink: 0;
}
.header-account-name { font-size: 13px; font-weight: 500; white-space: nowrap; }
.mega-foot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mega-foot-actions .mega-tool-btn { margin: 0 !important; flex: 1 1 auto; justify-content: center; }
.mega-foot-actions .mega-see-all { margin: 0 !important; flex: 0 0 auto; }

/* ============ Tree (cascade) mega menu ============ */
.mega-tree { width: 740px; left: 0; transform: translateX(-30px) translateY(-6px); }
.nav-dropdown-wrap:hover .mega-tree,
.nav-dropdown-wrap.open .mega-tree { transform: translateX(-30px) translateY(0); }
.mega-tree .tree { display: flex; min-height: 286px; }
.tree-col { flex: 1 1 0; min-width: 0; padding: 8px 0; border-right: 1px solid #E2E8F0; }
.tree-col-2 { background: #F7F9FC; }
.tree-col-3 { background: #F1F5F9; border-right: none; }
.tree-head { padding: 13px 18px 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #475569; display: flex; align-items: center; gap: 6px; }
.tree-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px 10px 18px; color: #1F2937; font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.tree-item .tree-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-ico { display: flex; opacity: 0.85; }
.tree-count { font-size: 10px; background: #E2E8F0; color: #475569; padding: 1px 7px; border-radius: 100px; font-weight: 700; }
.tree-arrow { display: flex; opacity: 0.6; margin-left: 1px; }
.tree-item:hover { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); }
.tree-item.active { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); box-shadow: inset 3px 0 0 var(--accent, #003366); }
.tree-item:hover .tree-ico, .tree-item.active .tree-ico { opacity: 1; }
.tree-item.active .tree-count, .tree-item:hover .tree-count { background: #fff; color: var(--accent, #003366); }
.tree-item.active .tree-arrow, .tree-item:hover .tree-arrow { opacity: 0.9; }
.tree-panel { display: none; flex-direction: column; }
.tree-panel.active { display: flex; }
.tree-leaf {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 18px; font-size: 13px; color: #334155; font-weight: 500; text-decoration: none;
  border-left: 2px solid transparent; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.tree-leaf:hover { background: #fff; color: var(--accent, #003366); border-left-color: var(--accent, #003366); }
.tree-leaf-thumb {
  width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex-shrink: 0;
  background: #F2F4F7; border: 1px solid var(--line-1, #E4E7EC);
}
.tree-leaf-thumb.ph { display: flex; align-items: center; justify-content: center; color: #A7A8AC; }
.tree-leaf-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-empty-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 2px 18px 12px; padding: 8px 14px;
  font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
  background: var(--accent, #003366); border-radius: 7px; transition: background 0.15s;
}
.tree-empty-cta:hover { background: var(--navy-dark, #002347); color: #fff; }
.tree-allcat {
  margin: 8px 14px 12px; padding: 8px 12px; font-size: 11px; font-weight: 700;
  color: var(--accent, #003366); background: var(--accent-light, #E6ECF2);
  border-radius: 7px; text-align: center; text-decoration: none; transition: all 0.15s;
}
.tree-allcat:hover { background: var(--accent, #003366); color: #fff; }
.tree-empty { padding: 14px 18px; color: #94A3B8; font-size: 12px; }

/* ── Column Base ── */
.mega-col {
  display: flex !important;
  flex-direction: column;
  padding: 0;
}
.mega-col:nth-child(2) { border-left: 1px solid #F1F5F9; border-right: 1px solid #F1F5F9; }
.mega-col:nth-child(3) { background: #F8FAFC; }

/* ── Column Header ── */
.mega-col-head {
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 14px 18px 10px;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #F1F5F9;
  background: transparent !important;
  border-top: none !important;
}
.mega-col-icon { font-size: 13px; opacity: 0.7; }

/* ── Category Items ── */
.mega-menu a { text-decoration: none !important; }

.mega-item {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 9px 18px !important;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s, padding-left 0.15s;
  position: relative;
}
.mega-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--nav-active, #003366);
  transition: width 0.15s;
}
.mega-item:hover {
  background: #F8FAFC !important;
  color: var(--nav-active, #003366) !important;
  padding-left: 22px !important;
}
.mega-item:hover::before { width: 3px; }

.mega-item-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  font-size: 13px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  background: transparent !important;
  border-radius: 0 !important;
  flex-shrink: 0;
}
.mega-item:hover .mega-item-icon { opacity: 1; }
.mega-item-label {
  flex: 1;
  line-height: 1.2;
}
.mega-item-count {
  font-size: 10px;
  background: #EEF2F7;
  color: #94A3B8;
  padding: 1px 7px;
  border-radius: 100px;
  font-weight: 600;
  flex-shrink: 0;
}

/* See all */
.mega-see-all {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 16px 14px !important;
  padding: 8px 12px !important;
  background: var(--nav-active, #003366) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: opacity 0.15s, transform 0.1s;
}
.mega-see-all:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Brand Items ── */
.mega-brand-item {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 8px 18px !important;
  color: #374151 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  transition: background 0.1s, color 0.1s;
}
.mega-brand-item:hover {
  background: #F8FAFC !important;
  color: var(--nav-active, #003366) !important;
}
.mega-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Featured Column ── */
.mega-featured-head {
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 14px 18px 10px;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #EEF2F7;
  background: transparent !important;
}
.mega-featured-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px !important;
  padding: 9px 18px !important;
  color: #0F172A !important;
  font-size: 12px !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  transition: background 0.1s;
}
.mega-featured-item:hover { background: #EEF2F7 !important; }
.mega-featured-info { flex: 1; min-width: 0; }
.mega-featured-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mega-featured-brand {
  font-size: 10px !important;
  color: #94A3B8 !important;
  margin-top: 1px;
}
.mega-featured-price {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--nav-active, #003366) !important;
  flex-shrink: 0;
  display: block !important;
  align-items: unset !important;
  border: none !important;
}
.mega-featured-tag {
  font-size: 9px;
  background: #EEF2F7;
  color: #94A3B8;
  padding: 2px 7px;
  border-radius: 100px;
  flex-shrink: 0;
  display: block !important;
  border: none !important;
}

/* ── Tools ── */
.mega-tools {
  margin-top: auto !important;
  padding: 12px 14px 14px !important;
  border-top: 1px solid #EEF2F7 !important;
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  background: #F8FAFC;
}
.mega-tool-btn {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 9px 14px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  border: 1.5px solid var(--nav-active, #003366) !important;
  color: var(--nav-active, #003366) !important;
  background: transparent !important;
  transition: all 0.15s;
  white-space: nowrap;
}
.mega-tool-btn:hover {
  background: var(--nav-active, #003366) !important;
  color: #FFFFFF !important;
}
.mega-tool-btn:first-child {
  background: var(--nav-active, #003366) !important;
  color: #FFFFFF !important;
}
.mega-tool-btn:first-child:hover { opacity: 0.88; }

/* ── Header nav layout + dropdown-trigger hover (colors are state-aware, defined above) ── */
.nav-dropdown-wrap:hover > .nav-link { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); }
body.has-hero .site-topnav:not(.scrolled) .nav-dropdown-wrap:hover > .nav-link { background: rgba(255,255,255,0.16); color: #fff; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .mega-menu {
    position: static !important;
    width: 100% !important;
    opacity: 0 !important;
    max-height: 0;
    overflow: hidden;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid #F1F5F9 !important;
    border-radius: 0 !important;
    transition: max-height 0.3s, opacity 0.2s;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nav-dropdown-wrap.open .mega-menu { opacity: 1 !important; max-height: 1400px; }
  .mega-cats-grid { grid-template-columns: 1fr 1fr !important; }
  .mega-foot-actions { flex-direction: column; align-items: stretch; }
  /* tree menu collapses to a single tappable category list on mobile */
  .mega-tree { width: 100% !important; }
  .mega-tree .tree { display: block !important; min-height: 0 !important; }
  .mega-tree .tree-col-2, .mega-tree .tree-col-3 { display: none !important; }
  .mega-tree .tree-col-1 { border-right: none !important; padding: 6px 0 !important; }
  .mega-tree .tree-arrow { display: none !important; }
  .mega-tree .tree-item { padding: 12px 16px !important; font-size: 14px !important; }
}
@media (max-width: 480px) {
  .mega-cats-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   UX/UI POLISH — Better hover states, transitions, typography
   ============================================================ */

/* Smooth scrolling globally */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Better focus states (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent, #003366);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Typography refinements */
body { font-size: 14px; line-height: 1.6; color: var(--text, #0F172A); }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.01em; line-height: 1.3; }
h1 { font-weight: 700; }

/* Card hover lift (category-card has its own richer hover above) */
.product-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

/* Image loading - prevent layout shift */
img { max-width: 100%; height: auto; }

/* Button refinements */
.btn { transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); font-weight: 600; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Skeleton/loading state */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Better selection */
::selection { background: var(--accent, #003366); color: var(--footer-bg, #002347); }

/* Custom scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 100px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: content-box; border: 2px solid transparent; }

/* Image lazy fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([src=""]) { opacity: 1; }

/* Section spacing consistency */
.section { padding: 72px 0; }
@media (max-width: 768px) { .section { padding: 44px 0; } }

/* Container max-width refinement */
.container { max-width: 1440px; padding: 0 20px; margin: 0 auto; }

/* Filter sidebar refinement */
/* ============ Catalog sidebar (redesigned — card per block) ============ */
.filter-block { background: #FFF; border: 1px solid var(--line-1); border-radius: 14px; padding: 0; margin: 0; overflow: hidden; box-shadow: 0 1px 3px rgba(15,41,64,0.05); }
.filter-block-title { display: flex; align-items: center; gap: 9px; background: var(--navy-dark, #002347); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; margin: 0; padding: 13px 16px; }
.filter-block-title svg { color: var(--sand, #D6C6B8); flex-shrink: 0; }
.filter-block-body { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
/* search input */
.cat-search { position: relative; }
.cat-search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); display: flex; pointer-events: none; }
.cat-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line-1); border-radius: 9px; font-size: 13px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.cat-search input:focus { outline: none; border-color: var(--accent, #003366); box-shadow: 0 0 0 3px rgba(0,51,102,0.08); }
/* items */
.filter-item { display: flex !important; align-items: center; gap: 10px; padding: 9px 11px !important; border-radius: 9px; color: var(--text-soft, #475569) !important; font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.12s, color 0.12s; }
.filter-item .fi-ico { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
.filter-item .fi-name { flex: 1; line-height: 1.2; }
.filter-item:hover { background: var(--bg-soft, #EEE6DB) !important; color: var(--accent, #003366) !important; }
.filter-item:hover .fi-ico { color: var(--accent, #003366); }
.filter-item.active { background: var(--accent, #003366) !important; color: #fff !important; font-weight: 700; }
.filter-item.active .fi-ico { color: #fff; }
.filter-sub { padding-left: 22px !important; font-size: 12px; }
.filter-item .count { font-size: 11px; background: rgba(0,51,102,0.08); color: var(--text-soft, #6B7280); padding: 2px 9px; border-radius: 100px; font-weight: 700; min-width: 22px; text-align: center; }
.filter-item.active .count { background: rgba(255,255,255,0.24); color: #fff; }
/* clear filter */
.filter-clear { display: block; text-align: center; padding: 10px; border-radius: 9px; border: 1px solid var(--line-2, #D1D5DB); color: var(--text-soft); font-size: 12px; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.filter-clear:hover { border-color: var(--danger, #DC2626); color: var(--danger, #DC2626); }
/* download catalog card */
.cat-download { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; text-decoration: none; background: linear-gradient(135deg, var(--navy-dark, #002347), var(--navy, #003366)); color: #fff; box-shadow: 0 6px 18px rgba(0,51,102,0.22); transition: transform 0.18s, box-shadow 0.18s; }
.cat-download:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,51,102,0.3); }
.cat-download .cd-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sand, #D6C6B8); color: var(--navy-dark, #002347); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-download .cd-txt { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cat-download .cd-txt small { display: block; font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.72); margin-top: 2px; }

/* Catalog toolbar */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #FFF;
    border: 1px solid var(--line, #E5E7EB);
    border-radius: 8px;
    margin-bottom: 16px;
}
.catalog-result-count { font-size: 13px; color: var(--text-soft, #475569); }
.catalog-result-count strong { color: var(--text, #0F172A); font-weight: 700; }

/* Empty state */
.empty-state { text-align: center; padding: 72px 24px; }
.empty-state-icon { font-size: 56px; opacity: 0.3; margin-bottom: 12px; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--text, #0F172A); margin-bottom: 4px; }
.empty-state-desc { font-size: 13px; color: var(--text-muted, #94A3B8); }

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; background: #002347; }
/* frame = สัดส่วน banner ที่ใช้จริง (1832×859 ≈ 2.13:1) → ภาพเต็มเฟรมพอดี ไม่มีขอบ */
.hero-slides { position: relative; aspect-ratio: 1832 / 859; height: auto; }

.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    background-size: cover; background-position: center bottom; background-repeat: no-repeat;
    background-image: linear-gradient(135deg, #002347 0%, #003366 100%), var(--bg-img);
    background-image: var(--bg-img, linear-gradient(135deg, #002347 0%, #003366 100%));
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 60%, transparent 100%); }

.hero-slide-content {
    position: relative; z-index: 2;
    max-width: 640px;
    padding: 30px 0;
}
.hero-slide-content.align-center { margin: 0 auto; text-align: center; }
.hero-slide-content.align-right { margin-left: auto; text-align: right; }
.hero-slide-content.text-dark { color: #0F172A; }
.hero-slide-content.text-light { color: #FFFFFF; }

.hero-slide-eyebrow {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 100px;
    background: rgba(255,255,255,0.16); color: #FFFFFF;
    margin-bottom: 16px;
}
.hero-slide-content.text-dark .hero-slide-eyebrow { background: rgba(0,51,102,0.12); color: var(--accent, #003366); }
.hero-slide-title {
    font-size: 44px; font-weight: 700;
    line-height: 1.1; margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.hero-slide-subtitle {
    display: block; color: #CBD5E1;
    font-weight: 700;
}
.hero-slide-content.text-dark .hero-slide-subtitle { color: var(--accent, #003366); }
.hero-slide-desc {
    font-size: 15px; line-height: 1.7;
    color: rgba(255,255,255,0.75);
    max-width: 540px; margin-bottom: 24px;
}
.hero-slide-content.text-dark .hero-slide-desc { color: rgba(15,23,42,0.7); }

.hero-slide-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex; align-items: center;
    padding: 12px 24px; border-radius: 6px;
    font-size: 14px; font-weight: 700;
    background: var(--accent, #003366); color: #FFFFFF;
    text-decoration: none; transition: transform 0.15s, opacity 0.15s;
}
.btn-hero-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-hero-secondary {
    display: inline-flex; align-items: center;
    padding: 11px 22px; border-radius: 6px;
    font-size: 14px; font-weight: 600;
    background: transparent; color: #FFF;
    border: 2px solid rgba(255,255,255,0.4);
    text-decoration: none; transition: all 0.15s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); border-color: #FFF; }
.text-dark .btn-hero-secondary { color: #0F172A; border-color: rgba(15,23,42,0.3); }

/* Nav arrows */
.hero-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.12);
    color: #FFF; border: none;
    border-radius: 50%; cursor: pointer;
    font-size: 24px; z-index: 5;
    backdrop-filter: blur(10px);
    transition: all 0.15s;
}
.hero-nav-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.1); }
.hero-nav-btn.prev { left: 20px; }
.hero-nav-btn.next { right: 20px; }

/* Dots */
.hero-dots {
    position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer;
    transition: all 0.2s;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { background: var(--accent, #003366); width: 28px; border-radius: 100px; }

/* Stats bar */
.hero-stats-bar {
    display: none; /* hidden: designed banners include their own stats */
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    position: relative; z-index: 3;
}
.hero-stats-bar .container { display: flex; justify-content: space-around; gap: 16px; }
.hero-stats-bar .hero-stat { text-align: center; }
.hero-stats-bar .hero-stat .num {
    font-size: 24px; font-weight: 700;
    color: var(--accent, #003366); line-height: 1;
}
.hero-stats-bar .hero-stat .label {
    font-size: 11px; color: rgba(255,255,255,0.65);
    margin-top: 3px;
}

/* ============================================================
   MOBILE RESPONSIVE — Full system
   ============================================================ */
@media (max-width: 768px) {
    /* Container padding */
    .container { padding: 0 16px; }

    /* ── Mobile header: solid navy, sticky, no overlap with hero ── */
    .top-bar { display: none !important; }   /* compact: hide contact strip on mobile */
    body .site-topnav,
    body.has-hero .site-topnav,
    body.has-hero .site-topnav:not(.scrolled) {
        position: sticky !important;
        background: var(--navy-dark) !important;
        box-shadow: 0 2px 14px rgba(0,0,0,0.28) !important;
    }
    .site-header .container { padding-top: 14px; padding-bottom: 14px; }
    /* keep logo white on the navy mobile header (all states) */
    .site-topnav .logo-name { color: #fff !important; font-size: 15px; }
    .site-topnav .logo-mark { background: #fff !important; color: var(--accent, #003366) !important; }
    .logo-sub { display: none; }
    .logo-mark { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }

    /* Hide desktop nav, show mobile menu via mainNav */
    .menu-toggle { display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; border: none !important; border-radius: 9px; background: #FFF !important; color: var(--accent, #003366) !important; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.14); }
    .main-nav {
        display: none;
        position: absolute; top: calc(100% + 6px); left: 0; right: 0;
        background: #FFF;
        padding: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;   /* fix: items were shrinking & centering */
        gap: 4px;
        box-shadow: 0 18px 40px rgba(15,23,42,0.18);
        border-radius: 14px;
        max-height: 78vh; overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    /* dropdown trigger (สินค้า) = full-width row */
    .nav-dropdown-wrap { display: block !important; width: 100%; align-items: stretch; }
    .main-nav .nav-has-dropdown { justify-content: space-between !important; }
    /* each item = full-width left-aligned row */
    .main-nav > a, .main-nav .nav-link {
        width: 100%;
        justify-content: flex-start !important;
        padding: 13px 14px !important;
        font-size: 15px !important;
        border-radius: 10px;
        color: #1A2333;
    }
    .main-nav .nav-link::after { display: none; }
    body.has-hero .site-topnav:not(.scrolled) .main-nav .nav-link { color: #1A2333; }
    .main-nav .nav-link:hover,
    body.has-hero .site-topnav:not(.scrolled) .main-nav .nav-link:hover { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); }
    .main-nav .nav-link.active { background: var(--accent, #003366) !important; color: #fff !important; }

    /* Hide top header CTA on mobile (use bottom nav) */
    .header-cta { display: none; }

    /* ── HERO mobile ── portrait frame 4:5 (1080×1350) → upload a mobile banner to image_mobile */
    .hero-slides { height: auto; aspect-ratio: 1832 / 859; }
    .hero-slide { background-image: var(--bg-img-mobile, var(--bg-img, linear-gradient(135deg, #002347 0%, #003366 100%))); }
    .hero-slide-content { padding: 20px 0; }
    .hero-slide-title { font-size: 30px; }
    .hero-slide-desc { font-size: 13px; }
    .hero-slide-ctas { justify-content: flex-start; }
    .btn-hero-primary, .btn-hero-secondary { font-size: 12px; padding: 10px 16px; }
    .hero-nav-btn { width: 36px; height: 36px; font-size: 18px; }
    .hero-nav-btn.prev { left: 8px; }
    .hero-nav-btn.next { right: 8px; }
    .hero-dots { bottom: 100px; }
    .hero-stats-bar { padding: 12px 0; }
    .hero-stats-bar .container { flex-direction: row; gap: 8px; }
    .hero-stats-bar .hero-stat .num { font-size: 18px; }
    .hero-stats-bar .hero-stat .label { font-size: 10px; }

    /* Static hero (fallback) — clear the fixed nav on mobile */
    .hero { padding: 120px 0 40px !important; }
    .hero-inner { display: block !important; }
    .hero-inner h1 { font-size: 28px !important; }
    .hero-desc { font-size: 13px; }
    .hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
    .hero-card { padding: 12px !important; }

    /* Sections */
    .section { padding: 32px 0; }
    .section-title { font-size: 20px !important; }
    .section-desc { font-size: 13px; }

    /* Grids → 2 cols */
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .category-grid, .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

    /* Catalog layout — sidebar collapses */
    .catalog-layout { grid-template-columns: 1fr !important; gap: 14px; }
    .filter-sidebar { position: relative !important; }
    .catalog-toolbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }

    /* Page header */
    .page-header { padding: 24px 0 !important; }
    .page-header h1 { font-size: 24px !important; }

    /* Footer */
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
    .site-footer { padding-bottom: 88px !important; } /* leave space for bottom nav */

    /* Float LINE button moved up */
    .line-float-btn { bottom: 80px !important; }

    /* Forms */
    .row.g-3 > [class^="col-"] { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    input, select, textarea { font-size: 16px !important; } /* prevent zoom on iOS */

    /* Tables → scroll horizontally */
    table { font-size: 12px; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Mega menu on mobile */
    .mega-menu { position: static !important; transform: none !important; width: 100% !important; box-shadow: none !important; border-radius: 0 !important; }
    .mega-inner { grid-template-columns: 1fr !important; }
    .mega-col { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide-title { font-size: 36px; }
    .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .catalog-layout { grid-template-columns: 220px 1fr !important; }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION — App-like
   ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--line, #E5E7EB);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 6px 4px 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}
.mb-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; padding: 6px 4px;
    text-decoration: none;
    color: var(--text-muted, #94A3B8);
    font-size: 10px; font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s;
    position: relative;
}
.mb-item:hover { color: var(--accent, #003366); }
.mb-item.active { color: var(--accent, #003366); }
.mb-item.active::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--accent, #003366);
    border-radius: 100px;
}
.mb-icon { display: flex; align-items: center; justify-content: center; height: 24px; }
.mb-icon svg { display: block; }
.mb-label { font-size: 10px; line-height: 1; }
/* inline monochrome icons (top-bar, footer contact) align with text */
.ico { vertical-align: -0.16em; flex-shrink: 0; }
.footer-col-link .ico, .top-bar-info span .ico, .top-bar-social a .ico { margin-right: 6px; }
.mb-item.cta {
    background: linear-gradient(135deg, var(--accent, #003366), var(--accent-dark, #002347));
    color: #FFFFFF;
    margin: -8px 4px 0;
    box-shadow: 0 6px 16px rgba(0,51,102,0.35);
    transform: translateY(-4px);
}
.mb-item.cta::before { display: none; }
.mb-item.cta .mb-icon { font-size: 24px; }

@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 72px; }
}

/* Hide float-line button on mobile (use bottom nav CTA instead) */
@media (max-width: 768px) {
    .float-line { display: none !important; }
}

/* ============================================================
   MEGA MENU V2 — Modern with brand logos + product images
   ============================================================ */
.mega-inner-v2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.4fr;
    gap: 28px;
    padding: 24px 28px;
}

.mega-col-v2 {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mega-col-head-v2 {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted, #94A3B8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Categories column */
.mega-cat-list { display: flex; flex-direction: column; gap: 1px; }
.mega-cat-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    font-size: 13px;
    color: var(--text-soft, #475569);
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.12s;
}
.mega-cat-item:hover {
    background: var(--bg-soft, #F8FAFC);
    color: var(--text, #0F172A);
}
.mega-cat-item.highlighted {
    background: var(--accent-light, #E6ECF2);
    color: var(--accent-dark, #002347);
    font-weight: 600;
}
.mega-cat-icon { font-size: 15px; width: 22px; text-align: center; }
.mega-cat-name { flex: 1; }
.mega-cat-count {
    font-size: 10px;
    background: rgba(0,0,0,0.05);
    color: var(--text-muted, #94A3B8);
    padding: 1px 7px;
    border-radius: 100px;
    font-weight: 500;
}
.mega-cat-item.highlighted .mega-cat-count {
    background: var(--accent, #003366);
    color: #FFF;
}

/* Brands column */
.mega-brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.mega-brand-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #FFF;
    border: 1px solid var(--line, #E5E7EB);
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.12s;
}
.mega-brand-card:hover {
    border-color: var(--accent, #003366);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}
.mega-brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-soft, #F8FAFC);
}
.mega-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.mega-brand-name {
    font-size: 11px;
    color: var(--text, #0F172A);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-col-cta {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dark, #002347);
    text-decoration: none;
    padding: 6px 10px;
    text-align: right;
}
.mega-col-cta:hover { color: var(--accent, #003366); }

/* Featured products column */
.mega-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.mega-feat-card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-soft, #F8FAFC);
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid var(--line, #E5E7EB);
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
}
.mega-feat-card:hover {
    border-color: var(--accent, #003366);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.mega-feat-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #003366 0%, #1a3a55 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mega-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mega-feat-placeholder {
    color: rgba(0,51,102,0.5);
    font-size: 28px;
}
.mega-feat-info { padding: 8px 10px 10px; }
.mega-feat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text, #0F172A);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mega-feat-brand {
    font-size: 10px;
    color: var(--text-muted, #94A3B8);
}

/* Amber CTA card */
.mega-feat-cta {
    background: linear-gradient(135deg, var(--accent, #003366) 0%, var(--accent-dark, #002347) 100%);
    color: var(--navy-dark, #002347);
    border-radius: 9px;
    padding: 14px 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.15s, box-shadow 0.15s;
}
.mega-feat-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,51,102,0.3);
}
.mega-feat-cta-icon {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1;
}
.mega-feat-cta-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}
.mega-feat-cta-sub {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 2px;
}

/* Tools shortcuts */
.mega-tools-v2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line, #E5E7EB);
}
.mega-tool-btn-v2 {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    font-size: 12px;
    color: var(--text-soft, #475569);
    background: var(--bg-soft, #F8FAFC);
    border: 1px solid var(--line, #E5E7EB);
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.12s;
}
.mega-tool-btn-v2:hover {
    background: #FFF;
    color: var(--accent-dark, #002347);
    border-color: var(--accent, #003366);
}
.mega-tool-btn-v2 span { font-size: 13px; }

@media (max-width: 1024px) {
    .mega-inner-v2 { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
    .mega-feat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   APPLE-STYLE HERO — Full bleed cinematic
   ============================================================ */
.hero-apple {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, #002347 0%, #003366 50%, #1a3a55 100%);
    overflow: hidden;
}
.hero-apple-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-apple-bg.active { opacity: 1; }
.hero-apple-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(0,51,102,0.18), transparent 50%),
        linear-gradient(90deg, rgba(6,24,39,0.85) 0%, rgba(6,24,39,0.55) 50%, rgba(6,24,39,0.3) 100%);
    z-index: 1;
}
.hero-apple-decoration {
    position: absolute;
    right: -120px;
    top: -80px;
    font-size: 520px;
    color: rgba(0,51,102,0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-apple-content {
    position: relative;
    z-index: 2;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    padding: 80px 0 120px;
}

.hero-apple-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,51,102,0.15);
    color: var(--accent, #003366);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
    backdrop-filter: blur(8px);
}

.hero-apple-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 0 0 18px;
}
.hero-apple-title em {
    color: var(--accent, #003366);
    font-style: normal;
    display: block;
}

.hero-apple-desc {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin: 0 0 32px;
    max-width: 540px;
}

.hero-apple-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn-apple-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 24px;
    background: var(--accent, #003366);
    color: var(--navy-dark, #002347);
    font-size: 14px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-apple-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,51,102,0.4);
}

.btn-apple-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    background: rgba(255,255,255,0.08);
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.btn-apple-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* Slide indicators (dashes, Apple-style) */
.hero-apple-dots {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.hero-apple-dot {
    width: 8px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.hero-apple-dot.active {
    width: 28px;
    background: var(--accent, #003366);
}

/* Side arrows (subtle) */
.hero-apple-arrows {
    position: absolute;
    right: 32px;
    bottom: 72px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-apple-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #FFF;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}
.hero-apple-arrow:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.08);
}

/* Stats bar below hero (separate row) */
.hero-stats-row {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line, #E5E7EB);
    padding: 0;
}
.hero-stats-row .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.hero-stat-item {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--line, #E5E7EB);
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.hero-stat-icon.amber { background: var(--accent-light, #E6ECF2); color: var(--accent-dark, #002347); }
.hero-stat-icon.blue { background: #DBEAFE; color: #1D4ED8; }
.hero-stat-icon.green { background: #D1FADF; color: #027A48; }
.hero-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #0F172A);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted, #94A3B8);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .hero-apple { min-height: 72vh; }
    .hero-apple-content { min-height: 72vh; padding: 60px 0 100px; }
    .hero-apple-title { font-size: 36px; }
    .hero-apple-desc { font-size: 14px; }
    .hero-apple-dots { bottom: 60px; }
    .hero-apple-arrows { right: 16px; bottom: 54px; }
    .hero-apple-arrow { width: 36px; height: 36px; font-size: 14px; }
    .hero-stats-row .container { grid-template-columns: 1fr; }
    .hero-stat-item { border-right: none; border-bottom: 1px solid var(--line, #E5E7EB); padding: 16px 18px; }
    .hero-stat-item:last-child { border-bottom: none; }
    .hero-stat-num { font-size: 18px; }
}

/* ===========================================================
   HOME REDESIGN (2026-06-14) — stats strip · split headers ·
   why-grid · portfolio band · refined brands
   =========================================================== */

/* Split section header: left title + optional right action link */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; flex-wrap: wrap; }
.section-head .sh-main { max-width: 700px; }
.section-head .section-eyebrow { margin-bottom: 10px; }
.section-head .section-title { margin-bottom: 8px; }
.section-head .sh-desc { font-size: 15px; color: var(--text-soft); line-height: 1.6; }
.section-head-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--accent, #003366);
  white-space: nowrap; padding: 10px 18px;
  border: 1px solid var(--line-1); border-radius: 100px; background: #fff;
  transition: background .2s, color .2s, border-color .2s, gap .2s;
}
.section-head-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); gap: 11px; }
.section-head-link svg { width: 15px; height: 15px; }

/* USP / Stats strip directly under the hero */
.stats-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line-1); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 24px; padding-bottom: 24px; }
.stat-cell { display: flex; align-items: center; gap: 15px; padding: 8px 22px; position: relative; }
.stat-cell + .stat-cell::before { content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(0,51,102,0.12); }
.stat-cell .stat-ico {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,51,102,0.08);
}
.stat-cell .stat-ico svg { width: 24px; height: 24px; }
.stat-cell .stat-num { font-family: 'Prompt', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 27px; color: var(--navy-dark); line-height: 1; }
.stat-cell .stat-lab { font-size: 13px; color: var(--text-soft); margin-top: 4px; }

/* Why choose us — redesigned cards */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line-1); border-radius: 18px;
  padding: 30px 26px 28px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, border-color .25s;
}
.why-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--sand)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(0,51,102,0.12); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-card .why-ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-light, #E6ECF2); color: var(--accent, #003366);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background .25s, color .25s;
}
.why-card:hover .why-ico { background: var(--navy); color: #fff; }
.why-card .why-ico svg { width: 27px; height: 27px; }
.why-card .why-index { position: absolute; top: 24px; right: 26px; font-family: 'Prompt', sans-serif; font-size: 34px; font-weight: 700; color: var(--bg-soft); line-height: 1; pointer-events: none; }
.why-card h4 { font-size: 16.5px; font-weight: 700; color: var(--navy-dark); margin-bottom: 9px; }
.why-card p { font-size: 13px; color: var(--text-soft); line-height: 1.75; }

/* Portfolio CTA band */
.portfolio-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-dark, #002347), var(--navy, #003366)); color: #fff;
  padding: 38px 44px; border-radius: 22px; text-decoration: none;
  position: relative; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,51,102,0.18);
  transition: transform .25s, box-shadow .25s;
}
.portfolio-band::before { content: ''; position: absolute; top: -70px; right: -30px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(214,198,184,0.20), transparent 70%); pointer-events: none; }
.portfolio-band:hover { transform: translateY(-3px); box-shadow: 0 22px 52px rgba(0,51,102,0.28); }
.portfolio-band .pb-left { display: flex; align-items: center; gap: 22px; min-width: 260px; position: relative; z-index: 1; }
.portfolio-band .pb-ico { width: 66px; height: 66px; border-radius: 18px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.portfolio-band .pb-ico svg { width: 30px; height: 30px; }
.portfolio-band .pb-eyebrow { font-size: 12px; font-weight: 700; color: var(--sand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.portfolio-band .pb-title { font-size: 23px; font-weight: 700; color: #fff; line-height: 1.3; }
.portfolio-band .pb-sub { font-size: 13px; color: rgba(255,255,255,0.74); margin-top: 5px; }
.portfolio-band .pb-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy-dark); font-weight: 700; font-size: 14px; padding: 13px 26px; border-radius: 11px; white-space: nowrap; position: relative; z-index: 1; transition: gap .2s; }
.portfolio-band:hover .pb-cta { gap: 12px; }
.portfolio-band .pb-cta svg { width: 16px; height: 16px; }

/* Brands strip — refined */
.brands-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 14px; align-items: stretch; }
.brand-item { display: flex; align-items: center; justify-content: center; min-height: 86px; padding: 18px 16px; background: #fff; border: 1px solid var(--line-1); border-radius: 14px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.brand-item:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 12px 26px rgba(0,51,102,0.1); }
.brand-item img { max-height: 44px; max-width: 100%; width: auto; margin: 0; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.brand-item:hover img { filter: grayscale(0); opacity: 1; }
.brand-fallback { font-size: 13px; font-weight: 700; color: var(--navy-dark); letter-spacing: .04em; text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .stats-strip .container { grid-template-columns: repeat(2, 1fr); gap: 16px 4px; }
  .stat-cell + .stat-cell:nth-child(odd)::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-cell { padding: 8px 10px; gap: 11px; }
  .stat-cell .stat-ico { width: 42px; height: 42px; }
  .stat-cell .stat-num { font-size: 22px; }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-band { padding: 28px 24px; }
  .section-head-link { display: none; }
}

/* ===========================================================
   SHOWCASE PAGES (2026-06-14) — product detail + about grids
   =========================================================== */

/* about / services 3-up grid (reuses .why-card) */
.why-grid-3 { grid-template-columns: repeat(3, 1fr); }
.why-card.is-soon { border-style: dashed; }
.why-badge { position: absolute; top: 20px; right: 22px; background: var(--sand, #D6C6B8); color: var(--navy-dark, #002347); font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; }

/* product detail — showcase (no price / cart) */
.pd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.stock-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.stock-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-pill.in  { background: #E7F6EC; color: #15803D; }
.stock-pill.out { background: #FDECEC; color: #B91C1C; }
.stock-pill.pre { background: var(--accent-light, #E6ECF2); color: var(--accent, #003366); }
.pd-cat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-soft); background: var(--bg-soft); padding: 6px 13px; border-radius: 100px; transition: background .2s, color .2s; }
.pd-cat-chip:hover { background: var(--navy); color: #fff; }
.pd-cat-chip svg { width: 13px; height: 13px; }
.pd-contact { background: linear-gradient(135deg, var(--navy-dark, #002347), var(--navy, #003366)); color: #fff; border-radius: 16px; padding: 22px 24px; margin: 24px 0 16px; }
.pd-contact-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pd-contact-head svg { width: 18px; height: 18px; color: var(--sand, #D6C6B8); }
.pd-contact-sub { font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.6; margin-bottom: 16px; }
.pd-contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-contact-actions .btn { flex: 1; justify-content: center; min-width: 150px; }
.pd-contact-actions .btn-accent { background: #fff; color: var(--navy-dark, #002347); box-shadow: none; }
.pd-contact-actions .btn-accent:hover { background: var(--sand, #D6C6B8); color: var(--navy-dark, #002347); }
.pd-sku-line { font-size: 11px; color: var(--text-muted); }
.pd-sku-line code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; }

@media (max-width: 860px) { .why-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid-3 { grid-template-columns: 1fr; } }

/* product gallery zoom hint + lightbox */
.product-detail-img { cursor: zoom-in; }
.product-detail-img .zoom-hint {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 500;
  padding: 5px 11px; border-radius: 100px; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.product-detail-img .zoom-hint svg { width: 12px; height: 12px; }
.product-detail-img:hover .zoom-hint { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,12,20,0.93); padding: 40px; cursor: zoom-out;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,0.55); cursor: default;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.12); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.26); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 32px; line-height: 1;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.82); font-size: 13px; letter-spacing: .04em;
  background: rgba(0,0,0,0.4); padding: 5px 14px; border-radius: 100px;
}
@media (max-width: 560px) {
  .lightbox { padding: 14px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 26px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 10px; right: 12px; }
}

/* ===========================================================
   GLOBAL SEARCH (2026-07) — header button + /search page
   =========================================================== */
.header-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: inherit; background: transparent; transition: background .2s;
  flex-shrink: 0;
}
.header-search-btn:hover { background: rgba(0,0,0,0.06); }
.header-search-btn svg { width: 18px; height: 18px; }

.search-hero { background: linear-gradient(135deg, var(--navy-dark, #002347), var(--navy, #003366)); color: #fff; padding: 40px 0 32px; }
.search-hero-title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.search-hero-title svg { width: 26px; height: 26px; }
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 14px; max-width: 640px; box-shadow: 0 8px 26px rgba(0,0,0,0.18); }
.search-bar-ico { display: inline-flex; color: var(--text-muted); flex-shrink: 0; }
.search-bar-ico svg { width: 20px; height: 20px; }
.search-bar input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 15px; color: var(--text); background: transparent; min-width: 0; }
.search-bar .btn { flex-shrink: 0; }
.search-summary { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.85); }

.search-group-title { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; color: var(--navy-dark); margin-bottom: 18px; }
.search-group-title svg { width: 18px; height: 18px; color: var(--accent, #003366); }
.search-group-title span { font-size: 12px; font-weight: 700; color: var(--accent, #003366); background: var(--accent-light, #E6ECF2); padding: 2px 9px; border-radius: 100px; }

.search-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.search-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--navy-dark); background: #fff; border: 1px solid var(--line-1); border-radius: 100px; padding: 8px 16px; transition: background .2s, color .2s, border-color .2s; }
.search-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-chip span { font-size: 11px; font-weight: 700; opacity: 0.85; background: var(--bg-soft); color: var(--navy); padding: 1px 8px; border-radius: 100px; }
.search-chip:hover span { background: rgba(255,255,255,0.2); color: #fff; }

/* ===========================================================
   ARTICLES / BLOG (2026-07-11)
   =========================================================== */
.art-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.art-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line-1);border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;transition:box-shadow .18s,transform .18s,border-color .18s;}
.art-card:hover{box-shadow:0 12px 30px rgba(0,51,102,.12);transform:translateY(-3px);border-color:var(--navy);}
.art-thumb{position:relative;aspect-ratio:16/10;background:linear-gradient(135deg,#eef2f6,#dde5ec);overflow:hidden;}
.art-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.art-thumb-ph{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#9fb2c4;}
.art-thumb-ph span{font-weight:800;letter-spacing:1px;font-size:13px;}
.art-cat{position:absolute;top:12px;left:12px;background:var(--navy);color:#fff;font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;}
.art-body{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1;}
.art-title{font-size:16px;font-weight:700;line-height:1.4;color:var(--navy);margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.art-excerpt{font-size:13px;line-height:1.6;color:var(--text-muted);margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1;}
.art-meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--text-muted);border-top:1px solid var(--line-1);padding-top:12px;}
.art-meta span{display:inline-flex;align-items:center;gap:5px;}
.art-readmore{color:var(--navy);font-weight:600;}
.art-pagination{display:flex;gap:8px;justify-content:center;margin-top:34px;flex-wrap:wrap;}
.art-page{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-1);border-radius:8px;color:var(--navy);text-decoration:none;font-weight:600;font-size:14px;transition:.15s;}
.art-page:hover{border-color:var(--navy);}
.art-page.active{background:var(--navy);color:#fff;border-color:var(--navy);}

/* Article detail */
.art-detail{max-width:760px;margin:0 auto;}
.art-detail-head{text-align:center;margin-bottom:26px;}
.art-cat-link{display:inline-block;background:var(--sand,#D6C6B8);color:var(--navy);font-size:12px;font-weight:600;padding:4px 14px;border-radius:20px;text-decoration:none;margin-bottom:14px;}
.art-detail-title{font-size:clamp(24px,4vw,36px);font-weight:800;line-height:1.3;color:var(--navy);margin:0 0 16px;}
.art-detail-meta{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;font-size:13px;color:var(--text-muted);}
.art-detail-meta span{display:inline-flex;align-items:center;gap:6px;}
.art-detail-cover{margin:26px 0;border-radius:16px;overflow:hidden;aspect-ratio:16/9;background:#eef2f6;}
.art-detail-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.art-detail-lead{font-size:18px;line-height:1.7;color:#334155;font-weight:500;border-left:4px solid var(--navy);padding-left:18px;margin:26px 0;}
.art-content{font-size:16px;line-height:1.85;color:#2d3748;}
.art-content h2{font-size:22px;font-weight:700;color:var(--navy);margin:32px 0 12px;}
.art-content h3{font-size:18px;font-weight:700;color:var(--navy);margin:24px 0 10px;}
.art-content p{margin:0 0 16px;}
.art-content ul,.art-content ol{margin:0 0 16px;padding-left:24px;}
.art-content li{margin-bottom:8px;}
.art-content img{max-width:100%;height:auto;border-radius:10px;margin:16px 0;}
.art-content a{color:var(--navy);text-decoration:underline;}
.art-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:30px 0;color:var(--text-muted);}
.art-tag{background:#f1f5f9;color:#475569;font-size:12px;padding:4px 12px;border-radius:20px;}
.art-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:var(--navy);color:#fff;border-radius:16px;padding:24px 28px;margin:34px 0;}
.art-cta-text{display:flex;flex-direction:column;gap:3px;}
.art-cta-text strong{font-size:17px;}
.art-cta-text span{font-size:13px;opacity:.85;}
.art-cta-btns{display:flex;gap:10px;flex-wrap:wrap;}
.art-related{max-width:1100px;margin:50px auto 0;border-top:1px solid var(--line-1);padding-top:36px;}
@media (max-width:900px){.art-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.art-grid{grid-template-columns:1fr;}.art-cta{flex-direction:column;align-items:stretch;text-align:center;}.art-cta-btns{justify-content:center;}}

/* ===========================================================
   PER-PAGE HERO BANNER (2026-07-11) — desktop + mobile responsive
   =========================================================== */
.page-banner-bg{position:absolute;inset:0;z-index:0;pointer-events:none;}
.page-banner-bg img{width:100%;height:100%;object-fit:cover;display:block;}
.page-banner-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(105deg,rgba(0,20,45,.97) 0%,rgba(0,26,54,.96) 40%,rgba(0,44,88,.66) 58%,rgba(0,51,102,.22) 78%,rgba(0,51,102,.04) 100%);}
/* มือถือ: ข้อความคลุมเต็มกว้าง → ทำ scrim เข้มสม่ำเสมอเพื่ออ่านง่าย */
@media(max-width:640px){.page-banner-scrim{background:linear-gradient(180deg,rgba(0,28,58,.86) 0%,rgba(0,35,71,.82) 100%);}}
/* หน้าที่มี hero → ยก content ให้อยู่เหนือ banner (z-index 2) */
.catalog-hero-inner,.contact-hero-content,.about-hero-content{position:relative;z-index:2;}

/* ===========================================================
   ABOUT — วัสดุครบวงจร (product category cards) 2026-07-12
   =========================================================== */
.prodcat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.prodcat-card{background:var(--white);border:1px solid var(--line-1);border-radius:12px;padding:26px 16px;text-align:center;text-decoration:none;color:inherit;display:flex;flex-direction:column;align-items:center;transition:transform .18s,box-shadow .18s,border-color .18s;}
.prodcat-card:hover{border-color:var(--navy);box-shadow:0 10px 24px rgba(0,51,102,.10);transform:translateY(-3px);}
.prodcat-ico{width:60px;height:60px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:14px;}
.prodcat-card h4{font-size:15px;font-weight:700;color:var(--navy);margin:0 0 8px;}
.prodcat-card p{font-size:12.5px;color:var(--text-muted);line-height:1.55;margin:0;}
@media(max-width:1024px){.prodcat-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:560px){.prodcat-grid{grid-template-columns:repeat(2,1fr);}}

/* About hero = full composed banner image (title/stats baked in) */
.about-hero-banner{background:var(--navy-dark);line-height:0;}
.about-hero-banner img{display:block;width:100%;height:auto;}
/* visually-hidden (screen-reader/SEO) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ===========================================================
   HERO: กว้างเท่า container ของ navbar (1200px) — ตรงกับโลโก้/เมนูพอดี
   ไม่เต็มขอบจอ → ภาพเต็มใบไม่โดนตัด + เตี้ยลง เห็นเนื้อหาถัดไป (2026-07-12)
   =========================================================== */
/* โหมดเต็มหน้าจอ — hero สูง = ความสูงจอ − header (ภาพเต็มเฟรม cover) */
@media (min-width: 1025px) {
  .hero-slider {
    height: calc(100vh - var(--hero-offset, 128px));
    max-width: none; margin: 0; border-radius: 0;
  }
  .hero-slides { height: 100%; aspect-ratio: auto; }
  /* หน้าอื่นที่เป็น banner ภาพล้วน (about/สินค้า/ติดต่อ/แบรนด์) → เต็มความกว้างจอด้วย */
  .about-hero-banner { max-width: none; margin: 0; border-radius: 0; }
}
/* โหมดกว้างเท่า navbar (boxed) — ถ้าจะกลับไปใช้ เอา comment ออก
@media (min-width: 1025px) {
  .hero-slider, .about-hero-banner { max-width:1400px; margin:0 auto; border-radius:0 0 16px 16px; overflow:hidden; }
}
*/
