* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #111827;
  --primary: #6366f1;
  --border: #e5e7eb;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  padding: 20px;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.filter-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  margin: 5px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.4s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.add-to-cart {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  transition: 0.3s;
}

.product-card:hover .add-to-cart {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.product-card.hide {
  display: none;
}

.no-products {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  grid-column: 1 / -1;
}