/* Carrito lateral. Entra desde la derecha. Comparte la paleta del sitio. */
.mt-bolsa-velo{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:100000;opacity:0;transition:opacity .3s}
.mt-bolsa-velo.mt-abierto{opacity:1}
.mt-bolsa-panel{position:fixed;top:0;right:0;bottom:0;width:min(420px,100vw);background:#fff;color:#1d1b19;z-index:100001;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .3s ease;box-shadow:-8px 0 30px rgba(0,0,0,.18);font-family:inherit}
.mt-bolsa-panel.mt-abierto{transform:none}
.mt-bolsa-panel[hidden],.mt-bolsa-velo[hidden]{display:none}
html.mt-bolsa-abierta{overflow:hidden}
html.mt-bolsa-abierta .joinchat,html.mt-bolsa-abierta #joinchat{display:none!important}
.mt-bolsa-panel__cab{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e5e0d8}
.mt-bolsa-panel__cab h2{margin:0;font-size:1rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.mt-bolsa-panel__cerrar{background:none;border:0;padding:8px;margin:-8px;cursor:pointer;color:inherit;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
.mt-bolsa-panel__cuerpo{flex:1;overflow-y:auto;padding:8px 20px}
.mt-bolsa-item{display:grid;grid-template-columns:72px 1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid #eee8e0}
.mt-bolsa-item img{width:72px;height:72px;object-fit:cover;background:#f8f5f1}
.mt-bolsa-item__nombre{font-size:.92rem;line-height:1.3;color:inherit;text-decoration:none;font-weight:500}
.mt-bolsa-item__precio{font-size:.9rem;margin-top:4px}
.mt-bolsa-item__cant{display:inline-flex;align-items:center;border:1px solid #cfc8bd;margin-top:8px}
.mt-bolsa-item__cant button{width:36px;height:36px;background:none;border:0;font-size:1.1rem;cursor:pointer;color:inherit}
.mt-bolsa-item__cant button:disabled{opacity:.35;cursor:default}
.mt-bolsa-item__cant span{min-width:28px;text-align:center;font-size:.92rem}
.mt-bolsa-item__quitar{align-self:start;background:none;border:0;cursor:pointer;color:#6b655d;padding:8px;margin:-8px;min-width:44px;min-height:44px;font-size:1.2rem;line-height:1}
.mt-bolsa-panel__pie{padding:16px 20px 20px;border-top:1px solid #e5e0d8;background:#f8f5f1}
.mt-bolsa-total{display:flex;justify-content:space-between;font-weight:600;margin-bottom:6px}
.mt-bolsa-nota{font-size:.82rem;color:#4a443d;margin:0 0 14px;line-height:1.4}
.mt-bolsa-panel a.mt-bolsa-btn,.mt-bolsa-panel a.mt-bolsa-btn:visited,.mt-bolsa-panel a.mt-bolsa-btn:hover,.mt-bolsa-panel a.mt-bolsa-btn:focus{color:#fff!important}
.mt-bolsa-panel a.mt-bolsa-btn--sec,.mt-bolsa-panel a.mt-bolsa-btn--sec:visited,.mt-bolsa-panel a.mt-bolsa-btn--sec:hover,.mt-bolsa-panel a.mt-bolsa-btn--sec:focus{color:#000!important}
.mt-bolsa-btn{display:block;text-align:center;padding:15px;background:#000;color:#fff;text-decoration:none;font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:.85rem;border:1px solid #000}
.mt-bolsa-btn:hover{background:#333}
.mt-bolsa-btn--sec{background:transparent;color:#000;margin-top:8px}
.mt-bolsa-btn--sec:hover{background:#fff}
.mt-bolsa-vacio{text-align:center;padding:48px 8px}
.mt-bolsa-vacio p{margin:0 0 20px}
.mt-bolsa-error{background:#fdf0f0;border-left:3px solid #a82856;padding:10px 12px;font-size:.88rem;margin:12px 0}
.mt-bolsa-cargando{opacity:.5;pointer-events:none}
@media (prefers-reduced-motion:reduce){.mt-bolsa-panel,.mt-bolsa-velo{transition:none}}

.mt-bolsa-rec{margin-top:22px;padding-top:18px;border-top:1px solid #e5e0d8}
.mt-bolsa-rec__titulo{margin:0 0 6px;font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.mt-bolsa-rec__item{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee8e0}
.mt-bolsa-rec__item img{width:56px;height:56px;object-fit:cover;background:#f8f5f1}
.mt-bolsa-rec__nombre{font-size:.88rem;line-height:1.3;color:inherit;text-decoration:none;font-weight:500}
.mt-bolsa-rec__precio{font-size:.85rem;margin-top:2px;color:#4a443d}
.mt-bolsa-rec__agregar{background:#fff;border:1px solid #000;color:#000;padding:0 14px;min-height:44px;font:600 .75rem/1 inherit;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.mt-bolsa-rec__agregar:hover{background:#000;color:#fff}

/* Icono de la bolsa: se agita solo cada 5 segundos y hace un rebote al tocarlo */
.mt-bolsa svg{transform-origin:50% 25%}
.mt-bolsa.mt-agita svg{animation:mt-bolsa-agita .8s ease-in-out}
.mt-bolsa.mt-pulsa svg{animation:mt-bolsa-pulsa .45s cubic-bezier(.3,1.6,.5,1)}
@keyframes mt-bolsa-agita{0%,100%{transform:rotate(0)}15%{transform:rotate(-14deg)}30%{transform:rotate(12deg)}45%{transform:rotate(-9deg)}60%{transform:rotate(6deg)}75%{transform:rotate(-3deg)}}
@keyframes mt-bolsa-pulsa{0%{transform:scale(1)}35%{transform:scale(.78)}70%{transform:scale(1.18)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.mt-bolsa.mt-agita svg,.mt-bolsa.mt-pulsa svg{animation:none}}

/* Piezas que ya no están disponibles */
.mt-etiqueta-agotado{display:inline-block;margin-top:6px;padding:4px 8px;background:#1d1b19;color:#fff;font:600 .68rem/1.2 inherit;letter-spacing:.08em;text-transform:uppercase}
.mt-bolsa-item--agotado{align-items:center}
.mt-bolsa-item__difuso{display:block;filter:blur(1.6px);opacity:.55;pointer-events:none;user-select:none}
.mt-bolsa-item--agotado img{width:72px;height:72px;object-fit:cover}
