:root {
  --primary: #e63946;
  --bg: #f5f5f7;
  --text: #1a1a1a;
  --muted: #666;
  --card: #fff;
  --sidebar: #1e1e2d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.product-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.product-card img { width: 100%; height: 120px; object-fit: cover; }

.footer-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 100;
}
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.footer-nav a.active { color: var(--primary); font-weight: 600; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-block { width: 100%; }
.alert {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.alert-error { background: #fdecea; color: #c0392b; }
.alert-success { background: #e8f8ef; color: #1e8449; }

.table-wrap { background: #fff; border-radius: 8px; overflow: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th, table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
table.data-table th { background: #fafafa; font-weight: 600; }
.actions a, .actions button {
  margin-right: 6px;
  font-size: 12px;
}
.login-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sidebar);
}
.login-box {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
}
.login-box h1 { margin-top: 0; font-size: 22px; }
