:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --accent: #f59e0b;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --info-soft: #e0e7ff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -16px rgba(15, 23, 42, .35);
  --radius: 14px;
  --sidebar: 252px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 6px; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ------------------------------------------------------------- layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: radial-gradient(1200px 600px at -20% -20%, #1e293b 0%, #0b1220 55%, #070c16 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px 14px;
  z-index: 30;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 6px 18px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1917; font-weight: 800; display: grid; place-items: center; font-size: 14px;
  box-shadow: 0 8px 20px -8px rgba(245, 158, 11, .8);
}
.brand-text strong { display: block; color: #f8fafc; font-size: 13.5px; line-height: 1.25; }
.brand-text span { font-size: 11px; color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }
.nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: #64748b; padding: 16px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  color: #cbd5e1; font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(148, 163, 184, .12); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(59, 130, 246, .18); color: #fff; box-shadow: inset 2px 0 0 #f59e0b; }
.nav-item .ico { width: 18px; text-align: center; opacity: .9; font-size: 13px; }
.nav-badge {
  margin-left: auto; background: #1d4ed8; color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
}
.nav-badge.warn { background: #b45309; }
.sidebar-foot { border-top: 1px solid rgba(148, 163, 184, .16); padding-top: 12px; margin-top: 8px; }
.who { display: flex; gap: 10px; align-items: center; }
.who strong { display: block; color: #f1f5f9; font-size: 12.8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: rgba(59, 130, 246, .25); color: #dbeafe;
  display: grid; place-items: center; font-weight: 700;
}
.role-pill {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em;
  color: #fcd34d; background: rgba(245, 158, 11, .14); padding: 1px 7px; border-radius: 999px;
}
.role-pill.cashier { color: #93c5fd; background: rgba(59, 130, 246, .16); }
.foot-actions { display: flex; gap: 14px; margin-top: 10px; padding-left: 4px; }
.foot-actions form { margin: 0; }
.mini-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 12px;
  color: #94a3b8; cursor: pointer;
}
.mini-link:hover { color: #e2e8f0; text-decoration: none; }
.mini-link.danger:hover { color: #fca5a5; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-weight: 650; font-size: 15px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 34px; height: 34px; font-size: 15px; cursor: pointer; color: var(--ink);
}
.content { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; flex: 1; }

/* ------------------------------------------------------------- typography helpers */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 23px; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.pos-num { color: var(--ok); font-weight: 600; }
.neg-num { color: var(--bad); font-weight: 600; }

/* ------------------------------------------------------------- cards & grid */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 14px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: #fafbff; }

.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 4px; height: 100%;
  background: var(--line);
}
.kpi.tone-brand::after { background: var(--brand); }
.kpi.tone-ok::after { background: var(--ok); }
.kpi.tone-warn::after { background: var(--accent); }
.kpi.tone-bad::after { background: var(--bad); }
.kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------- tables */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 650; padding: 10px 12px; background: #f8fafc;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
table.data tbody tr:hover { background: #f8faff; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.low td { background: #fffbeb; }
table.data tr.out td { background: #fef2f2; }
.cell-title { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 11.5px; }

/* ------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px;
  background: #eef2f7; color: #475569; white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: #166534; }
.badge.warn { background: var(--warn-soft); color: #92400e; }
.badge.bad { background: var(--bad-soft); color: #991b1b; }
.badge.info { background: var(--info-soft); color: #3730a3; }
.badge.brand { background: #dbeafe; color: #1e40af; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #eef2f7; color: var(--ink); transition: .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -12px rgba(29, 78, 216, .9); }
.btn-primary:hover { background: #1e40af; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-accent { background: var(--accent); color: #1c1917; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-danger { background: var(--bad-soft); color: #991b1b; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-icon { padding: 6px 9px; }

/* ------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label, .label { font-size: 12px; font-weight: 650; color: #334155; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date],
input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px;
  font: inherit; font-size: 13.5px; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: #93b4fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
textarea { min-height: 78px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.hint { font-size: 11.5px; color: var(--muted); }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }
.toolbar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcff;
}
.toolbar .field { margin-bottom: 0; min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.search-input { position: relative; }
.search-input input { padding-left: 34px; }
.search-input::before {
  content: "⌕"; position: absolute; left: 11px; top: 50%; transform: translateY(-52%);
  color: var(--muted); font-size: 16px; pointer-events: none;
}

/* ------------------------------------------------------------- flash & empty */
.flash {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 11px;
  margin-bottom: 16px; font-size: 13px; font-weight: 500; border: 1px solid transparent;
}
.flash.ok { background: var(--ok-soft); color: #14532d; border-color: #bbf7d0; }
.flash.err { background: var(--bad-soft); color: #7f1d1d; border-color: #fecaca; }
.flash-close { margin-left: auto; background: none; border: 0; font-size: 18px; cursor: pointer; color: inherit; opacity: .6; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .5; }

/* ------------------------------------------------------------- login */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1000px 500px at 10% -10%, #1e293b, #0b1220 60%, #060a13 100%);
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); padding: 32px;
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-mark { width: 46px; height: 46px; font-size: 16px; border-radius: 13px; }
.auth-brand strong { display: block; font-size: 16px; }
.auth-brand span { color: var(--muted); font-size: 12px; }
.auth-card h1 { font-size: 21px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-foot { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }
.login-error {
  background: var(--bad-soft); color: #7f1d1d; border: 1px solid #fecaca;
  padding: 10px 12px; border-radius: 9px; font-size: 12.5px; margin-bottom: 16px;
}

/* ------------------------------------------------------------- POS */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.pos-search-wrap { position: relative; }
.pos-search {
  width: 100%; padding: 14px 16px 14px 42px; font-size: 15px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff;
}
.pos-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; }
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 25;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .45); overflow: hidden; display: none;
  max-height: 360px; overflow-y: auto;
}
.suggestions.open { display: block; }
.sug {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.sug:last-child { border-bottom: 0; }
.sug:hover, .sug.active { background: #eff6ff; }
.sug-name { font-weight: 600; font-size: 13px; }
.sug-meta { font-size: 11.5px; color: var(--muted); }
.sug-price { margin-left: auto; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.sug-stock { font-size: 11px; font-weight: 600; }
.sug-stock.in { color: var(--ok); }
.sug-stock.low { color: var(--warn); }
.sug-stock.out { color: var(--bad); }
.sug-empty { padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }

.cart-list { display: flex; flex-direction: column; }
.cart-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 116px 96px 30px;
  gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid #eef2f7;
}
.cart-row .name { font-weight: 600; font-size: 13px; }
.cart-row .meta { font-size: 11.5px; color: var(--muted); }
.qty-box { display: flex; align-items: center; gap: 4px; }
.qty-box button {
  width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink);
}
.qty-box input { width: 44px; text-align: center; padding: 5px 2px; font-size: 12.5px; }
.cart-line-total { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.remove-line { background: none; border: 0; color: #94a3b8; cursor: pointer; font-size: 16px; }
.remove-line:hover { color: var(--bad); }
.cart-empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.cart-empty .big { font-size: 32px; display: block; margin-bottom: 6px; opacity: .4; }

.pos-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.totals { padding: 16px 18px; }
.total-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #334155; }
.total-line.grand {
  border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 12px;
  font-size: 20px; font-weight: 750; color: var(--ink);
}
.total-line .neg { color: var(--ok); font-weight: 600; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-methods { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-methods label {
  flex: 1; min-width: 68px; text-align: center; border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 7px 6px; font-size: 12px; font-weight: 600; cursor: pointer; background: #fff;
}
.pay-methods input { display: none; }
.pay-methods input:checked + span { color: var(--brand); }
.pay-methods label:has(input:checked) { border-color: var(--brand); background: #eff6ff; box-shadow: 0 0 0 2px rgba(59,130,246,.12); }
.discount-chip {
  display: flex; align-items: center; gap: 8px; background: var(--ok-soft); color: #14532d;
  border: 1px solid #bbf7d0; padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 600;
}
.discount-chip button { margin-left: auto; background: none; border: 0; cursor: pointer; color: #14532d; font-size: 15px; }
.change-box {
  display: flex; justify-content: space-between; align-items: center;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 9px 12px; font-size: 13px;
}

/* ------------------------------------------------------------- modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 460px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); overflow: hidden;
  animation: pop .16s ease-out;
}
.modal.wide { max-width: 640px; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h2 { font-size: 16px; margin: 0; }
.modal-head .x { margin-left: auto; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #fafbff; }

/* ------------------------------------------------------------- misc components */
.progress { height: 7px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #1d4ed8); border-radius: 999px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.bar-track { height: 16px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #93c5fd, #2563eb); border-radius: 5px; min-width: 2px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-list { display: flex; flex-direction: column; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; font-size: 13px; }
.stat-row:last-child { border-bottom: 0; }
.stat-row strong { font-variant-numeric: tabular-nums; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 9px 0; border-bottom: 1px solid #f1f5f9; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.list-plain li:last-child { border-bottom: 0; }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px 18px; }
.pagination a, .pagination span {
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; color: var(--ink);
  background: #fff;
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }

/* ------------------------------------------------------------- receipt / print */
.receipt-wrap { display: flex; gap: 24px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.receipt-paper {
  width: 80mm; background: #fff; padding: 8mm 6mm; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 12px; line-height: 1.45; color: #111;
}
.receipt-paper h2 { text-align: center; font-size: 16px; margin: 0 0 2px; }
.receipt-paper .center { text-align: center; }
.receipt-paper .tiny { font-size: 10.5px; }
.receipt-paper .rule { border-top: 1px dashed #94a3b8; margin: 7px 0; }
.receipt-paper table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.receipt-paper table td { padding: 2px 0; vertical-align: top; }
.receipt-paper .r { text-align: right; }
.receipt-paper .totals td { padding: 2px 0; }
.receipt-paper .grand { font-weight: 700; font-size: 14px; border-top: 1px solid #111; padding-top: 4px; }

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .flash { display: none !important; }
  .content { padding: 0; max-width: none; }
  .receipt-paper { border: 0; box-shadow: none; width: 80mm; margin: 0; padding: 0; }
  .receipt-wrap { display: block; }
  @page { margin: 4mm; size: 80mm auto; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pos-layout { grid-template-columns: 1fr; }
  .pos-side { position: static; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.main-side { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 0 0 60px rgba(0,0,0,.5);
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .content { padding: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .topbar { padding: 0 14px; }
}
@media (max-width: 620px) {
  .cart-row { grid-template-columns: minmax(0, 1fr) 100px 60px 24px; padding: 10px; }
  .topbar-actions .btn-primary { display: none; }
}
