/* ── TOKENS ─────────────────────────────────────── */
:root {
  --red:       #C0392B;
  --red-d:     #922B21;
  --red-l:     #E74C3C;
  --gold:      #D4A017;
  --gold-l:    #F0C840;
  --cream:     #FDF6EC;
  --cream-d:   #EEE0C8;
  --slate:     #1E1E1E;
  --slate-m:   #3C3C3C;
  --slate-l:   #888;
  --white:     #FFFFFF;
  --green:     #1E8449;
  --green-l:   #27AE60;
  --blue:      #1F618D;
  --blue-l:    #2980B9;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 2px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);
  --font-d:    'Playfair Display', Georgia, serif;
  --font-b:    'Inter', system-ui, sans-serif;
  /* Tablet touch targets */
  --touch-min: 56px;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; touch-action: manipulation; }
body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--slate);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ─────────────────────────────────────── */
.header {
  background: var(--red);
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.header > *:not(.arabesque) {
  display: flex;
  align-items: center;
  padding: .6rem 1.25rem .5rem;
  gap: .75rem;
}
.header { display: flex; flex-direction: column; }
.header > div:first-of-type { display: none; } /* hide gap div */

/* override: header inner is a flex row */
.header-left, .header-center, .header-right { display: flex; align-items: center; }
.header { flex-direction: row; flex-wrap: wrap; padding: .6rem 1.25rem .4rem; gap: .5rem; }
.header-left { flex: 1; gap: .6rem; }
.header-center { justify-content: center; }
.header-right { gap: .75rem; margin-left: auto; }
.arabesque { width: 100%; height: 18px; overflow: hidden; background: var(--red-d); flex-basis: 100%; margin: 0 -1.25rem; width: calc(100% + 2.5rem); }

.header-moon { font-size: 1.5rem; opacity: .8; }
.header-main { font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; display: block; }
.header-sub   { font-size: .72rem; opacity: .72; letter-spacing: .07em; text-transform: uppercase; display: block; }
.caisse-badge { background: rgba(255,255,255,.2); padding: .1rem .5rem; border-radius: 99px; font-weight: 600; }

.header-clock { font-variant-numeric: tabular-nums; font-size: .82rem; opacity: .8; white-space: nowrap; }

.ws-indicator { display: flex; align-items: center; gap: .4rem; font-size: .75rem; opacity: .85; }
.ws-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #888; transition: background .3s;
}
.ws-indicator.connected .ws-dot { background: #2ECC71; }
.ws-indicator.disconnected .ws-dot { background: #E74C3C; }
.ws-text { white-space: nowrap; }

.btn-icon {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); width: 40px; height: 40px; border-radius: 10px;
  font-size: 1.1rem; cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: rgba(255,255,255,.28); }
.btn-icon.btn-close { background: none; border-color: var(--cream-d); color: var(--slate-m); }

/* ── POS LAYOUT ─────────────────────────────────── */
.pos {
  display: grid;
  grid-template-columns: 1fr 380px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── CATALOGUE ──────────────────────────────────── */
.catalogue {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border-right: 1.5px solid var(--cream-d);
}

/* Category nav - horizontal pills, large touch targets */
.cat-nav {
  display: flex;
  gap: .5rem;
  padding: .85rem 1.1rem .7rem;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
  background: var(--white);
  border-bottom: 2px solid var(--cream-d);
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: .4rem;
  padding: 0 1.25rem;
  height: var(--touch-min);
  border-radius: 999px;
  border: 2px solid var(--cream-d);
  background: var(--white);
  font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .18s;
  white-space: nowrap; color: var(--slate-m);
  user-select: none;
}
.cat-btn:hover { border-color: var(--red); color: var(--red); }
.cat-btn.active {
  background: var(--red); border-color: var(--red);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(192,57,43,.35);
}

/* Product grid — BIG touch cards for tablets */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1.1rem;
  overflow-y: auto;
  flex: 1;
  align-content: start;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem .9rem 1.1rem;
  text-align: center;
  cursor: pointer;
  border: 2.5px solid transparent;
  box-shadow: var(--shadow);
  transition: all .15s;
  user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  min-height: 150px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover   { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-card:active  { transform: scale(.96); background: #FEF0EE; }

/* Stock badge */
.product-card.low-stock { border-color: #E67E22; }
.stock-badge {
  position: absolute; top: .5rem; right: .6rem;
  font-size: .65rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 99px;
  background: #FDEBD0; color: #E67E22;
}
.stock-badge.out { background: #FADBD8; color: var(--red); }

.product-emoji { font-size: 2.6rem; line-height: 1; }
.product-name  { font-size: .85rem; font-weight: 700; color: var(--slate); line-height: 1.3; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--red); font-family: var(--font-d); }
.product-cat   { font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-l); background: var(--cream-d); padding: .15rem .5rem; border-radius: 99px; }

/* ── CART ───────────────────────────────────────── */
.cart {
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
  overflow: hidden;
}

.cart-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem .6rem;
  border-bottom: 1.5px solid var(--cream-d);
  flex-shrink: 0;
}
.cart-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.order-badge { background: var(--red); color: var(--white); padding: .15rem .6rem; border-radius: 99px; font-size: .78rem; font-family: var(--font-b); }
.cart-actions-top { display: flex; align-items: center; gap: .5rem; }
.caisse-name { font-size: .72rem; color: var(--slate-l); font-weight: 500; }
.btn-sm { font-size: .75rem; padding: .3rem .75rem; border-radius: 8px; cursor: pointer; border: 1.5px solid; font-weight: 600; transition: all .15s; }
.btn-clear { border-color: var(--cream-d); color: var(--slate-l); background: none; }
.btn-clear:hover { border-color: var(--red); color: var(--red); }

/* Cart body */
.cart-body { flex: 1; overflow-y: auto; padding: .4rem .8rem; min-height: 0; }
.cart-empty {
  text-align: center; color: var(--slate-l); font-size: .85rem;
  margin-top: 3rem; font-style: italic; line-height: 1.8;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .65rem .3rem;
  border-bottom: 1px solid var(--cream-d);
  animation: slideIn .15s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(10px); } to { opacity:1; } }

.ci-emoji { font-size: 1.4rem; }
.ci-info  { min-width: 0; }
.ci-name  { font-size: .83rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-unit  { font-size: .72rem; color: var(--slate-l); }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.ci-sub   { font-size: .9rem; font-weight: 700; color: var(--red); }

/* Quantity controls — big touch targets */
.qty-row { display: flex; align-items: center; gap: .35rem; }
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--cream-d);
  background: var(--cream); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; color: var(--slate); line-height: 1;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.qty-btn:active { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(.9); }
.qty-val { font-size: .85rem; font-weight: 700; min-width: 20px; text-align: center; }

/* Cart footer */
.cart-foot { flex-shrink: 0; border-top: 2px solid var(--cream-d); }

.summary { padding: .6rem 1.1rem .4rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--slate-m); padding: .2rem 0; }
.summary-total { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: var(--slate); border-top: 1px solid var(--cream-d); margin-top: .3rem; padding-top: .4rem; }
.disc-val { color: #27AE60; font-weight: 600; }

/* Given amount zone */
.given-zone {
  padding: .6rem 1.1rem .5rem;
  border-top: 1px solid var(--cream-d);
}
.given-label {
  display: block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--slate-l); margin-bottom: .45rem;
}
.given-row {
  display: flex; align-items: center; gap: .5rem;
  background: var(--cream); border: 2px solid var(--cream-d);
  border-radius: 12px; padding: .1rem .75rem .1rem .1rem;
  transition: border .15s;
}
.given-row:focus-within { border-color: var(--red); background: var(--white); }
.given-input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 1.5rem; font-weight: 700; font-family: var(--font-d);
  color: var(--slate); padding: .4rem .5rem;
  width: 0; /* flex will expand it */
}
.given-input::placeholder { color: var(--cream-d); font-weight: 400; }
.given-currency { font-size: 1.1rem; font-weight: 700; color: var(--slate-l); }

.change-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .5rem; background: #E8F8F0;
  border-radius: 8px; padding: .4rem .75rem;
}
.change-bar-label { font-size: .78rem; font-weight: 600; color: var(--green); }
.change-bar-value { font-size: 1rem; font-weight: 700; color: var(--green); font-family: var(--font-d); }
.change-bar.negative { background: #FADBD8; }
.change-bar.negative .change-bar-label,
.change-bar.negative .change-bar-value { color: var(--red); }

/* Pay button — single encaisser */
.pay-btns { padding: .6rem 1.1rem .85rem; }
.btn-pay {
  width: 100%; height: 64px; border: none; border-radius: var(--radius);
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: all .18s; letter-spacing: .02em;
  background: var(--red); color: var(--white);
  user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(192,57,43,.35);
}
.btn-pay .pay-icon { font-size: 1.3rem; }
.btn-pay:hover  { background: var(--red-d); }
.btn-pay:active { transform: scale(.97); box-shadow: none; }

/* ── OVERLAYS & MODALS ──────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  animation: popIn .2s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes popIn { from { opacity:0; transform:scale(.88); } to { opacity:1; transform:none; } }

.modal-h { font-family: var(--font-d); font-size: 1.4rem; color: var(--slate); }
.modal-sub { font-size: .85rem; color: var(--slate-l); margin-top: .3rem; }

/* Payment modal */
.modal-pay { max-width: 360px; padding: 2rem 1.75rem 1.5rem; text-align: center; }
.modal-check {
  width: 72px; height: 72px; border-radius: 50%;
  background: #E8F8F0; color: var(--green-l);
  font-size: 2.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}
.modal-amount { font-size: 2.2rem; font-weight: 700; color: var(--red); font-family: var(--font-d); margin-top: .3rem; }
.modal-method { font-size: .82rem; color: var(--slate-l); margin-top: .2rem; }
.modal-rendu  { font-size: 1rem; font-weight: 600; color: var(--green-l); margin-top: .4rem; min-height: 1.4rem; }
.field-label { display: block; font-size: .8rem; font-weight: 600; color: var(--slate-m); margin-bottom: .35rem; text-align: left; }
.field-input {
  width: 100%; border: 2px solid var(--cream-d); border-radius: 10px;
  padding: .65rem 1rem; font-size: 1.1rem; text-align: center;
  font-family: var(--font-b); color: var(--slate); outline: none; transition: border .15s;
  background: var(--cream);
}
.field-input:focus { border-color: var(--red); background: var(--white); }
.change-result { font-size: 1rem; font-weight: 700; min-height: 1.5rem; margin-top: .5rem; }
.modal-foot { margin-top: 1.25rem; }
.btn-modal-new {
  width: 100%; height: 56px;
  background: var(--red); color: var(--white); border: none;
  border-radius: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
.btn-modal-new:hover { background: var(--red-d); }

/* Caisse picker modal */
.modal-caisse { max-width: 480px; padding: 2.25rem 2rem 1.75rem; text-align: center; }
.modal-logo { font-size: 2rem; letter-spacing: .5rem; margin-bottom: .75rem; }
.caisse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.25rem 0 1rem; }
.btn-caisse {
  height: 56px; border-radius: 12px;
  border: 2px solid var(--cream-d); background: var(--cream);
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .15s; color: var(--slate-m);
}
.btn-caisse:hover { border-color: var(--red); background: #FEF0EE; color: var(--red); }
.caisse-custom { display: flex; gap: .5rem; margin-top: .5rem; }
.btn-caisse-confirm {
  white-space: nowrap; padding: 0 1.25rem; height: 48px;
  border-radius: 10px; border: none;
  background: var(--red); color: var(--white);
  font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: background .15s; flex-shrink: 0;
}
.btn-caisse-confirm:hover { background: var(--red-d); }

/* Admin modal */
.modal-admin { max-width: 740px; max-height: 86vh; display: flex; flex-direction: column; }
.admin-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--slate); color: var(--white); flex-shrink: 0; }
.admin-header h2 { font-size: 1rem; font-weight: 600; }

.admin-tabs { display: flex; border-bottom: 2px solid var(--cream-d); flex-shrink: 0; }
.tab-btn { flex: 1; height: 48px; border: none; background: none; font-size: .85rem; font-weight: 600; color: var(--slate-l); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .15s; }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

.tab-content { display: none; overflow-y: auto; padding: 1.1rem 1.5rem; flex: 1; min-height: 0; }
.tab-content.active { display: flex; flex-direction: column; gap: 1rem; }

/* Admin form */
.admin-form { background: var(--cream); border-radius: var(--radius-sm); padding: 1rem; }
.form-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.fg { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 80px; }
.fg--wide { flex: 3; min-width: 160px; }
.fg label { font-size: .75rem; font-weight: 600; color: var(--slate-m); }
.fg input, .fg select {
  border: 1.5px solid var(--cream-d); border-radius: 8px;
  padding: .5rem .7rem; font-size: .88rem; font-family: var(--font-b);
  color: var(--slate); outline: none; transition: border .15s; background: var(--white);
  height: 42px;
}
.fg input:focus, .fg select:focus { border-color: var(--red); }
.form-row--actions { justify-content: flex-end; }
.btn-save { padding: .55rem 1.25rem; background: var(--red); color: var(--white); border: none; border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; height: 40px; transition: background .15s; }
.btn-save:hover { background: var(--red-d); }
.btn-cancel { padding: .55rem 1rem; background: none; color: var(--slate-m); border: 1.5px solid var(--cream-d); border-radius: 8px; font-size: .85rem; cursor: pointer; height: 40px; }

/* Admin product list */
.product-admin-list { display: flex; flex-direction: column; gap: .35rem; }
.pal-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; background: var(--cream); }
.pal-emoji { font-size: 1.3rem; }
.pal-name  { flex: 1; font-size: .85rem; font-weight: 600; }
.pal-cat   { font-size: .7rem; color: var(--slate-l); background: var(--cream-d); padding: .15rem .5rem; border-radius: 99px; }
.pal-price { font-size: .88rem; font-weight: 700; color: var(--red); min-width: 55px; text-align: right; }
.pal-stock { font-size: .72rem; color: #E67E22; min-width: 40px; text-align: right; }
.btn-pal { padding: .25rem .6rem; border-radius: 6px; font-size: .75rem; font-weight: 600; cursor: pointer; border: 1.5px solid; transition: all .15s; }
.btn-pal-edit { border-color: var(--gold); color: #B7860B; background: none; }
.btn-pal-edit:hover { background: var(--gold-l); border-color: var(--gold-l); color: var(--slate); }
.btn-pal-del  { border-color: var(--red); color: var(--red); background: none; }
.btn-pal-del:hover { background: var(--red); color: var(--white); }

/* Category admin list */
.cat-admin-list { display: flex; flex-direction: column; gap: .35rem; }
.cal-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; border-radius: 8px;
  background: var(--cream); border: 1.5px solid transparent;
  transition: border .15s;
}
.cal-item:hover { border-color: var(--cream-d); }
.cal-drag  { cursor: grab; color: var(--slate-l); font-size: 1rem; user-select: none; }
.cal-emoji { font-size: 1.3rem; min-width: 28px; text-align: center; }
.cal-name  { flex: 1; font-size: .88rem; font-weight: 600; }
.cal-count { font-size: .75rem; color: var(--slate-l); background: var(--cream-d); padding: .15rem .5rem; border-radius: 99px; }
.btn-cal { padding: .28rem .65rem; border-radius: 6px; font-size: .75rem; font-weight: 600; cursor: pointer; border: 1.5px solid; transition: all .15s; }
.btn-cal-edit { border-color: var(--gold); color: #B7860B; background: none; }
.btn-cal-edit:hover { background: var(--gold-l); border-color: var(--gold-l); color: var(--slate); }
.btn-cal-del  { border-color: var(--red); color: var(--red); background: none; }
.btn-cal-del:hover  { background: var(--red); color: var(--white); }
.cal-item.is-default .btn-cal-del { opacity: .3; pointer-events: none; }
.cat-admin-hint { font-size: .76rem; color: var(--slate-l); font-style: italic; padding: .4rem .2rem; }

/* Stats */
.stats-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.stat-card { background: var(--cream); border-radius: var(--radius-sm); padding: .85rem; text-align: center; border: 1.5px solid var(--cream-d); }
.stat-val  { font-size: 1.5rem; font-weight: 700; font-family: var(--font-d); color: var(--red); }
.stat-lbl  { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-l); margin-top: .2rem; }
.best-sellers { background: var(--cream); border-radius: var(--radius-sm); padding: .85rem; }
.best-sellers h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-l); margin-bottom: .6rem; }
.bs-row { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--cream-d); font-size: .85rem; }
.bs-rank { font-weight: 700; color: var(--gold); min-width: 20px; }
.bs-name { flex: 1; }
.bs-qty  { font-weight: 700; color: var(--slate-m); }
.bs-ca   { color: var(--red); font-weight: 700; min-width: 60px; text-align: right; }
.stats-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-export { padding: .6rem 1.25rem; background: var(--slate); color: var(--white); border: none; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.btn-danger { padding: .6rem 1rem; background: none; color: var(--red); border: 1.5px solid var(--red); border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-danger:hover { background: var(--red); color: var(--white); }

/* Orders list */
.orders-list { display: flex; flex-direction: column; gap: .4rem; }
.order-row { background: var(--cream); border-radius: 8px; padding: .6rem .85rem; }
.order-row-top { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.order-num-badge { font-weight: 700; color: var(--red); }
.order-method { background: var(--cream-d); padding: .1rem .45rem; border-radius: 99px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.order-caisse { color: var(--slate-l); font-size: .75rem; }
.order-total { margin-left: auto; font-weight: 700; color: var(--slate); }
.order-items-sum { font-size: .76rem; color: var(--slate-l); margin-top: .25rem; }
.order-date { font-size: .72rem; color: var(--slate-l); margin-top: .1rem; }

/* ── TOAST ──────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: .4rem; z-index: 999;
  pointer-events: none; width: max-content; max-width: 90vw;
}
.toast {
  background: var(--slate); color: var(--white);
  padding: .6rem 1.25rem; border-radius: 99px;
  font-size: .83rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
}
.toast.toast-success { background: var(--green); }
.toast.toast-error   { background: var(--red); }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; } }

/* ── SCROLLBARS ─────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-d); border-radius: 99px; }

/* ── RESPONSIVE: mobile/tablette portrait ────────── */
@media (max-width: 820px) {
  body { overflow: auto; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .catalogue { height: 58vh; }
  .cart { height: auto; max-height: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .tab-content { padding: .75rem 1rem; }
}
