/* 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;
}


.pro-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pro-img img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
}

.pro-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pro-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.pro-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.pro-attr {
    display: inline-block;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.pro-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}






.pro-price-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pro-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.pro-price {
    font-weight: 600;
    color: #e60023;
}




/*TAMAÑO DE LA X 18 MAYO*/

.pro-remove{
    font-size: 22px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.pro-remove:hover{
    color: red;
    transform: scale(1.2);
}