:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #4f7cff;
  --accent-dark: #3a63e0;
  --border: #e5e7eb;
  --ok: #16a34a;
  --err: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg) url('/background.png') center / cover no-repeat fixed;
  color: var(--text); min-height: 100vh;
}
header {
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 10;
}
header h1 { margin: 0; font-size: 1.4rem; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.card img { width: 100%; height: 200px; object-fit: cover; background: #eef0f6; display: block; }
.card .info { padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.price { font-weight: 700; font-size: 1.1rem; }
button, .btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 16px; font-size: .95rem; cursor: pointer; font-family: inherit;
}
button:hover { background: var(--accent-dark); }
button.secondary { background: #eef0f6; color: var(--text); }
button.secondary:hover { background: #e1e4ee; }
button.danger { background: #fee2e2; color: var(--err); }
button.danger:hover { background: #fecaca; }
input, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: .95rem; font-family: inherit; background: #fff; margin-bottom: 10px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 4px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.msg { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.msg.err { background: #fee2e2; color: var(--err); display: block; }
.msg.ok { background: #dcfce7; color: var(--ok); display: block; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.order { border-top: 1px solid var(--border); padding: 14px 0; }
.order:first-child { border-top: 0; }
.badge { padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; }
.badge.paid { background: #dcfce7; color: var(--ok); }
.badge.open { background: #fef3c7; color: #b45309; }
#cart { position: fixed; right: 20px; bottom: 20px; width: 320px; max-width: calc(100% - 40px); display: none; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
