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

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121216;
  --bg-card: rgba(22, 22, 29, 0.7);
  --bg-glass: rgba(18, 18, 24, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(139, 92, 246, 0.35);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: #f3f4f6;
  overflow-x: hidden;
  selection-background-color: #8b5cf6;
  selection-color: #ffffff;
}

::selection {
  background: #8b5cf6;
  color: #ffffff;
}

.font-heading {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Cyber Glassmorphism */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-card {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.8) 0%, rgba(14, 14, 20, 0.9) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.2), 0 0 15px 0 rgba(139, 92, 246, 0.1);
  transform: translateY(-4px);
}

.cyber-glow-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cyber-glow-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.cyber-glow-btn:hover::before {
  opacity: 1;
  animation: shineSweep 1.2s infinite;
}

@keyframes shineSweep {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Neon Glow Accents */
.glow-purple {
  box-shadow: 0 0 20px -3px rgba(139, 92, 246, 0.5);
}

.glow-emerald {
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.5);
}

.glow-cyan {
  box-shadow: 0 0 20px -3px rgba(6, 182, 212, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0d12;
}

::-webkit-scrollbar-thumb {
  background: #272732;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* Animated Grid Pattern Background */
.bg-grid-cyber {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
}

/* Pulsing Hot Badge */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.badge-pulse {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Ticker Animation */
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerSlide 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

/* Drawer Transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-content {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-container {
  transform: scale(0.95) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Product Card Image Zoom */
.product-image-container {
  position: relative;
  overflow: hidden;
}

.product-image-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* WhatsApp Pulse Button */
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-pulse-btn {
  animation: waPulse 2s infinite;
}

/* Size Pill Radio */
.size-pill.active {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.18);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Color swatch ring */
.color-swatch.active {
  ring-width: 2px;
  ring-color: #8b5cf6;
  transform: scale(1.15);
}

/* Tab Active State */
.filter-tab.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  border-color: #a78bfa;
  box-shadow: 0 4px 15px -3px rgba(139, 92, 246, 0.4);
}
