/* =======================================================
   POS Page — pos.css
   Estilos adicionales específicos de la página POS
   (complements style.css + crm.css)
   ======================================================= */

/* ── POS Product Grid ── */
.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pos-product-btn {
  background: #fff;
  border: 1px solid #ede9ff;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pos-product-btn:hover,
.pos-product-btn.selected {
  background: linear-gradient(135deg, #7b69ff, #c43bff);
  border-color: transparent;
  color: #fff;
  transform: scale(1.04);
}

.pos-product-emoji { font-size: 1.6rem; }
.pos-product-name  { font-size: 0.72rem; font-weight: 600; }
.pos-product-price { font-size: 0.78rem; font-weight: 800; color: #7b69ff; }

.pos-product-btn:hover .pos-product-price,
.pos-product-btn.selected .pos-product-price { color: rgba(255,255,255,0.85); }

/* ── POS Demo Grid ── */
.pos-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pos-demo-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* ── POS Cart ── */
.pos-cart {
  background: #fff;
  border: 1px solid #ede9ff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid #f5f3ff;
}

.pos-cart-item:last-of-type { border-bottom: none; }

.pos-cart-name  { font-weight: 600; color: #333; }
.pos-cart-qty   { color: #999; font-size: 0.75rem; }
.pos-cart-price { font-weight: 800; color: #7b69ff; }

.pos-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 900;
  color: #0d0d12;
  padding-top: 10px;
  border-top: 2px solid #ede9ff;
  margin-top: 4px;
}

/* ── Payment Buttons ── */
.pos-payment-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.pos-pay-btn {
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.pos-pay-btn.cash  { background: #e8faf0; color: #1a7a40; }
.pos-pay-btn.card  { background: #e8ecff; color: #3a5bff; }
.pos-pay-btn.split { background: #f5f3ff; color: #7b69ff; }

.pos-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pos-product-grid { grid-template-columns: repeat(2, 1fr); }
  .pos-demo-grid    { grid-template-columns: 1fr; }
}
