:root {
  --fg: #1c1c1c;
  --muted: #666;
  --border: #ddd;
  --accent: #1a6b4a;
  --error: #b3261e;
  --bg-card: #fff;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: #f7f7f5;
  margin: 0;
  padding: 0 16px 48px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.cart-toggle {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

main { max-width: 720px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.product-card h3 { margin: 0 0 4px; }
.product-card .category { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.product-card button { width: 100%; margin-top: 8px; }

button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}
button:hover { border-color: var(--accent); }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}
.hidden { display: none !important; }

.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.age-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 14px; }
.age-fields .field { margin-bottom: 0; }

.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions button[type="submit"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.error-box {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f5c2c0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.quote-box {
  background: #f0f7f3;
  border: 1px solid #cfe8da;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cart-item .meta { font-size: 13px; color: var(--muted); }
.cart-item .row-actions { display: flex; gap: 8px; }
.empty-note { color: var(--muted); font-size: 14px; }
