body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #f1f5f9;
  color: #0f172a;
}

a {
  color: #4f46e5;
  text-decoration: none;
}

header, footer {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

header .container, main, footer .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

main {
  padding-top: 16px;
  padding-bottom: 24px;
}

h1, h2, h3 {
  margin-top: 0;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.button {
  background: #4f46e5;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.7;
  cursor: default;
}

.input-text {
  border-radius: 6px;
  border: 1px solid #cbd5f5;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: #e5e7eb;
  color: #111827;
  margin-right: 6px;
  margin-top: 4px;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table td, .table th {
  padding: 4px 6px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.text-muted {
  color: #6b7280;
  font-size: 14px;
}

.text-sm {
  font-size: 14px;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }

.flex {
  display: flex;
}

.gap-2 {
  gap: 8px;
}

.flex-center {
  align-items: center;
}

img.thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

img.product-main {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
