/* ==========================================================================
   VANGUARD GLOBAL — Universal B2B Master Website Template Design System
   Modern Web Standards · Zero Legacy Dependencies · 100% Responsive
   ========================================================================== */

:root {
  /* Brand Core Palettes - Classic Global Enterprise (Default) */
  --vg-primary: #0a2540;
  --vg-primary-dark: #06182c;
  --vg-primary-light: #163e69;
  --vg-accent: #0284c7;
  --vg-accent-hover: #0369a1;
  --vg-accent-light: #e0f2fe;
  --vg-success: #059669;
  --vg-warning: #f59e0b;
  --vg-danger: #dc2626;

  /* Neutrals & Surfaces */
  --vg-bg: #f8fafc;
  --vg-surface: #ffffff;
  --vg-surface-alt: #f1f5f9;
  --vg-surface-hover: #f8fafc;
  --vg-text: #0f172a;
  --vg-text-muted: #64748b;
  --vg-text-light: #94a3b8;
  --vg-border: #e2e8f0;
  --vg-border-strong: #cbd5e1;

  /* Typography & Geometry */
  --vg-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vg-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vg-radius-sm: 6px;
  --vg-radius: 10px;
  --vg-radius-lg: 16px;
  --vg-radius-full: 9999px;

  /* Shadows */
  --vg-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --vg-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --vg-shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --vg-shadow-lg: 0 20px 30px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  --vg-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.2);

  /* Transitions */
  --vg-transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --vg-transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Containers */
  --vg-container-max: 1320px;
  --vg-header-height: 76px;
  --vg-topbar-height: 40px;
}

/* Theme Option 2: High-Tech Emerald (Clean Energy / Eco-Tech) */
body.theme-tech-emerald {
  --vg-primary: #064e3b;
  --vg-primary-dark: #022c22;
  --vg-primary-light: #047857;
  --vg-accent: #059669;
  --vg-accent-hover: #047857;
  --vg-accent-light: #ecfdf5;
}

/* Theme Option 3: Titanium Slate & Amber (Heavy Industry / Precision Machinery) */
body.theme-titanium-dark {
  --vg-primary: #18181b;
  --vg-primary-dark: #09090b;
  --vg-primary-light: #27272a;
  --vg-accent: #d97706;
  --vg-accent-hover: #b45309;
  --vg-accent-light: #fef3c7;
}

/* Base Reset & Standards */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--vg-header-height) + 20px);
  overflow-x: clip;
  max-width: 100%;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--vg-font-sans);
  background-color: var(--vg-bg);
  color: var(--vg-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--vg-transition), background-color var(--vg-transition), border-color var(--vg-transition);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--vg-accent);
  outline-offset: 3px;
}

/* Container Utility */
.vg-container {
  width: 100%;
  max-width: var(--vg-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

/* Fluid Typography */
.vg-h1 {
  font-family: var(--vg-font-heading);
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--vg-primary);
}

.vg-h2 {
  font-family: var(--vg-font-heading);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--vg-primary);
}

.vg-h3 {
  font-family: var(--vg-font-heading);
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.vg-lead {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--vg-text-muted);
  line-height: 1.65;
}

/* Section Header Component */
.vg-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
}

.vg-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vg-accent);
  background: var(--vg-accent-light);
  padding: 6px 14px;
  border-radius: var(--vg-radius-full);
  margin-bottom: 12px;
}

.vg-section-title {
  margin-bottom: 14px;
}

.vg-section-desc {
  font-size: 16px;
  color: var(--vg-text-muted);
}

/* Section Spacing */
.vg-section {
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
  position: relative;
}

.vg-section-alt {
  background-color: var(--vg-surface);
  border-top: 1px solid var(--vg-border);
  border-bottom: 1px solid var(--vg-border);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Utility Bar */
.vg-topbar {
  background-color: var(--vg-primary-dark);
  color: #cbd5e1;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 102;
}

.vg-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--vg-topbar-height);
  gap: 16px;
}

.vg-topbar-left, .vg-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.vg-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  transition: color var(--vg-transition);
}

.vg-topbar-link:hover {
  color: #ffffff;
}

.vg-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #86efac;
}

.vg-live-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: vg-pulse 2s infinite;
}

@keyframes vg-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Selectors in Top Bar */
.vg-topbar-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vg-topbar-select {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--vg-radius-sm);
  padding: 2px 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.vg-topbar-select option {
  background-color: var(--vg-primary);
  color: #ffffff;
}

/* Main Sticky Header */
.vg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--vg-border);
  transition: background-color var(--vg-transition), box-shadow var(--vg-transition);
}

.vg-header.is-scrolled {
  box-shadow: var(--vg-shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.vg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--vg-header-height);
  gap: 20px;
}

/* Brand Identity */
.vg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.vg-brand-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vg-primary), var(--vg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
  flex-shrink: 0;
}

.vg-brand-meta {
  display: flex;
  flex-direction: column;
}

.vg-brand-title {
  font-family: var(--vg-font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vg-primary);
  line-height: 1.15;
}

.vg-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--vg-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Desktop Nav Menu */
.vg-nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .vg-nav-desktop {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

.vg-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--vg-text);
  padding: 8px 4px;
  position: relative;
  transition: color var(--vg-transition);
}

.vg-nav-link:hover,
.vg-nav-link.is-active {
  color: var(--vg-accent);
}

.vg-nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2.5px;
  background-color: var(--vg-accent);
  border-radius: var(--vg-radius-full);
}

/* Header Action Buttons */
.vg-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--vg-radius);
  transition: all var(--vg-transition);
  white-space: nowrap;
  user-select: none;
  min-height: 42px;
}

.vg-btn-primary {
  background: var(--vg-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.32);
}

.vg-btn-primary:hover {
  background: var(--vg-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.42);
}

.vg-btn-primary:active {
  transform: translateY(0);
}

.vg-btn-outline {
  background: transparent;
  color: var(--vg-primary);
  border: 1.5px solid var(--vg-border-strong);
}

.vg-btn-outline:hover {
  border-color: var(--vg-accent);
  color: var(--vg-accent);
  background: var(--vg-surface-alt);
}

.vg-btn-secondary {
  background: var(--vg-primary);
  color: #ffffff;
}

.vg-btn-secondary:hover {
  background: var(--vg-primary-light);
  transform: translateY(-1px);
}

.vg-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  min-height: 34px;
  border-radius: var(--vg-radius-sm);
}

.vg-btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  min-height: 50px;
  border-radius: var(--vg-radius-lg);
}

/* RFQ Basket Counter Trigger */
.vg-rfq-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--vg-radius);
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vg-primary);
  transition: all var(--vg-transition);
}

.vg-rfq-cart-btn:hover {
  background: var(--vg-surface-alt);
  border-color: var(--vg-accent);
  color: var(--vg-accent);
}

.vg-rfq-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background-color: var(--vg-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vg-rfq-cart-badge.is-bumped {
  transform: scale(1.35);
}

/* Mobile Hamburger Toggle */
.vg-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--vg-radius);
  border: 1px solid var(--vg-border);
  background: var(--vg-surface);
  color: var(--vg-primary);
}

@media (min-width: 1024px) {
  .vg-mobile-toggle {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.vg-hero {
  position: relative;
  background: linear-gradient(175deg, #f0f7ff 0%, #f8fafc 45%, #ffffff 100%);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
  border-bottom: 1px solid var(--vg-border);
}

.vg-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
  pointer-events: none;
}

.vg-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1024px) {
  .vg-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.vg-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--vg-radius-full);
  color: var(--vg-accent);
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
}

.vg-hero-title {
  letter-spacing: -0.03em;
}

.vg-hero-title span {
  color: var(--vg-accent);
  position: relative;
  display: inline-block;
}

.vg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

/* Trust Metric Badges in Hero */
.vg-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--vg-border);
}

@media (min-width: 640px) {
  .vg-hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vg-stat-item {
  display: flex;
  flex-direction: column;
}

.vg-stat-value {
  font-family: var(--vg-font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--vg-primary);
  line-height: 1.1;
}

.vg-stat-label {
  font-size: 12.5px;
  color: var(--vg-text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Right Interactive Card (Quick RFQ & Factory Teaser) */
.vg-hero-card {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  box-shadow: var(--vg-shadow-xl);
  overflow: hidden;
  position: relative;
}

.vg-hero-card-header {
  background: var(--vg-primary);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vg-hero-card-title {
  font-size: 17px;
  font-weight: 700;
}

.vg-hero-card-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.vg-hero-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vg-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vg-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vg-text);
  display: flex;
  justify-content: space-between;
}

.vg-form-input, .vg-form-select, .vg-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--vg-border-strong);
  border-radius: var(--vg-radius-sm);
  background: var(--vg-surface);
  color: var(--vg-text);
  font-size: 14px;
  transition: border-color var(--vg-transition), box-shadow var(--vg-transition);
}

.vg-form-input:focus, .vg-form-select:focus, .vg-form-textarea:focus {
  outline: none;
  border-color: var(--vg-accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Modern user-valid / user-invalid states */
.vg-form-input:user-invalid, .vg-form-textarea:user-invalid {
  border-color: var(--vg-danger);
}

.vg-form-input:user-valid:not(:placeholder-shown) {
  border-color: var(--vg-success);
}

/* ==========================================================================
   Certifications Marquee Banner
   ========================================================================== */

.vg-cert-ticker {
  background: var(--vg-surface);
  border-bottom: 1px solid var(--vg-border);
  padding: 20px 0;
  overflow: hidden;
  user-select: none;
}

.vg-cert-ticker-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: vg-marquee 30s linear infinite;
}

.vg-cert-ticker:hover .vg-cert-ticker-inner {
  animation-play-state: paused;
}

@keyframes vg-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.vg-cert-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--vg-surface-alt);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  white-space: nowrap;
}

.vg-cert-icon {
  width: 24px;
  height: 24px;
  color: var(--vg-accent);
  flex-shrink: 0;
}

.vg-cert-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--vg-primary);
}

.vg-cert-sub {
  font-size: 11px;
  color: var(--vg-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Product Catalog & Matrix (Container Queries Enabled)
   ========================================================================== */

.vg-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  background: var(--vg-surface);
  padding: 16px 20px;
  border-radius: var(--vg-radius);
  border: 1px solid var(--vg-border);
  box-shadow: var(--vg-shadow-xs);
}

.vg-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  padding: 2px 0;
}

.vg-category-tabs::-webkit-scrollbar {
  display: none;
}

.vg-tab-btn {
  padding: 8px 16px;
  border-radius: var(--vg-radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vg-text-muted);
  background: transparent;
  transition: all var(--vg-transition);
  white-space: nowrap;
}

.vg-tab-btn:hover {
  color: var(--vg-primary);
  background: var(--vg-surface-alt);
}

.vg-tab-btn.is-active {
  color: #ffffff;
  background: var(--vg-primary);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25);
}

.vg-catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vg-search-box {
  position: relative;
  width: 240px;
}

.vg-search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-sm);
  background: var(--vg-surface-alt);
}

.vg-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--vg-text-light);
  pointer-events: none;
}

/* Product Card Grid Container */
.vg-product-grid {
  container-type: inline-size;
  container-name: productgrid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

/* Product Card Component */
.vg-product-card {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--vg-transition), box-shadow var(--vg-transition), border-color var(--vg-transition);
  position: relative;
}

.vg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vg-shadow-lg);
  border-color: var(--vg-border-strong);
}

.vg-product-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.vg-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vg-product-card:hover .vg-product-img {
  transform: scale(1.05);
}

.vg-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.vg-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--vg-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vg-badge-pill.oem {
  background: #0284c7;
  color: #ffffff;
}

.vg-badge-pill.moq {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
}

.vg-badge-pill.new {
  background: #059669;
  color: #ffffff;
}

.vg-product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 14px;
}

.vg-product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--vg-text-muted);
}

.vg-product-sku {
  font-weight: 700;
  color: var(--vg-accent);
}

.vg-product-title {
  font-family: var(--vg-font-heading);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--vg-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
}

.vg-product-spec-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  background: var(--vg-surface-alt);
  border-radius: var(--vg-radius-sm);
  overflow: hidden;
}

.vg-product-spec-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--vg-border);
}

.vg-product-spec-table tr:last-child td {
  border-bottom: none;
}

.vg-product-spec-table .spec-name {
  color: var(--vg-text-muted);
  width: 45%;
}

.vg-product-spec-table .spec-value {
  font-weight: 600;
  color: var(--vg-text);
  text-align: right;
}

.vg-product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--vg-border);
}

.vg-product-price {
  font-family: var(--vg-font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--vg-primary);
}

.vg-product-moq-hint {
  font-size: 11.5px;
  color: var(--vg-text-muted);
}

.vg-product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ==========================================================================
   OEM / ODM Custom Manufacturing Pipeline
   ========================================================================== */

.vg-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  margin-top: 36px;
}

.vg-process-step {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--vg-transition);
}

.vg-process-step:hover {
  transform: translateY(-4px);
  border-color: var(--vg-accent);
  box-shadow: var(--vg-shadow-md);
}

.vg-step-num {
  font-family: var(--vg-font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--vg-accent-light);
  line-height: 1;
  margin-bottom: 12px;
}

.vg-process-step:hover .vg-step-num {
  color: var(--vg-accent);
}

.vg-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--vg-primary);
  margin-bottom: 8px;
}

.vg-step-desc {
  font-size: 13.5px;
  color: var(--vg-text-muted);
  line-height: 1.6;
}

.vg-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--vg-accent);
  background: var(--vg-accent-light);
  padding: 4px 10px;
  border-radius: var(--vg-radius-full);
  margin-top: 14px;
  width: fit-content;
}

/* Interactive OEM Cost & MOQ Estimator Box */
.vg-estimator-box {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-lg);
  box-shadow: var(--vg-shadow-lg);
  padding: clamp(24px, 4vw, 40px);
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .vg-estimator-box {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.vg-estimator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vg-estimator-result {
  background: linear-gradient(135deg, var(--vg-primary-dark), var(--vg-primary));
  color: #ffffff;
  border-radius: var(--vg-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.vg-calc-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
}

.vg-calc-stat-val {
  font-weight: 700;
  color: #38bdf8;
}

/* ==========================================================================
   Factory Strength & Virtual Inspection
   ========================================================================== */

.vg-factory-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.vg-factory-card {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  overflow: hidden;
}

.vg-factory-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.vg-factory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vg-factory-card:hover .vg-factory-thumb img {
  transform: scale(1.04);
}

.vg-factory-body {
  padding: 20px;
}

.vg-factory-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--vg-primary);
  margin-bottom: 6px;
}

.vg-factory-desc {
  font-size: 13px;
  color: var(--vg-text-muted);
}

/* Video Teaser Banner */
.vg-video-banner {
  position: relative;
  border-radius: var(--vg-radius-lg);
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--vg-shadow-xl);
}

.vg-video-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.vg-video-play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(2, 132, 199, 0.35);
  transition: transform var(--vg-transition), background-color var(--vg-transition);
}

.vg-video-play-btn:hover {
  transform: scale(1.1);
  background: #0284c7;
}

/* ==========================================================================
   Global Supply Chain & Logistics Coverage Map
   ========================================================================== */

.vg-logistics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .vg-logistics-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.vg-ports-table-wrap {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  overflow-x: auto;
  box-shadow: var(--vg-shadow-xs);
}

.vg-ports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

.vg-ports-table th {
  background: var(--vg-surface-alt);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--vg-primary);
  border-bottom: 1px solid var(--vg-border);
}

.vg-ports-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--vg-border);
  color: var(--vg-text);
}

.vg-ports-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   FAQ & Testimonials
   ========================================================================== */

.vg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 840px;
  margin: 0 auto;
}

.vg-faq-item {
  background: var(--vg-surface);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  overflow: hidden;
  transition: border-color var(--vg-transition);
}

.vg-faq-item[open] {
  border-color: var(--vg-accent);
}

.vg-faq-summary {
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--vg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.vg-faq-summary::-webkit-details-marker {
  display: none;
}

.vg-faq-icon {
  width: 20px;
  height: 20px;
  color: var(--vg-accent);
  transition: transform var(--vg-transition);
}

.vg-faq-item[open] .vg-faq-icon {
  transform: rotate(180deg);
}

.vg-faq-content {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--vg-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Modal Dialogs (Native <dialog> Standard Compliant)
   ========================================================================== */

dialog.vg-dialog {
  border: none;
  border-radius: var(--vg-radius-lg);
  background: var(--vg-surface);
  color: var(--vg-text);
  box-shadow: var(--vg-shadow-xl);
  padding: 0;
  max-width: 680px;
  width: calc(100% - 32px);
  margin: auto;
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog.vg-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: vg-fade-in 0.2s ease forwards;
}

dialog.vg-dialog[open] {
  animation: vg-scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vg-scale-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vg-dialog-header {
  padding: 18px 24px;
  background: var(--vg-surface-alt);
  border-bottom: 1px solid var(--vg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vg-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--vg-primary);
}

.vg-dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vg-text-muted);
  transition: all var(--vg-transition);
}

.vg-dialog-close:hover {
  background: var(--vg-border);
  color: var(--vg-text);
}

.vg-dialog-body {
  padding: 24px;
  max-height: 75dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Sliding Drawer Style Dialog (for RFQ Cart & Mobile Menu) */
dialog.vg-drawer-dialog {
  inset: 0 0 0 auto;
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  max-width: 440px;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--vg-border);
}

dialog.vg-drawer-dialog[open] {
  animation: vg-slide-left 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vg-slide-left {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* RFQ Cart Item in Drawer */
.vg-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--vg-surface-alt);
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius);
  margin-bottom: 10px;
}

.vg-cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--vg-radius-sm);
  object-fit: cover;
  background: #ffffff;
}

.vg-cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vg-primary);
  line-height: 1.25;
}

.vg-cart-item-sku {
  font-size: 11px;
  color: var(--vg-text-muted);
}

.vg-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--vg-border);
  border-radius: var(--vg-radius-sm);
  background: #ffffff;
}

.vg-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--vg-text);
}

.vg-qty-input {
  width: 38px;
  text-align: center;
  border: none;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.vg-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.vg-toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--vg-radius);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--vg-shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: vg-toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 360px;
}

@keyframes vg-toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

.vg-footer {
  background: var(--vg-primary-dark);
  color: #cbd5e1;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vg-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 48px;
}

.vg-footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.vg-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.vg-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.vg-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: #94a3b8;
}

/* ==========================================================================
   Mobile Bottom Dock & Adaptation
   ========================================================================== */

.vg-mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  /* Reserve space for mobile dock */
  body {
    padding-bottom: 68px;
  }

  .vg-mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--vg-border);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .vg-dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--vg-text-muted);
    min-height: 54px;
    position: relative;
  }

  .vg-dock-btn.active, .vg-dock-btn:active {
    color: var(--vg-accent);
  }

  .vg-dock-btn.highlight {
    background: var(--vg-accent);
    color: #ffffff;
  }

  .vg-dock-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Responsive Adjustments */
  .vg-topbar {
    display: none;
  }

  .vg-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .vg-search-box {
    width: 100%;
  }

  .vg-toast-container {
    bottom: 76px;
    right: 16px;
    left: 16px;
  }

  .vg-toast {
    max-width: 100%;
  }
}

@media (min-width: 640px) {
  .vg-quickview-grid {
    grid-template-columns: 1fr 1.25fr !important;
  }
}
