* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #050505; color: #e5e5e5; overflow-x: hidden; }
::selection { background: #00ffc4; color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #404040; }

.hero-gradient {
  background: radial-gradient(ellipse at 30% 50%, rgba(0,255,196,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(0,255,196,0.04) 0%, transparent 50%),
              #050505;
}

.grid-bg {
  background-image: linear-gradient(to right, rgba(128,128,128,0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(128,128,128,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,196,0.25);
  box-shadow: 0 0 40px rgba(0,255,196,0.08);
}

.cat-pill {
  transition: all 0.25s ease;
}
.cat-pill.active {
  background: #047857;
  color: #fff;
  border-color: #047857;
}
.cat-pill:not(.active):hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

.add-btn {
  transition: all 0.2s ease;
}
.add-btn:hover {
  background: #059669;
  transform: scale(1.05);
}
.add-btn:active {
  transform: scale(0.95);
}

.cart-sidebar {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-sidebar.open {
  transform: translateX(0);
}

.overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes slideInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-in {
  animation: slideInUp 0.5s ease-out forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim {
  animation: float 4s ease-in-out infinite;
}

.badge-bounce {
  animation: badgePop 0.3s ease;
}
@keyframes badgePop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.toast {
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

.qty-btn {
  transition: all 0.15s ease;
}
.qty-btn:hover {
  background: rgba(255,255,255,0.1);
}
.qty-btn:active {
  transform: scale(0.9);
}

.search-input:focus {
  border-color: rgba(0,255,196,0.4);
  box-shadow: 0 0 0 3px rgba(0,255,196,0.08);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
