:root {
  --bg: #f8fafc;
  --card: #fff;
  --accent: #0b74ff;
  --text: #1e293b;
  --muted: #6b7280;
  --radius: 14px;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: linear-gradient(90deg, #0b74ff, #0066cc);
  color: #fff;
  padding: 24px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.note {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.thumb {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-bottom: 1px solid #e2e8f0;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title {
  font-size: 16px;
  font-weight: 600;
}

.desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

input[type="number"] {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  width: 70px;
  font-size: 14px;
}

button.buy {
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease;
}

button.buy:hover {
  background: #005bcb;
}

footer {
  max-width: 1100px;
  margin: 40px auto;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 18px;
  }

  .thumb {
    height: 160px;
  }
}
