/* SANKARA NIGERIA LIMITED — Global E-Store & Showroom Design System */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10B981;
  --primary-glow: rgba(16, 185, 129, 0.25);
  
  --navy: #0A1172;
  --navy-dark: #070B4A;
  --navy-light: #1E293B;

  --machinery-gold: #D97706;
  --machinery-bg: #FFFBEB;

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-600: #475569;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --success: #10B981;
  --success-bg: #ECFDF5;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sticky Top Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--navy);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 30px;
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--slate-600);
  pointer-events: none;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--slate-200);
  background: #FFFFFF;
  color: var(--slate-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.btn-cart {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px var(--primary-glow);
  position: relative;
}

.btn-cart:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.cart-count {
  background: #FFFFFF;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

/* Showroom Window Switcher Tabs */
.showroom-tabs {
  background: #FFFFFF;
  border-bottom: 1px solid var(--slate-200);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 800;
  border: 1px solid var(--slate-200);
  background: #FFFFFF;
  color: var(--slate-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(10, 17, 114, 0.25);
}

.tab-btn.active.tab-machinery {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  border-color: #047857;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
}

/* Category Filter Bar */
.category-filter-bar {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  background: var(--slate-50);
}

.cat-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #FFFFFF;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cat-chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Showroom Hero Banner */
.hero-banner {
  margin: 16px 24px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #1E1B4B 60%, var(--primary-dark) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.hero-content p {
  font-size: 0.95rem;
  color: #C7D2FE;
  max-width: 580px;
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Showroom Product Grid */
.showroom-container {
  padding: 16px 24px 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.product-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--slate-200);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

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

.product-thumb,
.product-img-box {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background: var(--slate-100);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.product-thumb img,
.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-pill,
.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2;
}

.stock-in,
.badge-in {
  background: var(--success-bg);
  color: var(--primary-dark);
  border: 1px solid #A7F3D0;
}

.stock-out,
.badge-out {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #FECACA;
}

.part-number-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.btn-specs {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--slate-200);
  background: var(--slate-100);
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-specs:hover {
  background: var(--slate-200);
  border-color: var(--slate-300);
}

.product-sku {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.sku-suffix {
  color: #2563EB;
  font-weight: 900;
}

.product-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-compatibility {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-bottom: 12px;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
}

.price-label {
  font-size: 0.7rem;
  color: var(--slate-600);
  text-transform: uppercase;
  font-weight: 700;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
}

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

.btn-card {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-view-specs {
  background: var(--slate-100);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

.btn-view-specs:hover {
  background: var(--slate-200);
}

.btn-add-cart {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 10px var(--primary-glow);
  margin-top: 8px;
}

.btn-add-cart:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-add-cart.disabled,
.btn-add-cart:disabled {
  background: #F1F5F9 !important;
  color: #94A3B8 !important;
  border: 1px solid #E2E8F0 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

/* Slide-Over Cart Drawer - Non-Blurry & Fully Interactive */
.cart-drawer-overlay {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  z-index: 250;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.16), -2px 0 8px rgba(15, 23, 42, 0.05);
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active,
.cart-drawer.open {
  right: 0 !important;
}

/* Smooth micro-animation when items are added while cart drawer is open */
@keyframes itemAddedFlash {
  0% { transform: scale(0.96); background: #ECFDF5; border-color: #10B981; }
  50% { transform: scale(1.02); background: #D1FAE5; }
  100% { transform: scale(1); background: #FFFFFF; border-color: #E2E8F0; }
}

.cart-item-highlight {
  animation: itemAddedFlash 0.5s ease-out;
}

.floating-cart-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(4, 120, 87, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 90%;
  max-width: 520px;
  z-index: 190;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: floatBounce 0.4s ease;
}

.floating-cart-bar:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 14px 36px rgba(4, 120, 87, 0.5);
}

@keyframes floatBounce {
  0% { transform: translateX(-50%) translateY(20px); opacity: 0; }
  100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cart-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  flex-shrink: 0;
}

.cart-drawer-count-badge {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid #DBEAFE;
}

.cart-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.cart-items-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}

/* Premium Cart Item Card */
.cart-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.cart-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-thumb-box {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-remove {
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 6px;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: #EF4444;
  background: #FEE2E2;
}

.cart-part-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 1px 7px;
  border-radius: 5px;
  width: fit-content;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

.cart-unit-price {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #F1F5F9;
}

.cart-qty-pill {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.cart-qty-btn:hover {
  background: #047857;
  color: #FFFFFF;
}

.cart-qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
}

.cart-line-total {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0A1172;
  letter-spacing: -0.2px;
}

/* Cart Footer */
.cart-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--slate-200);
  background: #FFFFFF;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--slate-600);
  font-weight: 600;
}

.delivery-selector-card {
  margin: 12px 0;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.delivery-select-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.delivery-select-input:focus {
  border-color: var(--primary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  margin: 14px 0 16px 0;
  border-top: 1px solid var(--slate-200);
  padding-top: 12px;
}

.cart-total-val {
  color: #047857;
  font-size: 1.35rem;
  font-weight: 900;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-checkout:hover:not(:disabled) {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: none !important; /* No blur */
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active,
.modal-overlay.open {
  display: flex !important;
}

.modal-box {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--slate-200);
  position: relative;
  z-index: 510;
}

.bank-card-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
}

.bank-acc-num {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 1px;
}

.copy-btn {
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Receipt Upload Dropzone & Status Badge */
.receipt-upload-box {
  border: 2px dashed #93C5FD;
  background: #F8FAFC;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.receipt-upload-box:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.receipt-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.receipt-status-uploaded {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.receipt-status-missing {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
}

/* Live Order Tracking Timeline */
.timeline-container {
  margin: 20px 0;
  position: relative;
  padding-left: 32px;
}

.timeline-step {
  position: relative;
  padding-bottom: 24px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slate-300);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--slate-200);
}

.timeline-step.completed .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-step.completed::before {
  background: var(--primary);
}

.timeline-step.active .timeline-dot {
  background: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.driver-call-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-call-driver {
  background: #047857;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.3);
}

/* Floating WhatsApp Assistance */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 150;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE SYSTEM (Mobile, Tablet, Laptop, Ultra-Wide)
   ========================================================================== */

/* Universal Touch & Ergonomic Feedback */
button:active {
  transform: scale(0.97);
}

.cat-chip:active,
.tab-btn:active,
.btn-nav:active,
.btn-specs:active,
.btn-add-cart:active {
  transform: scale(0.96);
}

/* 1. Large Monitors & Ultra-Wide (> 1360px) */
@media (min-width: 1360px) {
  .showroom-container {
    max-width: 1440px;
    padding: 20px 32px 90px 32px;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .hero-banner {
    margin: 20px 32px;
    padding: 32px 40px;
  }
}

/* 2. Standard Laptops & Landscape Tablets (992px - 1359px) */
@media (max-width: 1359px) and (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .navbar {
    padding: 12px 20px;
  }
  .search-box {
    max-width: 380px;
  }
}

/* 3. Portrait Tablets & Small Laptops (769px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
  .navbar {
    padding: 12px 18px;
    gap: 12px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.68rem;
  }
  .search-box {
    max-width: 280px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-banner {
    margin: 14px 18px;
    padding: 20px 24px;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 0.88rem;
  }
}

/* Mobile Bottom Navigation Bar (Guarantees Cart Button is ALWAYS Visible) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 180;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.mobile-nav-item span:first-child {
  font-size: 1.25rem;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-cart {
  color: var(--primary);
  font-weight: 800;
}

.mobile-cart-badge {
  position: absolute;
  top: 2px;
  right: 14px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* 4. All Mobile Screens & Phablets (<= 768px) */
@media (max-width: 768px) {
  /* Navbar 2-Row Compact Grid */
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 10px;
    padding: 10px 14px;
  }
  .brand-container {
    grid-area: brand;
    gap: 8px;
  }
  .brand-badge {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 9px;
  }
  .brand-name {
    font-size: 0.96rem;
    letter-spacing: -0.3px;
  }
  .brand-sub {
    font-size: 0.65rem;
  }
  .nav-actions {
    grid-area: actions;
    gap: 8px;
  }
  .nav-actions .btn-nav {
    padding: 7px 12px;
    font-size: 0.78rem;
    border-radius: 14px;
  }
  .search-box {
    grid-area: search;
    max-width: 100%;
  }
  .search-input {
    padding: 9px 14px 9px 38px;
    font-size: 0.84rem;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid var(--slate-300);
  }
  .search-icon {
    left: 12px;
    font-size: 0.9rem;
  }

  /* Showroom Tabs & Filters */
  .showroom-tabs {
    padding: 8px 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .showroom-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .category-filter-bar {
    padding: 8px 12px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .cat-chip {
    padding: 5px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Hero Banner */
  .hero-banner {
    margin: 10px 12px;
    padding: 16px 18px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-content h1 {
    font-size: 1.35rem;
  }
  .hero-content p {
    font-size: 0.82rem;
  }
  .hero-stat-pill {
    padding: 8px 14px;
    align-self: flex-start;
  }

  /* Grid & Bottom Spacing for Mobile Bottom Nav */
  .showroom-container {
    padding: 10px 12px 110px 12px;
  }

  /* Mobile Bottom Nav Bar */
  .mobile-bottom-nav {
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  .floating-cart-bar {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: 92%;
    padding: 10px 16px;
  }
  .whatsapp-float {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

/* 5. Phablets / 2-Column Mobile (521px - 768px) */
@media (max-width: 768px) and (min-width: 521px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 12px;
  }
  .product-img-box {
    height: 155px;
  }
  .product-title {
    font-size: 0.92rem;
  }
  .product-price {
    font-size: 1.12rem;
  }
}

/* 6. Compact Mobile Phones (<= 520px) */
@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-card {
    padding: 14px;
  }
  .product-img-box {
    height: 175px;
  }

  /* Full Screen Sheet Cart Drawer on Mobile */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
    border-left: none;
  }
  .cart-header {
    padding: 12px 16px;
  }
  .cart-close-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .cart-items-container {
    padding: 10px 12px;
  }
  .cart-item {
    padding: 10px;
    gap: 10px;
  }
  .cart-thumb-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .cart-item-title {
    font-size: 0.85rem;
  }
  .cart-unit-price {
    font-size: 0.75rem;
  }
  .cart-line-total {
    font-size: 0.95rem;
  }
  .cart-qty-pill {
    padding: 2px 4px;
  }
  .cart-qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .cart-footer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) 14px;
  }
  .btn-checkout {
    padding: 12px 18px;
    font-size: 0.92rem;
  }
}

/* 7. Modal Dialogs Responsive Optimization Across Devices */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 8px;
    align-items: flex-end; /* Mobile Bottom Sheet */
  }
  .modal-box {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
    max-height: 92vh;
    max-height: 92dvh;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  }
  .form-row-responsive {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .bank-acc-num {
    font-size: 1.15rem !important;
  }
  .bank-card-box {
    padding: 12px;
  }
}

/* 8. Tracking Search on Ultra-Compact Mobile (<= 480px) */
@media (max-width: 480px) {
  .track-search-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .track-search-row .btn-checkout {
    width: 100% !important;
    padding: 11px !important;
  }
  .nav-actions .btn-nav:not(.btn-cart) span:last-child {
    display: none; /* Icon-only track button on ultra-small mobile */
  }
  .nav-actions .btn-nav:not(.btn-cart) {
    padding: 6px 10px;
  }
}

