/* Card grid: responsive, stacks at narrow widths, wraps into columns on wider panels */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.dark .product-card {
  background: #111827;
  border-color: #374151;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #fff7ed;
}

.product-card .body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-card h3 {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.product-card p {
  color: #6b7280;
  font-size: 0.8rem;
  flex: 1;
}

.dark .product-card p {
  color: #9ca3af;
}

.price {
  font-weight: 700;
  color: #ea580c;
  font-size: 0.9rem;
}

.buy-button {
  display: inline-block;
  text-align: center;
  background: #ea580c;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.buy-button:hover {
  background: #c2410c;
}
