* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: #fafafa;
  color: #222;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: #e8f5ef;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  opacity: 0.8;
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin: 0.75rem 0 0.25rem;
}

.product-card p {
  flex-grow: 1;
  font-size: 0.9rem;
  opacity: 0.8;
}

.product-card .price {
  font-weight: bold;
  margin-top: 0.5rem;
}

.product-card button {
  margin-top: 0.75rem;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: #2e7d6f;
  color: white;
  cursor: pointer;
}

.product-card button:hover {
  background: #25685c;
}

.loading {
  text-align: center;
  grid-column: 1 / -1;
}

footer {
  text-align: center;
  padding: 1.5rem;
  opacity: 0.6;
  font-size: 0.85rem;
}
