/* TOAST */
.pro-toast {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #00a650;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  transition: 0.3s;
  z-index: 9999;
}

.pro-toast.show {
  right: 20px;
}

/* SIDECART */
.pro-sidecart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: 0.3s;
  z-index: 9998;
  padding: 20px;
}

.pro-sidecart.open {
  right: 0;
}

.pro-close {
  cursor: pointer;
  font-size: 20px;
  float: right;
}





/*OCULTAR EN MODAL VIEJO*/

#blockcart-modal {
  display: none !important;
}
.modal-backdrop {
  display: none !important;
}



.pro-sidecart {
  z-index: 9999;
}

.modal-backdrop {
  display: none !important;
}




body {
  overflow-y: auto !important;
}


.pro-sidecart {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh; /* 🔥 ocupa toda la pantalla */
  background: #fff;

  overflow-y: auto; /* 🔥 SCROLL INTERNO */
  overflow-x: hidden;

  z-index: 99999;
}



/*Separar contenido del botón:*/

#procart-content {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}


/*FIJAR BOTÓN ABAJO (UX PRO)*/

.pro-sidecart a.btn {
  position: sticky;
  bottom: 0;
  display: block;
  background: #fff;
  padding: 10px;
}


.pro-sidecart {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#procart-content {
  flex: 1;
  overflow-y: auto;
}

.pro-footer {
  padding: 10px;
  background: #fff;
}

.pro-sidecart {
  position: fixed;
  right: -400px; /* 🔥 oculto por defecto */
  top: 0;
  width: 350px;
  height: 100vh;
  background: #fff;
  transition: right 0.3s ease;
  z-index: 99999;
}

.pro-sidecart.open {
  right: 0; /* 🔥 solo visible cuando tiene clase open */
}



.pro-sidecart .btn-primary {
  background-color: #007bff !important; /* azul */
  color: #fff !important;
  border: none;
}


.pro-sidecart .btn-primary {
  background-color: #3483fa !important; /* estilo Mercado Libre */
  color: #fff !important;
  border-radius: 6px;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  display: block;
}

.pro-sidecart .btn-primary:hover {
  background-color: #2968c8 !important;
  color: #fff !important;
}





.pro-sidecart {
  z-index: 99999;
}

.pro-close {
  z-index: 100000;
  position: absolute;
  top: 10px;
  right: 15px;
}