@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-family: 'Outfit', sans-serif;
  
  /* Color Palette - Matched with ElectroHub Bangladesh Logo */
  --bg-primary: #0a0e17;
  --bg-secondary: #121824;
  --bg-card: rgba(20, 27, 45, 0.65);
  --bg-card-hover: rgba(28, 38, 62, 0.85);
  
  --primary: #ff9900;
  --primary-glow: rgba(255, 153, 0, 0.25);
  --secondary: #39b54a;
  --accent: #ff9900;
  --accent-glow: rgba(255, 153, 0, 0.2);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.6);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 15px var(--primary-glow);
  --glow-secondary: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Base Styles */
body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  box-shadow: var(--glow-primary);
  transition: all var(--transition-fast);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  color: #fff;
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.btn-secondary-custom {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.navbar-custom {
  background: rgba(10, 14, 23, 0.8) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  transition: var(--transition-fast);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--text-primary) !important;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Product Cards */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card .product-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.product-card img {
  transition: transform var(--transition-slow);
}

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

.product-card .badge-flash {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

.product-price-regular {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 8px;
}

/* Shopping Cart Drawer */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #0d121e;
  border-left: 1px solid var(--border-color);
  z-index: 1050;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  display: none;
}

.cart-backdrop.show {
  display: block;
}

/* Category grid hover */
.category-card {
  position: relative;
  transition: all var(--transition-normal);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.15);
}

/* Search autocomplete dropdown */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #121824;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  max-height: 350px;
  overflow-y: auto;
}

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

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--secondary);
}

/* Form Styles */
.form-control-custom {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.form-control-custom:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-focus);
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Interactive badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}
.badge-status.instock {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-status.outofstock {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-status.upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Spec table styling */
.spec-table th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-secondary);
  font-weight: 600;
  width: 30%;
}
.spec-table td, .spec-table th {
  border-color: var(--border-color) !important;
  color: var(--text-primary);
}

/* Hero Slider Styles */
.hero-slider-item {
  min-height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.carousel-item.active.hero-slider-item {
  display: flex;
  align-items: center;
}
.hero-slider-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(10, 14, 23, 0.95) 40%, rgba(10, 14, 23, 0.4) 100%);
}
.hero-slider-content {
  position: relative;
  z-index: 10;
}
