/* ========================================================
   VOLT-OPTIC B2B - Nordic Industrial & Precision Studio
   Energy Cells Grade A & Night Vision / Hunting Optics
   Fresh, Crisp, Modern B2B Aesthetic
   ======================================================== */

:root {
  /* Daylight / Studio Palette (Default: Fresh, Clean, High Contrast) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  /* Direction 1: Energy & Battery Cells (Alpine Forest Green) */
  --accent-battery: #15803d;
  --accent-battery-hover: #166534;
  --accent-battery-light: #dcfce7;
  --accent-battery-border: #86efac;
  --accent-battery-text: #14532d;

  /* Direction 2: Night Vision & Thermal Optics (Tactical Terracotta Amber) */
  --accent-optics: #c2410c;
  --accent-optics-hover: #9a3412;
  --accent-optics-light: #fef3c7;
  --accent-optics-border: #fcd34d;
  --accent-optics-text: #92400e;

  /* Structural Accents */
  --accent-carbon: #0f172a;
  --accent-carbon-hover: #1e293b;
  --accent-blue: #0284c7;

  /* Natural Architectural Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 28px -4px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 20px 32px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --header-bg: rgba(255, 255, 255, 0.92);
  --topbar-bg: #0f172a;
  --topbar-text: #cbd5e1;
}

/* ========================================================
   TACTICAL THERMAL HUD THEME (Night Hunting Vision Mode)
   Activated via header toggle [data-theme="thermal"]
   ======================================================== */
[data-theme="thermal"] {
  --bg-page: #0a0f0d;
  --bg-surface: #111a14;
  --bg-surface-elevated: #16241b;
  --bg-subtle: #18281e;
  --bg-muted: #243b2d;

  --border-light: rgba(34, 197, 94, 0.18);
  --border-medium: rgba(34, 197, 94, 0.35);
  --border-focus: #22c55e;

  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
  --text-dim: #34d399;
  --text-inverse: #052e16;

  --accent-battery: #22c55e;
  --accent-battery-hover: #16a34a;
  --accent-battery-light: rgba(34, 197, 94, 0.15);
  --accent-battery-border: rgba(34, 197, 94, 0.4);
  --accent-battery-text: #4ade80;

  --accent-optics: #f59e0b;
  --accent-optics-hover: #d97706;
  --accent-optics-light: rgba(245, 158, 11, 0.15);
  --accent-optics-border: rgba(245, 158, 11, 0.4);
  --accent-optics-text: #fbbf24;

  --accent-carbon: #22c55e;
  --accent-carbon-hover: #16a34a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.85);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 197, 94, 0.06);
  --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.8), 0 0 25px rgba(34, 197, 94, 0.15);

  --header-bg: rgba(10, 15, 13, 0.94);
  --topbar-bg: #060907;
  --topbar-text: #86efac;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  background-image: 
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme="thermal"] body {
  background-image: 
    radial-gradient(rgba(34, 197, 94, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========================================================
   CONTAINER & TYPOGRAPHY
   ======================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-emerald {
  background: var(--accent-battery-light);
  color: var(--accent-battery-text);
  border: 1px solid var(--accent-battery-border);
}

.badge-amber {
  background: var(--accent-optics-light);
  color: var(--accent-optics-text);
  border: 1px solid var(--accent-optics-border);
}

.badge-cyan {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

[data-theme="thermal"] .badge-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Primary Carbon High-Contrast Button */
.btn-primary {
  background: var(--accent-carbon);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: var(--accent-carbon-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

[data-theme="thermal"] .btn-primary {
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

[data-theme="thermal"] .btn-primary:hover {
  background: #16a34a;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.6);
}

/* Energy Green Button */
.btn-emerald {
  background: var(--accent-battery);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
}

.btn-emerald:hover {
  background: var(--accent-battery-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

/* Amber Optics Button */
.btn-amber {
  background: var(--accent-optics);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.2);
}

.btn-amber:hover {
  background: var(--accent-optics-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

/* Clean Outline Button */
.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* ========================================================
   TOP INFORMATION BAR
   ======================================================== */
.top-bar {
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--topbar-text);
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-tags {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-tag span.dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-bar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  transition: opacity 0.15s;
}

.top-bar-contacts a:hover {
  opacity: 0.8;
  color: #38bdf8;
}

/* ========================================================
   SITE HEADER & NAVIGATION
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  transition: all 0.2s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--text-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-surface);
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

[data-theme="thermal"] .logo-icon {
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.logo-title span.accent-volt {
  color: var(--accent-battery);
}

.logo-title span.accent-optics {
  color: var(--accent-optics);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

/* ========================================================
   HERO SECTION (FRESH EDITORIAL PRECISION LOOK)
   ======================================================== */
.hero-section {
  padding: 56px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 40px;
  align-items: center;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 6px 14px;
  border-radius: 9999px;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.hero-title {
  font-size: 44px;
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero-title .title-accent-battery {
  color: var(--accent-battery);
  position: relative;
}

.hero-title .title-accent-optics {
  color: var(--accent-optics);
  position: relative;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.hero-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-feat-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-battery);
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-feat-item.optics .hero-feat-icon {
  color: var(--accent-optics);
}

.hero-feat-text h4 {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero-feat-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========================================================
   HERO RIGHT: DUAL SHOWCASE HUB
   ======================================================== */
.hero-hub {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.hub-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-battery-text);
  background: var(--accent-battery-light);
  border: 1px solid var(--accent-battery-border);
  padding: 3px 8px;
  border-radius: 4px;
}

.hub-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.hub-item:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hub-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hub-item-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-item-tag.battery { color: var(--accent-battery); }
.hub-item-tag.optics { color: var(--accent-optics); }

.hub-item-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.hub-item-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hub-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.hub-stat-num {
  font-size: 20px;
  font-weight: 850;
  color: var(--text-primary);
}

.hub-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================================================
   SECTION HEADINGS & FILTERS
   ======================================================== */
.section {
  padding: 64px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-battery);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Catalog Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 12px 18px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.filter-tab.active {
  background: var(--text-primary);
  color: var(--bg-surface);
}

.filter-tab.active[data-category="battery"] {
  background: var(--accent-battery);
  color: #ffffff;
}

.filter-tab.active[data-category="hydrogen"] {
  background: #0284c7;
  color: #ffffff;
}

.filter-tab.active[data-category="optics"] {
  background: var(--accent-optics);
  color: #ffffff;
}

.product-card.hydrogen-card:hover {
  border-color: #38bdf8;
}

.hub-item-tag.hydrogen {
  color: #0284c7;
}

[data-theme="thermal"] .hub-item-tag.hydrogen {
  color: #38bdf8;
}

.filter-search {
  position: relative;
  min-width: 270px;
}

.filter-search input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 9px 14px 9px 36px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.filter-search input:focus {
  background: var(--bg-surface);
  border-color: var(--text-primary);
}

.filter-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

/* ========================================================
   PRODUCT GRID & CARDS
   ======================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-medium);
}

.product-card.battery-card:hover {
  border-color: var(--accent-battery-border);
}

.product-card.optics-card:hover {
  border-color: var(--accent-optics-border);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-category {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

/* Specs pills inside card */
.specs-table {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.spec-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.spec-label {
  color: var(--text-muted);
}

.spec-val {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

/* Wholesale Tiers mini-table */
.pricing-tiers {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.pricing-tiers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}

.tier-item {
  background: var(--bg-surface);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.tier-qty {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.tier-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.tier-discount {
  font-size: 10px;
  color: var(--accent-battery);
  font-weight: 700;
}

/* Card Bottom */
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.card-stock {
  display: flex;
  flex-direction: column;
}

.stock-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-battery);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-status span.dot {
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  display: inline-block;
}

.stock-count {
  font-size: 11px;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* ========================================================
   INTERACTIVE B2B BATCH CALCULATOR
   ======================================================== */
.calc-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.calc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
}

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

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

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

.form-label span.note {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}

.form-select, .form-input {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.15s;
  width: 100%;
}

.form-select:focus, .form-input:focus {
  background: var(--bg-surface);
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--bg-muted);
}

.qty-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.preset-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-chip:hover {
  background: var(--bg-surface);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Calculator Summary Panel */
.calc-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.summary-head {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.summary-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-head p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.sum-label {
  color: var(--text-secondary);
}

.sum-row.total {
  border-top: 1px solid var(--border-medium);
  padding-top: 14px;
  margin-top: 4px;
}

.sum-row.total .sum-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-primary);
}

.sum-row .sum-val.discount {
  color: var(--accent-battery);
  font-weight: 700;
}

.logistics-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  color: #166534;
}

[data-theme="thermal"] .logistics-badge {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.logistics-badge strong {
  color: var(--text-primary);
}

/* ========================================================
   B2B BENEFITS / ADVANTAGES
   ======================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card-hover);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card.green .benefit-icon {
  background: var(--accent-battery-light);
  color: var(--accent-battery);
}

.benefit-card.amber .benefit-icon {
  background: var(--accent-optics-light);
  color: var(--accent-optics);
}

.benefit-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.benefit-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ========================================================
   RFQ CONTACT & ORDER FORM
   ======================================================== */
.rfq-section {
  padding: 64px 0;
  background: var(--bg-subtle);
}

.rfq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.rfq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.rfq-info h3 {
  font-size: 28px;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.rfq-info p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.rfq-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.rfq-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.rfq-point svg {
  width: 20px;
  height: 20px;
  color: var(--accent-battery);
  flex-shrink: 0;
}

.rfq-form {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rfq-form textarea {
  min-height: 90px;
  resize: vertical;
}

.form-consent {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========================================================
   FAQ SECTION
   ======================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

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

.faq-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(45deg);
  color: var(--accent-battery);
}

.faq-body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

/* ========================================================
   MODAL DIALOG (Modern HTML5 <dialog>)
   ======================================================== */
dialog.b2b-modal {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 780px;
  width: 90vw;
  margin: auto;
  padding: 0;
  overflow: hidden;
  outline: none;
}

dialog.b2b-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.modal-title-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ========================================================
   SITE FOOTER
   ======================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 0 32px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: #94a3b8;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

/* ========================================================
   RESPONSIVE DESIGN (Media Queries)
   ======================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .calc-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .rfq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   DEDICATED CATALOG & PRODUCT DETAIL PAGES ADDITIONS
   ======================================================== */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.specs-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}

.gallery-thumb-btn {
  transition: all 0.2s ease;
}

.gallery-thumb-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

@media (max-width: 900px) {
  .product-hero-grid,
  .specs-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  #catalog-grid {
    grid-template-columns: 1fr !important;
  }
  
  .related-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  #catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
