/* ---------- BOLSA: modal centrado ---------- */
/* Nota: el overlay real (fondo oscuro) es .cart-overlay, definido inline en index.html.
   Se elimina aquí .bag-overlay por no usarse en ningún HTML del sitio. */

.bag-modal{
  position:fixed;
  top:50%;left:50%;
  width:380px;
  max-width:88vw;
  background:var(--panel);
  border:1px solid var(--line-strong);
  border-radius:20px;
  padding:40px 34px 34px;
  z-index:199;
  text-align:center;
  transform:translate(-50%, -50%) scale(0.94);
  opacity:0;
  pointer-events:none;
  transition:opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow:0 40px 80px -30px rgba(0,0,0,0.75);
}
.bag-modal.open{
  opacity:1;
  transform:translate(-50%, -50%) scale(1);
  pointer-events:auto;
}

.bag-modal-close{
  position:absolute;
  top:16px;right:16px;
  width:30px;height:30px;
  display:flex;align-items:center;justify-content:center;
  background:transparent;
  border:1px solid var(--line-strong);
  border-radius:10px;
  color:var(--fg-dim);
  cursor:pointer;
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.bag-modal-close svg{width:13px;height:13px;}
.bag-modal-close:hover{border-color:var(--accent);color:var(--accent);}

.bag-modal-check{
  width:52px;height:52px;
  margin:0 auto 20px;
  border-radius:50%;
  background:var(--accent-soft);
  border:1px solid var(--accent-soft);
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);
  box-shadow:0 0 24px var(--accent-glow);
}
.bag-modal-check svg{width:22px;height:22px;}

.bag-modal h3{
  font-size:19px;
  margin-bottom:22px;
}

.bag-modal-item{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  padding:16px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:left;
}
.bag-modal-name{
  font-family:var(--display);
  font-weight:600;
  font-size:14.5px;
}
.bag-modal-price{
  font-family:var(--mono);
  font-size:13px;
  color:var(--fg-dim);
  white-space:nowrap;
}

.bag-modal-total{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--fg-faint);
  padding:16px 0 26px;
}
.bag-modal-total span:last-child{
  font-family:var(--display);
  font-size:16px;
  font-weight:600;
  text-transform:none;
  letter-spacing:normal;
  color:var(--accent);
}

.bag-modal-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.bag-modal-actions .btn{width:100%;}

@media(max-width:560px){
  .bag-modal{padding:34px 24px 28px;}
}
