:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #2563eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.subtitle {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media { width: 100%; aspect-ratio: 4/3; background: #f0f2f5; display: grid; place-items: center; }

.card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card__body { padding: 12px; display:flex; flex-direction: column; height: 100%; }

.title { margin: 0 0 8px; font-size: 16px; line-height: 1.35; }

.meta { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; min-height: 24px; }

.price { font-weight: 600; }
.source a:not(.btn) { color: var(--brand); text-decoration: none; }
.source a:hover { text-decoration: underline; }

.spacer { flex: 1 1 auto; }
.row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
select { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--border); }

.comment { margin-top: 8px; color: var(--muted); font-size: 14px; white-space: pre-wrap; min-height: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { filter: brightness(0.95); }
.btn:active { filter: brightness(0.9); }
