/* Al Wahab Machinery - Polished Multi-Page Industrial Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --color-industrial-dark: #070e1b;
  --color-industrial-navy: #0f172a;
  --color-cyan-glow: #0284c7;
  --color-amber-gold: #f59e0b;
  --color-emerald-green: #10b981;
  --color-border-slate: #cbd5e1;
  --color-card-bg: #ffffff;
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Glassmorphic Navbar */
.nav-glass {
  background: rgba(7, 14, 27, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Single-Line Nav Link Guard & Indicator */
.nav-link {
  position: relative;
  white-space: nowrap !important;
  display: inline-block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Hero Radial Glow Gradient */
.hero-bg-glow {
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
              linear-gradient(135deg, #070e1b 0%, #0f172a 60%, #1e293b 100%);
}

/* Sub-page Hero Banner */
.page-header-bg {
  background: linear-gradient(135deg, #070e1b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Standardized Product Card Container */
.product-card {
  background-color: var(--color-card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(2, 132, 199, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
  border-color: #38bdf8;
}

/* Mobile Drawer & Transition Effects */
#mobileMenu {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Action Buttons - Forced Single-Line Guard & Touch Target */
.product-card a,
.product-card button {
  white-space: nowrap !important;
  min-height: 42px;
}

/* FIXED ASPECT RATIO / FIXED HEIGHT IMAGE CANVAS */
.product-img-box {
  height: 220px;
  width: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
  .product-img-box {
    height: 190px;
    padding: 1rem;
  }
}

.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}

.product-card:hover .product-img-box img {
  transform: scale(1.08);
}

/* Badges */
.badge-electric {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
}

.badge-amber {
  background-color: #fffbe6;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
}

/* Hero Carousel Slider Styles */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #030712;
}

@media (max-width: 640px) {
  .hero-slider-wrapper {
    height: 240px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  width: 28px;
  background-color: #38bdf8;
}

/* Filter Pill Controls */
.filter-btn {
  transition: all 0.25s ease;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  min-height: 42px;
}

.filter-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.filter-btn.active .count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.count-badge {
  background-color: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* View Switcher Buttons */
.view-btn.active {
  background-color: #0284c7;
  color: #ffffff;
}

/* List View Container */
.list-view-container .product-card {
  flex-direction: row;
  height: auto;
  min-height: 200px;
}

.list-view-container .product-img-box {
  width: 240px;
  height: auto;
  min-height: 200px;
  border-bottom: none;
  border-right: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
  .list-view-container .product-card {
    flex-direction: column;
  }
  .list-view-container .product-img-box {
    width: 100%;
    height: 190px;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
  }
}

/* Pulse Animation for Floating WhatsApp */
.whatsapp-pulse {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  animation: pulse-glow 2s infinite;
  width: 56px;
  height: 56px;
}

@media (max-width: 640px) {
  .whatsapp-pulse {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Touch Momentum Scrolling */
.no-scrollbar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Prevent iOS Auto-Zoom on Form Inputs */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
