/* ============================================
   AIMLCC.com Design System v2
   Professional MLCC Sourcing Platform
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy:       #1a2d5a;
  --navy-dark:  #12204a;
  --navy-light: #2a4080;
  --blue:       #2563eb;
  --blue-dark:  #1e40af;
  --blue-light: #dbeafe;
  --green:      #16a34a;
  --green-dark: #15803d;
  --green-light:#dcfce7;
  --red:        #dc2626;
  --orange:     #f59e0b;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;
  --white:      #ffffff;
  --radius-sm:  4px;
  --radius:     6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --font:       'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--gray-900); font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { color: var(--gray-600); line-height: 1.7; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600;
  font-size: 14px; border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-green     { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--blue); border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }
.btn-outline-white {
  background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* --- Top Bar --- */
.top-bar {
  background: var(--navy-dark); color: rgba(255,255,255,0.7);
  font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.7); font-size: 12px; }
.top-bar a:hover { color: var(--white); }
.top-bar-right { display: flex; gap: 16px; align-items: center; }

/* --- Header / Nav --- */
.header {
  background: var(--navy); position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px;
  text-decoration: none; flex-shrink: 0;
}
.logo span { color: #60a5fa; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: rgba(255,255,255,0.85); padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions .btn { font-size: 12.5px; padding: 7px 14px; }
.header-actions .btn-outline {
  background: transparent; color: rgba(255,255,255,0.9); border: 1.5px solid rgba(255,255,255,0.4);
}
.header-actions .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.header-actions .btn-green {
  background: var(--green); color: var(--white); border: none;
}
.header-actions .btn-green:hover { background: var(--green-dark); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; color: var(--white); cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle svg { width: 22px; height: 22px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 50%, #1a2d5a 100%);
  color: var(--white); padding: 80px 0 70px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content { position: relative; text-align: left; max-width: none; margin: 0; }
.hero h1 {
  font-size: 2.6rem; font-weight: 800; color: var(--white); margin-bottom: 16px;
  line-height: 1.2; letter-spacing: -0.5px;
}
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 600px; margin-left: 0; margin-right: 0; }
.hero-search {
  display: flex; max-width: 620px; margin: 0 0 24px 0; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; padding: 14px 20px; border: none; outline: none; font-size: 15px;
  font-family: var(--font); color: var(--gray-800);
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search button {
  background: var(--green); color: var(--white); border: none; padding: 0 24px;
  cursor: pointer; font-weight: 600; font-size: 14px; transition: background var(--transition);
  white-space: nowrap;
}
.hero-search button:hover { background: var(--green-dark); }
.hero-cta { display: flex; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { font-weight: 600; }
.hero-cta .btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.hero-image { position: relative; }
.hero-image img { width: 100%; height: auto; }

/* --- Section --- */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.section-header p { color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* --- Category Cards --- */
.cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px; transition: all var(--transition); cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius); background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--blue); font-size: 20px;
}
.card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--gray-900); }
.card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* Professional Category Cards v3 - Parameter-driven product navigation */
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.cat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-card-header {
  background: var(--navy);
  padding: 16px 20px;
}
.cat-card-header h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 700;
}
.cat-card-body {
  padding: 16px 20px;
  flex: 1;
}
.cat-card-body .params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cat-card-body .param-tag {
  font-size: 11px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.cat-card-body .app-text {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 4px;
}
.cat-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
}
.cat-card-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 10px;
}

/* Section Title */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Parameter Search --- */
.param-search {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow);
}
.param-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.param-group { flex: 1; min-width: 160px; }
.param-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.param-group select, .param-group input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font); color: var(--gray-800); background: var(--white);
  outline: none; transition: border-color var(--transition);
}
.param-group select:focus, .param-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* --- Brand Grid --- */
.brand-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: 1fr; }
}
.brand-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 20px 12px; text-align: center; transition: all var(--transition);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.brand-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.brand-card .brand-name { font-weight: 700; font-size: 13px; color: var(--gray-800); }
.brand-card .brand-sub { font-size: 11px; color: var(--gray-400); }

/* Professional Brand Text Cards v3 */
.brand-card-pro {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-card-pro:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.brand-card-pro .brand-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.brand-card-pro .brand-name-row strong {
  font-size: 0.9rem;
  color: var(--gray-900);
}
.brand-card-pro .region-badge {
  font-size: 10px;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.brand-card-pro .focus-text {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.brand-card-pro .brand-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.brand-card-pro .brand-actions .btn {
  font-size: 11px;
  padding: 5px 10px;
  flex: 1;
  text-align: center;
}

/* Top brand card (highlighted) */
.brand-card-pro.top {
  border-left: 3px solid var(--blue);
  background: #f8fbff;
}

/* --- Rich Brand Cards (Brands Page) --- */
.brand-card-full {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-card-full:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.brand-card-header h3 { font-size: 1rem; color: var(--gray-900); margin: 0; }
.brand-card-header .region-tag { font-size: 11px; background: var(--blue-light); color: var(--blue); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.brand-card-body { flex: 1; }
.brand-card-body .product-focus { font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.brand-card-body .short-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.brand-card-actions { display: flex; gap: 8px; margin-top: auto; }
.brand-card-actions .btn { flex: 1; text-align: center; padding: 7px 10px; font-size: 12.5px; }

/* --- Brands Page CTA Bar --- */
.brands-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 32px 0 40px; padding: 24px; background: var(--gray-50); border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

/* --- Category Links (on brand pages) --- */
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.category-links a {
  padding: 6px 14px; background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 99px; font-size: 13px; color: var(--gray-700); text-decoration: none;
  transition: all var(--transition);
}
.category-links a:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }

/* --- Brand Page Brand Grid (related) --- */
.brand-grid-related {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
  margin-bottom: 40px;
}
.brand-grid-related .brand-chip {
  padding: 10px 14px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 13px; color: var(--gray-700);
  text-decoration: none; transition: all var(--transition); text-align: center;
}
.brand-grid-related .brand-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* --- AI Focus Block v3 — Solution Module --- */
.ai-solution {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #102040 100%);
  border-radius: 0;
  padding: 48px;
  color: var(--white);
}
.ai-solution-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.ai-solution-content .ai-intro {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.ai-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.ai-spec-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.ai-spec-item .spec-icon {
  font-size: 16px;
  margin-bottom: 4px;
}
.ai-spec-item .spec-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.ai-spec-item .spec-value {
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
}
.ai-solution-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
}
.ai-solution-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.ai-solution-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-solution-cta .btn-green {
  font-size: 14px;
  padding: 12px 24px;
}

/* --- AI Focus Cards (inside ai-focus-visual) --- */
.ai-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.ai-card:last-child { margin-bottom: 0; }
.ai-card h4 { color: var(--white); font-size: 14px; margin-bottom: 6px; }
.ai-card p { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.5; }

/* --- BOM Steps --- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 28px 24px; text-align: center; position: relative;
}
.step-number {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  margin: 0 auto 14px;
}
.step-card h4 { font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--gray-500); }

/* Professional Step Cards v3 — with icon */
.step-card-pro {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.step-card-pro:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-card-pro .step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}
.step-card-pro .step-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-100);
}
.step-card-pro h4 {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.step-card-pro p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* --- Quality Grid v3 --- */

.quality-item-pro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.quality-item-pro:last-child {
  border-bottom: none;
}
.quality-item-pro .qi-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.quality-item-pro .qi-text h4 {
  font-size: 0.85rem;
  color: var(--gray-800);
  margin-bottom: 2px;
}
.quality-item-pro .qi-text p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── Quality Page 2-Row Layout (Phase 5C) ── */
.quality-overview {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}
.quality-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quality-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}
.quality-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}
.quality-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.quality-card h3 {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.quality-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quality-card li {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.6;
  padding: 3px 0;
  padding-left: 12px;
  position: relative;
}
.quality-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green);
}
.quality-doc-table {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.quality-doc-table h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc-table th {
  background: var(--gray-100);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.doc-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.doc-table tr:last-child td {
  border-bottom: none;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  overflow: hidden; transition: all var(--transition); text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-thumb {
  height: 160px; background: linear-gradient(135deg, var(--blue-light), #e0e7ff);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  font-size: 40px; font-weight: 700;
}
.blog-body { padding: 20px; }
.blog-body .blog-date { font-size: 12px; color: var(--gray-400); margin-bottom: 6px; }
.blog-body h4 { font-size: 1rem; color: var(--gray-900); margin-bottom: 8px; line-height: 1.4; }
.blog-body p { font-size: 13px; color: var(--gray-500); }
.blog-tag {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
}

/* --- RFQ Form --- */
.rfq-section { background: var(--gray-50); }
.rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.rfq-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font); color: var(--gray-800); background: var(--white);
  outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .hint { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.rfq-info h3 { font-size: 1.3rem; margin-bottom: 16px; }
.rfq-info p { margin-bottom: 12px; }
.rfq-info .info-item {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px;
}
.rfq-info .info-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; color: var(--green);
  font-size: 16px; flex-shrink: 0;
}

/* --- Product Listing --- */
.product-listing { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.filter-sidebar {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 20px; height: fit-content; position: sticky; top: 80px;
}
.filter-group { margin-bottom: 18px; }
.filter-group h4 { font-size: 13px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-option { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 13px; color: var(--gray-600); cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--blue); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.product-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 20px; transition: all var(--transition);
}
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.product-card .pc-brand { font-size: 11px; color: var(--blue); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.product-card .pc-part { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; font-family: 'Courier New', monospace; }
.product-card .pc-specs { font-size: 12px; color: var(--gray-500); line-height: 1.8; }
.product-card .pc-specs span { color: var(--gray-700); font-weight: 500; }
.product-card .pc-actions { display: flex; gap: 6px; margin-top: 14px; }

/* --- Product Detail --- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-main-info h1 { font-size: 1.5rem; margin-bottom: 4px; }
.product-main-info .pm-brand { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 13px; }
.spec-table th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; width: 140px; }
.spec-table td { color: var(--gray-800); }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-400);
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--gray-300); }

/* --- Unified Design System Components ------------------------------------ */

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white); padding: 56px 0; text-align: center;
}
.page-hero .breadcrumb { margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.3); }
.page-hero h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 700px; margin: 0 auto; }

/* Content Block — for prose/blog content */
.content-block {
  max-width: 750px; margin: 0 auto;
  font-size: 15px; line-height: 1.8; color: var(--gray-700);
}
.content-block h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--gray-900); }
.content-block h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--gray-800); }
.content-block ul, .content-block ol { padding-left: 20px; margin: 12px 0; }
.content-block li { margin-bottom: 6px; }

/* Info Panel — callout box */
.info-panel {
  background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: var(--radius-lg);
  padding: 16px 20px; margin-bottom: 24px;
}
.info-panel h3 { font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.info-panel p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }
.info-panel ul { font-size: 14px; color: var(--gray-700); padding-left: 20px; }

/* CTA Panel */
.cta-panel {
  background: var(--navy); border-radius: var(--radius-xl);
  padding: 40px 32px; text-align: center; color: var(--white);
}
.cta-panel h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.cta-panel p { color: rgba(255,255,255,0.75); margin-bottom: 24px; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-panel .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FAQ Block */
.faq-block { max-width: 750px; margin: 32px auto; }
.faq-block h2 { margin-bottom: 20px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 10px; transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--blue); }
.faq-question { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.faq-answer { font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }

/* Step Cards — for workflows */
.steps-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin: 24px 0;
}
.step-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; transition: all var(--transition);
}
.step-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step-card .step-icon { margin-bottom: 12px; color: var(--blue); }
.step-card h4 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* Form Card */
.form-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 32px; box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 20px; }
.form-card .form-section-label {
  font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.5px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light);
  margin-bottom: 16px; margin-top: 24px;
}
.form-card .form-section-label:first-of-type { margin-top: 0; }

/* Table Wrap — for data tables with horizontal scroll on mobile */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13.5px; }
.table-wrap thead { background: var(--navy); color: var(--white); }
.table-wrap th { padding: 10px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); }
.table-wrap tbody tr:hover { background: var(--gray-50); }

/* Pill Tags */
.pill-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.pill-tag {
  display: inline-block; padding: 5px 12px; background: var(--blue-light);
  color: var(--blue); border-radius: 20px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all var(--transition);
}
.pill-tag:hover { background: var(--blue); color: var(--white); }

/* Feature Grid — icon + text */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin: 24px 0;
}
.feature-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); transition: all var(--transition);
}
.feature-item:hover { border-color: var(--blue); }
.feature-icon { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.feature-text h4 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* TOC — Table of Contents */
.toc {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 16px 20px; margin-bottom: 24px; max-width: 300px;
}
.toc h4 { font-size: 13px; color: var(--gray-900); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.toc ol { padding-left: 18px; font-size: 13px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--gray-600); }
.toc a:hover { color: var(--blue); }

/* --- Footer (5-column) --- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.7); padding: 56px 0 0;
}
.site-footer .container { max-width: 1200px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-bottom: 36px;
}
.footer-col { }
.footer-col h4 {
  color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 14px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.55); font-size: 13px;
  padding: 3px 0; line-height: 1.6; transition: color var(--transition); text-decoration: none;
}
.footer-col a:hover { color: var(--white); }
.footer-about {
  font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 12px;
}
.footer-company {
  font-size: 11.5px; color: rgba(255,255,255,0.35); margin-top: 8px; line-height: 1.5;
}
.footer-contact-line {
  font-size: 13px; color: rgba(255,255,255,0.55); margin: 0 0 4px 0; line-height: 1.5;
}
.footer-contact-label { color: rgba(255,255,255,0.4); font-size: 12px; }
.footer-contact-link {
  font-size: 12.5px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0;
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-disclaimer {
  font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.6;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Mobile Bottom Bar --- */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--white); border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08); padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.mbb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--gray-500); text-decoration: none; font-size: 11px; font-weight: 500;
  padding: 4px; border-radius: var(--radius-sm); transition: all var(--transition);
}
.mbb-item:hover, .mbb-item.active { color: var(--blue); }
.mbb-item .mbb-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 1px; }
.mbb-item .mbb-icon svg { width: 20px; height: 20px; }
.mbb-item.cta { color: var(--green); }

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white); padding: 48px 0; text-align: center;
}
.page-header h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.7); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .product-listing { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .ai-focus { grid-template-columns: 1fr; }
  .ai-solution { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .ai-specs { grid-template-columns: 1fr 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; border-radius: var(--radius); }
  .header-actions { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-search { margin: 0 auto 24px; flex-direction: column; }
  .hero-search button { padding: 12px; }
  .hero-cta { justify-content: center; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .hero-image { display: none; }
  .steps-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 60px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-solution { padding: 24px 16px; }
  .ai-specs { grid-template-columns: 1fr; }
  .brand-card-pro .brand-name-row { flex-direction: column; align-items: flex-start; }
  .rfq-form { padding: 20px 16px; }
  .rfq-form .form-section-header { font-size: 0.9rem; }
  .param-table th, .param-table td { padding: 8px 10px; font-size: 13px; }
  .cat-deep-cta { flex-direction: column; gap: 8px; }
  .cat-deep-cta .btn { width: 100%; text-align: center; }
  /* RFQ page alt contact */
  .rfq-alt-contact { grid-template-columns: 1fr; }
  /* Quality page grid */
  .quality-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { text-align: center; }
}

/* --- Brand Page Header --- */
.brand-page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white); padding: 48px 0;
}
.brand-page-header h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 8px; }
.brand-page-header p { color: rgba(255,255,255,0.7); max-width: 600px; }

/* --- Application Page --- */
.app-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app-feature {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 24px; transition: all var(--transition);
}
.app-feature:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.app-feature h4 { margin-bottom: 8px; }
.app-feature p { font-size: 13px; }

/* --- WhatsApp Floating Button --- */
.wa-float {
  position: fixed; bottom: 80px; right: 20px; z-index: 998;
  background: #25d366; color: var(--white); width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4); cursor: pointer;
  text-decoration: none; font-size: 24px; transition: all var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
@media (max-width: 768px) {
  .wa-float { bottom: 76px; right: 12px; width: 46px; height: 46px; font-size: 20px; }
}

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 10px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 13px; color: var(--gray-600); text-decoration: none; transition: all var(--transition);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ============================================
   Products Page (Phase 4A-2)
   ============================================ */

/* Products Hero — Compact */
.products-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white);
  padding: 28px 0 24px;
}
.products-hero h1 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.products-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  max-width: 650px;
  line-height: 1.5;
  margin: 0;
}
.products-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.products-hero .breadcrumb span { color: rgba(255,255,255,0.85); }

/* Products Toolbar — Search + Brand Dropdown inline */
.products-search-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}
.products-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quick-search-box {
  display: flex;
  flex: 1;
  min-width: 260px;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.quick-search-box input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--gray-800);
}
.quick-search-box input::placeholder { color: var(--gray-400); }
.quick-search-box button {
  padding: 0 18px;
  border: none;
  white-space: nowrap;
  font-weight: 600;
  font-size: 12.5px;
  border-radius: 0;
}

/* Brand filter inline in toolbar */
.brand-filter-inline {
  min-width: 200px;
}
.brand-filter-inline .brand-dropdown {
  width: 100%;
  padding: 9px 32px 9px 12px;
  font-size: 13.5px;
  height: 40px;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 80px;
}
.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.filter-title {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin: 0;
}
.filter-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
  padding: 0 4px;
}
.filter-group {
  margin-bottom: 10px;
}
.filter-group h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  padding: 3px 4px;
  border-radius: 3px;
  transition: background var(--transition);
}
.filter-option:hover { background: var(--gray-50); }
.filter-option input[type="checkbox"] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Products Main Layout */
.products-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 20px 48px;
  max-width: 1320px;
}

/* Products Table Area */
.products-table-area {
  min-width: 0;
}
.products-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.result-count {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}
.products-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 1180px;
}
.products-table thead {
  background: var(--gray-50);
}
.products-table th {
  padding: 10px 12px;
  text-align: left;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border-bottom: 2px solid var(--gray-200);
}
.products-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  white-space: nowrap;
}
.products-table tbody tr:hover {
  background: var(--gray-50);
}
.products-table .td-pn a {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.products-table .td-pn a:hover {
  text-decoration: underline;
}
.products-table .td-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}
.products-table .td-actions .btn {
  font-size: 11px;
  padding: 4px 10px;
}

/* No Results */
.no-results {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.no-results h3 {
  font-size: 1.2rem;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.no-results p {
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.6;
}
.no-results-cta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Products Bottom CTA */
.products-bottom-cta {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.products-bottom-cta p {
  color: var(--gray-600);
  font-size: 13px;
  max-width: 520px;
  line-height: 1.6;
}

/* Category Page Deep Content (Phase 4A) */
.cat-deep-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  color: var(--white);
  padding: 40px 0;
}
.cat-deep-hero h1 {
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cat-deep-hero .cat-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  max-width: 650px;
  line-height: 1.6;
}
.cat-deep-cta {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cat-deep-cta .btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.cat-deep-cta .btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* Short Answer Box */
.short-answer {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.short-answer h3 {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.short-answer p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Key Takeaways */
.key-takeaways {
  margin-bottom: 28px;
}
.key-takeaways h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.key-takeaways ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
}
.key-takeaways ul li::marker {
  color: var(--green);
}

/* Parameter Table (Category) */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.param-table th, .param-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
}
.param-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 700;
  width: 180px;
}
.param-table td {
  color: var(--gray-800);
}

/* Application Tags */
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.app-tag {
  padding: 6px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  font-size: 13px;
  color: var(--gray-700);
}

/* RFQ Checklist */
.rfq-checklist {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.rfq-checklist h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.rfq-checklist ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 2;
}
.rfq-checklist ul li::marker {
  color: var(--blue);
}
.rfq-checklist .checklist-cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Recommended Products Section */
.rec-products {
  margin-bottom: 28px;
}
.rec-products h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--gray-900);
}
.rec-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.rec-product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
}
.rec-product-card .rec-pn {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.rec-product-card .rec-spec {
  color: var(--gray-500);
  font-size: 11px;
  line-height: 1.6;
}

/* Related Brands Chip */
.related-brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.related-brand-chip {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition);
}
.related-brand-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* Category FAQ */
.cat-faq {
  margin-bottom: 32px;
}
.cat-faq h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.cat-faq-item {
  margin-bottom: 14px;
}
.cat-faq-item h4 {
  font-size: 14px;
  color: var(--gray-800);
  margin-bottom: 4px;
}
.cat-faq-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   Responsive: Products Page (Phase 4A-2)
   ============================================ */
@media (max-width: 900px) {
  .products-main {
    grid-template-columns: 1fr;
  }
  .products-toolbar {
    flex-wrap: wrap;
  }
  .quick-search-box {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .brand-filter-inline {
    flex: 1 1 auto;
    min-width: 160px;
  }
  .mobile-filter-toggle {
    display: inline-flex;
  }
  /* Sidebar overlay on mobile */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 2000;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
  }
  .filter-sidebar.filter-sidebar-open {
    transform: translateX(0);
  }
  .filter-close-btn {
    display: block;
  }
  .products-hero {
    padding: 24px 0 20px;
  }
  .products-hero h1 {
    font-size: 1.25rem;
  }
  .products-table {
    min-width: 600px;
  }
  .products-table .td-actions {
    flex-direction: column;
    gap: 4px;
  }
  .no-results-cta,
  .no-results-brand-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .products-bottom-cta {
    flex-direction: column;
    text-align: center;
  }
  .no-results-cta {
    flex-direction: column;
    align-items: center;
  }
  .cat-deep-hero h1 {
    font-size: 1.3rem;
  }
  .cat-deep-cta {
    flex-direction: column;
  }
  .rfq-checklist .checklist-cta {
    flex-direction: column;
  }
}

/* ============================================ */
/* ============================================
   Phase 4A-2: Products Mega Menu (Redesigned)
   Cleaner, white background, better readability
   ============================================ */
.mega-menu-trigger {
  position: relative;
}
.mega-menu-trigger > a {
  display: inline-flex;
  align-items: center;
}
.mega-arrow {
  font-size: 8px;
  margin-left: 4px;
  transition: transform 0.2s;
}
.mega-menu-trigger:hover .mega-arrow {
  transform: rotate(180deg);
}
.mega-menu-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-200);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  z-index: 1001;
  width: min(1320px, calc(100vw - 96px));
  max-width: calc(100vw - 96px);
}
.mega-menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-content {
  display: grid;
  grid-template-columns: 65% 35%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 340px;
}
/* Mega Menu Header with title/subtitle */
.mega-menu-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0;
  grid-column: 1 / -1;
}
.mega-menu-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.mega-menu-sub {
  display: block;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.4;
}
.mega-menu-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 28px 28px;
}
/* Right visual card in mega menu */
.mega-menu-visual {
  background: linear-gradient(135deg, #0a1628 0%, #102040 100%);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-radius: 0 0 var(--radius-xl) 0;
}
.mega-menu-visual-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.mega-menu-visual-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 8px;
}
.mega-menu-visual-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--white);
}
.mega-menu-visual-stat svg {
  flex-shrink: 0;
}
.mega-menu-visual-cta {
  margin-top: 8px;
}
.mega-menu-visual-cta .btn {
  font-size: 12px;
  padding: 8px 14px;
}
/* 2-column mega (Applications, Resources) */
.mega-menu-content-2col .mega-menu-body {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
}
.mega-menu-col {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.mega-menu-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-500);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1.5px solid var(--gray-200);
}
.mega-menu-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.mega-menu-col a:hover {
  color: var(--blue);
  padding-left: 3px;
}
.mega-menu-col a.view-all {
  margin-top: 6px;
  font-weight: 600;
  color: var(--blue);
  font-size: 12px;
  padding-left: 0;
}
.mega-menu-col a.view-all:hover {
  padding-left: 3px;
}
/* Mega Menu Parameter Grid */
.mega-param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mega-param-group {
  margin-bottom: 8px;
}
.mega-param-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.mega-param-group a {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  margin: 1px 2px 1px 0;
  color: var(--gray-600);
  border-radius: 3px;
  background: transparent;
  transition: background 0.12s, color 0.12s;
}
.mega-param-group a:hover {
  background: var(--gray-100);
  color: var(--blue);
  padding-left: 6px;
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
  display: none;
  margin-left: auto;
}
.brand-dropdown {
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 5.5l3.5 3.5 3.5-3.5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: border-color 0.2s;
}
.brand-dropdown:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.brand-dropdown option {
  font-size: 14px;
  padding: 8px;
}

/* Brand No-Results (no products for brand) */
.no-results-brand {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.no-results-brand h3 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.no-results-brand p {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.no-results-brand-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Active filter tag */
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
}
.active-filter-tag .remove-filter {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
}
.active-filter-tag .remove-filter:hover {
  opacity: 1;
}

/* Products table enhancements */
.products-table th {
  position: sticky;
  top: 0;
}
.products-table .td-stock {
  color: var(--orange);
  font-weight: 600;
  font-size: 12.5px;
}
.products-table .td-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
}
.products-table .td-actions .btn {
  font-size: 11.5px;
  padding: 5px 10px;
}
.products-table .td-pn {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   Content Overflow Fixes (Phase 4A-2)
   ============================================ */
/* Part Number long text wrapping */
.td-pn a {
  overflow-wrap: anywhere;
  word-break: break-all;
}
/* Blog card title containment */
.blog-card h3,
.blog-card h4 {
  overflow-wrap: break-word;
  word-break: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Brand card name containment */
.brand-card-pro strong,
.brand-card-full h3 {
  overflow-wrap: break-word;
  word-break: normal;
}
/* Card grids: prevent overflow */
.cards-grid[style*="grid-template-columns"],
.brand-grid {
  min-width: 0;
}
.cards-grid > *,
.brand-grid > * {
  min-width: 0;
  overflow-wrap: break-word;
}
/* Table wrap for horizontal scroll on small screens */
.products-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Button spacing in cards */
.brand-card-pro .brand-actions,
.brand-card-full .brand-card-actions,
.cat-card .cat-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brand-card-pro .brand-actions .btn,
.brand-card-full .brand-card-actions .btn,
.cat-card .cat-card-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   Mobile Mega Menu (Collapsible, non-desktop mega)
   ============================================ */
@media (max-width: 768px) {
  .mega-menu-trigger > a {
    justify-content: space-between;
  }
  .mega-arrow {
    font-size: 10px;
  }
  .mega-menu-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.06);
    display: none;
    min-width: auto;
    transform: none;
    animation: none;
  }
  .main-nav.open .mega-menu-trigger .mega-menu-dropdown {
    display: block;
  }
  .mega-menu-content,
  .mega-menu-content-2col .mega-menu-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 16px;
    max-width: 100%;
    min-width: auto;
  }
  .mega-menu-content-2col .mega-menu-body {
    grid-template-columns: 1fr;
  }
  .mega-menu-header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px 10px;
  }
  .mega-menu-title {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
  }
  .mega-menu-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
  }
  .mega-menu-body {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .mega-param-grid {
    grid-template-columns: 1fr;
  }
  .mega-param-label {
    color: rgba(255,255,255,0.4);
  }
  .mega-param-group a {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
  }
  .mega-param-group a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
  }
  .mega-menu-col h4 {
    color: rgba(255,255,255,0.5);
    border-bottom-color: rgba(255,255,255,0.08);
    font-size: 10px;
  }
  .mega-menu-col a {
    color: rgba(255,255,255,0.75);
    padding: 4px 0;
    font-size: 12.5px;
    white-space: normal;
  }
  .mega-menu-col a:hover {
    color: var(--white);
  }
  .mega-menu-col a.view-all {
    color: #60a5fa;
  }
}

/* ============================================
   Phase 4B: Trust Stats, Autocomplete, Products Enhancements
   ============================================ */

/* Trust Stats Grid */
.trust-section {
  padding: 48px 0;
}
.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.trust-stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: background 0.2s;
}
.trust-stat-card:hover {
  background: rgba(255,255,255,0.14);
}
.trust-stat-big {
  font-size: 1.8rem;
  font-weight: 800;
  color: #60a5fa;
  line-height: 1.1;
  margin-bottom: 6px;
}
.trust-stat-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 6px;
}
.trust-stat-desc {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
}

/* Autocomplete Dropdown */
.quick-search-box {
  position: relative;
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.12s;
}
.autocomplete-item:hover {
  background: var(--gray-50);
}
.autocomplete-item.no-match {
  color: var(--gray-400);
  cursor: default;
  font-style: italic;
}
.ac-pn {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-800);
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}
.ac-info {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-left: 8px;
}

/* Products Table Legend */
.products-table-legend {
  display: flex;
  gap: 14px;
  align-items: center;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--gray-500);
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Products Disclaimer */
.products-disclaimer {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Products Bottom CTA */
.products-bottom-cta {
  text-align: center;
  padding: 28px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}
.products-bottom-cta p {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

/* Sort dropdown in toolbar */
#sortDropdown {
  min-width: 170px;
}

/* Mobile filter overlay fixes */
.filter-sidebar .filter-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ============================================
   Phase 4B: Content Overflow Fixes (Full-Site)
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
}
.brand-card-pro, .cat-card, .blog-card {
  min-width: 0;
}
.brand-card-pro .brand-name-row,
.brand-card-pro .focus-text {
  overflow-wrap: break-word;
  word-break: normal;
}
.blog-card h4 {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Blog card image fix */
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Footer link spacing */
.footer-links > div {
  margin-bottom: 6px;
}

/* Responsive: Trust Stats */
@media (max-width: 1024px) {
  .trust-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .trust-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .trust-stat-card {
    padding: 16px 12px;
  }
  .trust-stat-big {
    font-size: 1.4rem;
  }
  .products-table-legend {
    display: none;
  }
  .products-disclaimer {
    font-size: 11.5px;
    padding: 8px 10px;
  }
  .mobile-filter-toggle {
    display: inline-flex;
  }
  .filter-sidebar .filter-close-btn {
    display: inline-block;
  }
}
@media (max-width: 480px) {
  .trust-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Phase 5C-Repair: Quality Page ===== */
.quality-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.quality-card:hover { box-shadow: var(--shadow-md); }
.quality-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quality-card h3 svg { flex-shrink: 0; color: var(--blue); }
.quality-card ul {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  padding-left: 20px;
  margin: 0;
}
.quality-note {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}
.quality-note h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.quality-note p {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  margin: 0;
}
.lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 750px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-300); }

/* ===== Products Pagination ===== */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  margin-top: 8px;
}
.pagination-info {
  font-size: 14px;
  color: var(--gray-600);
}
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination-buttons button {
  padding: 6px 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}
.pagination-buttons button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-buttons .page-info {
  font-size: 13px;
  color: var(--gray-600);
  padding: 0 8px;
}
.page-size-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
}
.page-size-selector select {
  padding: 4px 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
}

/* ===== Blog Cards Enhanced ===== */
.blog-card {
  display: flex;
  flex-direction: column;
}
.blog-card .blog-card-img,
.blog-card img.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.blog-card .blog-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .blog-date {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.blog-card h4 {
  font-size: 1rem;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card h4 a { color: var(--gray-900); text-decoration: none; }
.blog-card h4 a:hover { color: var(--blue); }
.blog-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.blog-card .read-more {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}
.blog-card .read-more:hover { text-decoration: underline; }

/* ===== Footer Payment & Shipping ===== */
.footer-payment-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-payment-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-payment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: center;
}
.footer-payment-grid img {
  width: 110px;
  height: 50px;
  border-radius: 6px;
  background: white;
  padding: 4px;
  object-fit: contain;
}

/* ===== Header Logo ===== */
.header-logo {
  height: 36px;
  width: auto;
  display: block;
}
.header-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ===== Application Page Layout ===== */
.app-hero-img {
  max-width: 960px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: 0 auto 32px;
  display: block;
}
.app-section {
  margin-bottom: 32px;
}
.app-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}
.app-quick-answer {
  background: #f0f7ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
}
.app-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.app-spec-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.app-spec-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.app-spec-card p {
  font-size: 14px;
  color: var(--gray-800);
  margin: 0;
}
.app-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.app-related a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all var(--transition);
}
.app-related a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.app-faq details {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}
.app-faq summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
}
.app-faq details[open] summary { margin-bottom: 8px; }
.app-faq details p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.mega-menu-col a:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  background: var(--blue-light);
  border-radius: 4px;
}
@media (max-width: 768px) {
  .footer-payment-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-payment-grid img { width: 100%; height: 46px; }
  .app-spec-grid { grid-template-columns: 1fr; }
  .pagination-controls { flex-direction: column; align-items: stretch; }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 16px 24px;
  z-index: 10000;
  display: none;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}
.cookie-banner.show { display: block; animation: slideUp .3s ease; }
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 400px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-300);
}
.cookie-banner-text a { color: var(--blue-light); text-decoration: underline; }
.cookie-banner-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner-btns .btn {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all .15s ease;
}
.cookie-btn-accept {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.cookie-btn-accept:hover { background: var(--green-dark); }
.cookie-btn-reject {
  background: transparent;
  color: var(--gray-300);
  border-color: var(--gray-500);
}
.cookie-btn-reject:hover { background: rgba(255,255,255,0.08); }
.cookie-btn-prefs {
  background: transparent;
  color: var(--gray-400);
  border-color: transparent;
  text-decoration: underline;
}
.cookie-btn-prefs:hover { color: var(--gray-100); }

/* Cookie Preferences Modal */
.cookie-prefs-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-prefs-modal.show { display: flex; }
.cookie-prefs-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-prefs-box h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 16px; }
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-pref-row:last-child { border-bottom: none; }
.cookie-pref-label { font-size: 14px; color: var(--gray-800); }
.cookie-pref-desc { font-size: 12px; color: var(--gray-500); }
.cookie-prefs-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-text { flex: 1 1 100%; }
  .cookie-banner-btns { justify-content: center; }
  .cookie-banner-btns .btn { padding: 12px 24px; min-height: 44px; font-size: 14px; }
}

/* Hide mobile bottom bar on form/thank-you pages */
body.no-mobile-bar .mobile-bottom-bar { display: none !important; }
body.no-mobile-bar { padding-bottom: 0 !important; }

/* ===== Lead Capture Popup ===== */
.lead-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-popup-overlay.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lead-popup {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: popupSlideUp .3s ease;
}
@keyframes popupSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.lead-popup-header {
  padding: 28px 28px 0;
}
.lead-popup-header h2 {
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.lead-popup-header p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.lead-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-500);
  transition: all .15s ease;
}
.lead-popup-close:hover { background: var(--gray-200); color: var(--gray-800); }
.lead-popup-body { padding: 20px 28px 28px; }
.lead-popup-body .form-group { margin-bottom: 14px; }
.lead-popup-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.lead-popup-body label .req { color: var(--red); margin-left: 2px; }
.lead-popup-body input,
.lead-popup-body textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .15s ease;
  box-sizing: border-box;
}
.lead-popup-body input:focus,
.lead-popup-body textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.lead-popup-body textarea { min-height: 70px; resize: vertical; }
.lead-popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.lead-popup-actions .btn { flex: 1; text-align: center; }
.lead-popup-wa {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}
.lead-popup-wa a { color: var(--green); font-weight: 600; }
.lead-popup-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.lead-popup-error.show { display: block; }

/* Lead Popup Mobile Bottom Sheet */
@media (max-width: 640px) {
  .lead-popup-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .lead-popup {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 85vh;
    animation: bottomSheetUp .3s ease;
  }
  @keyframes bottomSheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .lead-popup-header { padding: 24px 20px 0; }
  .lead-popup-body { padding: 16px 20px 24px; }
  body.lead-open { padding-bottom: 56px; }
}
