/* Demo dev-console styling (vanilla CSS, no framework). Two-pane: controls
   left, output right. Throwaway pages — real storefront is Phase 6. */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e4e7ec;
  --text: #1a1d23;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-press: #1d4ed8;
  --ok: #16a34a;
  --err: #dc2626;
  --console-bg: #0d1117;
  --console-text: #d6deeb;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }

header { margin-bottom: 20px; }
header h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.01em; }
header p { margin: 0; color: var(--muted); font-size: 14px; }
header a { color: var(--accent); text-decoration: none; }
header a:hover { text-decoration: underline; }

.panes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.left { display: flex; flex-direction: column; gap: 14px; }
.right { position: sticky; top: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
label span { display: inline-block; min-width: 92px; }
input, select {
  font: inherit;
  font-size: 14px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  width: 220px;
  max-width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type="checkbox"] { width: auto; }

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

button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .02s;
}
button:hover { border-color: #c4c9d2; background: #fafbfc; }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent-press); border-color: var(--accent-press); }

/* Output console (right pane) */
.console-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.console-head h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
#log {
  background: var(--console-bg);
  color: var(--console-text);
  border-radius: var(--radius);
  padding: 14px;
  height: 74vh;
  overflow: auto;
  margin: 0;
  font: 12.5px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.entry { padding: 6px 0; border-bottom: 1px solid #1e2632; }
.entry .label { font-weight: 700; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 8px; }
.badge.ok { background: rgba(22,163,74,.18); color: #4ade80; }
.badge.err { background: rgba(220,38,38,.18); color: #f87171; }
.dim { color: #8b96a8; }

/* Catalog product cards */
.product {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.product:hover { border-color: var(--accent); box-shadow: 0 1px 6px rgba(37,99,235,.12); }
.product .name { font-weight: 600; }
.product .price { color: var(--accent); font-weight: 700; }
.product .cash { color: var(--ok); font-size: 13px; }
.product .meta { color: var(--muted); font-size: 12px; }

@media (max-width: 880px) {
  .panes { grid-template-columns: 1fr; }
  .right { position: static; }
  #log { height: 40vh; }
}
