:root {
  /* Couleurs du drapeau du logo : bleu nuit, rouge, blanc */
  --bg: #060a17;
  --panel: #0c1326;
  --panel-2: #111a31;
  --panel-3: #18233f;
  --line: #1a2542;
  --line-2: #273457;
  --text: #eef1f8;
  --muted: #8b95b0;
  --faint: #5b6687;
  --accent: #e8263f;
  --accent-2: #ff4f66;
  --accent-rgb: 232, 38, 63;
  --accent-ink: #fff;
  --navy: #1d3a8f;
  --red: #f0565b;
  --green: #34c47c;
  --blue: #5b8cff;
  --amber: #f0a92b;
  --gray: #6b7280;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(800px 480px at 0% -10%, rgba(var(--accent-rgb), .09), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(29, 58, 143, .28), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--accent); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(var(--accent-rgb), .3); }

/* ---------- Logo & connexion ---------- */
.logo { width: 46px; height: 46px; flex: none; display: block; filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), .3)); }
.logo-lg {
  width: 130px; height: 130px; margin: -8px auto 12px;
  filter: drop-shadow(0 10px 30px rgba(var(--accent-rgb), .35)) drop-shadow(0 0 40px rgba(29, 58, 143, .5));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  position: relative; overflow: hidden; max-width: 400px; text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px 30px; box-shadow: var(--shadow);
}
/* Liseré rouge-blanc-bleu en haut des cartes de marque */
.login-card::before, .hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 33%, #fff 33% 66%, var(--navy) 66%);
}
.login-card h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; }
.login-card p { color: var(--muted); margin: 0 0 22px; }

/* Pastille de notification du menu */
.notif {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(240, 86, 91, .18); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(240, 86, 91, .05); } }

/* ---------- Structure ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.layout > * { min-width: 0; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: rgba(12, 19, 38, .72); backdrop-filter: blur(10px);
  border-right: 1px solid var(--line); padding: 20px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--muted);
  padding: 9px 12px; border-radius: 10px; font-weight: 500; transition: background .15s, color .15s;
}
nav a:hover { background: var(--panel-2); color: var(--text); }
nav a.active { background: linear-gradient(90deg, rgba(var(--accent-rgb), .14), var(--panel-3) 70%); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
nav a.active .ic { color: var(--accent); }
.nav-label { margin: 18px 12px 6px; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .09em; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.me .name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { padding: 32px 36px 90px; min-width: 0; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.section-title { margin: 30px 0 12px; font-size: 16px; font-weight: 600; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Blocs ---------- */
.grid { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.card h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat { display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); }
.stat-icon.gold { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.stat-icon.green { background: rgba(52, 196, 124, .12); color: var(--green); }
.stat-icon.red { background: rgba(240, 86, 91, .12); color: var(--red); }
.stat-icon.blue { background: rgba(91, 156, 246, .12); color: var(--blue); }
.stat .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.empty { color: var(--muted); padding: 6px 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .015); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.cat td { background: var(--panel-2); color: var(--accent); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; padding: 8px 16px; }
tr.cat:hover { background: none; }
td.actions { text-align: right; white-space: nowrap; }
.low { color: var(--red); font-weight: 600; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- Éléments ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, filter .15s, transform .05s;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.on { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.icon-btn { appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .btn { border-radius: 99px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.attente, .badge.retard { color: var(--amber); background: rgba(240, 169, 43, .1); }
.badge.preparation { color: var(--blue); background: rgba(91, 156, 246, .1); }
.badge.livree, .badge.present, .badge.officiel { color: var(--green); background: rgba(52, 196, 124, .1); }
.badge.annulee, .badge.masque { color: var(--gray); background: rgba(107, 114, 128, .12); }
.badge.absent { color: var(--red); background: rgba(240, 86, 91, .1); }
.badge.staff, .badge.independant { color: var(--accent); background: rgba(var(--accent-rgb), .1); }

.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-3); flex: none; object-fit: cover; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; box-shadow: 0 0 0 3px rgba(52, 196, 124, .15); }

input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 12px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
textarea { resize: vertical; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search-box input { padding-left: 38px; width: 260px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
label > input, label > select, label > textarea { margin-top: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.line { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 9px; color: var(--text); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 14px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; text-align: center; padding: 8px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--panel-3); color: var(--accent); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent); }

.cat-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cat-picker label { margin: 0; }
.cat-picker input { position: absolute; opacity: 0; pointer-events: none; }
.cat-picker span {
  display: block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--muted); font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.cat-picker span:hover { color: var(--text); }
.cat-picker input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.cat-picker input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent); }
.margin-preview { background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px 12px; margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.margin-preview b { color: var(--text); }

/* ---------- Boutique ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px 28px; margin-bottom: 18px; border-radius: 18px; border: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(var(--accent-rgb), .16), transparent 45%),
    linear-gradient(290deg, rgba(29, 58, 143, .35), transparent 55%), var(--panel);
}
.hero-title { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hero-title .logo { width: 72px; height: 72px; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.hero p { margin: 4px 0 0; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.tabs .btn { border-radius: 99px; flex: none; }
.tabs .count { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.tabs .on .count { color: var(--accent); }
.shop-cat { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.shop-cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shop-cat:first-child { margin-top: 0; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.product.out { opacity: .5; }
.product-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--panel-2), var(--panel-3)); display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product:hover .product-img img { transform: scale(1.04); }
.product-img .initial { font-size: 44px; font-weight: 800; color: var(--line-2); }
.stock-pill {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(10, 11, 14, .78); backdrop-filter: blur(6px); color: var(--green);
}
.stock-pill.few { color: var(--amber); }
.stock-pill.out { color: var(--red); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { font-weight: 600; font-size: 15.5px; }
.product-desc { color: var(--muted); font-size: 13px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.price { font-weight: 700; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.stepper button { appearance: none; border: 0; background: none; color: var(--text); width: 32px; height: 32px; font: inherit; font-size: 17px; cursor: pointer; }
.stepper button:hover { background: var(--panel-3); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.cart-bar {
  position: fixed; right: 28px; bottom: 28px; z-index: 5; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border: 0; border-radius: 99px;
  padding: 13px 22px; font: inherit; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  animation: pop .25s ease-out;
}
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }

.order-card { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.orders { display: grid; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------- Articles ---------- */
.thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--panel-3); display: block; }
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px; display: flex; gap: 14px; align-items: center;
  margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone.over, .dropzone:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.dropzone .preview { width: 88px; height: 88px; border-radius: 10px; background: var(--panel-2); flex: none; object-fit: cover; display: grid; place-items: center; color: var(--faint); font-size: 12px; }
.dropzone .hint { font-size: 13px; color: var(--muted); }
.dropzone .hint b { color: var(--text); }

/* ---------- Recel ---------- */
.recel-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 14px; align-items: stretch; }
.recel-sheet {
  position: relative; display: block; align-self: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow);
}
.recel-sheet img { display: block; width: 100%; height: auto; transition: transform .35s; }
.recel-sheet:hover img { transform: scale(1.015); }
.recel-sheet .zoom {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: rgba(6, 10, 23, .8); backdrop-filter: blur(6px); color: var(--text); text-decoration: none;
}
.recel-stats { display: grid; gap: 14px; grid-template-rows: repeat(3, 1fr); }
.recel-table td { padding-top: 8px; padding-bottom: 8px; }
.recel-table input.cell { width: 120px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; margin: 0; }
.recel-table input.qty { width: 90px; border-color: rgba(var(--accent-rgb), .45); }
.recel-table tfoot td { background: var(--panel-2); border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }

/* ---------- Permissions ---------- */
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-table input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.role { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.role i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); flex: none; }
.roles { display: flex; flex-wrap: wrap; gap: 4px; }
.role-chip { font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-2); }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 20px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.legend b { color: var(--accent); }

/* ---------- Présence ---------- */
.call-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.call-head h3 { margin: 0; font-size: 16px; }
.call-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.call-cols h4 { margin: 0 0 8px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border-radius: 99px; padding: 2px 10px 2px 2px; font-size: 13px; }
.person .avatar { width: 22px; height: 22px; }
.calls { display: grid; gap: 12px; }

/* ---------- Fenêtres ---------- */
dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 0; width: min(540px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(4, 5, 7, .65); backdrop-filter: blur(3px); }
dialog[open] { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#modal-form { padding: 24px; }
dialog h2 { margin: 0 0 18px; font-size: 19px; letter-spacing: -.01em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(460px, 100vw);
  border-radius: 20px 0 0 20px; border-right: 0;
}
.drawer[open] { animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 10px; }
.drawer-section { margin: 22px 0 12px; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.drawer-foot { padding: 14px 22px 22px; border-top: 1px solid var(--line); background: var(--panel); }
.cart-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb, .cart-line img { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; background: var(--panel-3); }
.cart-line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.cart-total .price { font-size: 22px; }
.cart-empty { text-align: center; padding: 30px 0 10px; color: var(--muted); }
.cart-empty .ic { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

.toast {
  position: fixed; top: 20px; right: 20px; z-index: 20; display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--red);
  padding: 12px 16px; border-radius: 12px; max-width: min(380px, calc(100vw - 32px)); box-shadow: var(--shadow);
  animation: pop .2s ease-out;
}
.toast.ok { border-left-color: var(--green); }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .call-cols, .recel-top { grid-template-columns: 1fr; }
  .recel-stats { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; z-index: 4; height: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 10px; }
  nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  nav a { flex: none; padding: 8px 11px; }
  .nav-label, .me { display: none; }
  main { padding: 20px 16px 90px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 24px; }
  .hero-title .logo { width: 54px; height: 54px; }
  .logo { width: 38px; height: 38px; }
  .search-box, .search-box input { width: 100%; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .cart-bar { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .recel-stats { grid-template-columns: 1fr; }
  .drawer { width: 100vw; border-radius: 0; }
}
