/* ==========================================================================
   ŚLIWA FH - HURTOWNIA & SKLEP NARZĘDZIOWY
   Design System & Main Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  /* Color Palette - Industrial Premium */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-dark-slate: #0f172a;
  --bg-slate-card: #1e293b;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --accent-orange: #f97316;
  --accent-orange-hover: #ea580c;
  --accent-orange-light: rgba(249, 115, 22, 0.12);
  
  --amber-gold: #f59e0b;
  --amber-gold-light: rgba(245, 158, 11, 0.15);
  
  --b2b-blue: #2563eb;
  --b2b-blue-hover: #1d4ed8;
  --b2b-blue-light: rgba(37, 99, 235, 0.12);

  --emerald-green: #10b981;
  --emerald-green-light: rgba(16, 185, 129, 0.15);
  
  --border-color: #e2e8f0;
  --border-dark: #334155;

  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-orange: 0 8px 24px rgba(249, 115, 22, 0.25);
  
  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: all 0.18s ease-in-out;
  --transition-normal: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

.mono-text {
  font-family: var(--font-mono);
}

/* Lucide Icon Standard Alignments */
.lucide-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.18em;
  display: inline-block;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER & TOP STATUS BAR
   ========================================================================== */

/* Top Ticker */
.top-ticker {
  background-color: var(--bg-dark-slate);
  color: var(--text-white);
  padding: 6px 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 40px;
}

.ticker-left, .ticker-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

.status-pill.closed {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: statusPulse 2s infinite ease-in-out;
}

.status-pill.closed .status-dot {
  animation: none;
  box-shadow: none;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-link {
  color: var(--text-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.ticker-link:hover {
  color: var(--text-white);
}

.ticker-location .location-icon {
  color: var(--accent-orange);
  transition: var(--transition-fast);
}

.ticker-location:hover .location-icon {
  transform: translateY(-1px);
}

.ticker-location .addr-short {
  display: none;
}

.ticker-phone-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.ticker-phone-group .phone-icon {
  color: var(--emerald-green);
}

.ticker-phone-group .phone-label {
  color: var(--text-light);
  font-weight: 500;
}

.ticker-phone-link {
  color: var(--text-white);
  font-weight: 700;
  transition: var(--transition-fast);
}

.ticker-phone-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.phone-sep {
  color: rgba(255, 255, 255, 0.2);
}

.mobile-call-btn {
  display: none;
}

/* Main Sticky Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo Brand */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--bg-dark-slate), #334155);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  font-size: 1.4rem;
}

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

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bg-dark-slate);
  line-height: 1.1;
}

.brand-name span {
  color: var(--accent-orange);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--amber-gold-light);
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-elevated);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-orange-light);
}

.search-icon-inside {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Live Search Suggestions Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 600;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--bg-surface-elevated);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mode Switcher (B2C / B2B) */
.price-mode-switch {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.mode-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.mode-btn.active.b2c {
  background-color: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.mode-btn.active.b2b {
  background-color: var(--b2b-blue);
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Cart Button */
.cart-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-dark-slate);
  color: var(--text-white);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.cart-trigger-btn:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cart-count-badge {
  background-color: var(--accent-orange);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Trigger Button (Desktop hidden) */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-surface-elevated);
  color: var(--bg-dark-slate);
  border: 1px solid var(--border-color);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: var(--border-color);
}

/* Mobile Navigation Drawer Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 5001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface-elevated);
}

.mobile-menu-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mobile-price-section .mobile-switch {
  width: 100%;
  justify-content: space-around;
  padding: 4px;
}

.mobile-price-section .mobile-switch .mode-btn {
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}

.mobile-nav-link.b2b-link {
  color: var(--b2b-blue);
}

.mobile-nav-link.b2b-link:hover {
  background-color: var(--b2b-blue-light);
}

.mobile-menu-footer-info {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.mobile-drawer-card {
  background: var(--bg-dark-slate);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-md);
}

.mobile-drawer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.status-pill.mobile-pill {
  font-size: 0.74rem;
  padding: 2px 8px;
}

.mobile-contact-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-contact-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-contact-link {
  color: var(--text-white);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-fast);
  word-break: break-all;
}

.mobile-contact-link.highlight {
  color: var(--accent-orange);
}

.mobile-contact-link:hover {
  text-decoration: underline;
}

.mobile-phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

.mobile-phone-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.mobile-phone-chip:hover, .mobile-phone-chip:active {
  background: var(--emerald-green);
  border-color: var(--emerald-green);
  color: white;
}

/* Sub-Navigation Bar */
.sub-nav {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.sub-nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-nav-container::-webkit-scrollbar {
  display: none;
}

/* Scroll hint for the overflowing nav. Not mobile-only: .sub-nav-container caps at
   1320px, and categories are admin-editable now, so the row clips its last few links
   ("Promocje / Nowości / Polecane", B2B, Kontakt) on a full-width desktop too — with no
   fade there was nothing to suggest it scrolled. */
.sub-nav::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36px;
  background: linear-gradient(to right, transparent, var(--bg-surface));
  pointer-events: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.nav-link.b2b-link {
  color: var(--b2b-blue);
}
.nav-link.b2b-link:hover, .nav-link.b2b-link.active {
  border-bottom-color: var(--b2b-blue);
}

/* ==========================================================================
   VIEW CONTAINER / SPA SUBPAGES
   ========================================================================== */

.app-content {
  min-height: calc(100vh - 200px);
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.view-section.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ==========================================================================
   HOME VIEW (#home)
   ========================================================================== */

/* Hero Banner */
.hero-banner {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.5) 60%, rgba(15, 23, 42, 0.6) 100%),
    url('assets/hero.webp') center / cover no-repeat;
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-white);
}

.hero-title span {
  color: var(--accent-orange);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-orange);
  color: var(--text-white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--text-muted);
}

.btn-b2b {
  background-color: var(--b2b-blue);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-b2b:hover {
  background-color: var(--b2b-blue-hover);
}

/* Feature Badges Row */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-orange-light);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title-group h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-dark-slate);
}

.section-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Categories Showcase Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-orange);
}

.category-icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--bg-surface-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark-slate);
  margin-bottom: 16px;
  font-size: 1.8rem;
  transition: var(--transition-fast);
}

.category-card:hover .category-icon-box {
  background-color: var(--accent-orange);
  color: var(--text-white);
  transform: scale(1.1);
}

.category-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--bg-dark-slate);
}

.category-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   PRODUCT CARDS & GRID
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.4);
}

.product-image-wrap {
  width: 100%;
  height: 220px;
  background-color: var(--bg-surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
}

.product-image-wrap > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 26px 20px 16px 20px;
  box-sizing: border-box;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: var(--transition-normal);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

/* Badges on image */
.badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-stock {
  background-color: var(--emerald-green-light);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-out-of-stock {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-b2b-tier {
  background-color: var(--b2b-blue-light);
  color: var(--b2b-blue);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.product-sku {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.product-details-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-dark-slate);
  margin-bottom: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: var(--transition-fast);
}

.product-title:hover {
  color: var(--accent-orange);
}

.product-spec-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-display {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--bg-dark-slate);
  line-height: 1.2;
}

.main-price small {
  font-size: 0.65em !important;
  font-weight: 600 !important;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.price-type-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.add-to-cart-btn {
  background-color: var(--bg-dark-slate);
  color: var(--text-white);
  padding: 9px 13px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
  background-color: var(--accent-orange);
  box-shadow: var(--shadow-orange);
}

/* ==========================================================================
   CATALOG VIEW (#catalog) FILTERS & TOOLBAR
   ========================================================================== */

.catalog-section-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

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

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

.catalog-results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.catalog-results-count strong {
  color: var(--bg-dark-slate);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.sort-select-wrapper:focus-within, .sort-select-wrapper:hover {
  border-color: var(--accent-orange);
}

.sort-select-wrapper label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sort-select {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg-dark-slate);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-dark-slate);
  color: var(--text-white);
  border: 1px solid var(--bg-dark-slate);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.mobile-filter-btn .lucide-icon, .mobile-filter-btn i {
  color: var(--accent-orange);
}

.mobile-filter-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--text-white);
  box-shadow: var(--shadow-orange);
}

.mobile-filter-btn:hover .lucide-icon, .mobile-filter-btn:hover i {
  color: var(--text-white);
}

/* Active Chips Bar */
.active-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-orange-light);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent-orange);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.filter-chip button {
  background: none;
  border: none;
  color: var(--accent-orange);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.filter-chip button:hover {
  color: #ef4444;
}

.btn-clear-chips {
  background: none;
  border: none;
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}

/* Sidebar Structure */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-color);
}

.filter-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--bg-dark-slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-text-reset {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent-orange);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-text-reset:hover {
  background-color: var(--accent-orange);
  color: var(--text-white);
  border-color: var(--accent-orange);
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.category-filter-item:hover, .category-filter-item.active {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-orange);
  font-weight: 600;
}

.cat-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--bg-surface-elevated);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.category-filter-item.active .cat-count-badge {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}

/* Expandable subcategory dropdowns */
.subcat-toggle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.category-filter-item-group.expanded .subcat-toggle {
  transform: rotate(180deg);
}

.subcat-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  padding-left: 16px;
}

.category-filter-item-group.expanded .subcat-list {
  max-height: 300px;
}

.subcat-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.subcat-list li:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-orange);
}

/* Price Range Inputs */
.price-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.price-input-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background-color: var(--bg-surface-elevated);
  transition: var(--transition-fast);
}

.price-input-box:focus-within {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.price-prefix, .price-suffix {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-input-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-dark-slate);
  padding: 0 4px;
  outline: none;
}

.price-presets-row {
  display: flex;
  gap: 6px;
}

.price-preset-btn {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--bg-surface);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 6px 8px;
  color: var(--bg-dark-slate);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.price-preset-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--text-white);
}

/* Custom Checkbox Design */
.checkbox-filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg-dark-slate);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  padding: 3px 0;
}

.custom-checkbox-label:hover {
  color: var(--accent-orange);
}

.custom-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #94a3b8;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.custom-checkbox-label:hover .checkbox-custom {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
  color: var(--accent-orange);
  font-weight: 700;
}


.badge-bestseller {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Mobile Filter Overlay & Drawer */
.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-surface);
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.2);
  z-index: 5001;
  transform: translateX(-100%);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mobile-filter-overlay.active .mobile-filter-drawer {
  transform: translateX(0);
}

.mobile-filter-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-dark-slate);
  color: var(--text-white);
}

.mobile-filter-header h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.mobile-filter-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
}

@media (max-width: 1024px) {
  .catalog-section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .catalog-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-toolbar-actions {
    flex: 1;
    display: flex;
    gap: 8px;
  }

  .mobile-filter-btn {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .sort-select-wrapper {
    flex: 1;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .sort-select {
    width: 100%;
  }

  .filter-sidebar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .catalog-results-count {
    width: 100%;
    text-align: center;
  }

  .catalog-toolbar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .mobile-filter-btn {
    flex: 1;
    font-size: 0.82rem;
    padding: 10px 8px;
    white-space: nowrap;
  }

  .sort-select-wrapper {
    flex: 1;
    font-size: 0.82rem;
    padding: 10px 8px;
    min-width: 0;
  }

  .sort-select-wrapper label {
    display: none;
  }
}

/* ==========================================================================
   SINGLE PRODUCT SUBPAGE VIEW (#product/:id)
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a:hover {
  color: var(--accent-orange);
}

.single-product-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-gallery-large {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.product-gallery-large img {
  max-width: 90%;
  max-height: 340px;
  object-fit: contain;
}

.single-product-info h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.single-product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.spec-table th, .spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 40%;
}

.spec-table td {
  font-weight: 600;
}

/* Wholesale Tier Table */
.tier-table-box {
  background-color: var(--b2b-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.tier-table-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--b2b-blue);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

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

.tier-qty {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tier-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--b2b-blue);
}

/* Single Product Purchase Box */
.purchase-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
}

.qty-btn {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.qty-picker input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================================
   CART & QUOTE DRAWER (#cart-drawer)
   ========================================================================== */

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-surface);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.2);
  z-index: 5001;
  transform: translateX(100%);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-overlay.active .cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-dark-slate);
  color: var(--text-white);
}

.drawer-header h3 {
  color: var(--text-white);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-drawer-btn {
  color: var(--text-light);
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.close-drawer-btn:hover {
  color: var(--text-white);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  object-fit: contain;
  padding: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-dark-slate);
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-orange);
  margin-top: 4px;
}

.remove-item-btn {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.remove-item-btn:hover {
  color: #ef4444;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-dark-slate);
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  margin-top: 10px;
}

/* ==========================================================================
   CONTACT & LOCATION SECTION (#contact)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
  background-color: var(--bg-dark-slate);
  color: var(--text-light);
  padding: 60px 0 30px 0;
  margin-top: 60px;
  border-top: 4px solid var(--accent-orange);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

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

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  max-width: 1320px;
  margin: 40px auto 0 auto;
  padding: 24px 24px 0 24px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.2rem; }
  .catalog-layout { grid-template-columns: 1fr; }
  .single-product-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-ticker {
    padding: 8px 14px;
    min-height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
  }

  .ticker-left {
    gap: 8px;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .status-pill {
    display: inline-flex;
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .ticker-location .addr-full {
    display: inline;
    font-size: 0.78rem;
  }

  .ticker-location .addr-short {
    display: none;
  }

  .ticker-phone-group {
    display: none;
  }

  .mobile-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
  }

  .mobile-call-btn:hover, .mobile-call-btn:active {
    background-color: var(--emerald-green);
    color: var(--text-white);
  }

  .header-container { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .brand-logo { width: 100%; justify-content: center; }
  .header-search { width: 100%; max-width: none; }
  
  /* Mobile Actions Row: 3/4 Koszyk button (75%) + 1/4 Mobile Hamburger Menu (25%) */
  .header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .header-actions .price-mode-switch {
    display: none; /* Switch is located inside mobile hamburger menu */
  }

  .cart-trigger-btn {
    flex: 3;
    width: 75%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.92rem;
  }

  .mobile-menu-btn {
    display: flex;
    flex: 1;
    width: 25%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.92rem;
  }

  /* Sub-nav bar categories are inside mobile hamburger menu */
  .sub-nav {
    display: none;
  }

  .hero-banner { padding: 36px 24px; }
  .footer-container { grid-template-columns: 1fr; }
}

/* Industrial Ledger Trust Ribbon */
.ledger-trust-ribbon {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

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

.trust-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-dark-slate);
}

.trust-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 36px;
  background-color: var(--border-color);
}

@media (max-width: 1024px) {
  .ledger-trust-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .trust-divider { display: none; }
}

@media (max-width: 640px) {
  .ledger-trust-ribbon {
    grid-template-columns: 1fr;
  }
}

/* Toast Notifications Container & Cards */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-dark-slate);
  color: var(--text-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.toast-card.toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-card.toast-success { border-left: 4px solid var(--emerald-green); }
.toast-card.toast-warning { border-left: 4px solid var(--amber-gold); }
.toast-card.toast-info { border-left: 4px solid var(--accent-orange); }

.toast-icon { width: 22px; height: 22px; flex-shrink: 0; }
.toast-success .toast-icon { color: var(--emerald-green); }
.toast-warning .toast-icon { color: var(--amber-gold); }
.toast-info .toast-icon { color: var(--accent-orange); }

.toast-message { font-size: 0.88rem; font-weight: 500; flex: 1; line-height: 1.4; }
.toast-close { color: var(--text-light); background: none; border: none; cursor: pointer; padding: 2px; }
.toast-close:hover { color: var(--text-white); }

/* Disabled Button Styles */
.btn-primary:disabled, .btn-primary.disabled-btn {
  background-color: var(--text-light) !important;
  opacity: 0.6;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Motion & Tactile Active Feedback (Skill Guidelines) */
.btn-primary:active, .btn-secondary:active, .btn-outline:active, .btn-b2b:active, .cart-trigger-btn:active, .mode-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */
.view-404 {
  background-color: var(--bg-primary);
  min-height: 65vh;
  padding-top: 20px;
}

.error-wrapper {
  max-width: 640px;
  margin: 0 auto 48px auto;
  text-align: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-badge {
  display: inline-block;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.error-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bg-dark-slate);
  margin-bottom: 12px;
  line-height: 1.2;
}

.error-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 32px auto;
}

.error-search-box {
  width: 100%;
  max-width: 480px;
  margin-bottom: 32px;
}

.error-search-box .search-input-wrapper {
  display: flex;
  gap: 10px;
}

.error-search-box .search-input-wrapper input {
  flex: 1;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.error-search-box .search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-orange-light);
}

.error-search-box .search-icon-inside {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.error-search-box .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  background-color: var(--accent-orange);
  color: var(--text-white);
  box-shadow: var(--shadow-orange);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.error-search-box .btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-actions .btn-primary,
.error-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.error-actions .btn-primary {
  background-color: var(--accent-orange);
  color: var(--text-white);
  box-shadow: var(--shadow-orange);
}

.error-actions .btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
}

.error-actions .btn-outline {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.error-actions .btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.error-suggestions {
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
}

@media (max-width: 640px) {
  .error-wrapper {
    padding: 32px 20px;
  }
  .error-title {
    font-size: 1.75rem;
  }
  .error-search-box .search-input-wrapper {
    flex-direction: column;
  }
  .error-search-box .btn-primary {
    justify-content: center;
    width: 100%;
  }
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  .error-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

