* { margin: 0; padding: 0; box-sizing: border-box; }

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

body {
  background: #0f0f11;
  color: #e4e4e7;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

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

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #ec4899, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow-purple {
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.15), 0 0 120px rgba(99, 102, 241, 0.05);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* Blob animation */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

.animate-blob { animation: blob 8s ease-in-out infinite; }
.animate-blob-delay { animation: blob 10s ease-in-out 2s infinite; }
.animate-blob-delay-2 { animation: blob 12s ease-in-out 4s infinite; }

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

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

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Noise overlay */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f11; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 400px;
}

/* Fade up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button shine */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn-shine:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* Filter buttons */
.filter-btn {
  background: rgba(39, 39, 42, 0.6);
  color: #a1a1aa;
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: #e4e4e7;
  background: rgba(39, 39, 42, 0.9);
}

.filter-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #a3a3ff;
  border-color: rgba(99, 102, 241, 0.3);
}

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

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

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

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

/* Discount badge pulse */
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
}

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

/* Hide product cards during filter */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.hidden-card {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}