:root {
  --blue: #004578;
  --blue-dark: #00335a;
  --green: #00A651;
  --green-dark: #00913f;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #6b7785;
  --border: #e3e8ee;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 40, 80, 0.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.container { max-width: 840px; margin: 0 auto; padding: 16px; }
.topbar {
  background: var(--blue); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10;
}
.topbar .brand { font-weight: 700; font-size: 18px; }
.topbar .spacer { flex: 1; }
.topbar a { color: #cfe2f1; text-decoration: none; font-size: 14px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px;
}
.card.click { cursor: pointer; transition: transform .08s, box-shadow .12s; }
.card.click:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,40,80,.12); }

h1 { font-size: 24px; margin: 8px 0 16px; }
h2 { font-size: 19px; margin: 0 0 4px; }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .12s, opacity .12s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--border); }
.btn-block { width: 100%; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e3f7ec; color: var(--green-dark); }
.badge-red { background: #fde8e8; color: #c0392b; }
.badge-amber { background: #fef3e0; color: #b9770e; }
.badge-blue { background: #e4eef7; color: var(--blue); }

.price { font-size: 20px; font-weight: 700; color: var(--blue); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: none; background: #f0f3f6; font-size: 20px; cursor: pointer; }
.qty button:hover { background: #e3e8ee; }
.qty span { min-width: 38px; text-align: center; font-weight: 600; }

label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.alert { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.alert-error { background: #fde8e8; color: #c0392b; }
.alert-info { background: #e4eef7; color: var(--blue); }
.alert-success { background: #e3f7ec; color: var(--green-dark); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }
.center { text-align: center; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
