:root {
  --bg: #151515; --card: #222; --line: #333; --text: #f5f5f5; --muted: #a8a8a8;
  --accent: #ffc400; --ok: #3ddc84; --err: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 110px;
}
.top { padding: 22px 18px 10px; text-align: center; }
.top h1 { margin: 0; font-size: 30px; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
main, .checkout { max-width: 560px; margin: 0 auto; padding: 0 14px; }
.cat { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 22px 4px 8px; }
.item {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.info small { color: var(--muted); }
.price { font-weight: 700; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }
.qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; font-size: 20px; font-weight: 700;
  background: var(--line); color: var(--text);
}
.qty button[data-d="1"] { background: var(--accent); color: #111; }
.checkout h2 { font-size: 18px; margin: 26px 4px 8px; }
.summary { list-style: none; padding: 0; margin: 0 0 12px; }
.summary li { display: flex; justify-content: space-between; padding: 6px 4px; border-bottom: 1px solid var(--line); }
label { display: block; margin: 12px 4px; color: var(--muted); font-size: 14px; }
input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit;
}
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #0d0d0d; border-top: 1px solid var(--line);
}
.bar div { display: flex; flex-direction: column; }
.bar small { color: var(--muted); }
.bar strong { font-size: 20px; }
.btn {
  display: inline-block; border: 0; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 700;
  background: #009ee3; color: #fff; text-decoration: none;
}
.btn:disabled { opacity: .6; }
.btn.alert { width: 100%; background: var(--accent); color: #111; font-size: 18px; }
.small { font-size: 13px; margin: 8px 0 0; }
.banner { max-width: 560px; margin: 10px auto; padding: 14px; border-radius: 12px; background: #3a2c00; color: var(--accent); text-align: center; }
.error { color: var(--err); margin: 8px 4px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.card { background: var(--card); border-radius: 16px; padding: 22px 16px; margin: 14px 0; }
.number { font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; margin: 8px 0; }
.ok { color: var(--ok); font-weight: 700; font-size: 18px; }
.ok.big { font-size: 24px; }
.link { color: var(--accent); }
.spinner {
  width: 38px; height: 38px; margin: 6px auto 12px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
