body {
  font-family: Arial, sans-serif;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

/* 🏷️ HEADER */
.header {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: #1f1f1f;
  color: white;
  box-sizing: border-box;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.titulo h1 {
  margin: 0;
  font-size: 20px;
}

.titulo p {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

.admin-btn {
  margin-left: auto;
  font-size: 14px;
  padding: 8px 12px;
}

/* 🧱 LAYOUT */
.layout {
  display: flex;
  height: calc(100vh - 80px);
  overflow: hidden;
}

/* 🟦 PRODUCTOS */
.productos {
  flex: 4;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-content: flex-start;
  background: #f9f9f9;
  overflow: hidden;
}

/* BOTONES GRANDES */
.productos button {
  font-size: 40px;
  padding: 40px;
  width: 260px;
  height: 160px;
  border: none;
  border-radius: 12px;
  background: #2d89ef;
  color: white;
  cursor: pointer;
}

.productos button:active {
  transform: scale(0.97);
}

/* 🟨 TICKET */
.carrito {
  flex: 1;
  background: #eeeeee;
  padding: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.carrito h3 {
  margin: 5px 0;
  font-size: 16px;
}

/* LISTA */
#lista {
  flex: 1;
  overflow-y: auto;
  font-size: 13px;
  padding-right: 5px;
}

/* ITEM */
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.nombre {
  flex: 2;
  font-weight: bold;
}

.datos {
  flex: 3;
  font-size: 12px;
}

/* BOTONES + - */
.botones {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.botones button {
  font-size: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: #444;
  color: white;
}

/* FOOTER */
.ticket-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.total {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 0;
  border-top: 2px solid #999;
}

.ticket-footer button {
  font-size: 16px;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 6px;
}

.ticket-footer button:first-of-type {
  background: #28a745;
  color: white;
}

.ticket-footer button:last-of-type {
  background: #dc3545;
  color: white;
}

/* 🧑‍💻 ADMIN PANEL */
.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #222;
  color: white;
  padding: 15px;
  overflow-y: auto;
  z-index: 9999;
}

.hidden {
  display: none;
}

.admin-panel input {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
}

.admin-panel button {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

.admin-item {
  background: #333;
  margin: 5px 0;
  padding: 8px;
  display: flex;
  justify-content: space-between;
}