:root {
    color-scheme: light;
    --bg: #f4f6fb;
    --card: #ffffff;
    --primary: #3f51b5;
    --success: #1e9e62;
    --danger: #d53f3f;
    --text: #1f2a44;
    --muted: #6b7280;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}
button, .btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-muted { background: #e5e7eb; color: #111827; }
a.btn { text-decoration: none; display: inline-block; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.product {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #fcfdff;
}
.product h3 { margin: 0 0 8px 0; }
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty {
    min-width: 35px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}
.total {
    font-size: 1.7rem;
    font-weight: 800;
}
.flash {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}
input, select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 9px;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.small { color: var(--muted); font-size: .9rem; }
.inline-form { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-box { max-width: 360px; margin: 80px auto; }

