:root {
  --bg: #0e1620; --bar: #ffffff; --blue: #1f6feb; --text: #102033; --muted: #5b6b7c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: Inter, system-ui, sans-serif; background: #0b121a; color: #fff; }
.shop-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: 52px;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: var(--bar); color: var(--text); border-bottom: 1px solid #e5ebf2;
}
.logo { font-weight: 800; text-decoration: none; color: inherit; }
.logo span { color: var(--blue); }
.tag { color: var(--muted); font-size: 0.9rem; flex: 1; }
.cart-btn {
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: 8px 12px; font-weight: 650; cursor: pointer;
}
#viewport { position: fixed; inset: 52px 0 36px 0; }
#c { width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; left: 12px; right: 12px; bottom: 12px; pointer-events: none; }
#hint {
  margin: 0; display: inline-block; background: rgba(0,0,0,.45);
  padding: 8px 12px; border-radius: 10px; font-size: 0.85rem;
}
.toast {
  margin-top: 8px; display: inline-block; background: #1f6feb;
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.product-card, .cart-panel {
  position: absolute; right: 12px; top: 12px; width: min(300px, calc(100% - 24px));
  background: rgba(255,255,255,.96); color: #122; border-radius: 14px;
  padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.product-card .ph, .cart-panel .ph {
  height: 90px; border-radius: 10px; border: 1px dashed #9ab;
  display: grid; place-items: center; color: #678; margin-bottom: 10px;
  background: #eef3f8; font-size: 0.75rem;
}
.product-card h3, .cart-panel h3 { margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0; }
.price { font-size: 1.3rem; font-weight: 800; margin: 8px 0; }
.ejemplo { font-size: 0.75rem; color: #7a8796; }
.ghost {
  margin-top: 8px; width: 100%; background: transparent; border: 1px solid #c5d0dc;
  border-radius: 10px; padding: 8px; cursor: pointer;
}
#addBtn { width: 100%; margin-top: 8px; }
.cart-panel ul { list-style: none; padding: 0; margin: 0 0 10px; max-height: 220px; overflow: auto; }
.cart-panel li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #e6edf5; font-size: 0.9rem;
}
.total { margin: 0 0 10px; }
#checkoutBtn { width: 100%; }
.shop-foot {
  position: fixed; left: 0; right: 0; bottom: 0; height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.75rem; color: #9bb; background: #071018;
}
.shop-foot a { color: #cde; }
@media (max-width: 640px) {
  .tag { display: none; }
  #hint { font-size: 0.75rem; }
}
