/* ═══════════════════════════════════════════════
   COMPONENTS — Boutons, Cards, Badges, Tabs
═══════════════════════════════════════════════ */

button {
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

/* ── BOUTON PRIMAIRE BLEU ─────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  padding: 11px 22px;
  font-size: 14px;
  box-shadow: 0 4px 14px #2563eb33;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px #2563eb44;
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── BOUTON VERT SUCCÈS ───────────────────── */
.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  padding: 11px 22px;
  font-size: 14px;
  box-shadow: 0 4px 14px #16a34a33;
}
.btn-success:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-success:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ── BOUTON GHOST ─────────────────────────── */
.btn-ghost {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  padding: 9px 16px;
  font-size: 12px;
}
.btn-ghost:hover, .btn-ghost.active {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

/* ── BOUTON DANGER ────────────────────────── */
.btn-danger {
  background: #fff1f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  padding: 7px 13px;
  font-size: 12px;
}
.btn-danger:hover { background: #fee2e2; }

.btn-sm { padding: 5px 11px !important; font-size: 11px !important; }

/* ── CARD ─────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px #0000000a;
}
.card:last-child { margin-bottom: 0; }

/* ── SECTION TITLE ────────────────────────── */
.stitle {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 14px;
  font-weight: 700;
}

/* ── BADGE ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  font-weight: 600;
  border: 1px solid;
}

/* ── CHIP ─────────────────────────────────── */
.chip {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  transition: all .15s;
  user-select: none;
}
.chip:hover  { border-color: #93c5fd; color: #2563eb; background: #eff6ff; }
.chip.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; font-weight: 700; }

/* ── TABS ─────────────────────────────────── */
.tab {
  cursor: pointer;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  transition: all .18s;
  white-space: nowrap;
  user-select: none;
}
.tab:hover:not(.active) { color: #475569; }
.tab.active { color: #2563eb; border-bottom-color: #2563eb; }

/* ── NAV BOUTONS ──────────────────────────── */
.nav-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .18s;
  color: #94a3b8;
  border: 1.5px solid transparent;
  background: transparent;
  position: relative;
  font-family: 'Lato', sans-serif;
}
.nav-btn:hover { color: #475569; background: #f1f5f9; }
.nav-btn.active { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }

/* ── CART ITEM ────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border: 1.5px solid #e2e8f0;
  border-left-width: 4px;
  transition: all .15s;
}
.cart-item:hover { border-color: #bfdbfe; background: #f8faff; }

/* ── QTY BUTTONS ──────────────────────────── */
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

/* ── QUICK CARD ───────────────────────────── */
.quick-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px;
  cursor: pointer;
  transition: all .15s;
  min-width: 115px;
  text-align: left;
  flex-shrink: 0;
}
.quick-card:hover { border-color: #2563eb; background: #eff6ff; box-shadow: 0 2px 8px #2563eb15; }

/* ── PRODUCT ROW ──────────────────────────── */
.prod-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 9px;
  gap: 14px;
  transition: all .15s;
}
.prod-row:hover { border-color: #93c5fd; box-shadow: 0 2px 8px #2563eb10; }

/* ── TICKET PAPER ─────────────────────────── */
.ticket-paper {
  background: #f9f8f2;
  border-radius: 4px;
  box-shadow: 0 8px 40px #00000025, 0 0 0 1px #e2e8f0;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.tear {
  height: 8px;
  background: repeating-linear-gradient(
    90deg, #f9f8f2 0, #f9f8f2 7px, #e2ddd0 7px, #e2ddd0 8px
  );
}

/* ── RENDU MONNAIE ────────────────────────── */
.rendu-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── TOTAL BOX ────────────────────────────── */
.total-box {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px #2563eb30;
}

/* ── INFO BOX ─────────────────────────────── */
.info-box {
  background: #f8fafc;
  border-radius: 9px;
  padding: 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.85;
  margin-top: 16px;
  border: 1px solid #e2e8f0;
}

/* ── LOGO ZONE ────────────────────────────── */
.logo-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all .18s;
  max-width: 300px;
}
.logo-zone:hover { border-color: #2563eb; background: #eff6ff; }

/* ── CURRENCY CARD ────────────────────────── */
.cur-card {
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  padding: 13px 15px;
  background: #f8fafc;
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cur-card:hover  { border-color: #93c5fd; background: #eff6ff; }
.cur-card.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 2px 8px #2563eb20; }

/* ── PRINTER CARD ─────────────────────────── */
.printer-card {
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 14px;
  background: #f8fafc;
  text-align: center;
  transition: all .18s;
}
.printer-card:hover  { border-color: #93c5fd; background: #eff6ff; }
.printer-card.active { border-color: #2563eb; background: #eff6ff; box-shadow: 0 2px 8px #2563eb20; }

/* ── FAB ──────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px #2563eb50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.fab:hover { transform: scale(1.08); }

/* ── STAT CARD ────────────────────────────── */
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  border-top: 4px solid;
}
