/* ── La canasta ──────────────────────────────────────────────────────
   Ícono en el menú, aviso al añadir y la lista compacta del pedido. Líneas finas,
   tinta y un solo rojo. */

/* ícono en el menú: un botón con borde, claramente tocable */
.nav__bolsa {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: 8px;
  color: var(--ink);
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  border-radius: var(--radius-sm);
  transition: background .18s, color .18s;
}
.nav__bolsa svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__bolsa:hover { background: var(--ink); color: #fff; }
.nav__bolsa-n {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font: 600 11.5px/1 'DM Mono', ui-monospace, monospace;
}

/* aviso breve al añadir */
.mal-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .25s;
}
.mal-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mal-toast a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
body.buybar-on .mal-toast, body.pp-sticky-on .mal-toast { bottom: 86px; }
@media (prefers-reduced-motion: reduce) { .mal-toast { transition: none; } }

/* ── botones − / + de cantidad ── */
.mal-stp { display: flex; align-items: center; }
.mal-stp button {
  width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  transition: background .18s, color .18s;
}
.mal-stp button:hover:not([disabled]) { background: var(--ink); color: #fff; }
.mal-stp button[disabled] { opacity: .3; cursor: not-allowed; }
.mal-stp svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: square; }
.mal-stp output { min-width: 30px; text-align: center; font: 700 15px 'Barlow', system-ui, sans-serif; font-variant-numeric: tabular-nums; }

/* ── la canasta en el pedido: una fila por producto ── */
.can { display: flex; flex-direction: column; }
.can-fila {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: 4px 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.can-fila:first-child { border-top: 0; padding-top: 0; }
.can-fila__foto { width: 52px; height: 52px; display: block; overflow: hidden; }
.can-fila__foto img { display: block; width: 52px; height: 52px; object-fit: contain; }
.can-fila__nom { font: 700 15px/1.2 'Barlow', system-ui, sans-serif; letter-spacing: -.005em; }
.can-fila__sub { font-size: 12.5px; color: var(--ink-dim); margin-top: 2px; }
.can-fila__precio { text-align: right; font: 700 15px 'Barlow', system-ui, sans-serif; font-variant-numeric: tabular-nums; line-height: 1.2; }
.can-fila__precio s { display: block; font: 400 11.5px 'Barlow', system-ui, sans-serif; color: var(--ink-dim); }
.can-vacia { padding: 6px 0 2px; color: var(--ink-2); font-size: 15px; }
.can-vacia a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.can-seguir {
  display: inline-block; margin-top: 12px; padding-top: 12px; width: 100%;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
}
.can-seguir:hover { color: var(--accent-text); }
@media (max-width: 560px) {
  .can-fila { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .can-fila__foto, .can-fila__foto img { width: 44px; height: 44px; }
  .can-fila__foto { grid-row: span 2; }
  .can-fila__precio { grid-column: 2 / -1; grid-row: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .can-fila__precio s { display: inline; }
}

/* ── el pedido, más compacto ──
   Menos aire y tipografía contenida: todo se ve de un vistazo, sin sentir la página infinita. */
body.co .co__main { padding-top: clamp(20px, 3vw, 32px); padding-bottom: var(--s5); }
body.co .co__title { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 4px; }
body.co .co__sub { font-size: 14px; margin-bottom: var(--s3); }
body.co .co__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(16px, 2.4vw, 28px); }
body.co .co__pasos { gap: 14px; }
body.co .co__card { padding: 18px 20px; }
body.co .co__card > .section-eyebrow { margin-bottom: 14px; }
body.co .co__field input, body.co .co__field select { min-height: 44px; font-size: 15px; }
body.co .co__field > span { font-size: 12.5px; }
body.co .co__metodo { padding: 12px 14px; }
body.co .co__metodo b { font-size: 15px; }
body.co .co__metodo-det { font-size: 12.5px; }
body.co .co__resumen-head { font-size: 11px; }
body.co .co__total { padding: 16px; gap: 10px; }
body.co .co__total-lines { gap: 7px; }
body.co .co__total-lines p { font-size: 14px; }
body.co .co__map { height: 200px; }
body.co .co__pay-qr { max-width: 150px; }
@media (max-width: 1020px) {
  body.co .co__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body.co .co__card { padding: 14px 14px; }
}
