/* ==========================================================================
   B2B SİSTEMİ - LAYOUT & SHELL STYLES
   Üst Bar, Döviz Kurları, Header, Navigasyon, Yan Menü ve Mobil Alt Bar
   ========================================================================== */

/* 1. TOP CURRENCY & ANNOUNCEMENT BAR */
.top-bar {
  background: var(--b2b-navy-deep);
  color: #94a3b8;
  font-size: 12px;
  border-bottom: 1px solid var(--b2b-navy-border);
  padding: 6px 0;
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.currency-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.currency-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cur-code {
  color: #cbd5e1;
  font-weight: 600;
}

.cur-val {
  color: #38bdf8;
  font-weight: 700;
  font-family: monospace;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-link {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-link:hover {
  color: #ffffff;
}

/* 2. MAIN HEADER */
.main-header {
  background: linear-gradient(135deg, #0e3760 0%, #154c82 50%, #0f3d6c 100%);
  color: var(--text-inverse);
  padding: 12px 0 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 25px rgba(10, 45, 80, 0.45);
  border-bottom: 2px solid rgba(56, 189, 248, 0.35);
}

.header-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* SATIR 1: LOGO (Solda) + CARİ PROFİL + BAKİYE KARTI + ÇIKIŞ (Sağda) */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.header-user-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Güncel Cari Bakiye Kartı (Sağ Üstte Cari İsmin Sağında) */
.header-financial-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.header-financial-card:hover {
  background: rgba(234, 88, 12, 0.18);
  border-color: rgba(251, 146, 60, 0.5);
}

.header-financial-card .fin-icon-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.header-financial-card .fin-info {
  display: flex;
  flex-direction: column;
}

.header-financial-card .fin-label {
  font-size: 9.5px;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.header-financial-card .fin-value {
  font-size: 14.5px;
  font-weight: 900;
  color: #fb923c;
  font-family: var(--font-family-heading);
  line-height: 1.2;
}

/* SATIR 2: GENİŞ ARAMA ÇUBUĞU + FAVORİ & SEPET */
.header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.header-bottom-row .search-container {
  flex: 1 1 auto;
  max-width: none;
  min-width: 320px;
  position: relative;
}

.header-action-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform var(--transition-fast);
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--b2b-blue), var(--b2b-sapphire));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-b2b);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-texts {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-b2b-tag {
  background: linear-gradient(135deg, #0284c7, #196cb3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.4px;
  font-weight: 500;
}

/* Global Search with Barcode Trigger */
.search-container {
  flex: 1 1 520px;
  max-width: 820px;
  min-width: 360px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
  height: 48px;
}

.search-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--b2b-blue);
  box-shadow: 0 0 0 4px rgba(25, 108, 179, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12);
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--b2b-blue);
  font-size: 16px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 100%;
  padding: 0 195px 0 48px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}

.search-input::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 1;
}

/* Search Actions Container (Ara + Barkod Oku) */
.search-actions-group {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-submit-btn {
  height: 36px;
  padding: 0 15px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.45);
}

.search-submit-btn i {
  font-size: 12px;
  color: #38bdf8;
}

.barcode-scan-btn {
  position: static;
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(135deg, #0284c7, #196cb3);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(25, 108, 179, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.barcode-scan-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
}

.barcode-scan-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Autocomplete Popover */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-autocomplete-dropdown.active {
  display: block;
}

.search-highlight {
  color: #0284c7;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 3px;
  font-weight: 800;
  padding: 1px 3px;
  margin: 0 -1px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Customer / Dealer Privacy Mode Toggle */
.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--b2b-navy-border);
  border-radius: var(--radius-md);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.mode-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.customer-mode .mode-toggle-btn {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.header-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--b2b-navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 16px;
  position: relative;
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.header-action-btn.active-filter {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

.header-action-btn.active-filter i {
  color: #ef4444 !important;
  font-weight: 900;
}

.header-action-btn.active-filter .btn-badge {
  background: #ef4444 !important;
}

.btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--b2b-blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--b2b-navy);
}

/* Header Cart Button */
.header-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 10px;
  background: linear-gradient(135deg, var(--b2b-blue), var(--b2b-sapphire));
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-b2b);
  transition: all var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(25, 108, 179, 0.45);
}

.cart-icon-wrap {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
}

.cart-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ffffff;
  color: var(--b2b-blue);
  font-size: 11px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.cart-btn-info {
  display: flex;
  flex-direction: column;
}

.cart-btn-label {
  font-size: 10.5px;
  opacity: 0.85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cart-btn-total {
  font-size: 13.5px;
  font-weight: 800;
  font-family: var(--font-family-heading);
}

/* Dealer Account Profile Wrap */
.dealer-profile-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--b2b-navy-border);
  text-decoration: none;
  transition: all var(--transition-fast);
  max-width: 220px;
  flex-shrink: 0;
}

.dealer-profile-wrap:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dealer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b2b-blue), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.dealer-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
}

.dealer-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.dealer-code {
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Account Page - Profile Hero Card (Desktop) */
.account-profile-card {
  background: linear-gradient(135deg, var(--b2b-navy), var(--b2b-navy-surface));
  color: white;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--b2b-navy-border);
}

.profile-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-left-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-dealer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b2b-blue), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  border: 3px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.profile-company-title {
  font-size: 19px;
  color: white;
  margin-bottom: 4px;
  font-weight: 800;
}

.profile-dealer-meta {
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-dealer-meta .mono-code {
  color: white;
  font-family: monospace;
}

.profile-dealer-meta strong {
  color: white;
}

.profile-right-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-balance-badge {
  background: rgba(234, 88, 12, 0.12);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.balance-badge-label {
  font-size: 11px;
  color: #cbd5e1;
}

.balance-badge-val {
  font-size: 20px;
  font-weight: 900;
  color: #ef4444;
  font-family: var(--font-family-heading);
}

.profile-logout-btn {
  height: 44px;
  padding: 0 16px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.profile-logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

  font-size: 10.5px;
  color: #94a3b8;
  font-family: monospace;
}

/* Secondary Horizontal Navigation Bar */
.secondary-nav {
  background: var(--b2b-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 40px;
  display: flex;
  align-items: center;
}

.secondary-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-item {
  display: inline-flex;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-link.active {
  background: var(--b2b-blue);
  color: #ffffff;
}

/* 3. DEALER FINANCIAL & STATS STRIP */
.dealer-financial-strip {
  background: var(--b2b-navy-surface);
  border-bottom: 1px solid var(--b2b-navy-border);
  padding: 10px 0;
  color: #ffffff;
}

.financial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr 1fr;
  gap: 16px;
  align-items: center;
}

.financial-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fin-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(25, 108, 179, 0.18);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.fin-icon-box.orange {
  background: rgba(234, 88, 12, 0.15);
  color: #fb923c;
}

.fin-icon-box.green {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
}

.fin-icon-box.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.fin-info {
  display: flex;
  flex-direction: column;
}

.fin-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
}

.fin-value {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-family-heading);
}

.fin-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fin-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.fin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* 4. MAIN NAVIGATION BAR */
.main-nav-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 73px;
  z-index: 90;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  color: #334155 !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link i {
  font-size: 14px;
  color: #64748b;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #0284c7 !important;
  background: #f8fafc;
}

.nav-link:hover i {
  color: #0284c7;
}

.nav-link.active {
  color: #0284c7 !important;
  font-weight: 800;
  border-bottom-color: #0284c7;
  background: #f0f9ff;
}

.nav-link.active i {
  color: #0284c7;
}

.nav-quick-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12.5px;
  transition: all var(--transition-fast);
}

.nav-quick-order-btn:hover {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* 5. MAIN CONTENT LAYOUT */
.main-content-wrap {
  flex: 1;
  padding: 24px 0 60px 0;
}

.portal-grid-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 135px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--b2b-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-clear-btn {
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
}

.filter-clear-btn:hover {
  color: var(--b2b-blue);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Toggle Switch Style */
.switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.switch-label {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 20px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--b2b-blue);
}

input:checked + .slider-round:before {
  transform: translateX(18px);
}

.filter-search-input {
  width: 100%;
  height: 30px;
  padding: 4px 10px;
  font-size: 11.5px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #f8fafc;
  color: var(--b2b-navy);
  outline: none;
  transition: all var(--transition-fast);
}

.filter-search-input:focus {
  background: #ffffff;
  border-color: var(--b2b-blue);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-checkbox-list::-webkit-scrollbar {
  width: 4px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-checkbox-item:hover {
  background: var(--bg-surface);
  color: var(--b2b-navy);
}

.filter-checkbox-item input {
  accent-color: var(--b2b-blue);
  margin-right: 8px;
}

.filter-count {
  font-size: 11px;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 6. PRODUCTS AREA */
.products-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Products Toolbar */
.products-toolbar {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.products-count-badge {
  font-size: 13px;
  color: var(--text-muted);
}

.products-count-badge strong {
  color: var(--b2b-navy);
  font-weight: 700;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-switcher {
  display: flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
}

.view-btn.active {
  background: #ffffff;
  color: var(--b2b-blue);
  box-shadow: var(--shadow-xs);
}

.sort-select-wrap {
  position: relative;
}

.custom-select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.custom-select:focus {
  border-color: var(--b2b-blue);
}

/* 7. MOBILE BOTTOM NAVIGATION BAR (PWA Ready) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--b2b-navy);
  border-top: 1px solid var(--b2b-navy-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  padding: 6px 12px 10px 12px;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-item i {
  font-size: 18px;
}

.mobile-nav-item.active {
  color: #38bdf8;
}

.mobile-scan-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b2b-blue), var(--b2b-sapphire));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-top: -24px;
  box-shadow: 0 6px 18px rgba(25, 108, 179, 0.5);
  border: 4px solid var(--b2b-navy);
  cursor: pointer;
  transition: transform var(--transition-bounce);
}

.mobile-scan-fab:active {
  transform: scale(0.92);
}

/* 8. PORTAL FOOTER */
.portal-footer {
  background: var(--b2b-navy-deep);
  color: #94a3b8;
  padding: 50px 0 25px 0;
  border-top: 1px solid var(--b2b-navy-border);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom-bar {
  padding-top: 20px;
  border-top: 1px solid var(--b2b-navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* 9. RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .financial-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-grid-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 992px) {
  .portal-grid-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav-bar {
    display: none;
  }
  .mobile-bottom-nav {
    display: block;
  }
  .search-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .financial-grid {
    grid-template-columns: 1fr;
  }
  .top-bar {
    display: none;
  }
  .header-actions .mode-toggle-btn span {
    display: none;
  }
  .dealer-meta {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
