/* CHY-TECH Industrial B2B Design System — EU & North America Edition */
:root {
  --navy-950: #071224;
  --navy-900: #0B1F3A;
  --navy-800: #132F54;
  --blue-600: #0052CC;
  --blue-700: #003E99;
  --blue-50: #EEF5FF;
  --emerald-700: #047857;
  --emerald-50: #ECFDF5;
  --amber-700: #B45309;
  --amber-50: #FFFBEB;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Top Utility Bar */
.topbar {
  background: var(--navy-950);
  color: #CBD5E1;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
}
.topbar-badges { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar a { color: #E2E8F0; }
.topbar a:hover { color: #FFFFFF; text-decoration: none; }
.dot-sep { opacity: 0.35; }

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: var(--navy-900);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--blue-600);
  flex-shrink: 0;
}
.brand-icon-img { width: 25px; height: auto; object-fit: contain; }
.brand-text-col { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.brand-wordmark-img { height: 18px; width: auto; object-fit: contain; align-self: flex-start; }
.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-footer .brand-mark { background: rgba(255,255,255,0.06); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .btn { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); }
.btn-outline { background: var(--white); color: var(--navy-900); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-amber { background: #D97706; color: var(--white); }
.btn-amber:hover { background: #B45309; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.badge-ul { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid #A7F3D0; }
.badge-ip { background: var(--blue-50); color: var(--blue-700); border: 1px solid #BFDBFE; }
.badge-amber { background: var(--amber-50); color: var(--amber-700); border: 1px solid #FDE68A; }
.badge-slate { background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--slate-200); }

/* Hero */
.hero {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.94) 0%, rgba(7,18,36,0.82) 44%, rgba(7,18,36,0.18) 72%, rgba(7,18,36,0.06) 100%),
    url('/assets/img/hero-home-bg.jpg') right center / cover no-repeat;
  color: var(--white);
  padding: 76px 0 72px;
  border-bottom: 3px solid var(--blue-600);
}
.hero-content { max-width: 610px; }

/* Flagship Series Spotlight Band (Below Trust Bar) */
.spotlight-band {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.spotlight-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spotlight-tile {
  background: #F4F7FA;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate-600);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color 0.15s;
}
.spotlight-tile:hover { border-color: var(--blue-600); text-decoration: none; color: var(--blue-600); }
.spotlight-tile img { height: 112px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.spotlight-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.spotlight-specs .label { display: block; font-size: 11px; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.04em; }
.spotlight-specs strong { font-size: 13.5px; color: var(--navy-900); }
@media (max-width: 920px) {
  .spotlight-band { grid-template-columns: 1fr; }
  .spotlight-specs { grid-template-columns: repeat(2, 1fr); }
}
.hero-card {
  background: rgba(7, 18, 36, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.hero-prod-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-prod-tile {
  background: var(--white);
  border-radius: var(--radius-sm);
  height: 92px;
  display: grid;
  place-items: center;
  padding: 8px;
}
.hero-prod-tile img { max-height: 76px; max-width: 100%; object-fit: contain; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-lead {
  color: #CBD5E1;
  font-size: 16.5px;
  margin: 0 0 26px;
  max-width: 620px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.hero-card-title {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93C5FD;
  margin: 0 0 14px;
}
.spec-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.spec-mini {
  background: rgba(7, 18, 36, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.spec-mini .label { font-size: 11px; color: #94A3B8; display: block; }
.spec-mini .val { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: #F8FAFC; }

/* Trust Bar */
.trust-strip {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 18px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item strong { display: block; font-size: 14px; color: var(--navy-900); }
.trust-item span { font-size: 12px; color: var(--slate-500); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  font-weight: 700;
  margin-bottom: 6px;
}
.section-head h2 { margin: 0; font-size: 28px; color: var(--navy-900); letter-spacing: -0.02em; }
.section-sub { color: var(--slate-600); max-width: 680px; margin: 8px 0 0; font-size: 15px; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: #93C5FD; box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 8px; font-size: 17.5px; color: var(--navy-900); }
.card p { margin: 0 0 14px; font-size: 14px; color: var(--slate-600); }
.card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--slate-100); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--slate-700);
  margin-bottom: 6px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-700);
  font-weight: 700;
}

/* Page Banner — Pixel-Identical Height & Framing Across All Inner Pages */
.page-header {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.18) 100%),
    url('/assets/img/hero-connectors-bg.jpg') right center / cover no-repeat;
  color: var(--white);
  min-height: 215px;
  display: flex;
  align-items: center;
  padding: 40px 0;
  border-bottom: 3px solid var(--blue-600);
}
.page-header.banner-harness {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.18) 100%),
    url('/assets/img/banner-harness-bg.jpg') right center / cover no-repeat;
}
.page-header.banner-tools {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.18) 100%),
    url('/assets/img/banner-tools-bg.jpg') right center / cover no-repeat;
}
.page-header.banner-applications {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.18) 100%),
    url('/assets/img/banner-applications-bg.jpg') right center / cover no-repeat;
}
.page-header.banner-guides {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.18) 100%),
    url('/assets/img/banner-guides-bg.jpg') right center / cover no-repeat;
}
.page-header.banner-certifications {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.18) 100%),
    url('/assets/img/banner-certifications-bg.jpg') right center / cover no-repeat;
}
.breadcrumb { font-size: 12.5px; color: #94A3B8; margin-bottom: 10px; }
.breadcrumb a { color: #CBD5E1; }
.page-header h1 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; max-width: 720px; }
.page-header p { margin: 0; color: #CBD5E1; max-width: 640px; font-size: 15px; }

/* Parametric Filter Bar */
.filter-panel {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--slate-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

/* Spec Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.spec-table th, table.spec-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
table.spec-table th {
  background: var(--slate-50);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
table.spec-table tr:last-child td { border-bottom: none; }
table.spec-table tbody tr:hover { background: #F8FAFC; }

/* Product Detail */
.pdp-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.pdp-visual {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.pdp-mpn { font-family: var(--font-mono); font-size: 13px; color: var(--blue-600); font-weight: 700; }
.cross-sell-box {
  background: linear-gradient(135deg, #EEF5FF 0%, #F8FAFC 100%);
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 28px;
}

/* Process Steps */
.steps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}
.step-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--blue-600); margin-bottom: 6px; }
.step-box h4 { margin: 0 0 4px; font-size: 14px; color: var(--navy-900); }
.step-box p { margin: 0; font-size: 12.5px; color: var(--slate-600); }

/* RFQ Form */
.rfq-wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.checkbox-group label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-transform: none; font-size: 13.5px; cursor: pointer; }
.checkbox-group input { width: auto; }
.rfq-toast {
  display: none;
  background: var(--emerald-50);
  border: 1px solid #6EE7B7;
  color: #065F46;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #CBD5E1;
  padding: 52px 0 28px;
  font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: var(--white); margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #94A3B8;
}

/* GDPR Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy-900);
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.cookie-banner.show { display: flex; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .pdp-grid, .rfq-wrap, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .form-row, .filter-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
}

/* Marketing Plan Additions: Interactive Tools, GEO Articles & Smart Selector Widget */
.decoder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.mpn-output-box {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.mpn-output-code {
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #93C5FD;
}
.article-body { max-width: 820px; }
.article-body h2 { margin-top: 28px; color: var(--navy-900); font-size: 22px; }
.article-body h3 { margin-top: 20px; color: var(--navy-900); font-size: 17px; }
.article-body p, .article-body li { color: var(--slate-700); font-size: 15px; }

/* Floating Smart Selector Assistant Widget */
.selector-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: var(--navy-900);
  color: var(--white);
  border: 2px solid var(--blue-600);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(7, 18, 36, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.selector-fab:hover { background: var(--blue-600); }
.selector-panel {
  position: fixed;
  right: 20px;
  bottom: 76px;
  width: min(390px, calc(100vw - 32px));
  max-height: 520px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(7, 18, 36, 0.25);
  z-index: 95;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.selector-panel.open { display: flex; }
.selector-head {
  background: var(--navy-900);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selector-body { padding: 14px; overflow-y: auto; flex: 1; background: var(--slate-50); }
.selector-foot { padding: 12px; border-top: 1px solid var(--slate-200); background: var(--white); display: flex; gap: 8px; }
.selector-foot input { flex: 1; padding: 8px 10px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); font-size: 13.5px; }
.sel-msg { background: var(--white); border: 1px solid var(--slate-200); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.sel-msg.user { background: var(--blue-50); border-color: #BFDBFE; }
.sel-chip { display: inline-block; margin: 4px 4px 0 0; padding: 4px 9px; font-size: 12px; border-radius: 999px; background: var(--slate-100); border: 1px solid var(--slate-300); cursor: pointer; color: var(--navy-900); }
.sel-chip:hover { border-color: var(--blue-600); color: var(--blue-600); }

@media (max-width: 768px) {
  .decoder-grid { grid-template-columns: 1fr; }
}

/* Product Photo Gallery & Interactive 3D STEP Viewer */
.media-tabs { display: flex; gap: 8px; margin-bottom: 14px; justify-content: center; }
.media-tab {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--white);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.media-tab.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.pdp-photo-stage {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.pdp-photo-stage img {
  max-height: 288px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pdp-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  padding: 4px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--blue-600); }
.pdp-thumb img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cad-stage {
  display: none;
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  height: 360px;
  overflow: hidden;
}
.cad-stage.active { display: block; }
.cad-canvas-host { width: 100%; height: 100%; }
.cad-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(248, 250, 252, 0.92);
  color: var(--navy-900);
  font-size: 13.5px;
  font-weight: 600;
  padding: 16px;
  text-align: center;
  z-index: 5;
}
.cad-toolbar {
  display: none;
  margin-top: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--slate-600);
}
.cad-toolbar.active { display: flex; }
.card-thumb-wrap {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.card-thumb-wrap img { max-height: 128px; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* Crisp Right-Aligned Action Column in Parametric Table */
.spec-table th.col-actions,
.spec-table td.col-actions {
  text-align: right;
  white-space: nowrap;
  width: 170px;
}
.action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.action-btn-group .btn-spec { min-width: 78px; }
.action-btn-group .btn-details { min-width: 68px; }

/* Horizontal Featured Product Card (Zero Wasted Whitespace) */
.card-horizontal {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
}
.feat-thumb {
  flex: 0 0 176px;
  min-height: 176px;
  background: #F4F7FA;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.feat-thumb:hover { border-color: var(--blue-600); }
.feat-thumb img {
  max-width: 152px;
  max-height: 152px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.feat-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 640px) {
  .card-horizontal { flex-direction: column; }
  .feat-thumb { flex: none; width: 100%; height: 180px; }
}

/* DigiKey-Style Thumbnail Cell in Product List */
.mpn-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 225px;
}
.row-thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.row-thumb:hover {
  border-color: var(--blue-600);
  transform: scale(1.08);
  text-decoration: none;
}
.row-thumb img {
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.row-thumb-empty {
  background: var(--slate-100);
  color: var(--slate-400, #94A3B8);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* Real Certificate Scans & Factory Facility Galleries */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cert-card:hover { border-color: var(--blue-600); box-shadow: var(--shadow-md); }
.cert-img-wrap {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  height: 290px;
  display: grid;
  place-items: center;
  padding: 14px;
}
.cert-img-wrap img { max-height: 262px; max-width: 100%; object-fit: contain; box-shadow: 0 2px 10px rgba(15,23,42,0.12); }
.cert-meta { padding: 16px 18px; }
.cert-meta h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--navy-900); }
.cert-meta p { margin: 0; font-size: 13px; color: var(--slate-600); }

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.facility-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.facility-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}
.facility-cap {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
}
.facility-cap span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--slate-500);
  margin-top: 2px;
}
.facility-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  margin-bottom: 28px;
}
@media (max-width: 980px) {
  .cert-gallery { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cert-gallery, .facility-grid { grid-template-columns: 1fr; }
}

/* Global Tier-1 Supply Chain Track Record Showcase */
.ecosystem-band {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin-top: 32px;
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
}
.eco-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-600);
}
.eco-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.eco-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .ecosystem-grid { grid-template-columns: 1fr; }
}

/* 3D STEP One-Time Lead Gate Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 36, 0.68);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(7, 18, 36, 0.35);
  overflow: hidden;
}
.modal-head {
  background: var(--navy-900);
  color: var(--white);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-head h3 { margin: 0; font-size: 16.5px; }
.modal-body { padding: 20px 22px; }
.modal-note {
  background: var(--blue-50);
  border: 1px solid #BFDBFE;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* Dedicated Chinese Site Theme-Matched Banners (IoT, Energy, Software, Solutions) */
.hero.hero-cn {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.96) 0%, rgba(7,18,36,0.82) 45%, rgba(7,18,36,0.22) 76%, rgba(7,18,36,0.08) 100%),
    url('/assets/img/banner-cn-solutions.jpg') right center / cover no-repeat;
}
.page-header.banner-cn-iot {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.16) 100%),
    url('/assets/img/banner-cn-iot.jpg') right center / cover no-repeat;
}
.page-header.banner-cn-energy {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.16) 100%),
    url('/assets/img/banner-cn-energy.jpg') right center / cover no-repeat;
}
.page-header.banner-cn-software {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.16) 100%),
    url('/assets/img/banner-cn-software.jpg') right center / cover no-repeat;
}
.page-header.banner-cn-solutions {
  background:
    linear-gradient(90deg, rgba(7,18,36,0.95) 0%, rgba(7,18,36,0.82) 50%, rgba(7,18,36,0.16) 100%),
    url('/assets/img/banner-cn-solutions.jpg') right center / cover no-repeat;
}
.cn-prod-thumb {
  flex: 0 0 156px;
  width: 156px;
  min-width: 156px;
  max-width: 156px;
  height: 156px;
  background: #F4F7FA;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.cn-prod-thumb:hover { border-color: var(--blue-600); }
.cn-prod-thumb img {
  max-width: 136px;
  max-height: 136px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 640px) {
  .cn-prod-thumb { flex: none; width: 100%; height: 170px; }
}
