:root {
  --text: #1a1a1a;
  --muted: #555;
  --accent: #e52528;
  --bg: #fafafa;
}

* { box-sizing: border-box; }

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

.site-header, .site-footer, .site-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-header a {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header nav a {
  font-weight: 500;
}

.category-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem;
}

.category-grid.compact a {
  display: block;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.category-grid.compact a:hover {
  border-color: var(--accent);
}

.category-grid .cat-id {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.category-grid .cat-name {
  font-weight: 600;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.review-list .cat {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.review-list .empty {
  color: var(--muted);
}

a.more {
  font-size: 0.85rem;
  font-weight: normal;
  margin-left: 0.5rem;
}

.review-list { list-style: none; padding: 0; }
.review-list li { margin: 0.5rem 0; }

.product-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-hero .price { font-size: 1.25rem; }

a.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.meta { color: var(--muted); font-size: 0.9rem; }
