:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5b616b;
  --border: #e2e2de;
  --accent: #ff6600;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --card: #1e2125;
    --text: #e8e8e6;
    --muted: #a0a6ae;
    --border: #2e3237;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

header {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}

header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.products {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  align-content: start;
}

.card {
  display: block;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card[hidden] { display: none; }

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  outline: none;
}

.card img {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}

.card h2 {
  margin: 1rem 0 0.25rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
