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

/* Typography & Base */
body {
  font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-tap-highlight-color: transparent;
}

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

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.8); }
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

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

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

@keyframes growUp {
  from { height: 0%; opacity: 0.3; }
  to { opacity: 1; }
}

@keyframes barFill {
  from { width: 0%; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.animate-fadeIn {
  animation: fadeIn 0.25s ease-out forwards;
}

.animate-grow {
  animation: growUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fill {
  animation: barFill 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Streetwear Gradient Text */
.gradient-text-redwonix {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges & Tags */
.badge-street {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.badge-trend {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* Product Card Zoom & Elevation */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
}

.product-card .img-zoom {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Swatches & Sizes */
.swatch-btn.active {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.size-btn.active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toasts */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 90vw;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .toast-alert {
    left: 16px;
    right: 16px;
    bottom: 80px;
  }

  body {
    padding-bottom: 70px;
  }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  gap: 2px;
  transition: all 0.2s;
  position: relative;
}

.mobile-nav-item.active,
.mobile-nav-item:active,
.mobile-nav-item:hover {
  color: #2563eb;
}

/* Chart Bars */
.chart-bar-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 160px;
  flex: 1;
}

.chart-bar-fill {
  width: 100%;
  max-width: 38px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #8b5cf6 0%, #3b82f6 100%);
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s;
}

.chart-bar-fill:hover {
  transform: scaleY(1.05);
  background: linear-gradient(180deg, #a855f7 0%, #2563eb 100%);
}

/* Print Invoice Styles */
@media print {
  body {
    background: white !important;
  }
  header, footer, aside, .no-print, .mobile-bottom-bar, #cart-drawer-container, #cart-drawer-backdrop {
    display: none !important;
  }
  #printable-receipt {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}
