:root {
  --bg: #f7f3ec;
  --card: #ffffff;
  --primary: #8f2f1f;
  --dark: #222222;
  --muted: #666666;
  --success: #137333;
  --border: #e7dfd3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--dark);
}
a { color: inherit; text-decoration: none; }
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.header {
  background: linear-gradient(135deg, #2c2018, #5f2017);
  color: white;
  padding: 20px 0;
  margin-bottom: 20px;
}
.brand { font-size: 28px; font-weight: 700; }
.subtext { opacity: .9; margin-top: 8px; }
.badge {
  display: inline-block;
  background: #fff2;
  border: 1px solid #ffffff33;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.product-title { font-size: 18px; font-weight: 700; }
.price { color: var(--primary); font-weight: 700; margin-top: 8px; }
.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-weight: 700;
}
.btn.secondary { background: #efe6db; color: var(--dark); }
.btn.success { background: var(--success); }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
label { display:block; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
form > * + * { margin-top: 14px; }
.nav {
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  margin-bottom: 20px;
}
.alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: #eef7ff; border: 1px solid #cfe6ff;
}
.alert.success { background: #e9f7ef; border-color: #b8e0c3; }
.table {
  width:100%; border-collapse: collapse; background: white; border-radius: 18px; overflow:hidden;
}
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--border); text-align:left; }
.layout { display:grid; grid-template-columns: 260px 1fr; gap: 20px; }
.sidebar { background: white; border:1px solid var(--border); border-radius:18px; padding:16px; }
.sidebar a { display:block; padding:10px 12px; border-radius:10px; }
.sidebar a:hover { background:#f5efe7; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.options { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:8px; }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
}
