.ctnCart {
    position: fixed;
    top: 0;
    right: -70vw;
    width: 70vw;
    min-width: 320px;
    max-width: 520px;
    height: 100dvh;
    max-height: 100dvh;
    background-color: #F1EFEC;
    border-top-left-radius: 2dvh;
    border-bottom-left-radius: 2dvh;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.2s, opacity 0.2s, visibility 0.2s;
}

.ctnCart-act {
    right: 0;
    opacity: 1;
    visibility: visible;
}

#closeCart{
    cursor: pointer;
}

.ctnTopCart{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 2dvh;
    border-bottom: solid 1px black;
}

.ctnItemCart{
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    align-items: start;
    height: 100%;
}

.itemCart {
    width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #ccc; 
  box-sizing: border-box;
}

.imgItemCart img {
    margin-left: 3vh;
    width: 20vh;
    height: 20vh;
    object-fit: cover; 
    border-radius: 8px; 
}

.descripcionItemCart{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2dvh 1dvh;
    gap: 1dvh;
}

.nombreItemCart {
    white-space: normal;     /* permite múltiples líneas */
    overflow: visible;       /* deja que crezca */
    text-overflow: unset;    /* elimina los puntos suspensivos */
    width: 100%;             /* usa todo el ancho disponible */
    word-wrap: break-word;   /* rompe palabras largas si es necesario */
}


.cantidadItemCart{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    outline: solid 2px #4B352A;
    color: #000000;
    padding: 1dvh 2dvh;
    border-radius: 4dvh;
}

.cantidadItemCart p{
    cursor: pointer;
}

.actItemCart{
    display: flex;
    flex-direction: row;
    width: 80%;
    margin: auto;
    justify-content: center;
}

.ctnBotomCart{
    padding: 2dvh;
    display: flex;
    flex-direction: column;
    gap: 2dvh;
    border-top: solid 1px #4B352A;
}

.descriptionCart{
    padding: 2dvh;
    display: flex;
    flex-direction: column;
    gap: 2dvh;
}

.descriptionCart span{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #4B352A;
}

.descriptionCart span:last-child{
    font-size: 1.1rem;
    color: #4B352A;
}

.actionsCart{
    display: flex;
    flex-direction: column;
    gap: 2dvh;
}   

.actionsCart a:first-child{
    padding: 2dvh;
    border-radius: 5dvh;
    background-color: #D4C9BE;
    color: #4B352A;
    text-align: center;
    cursor: pointer;
}

.actionsCart a{
    padding: 2dvh;
    border-radius: 5dvh;
    background-color: #4B352A;
    color: rgb(255, 255, 255);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .itemCarrito {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .imagenProducto {
        margin: 0 auto;
        display: block;
    }

    .detalleProducto {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cantidadControles {
        justify-content: center;
    }

    .btnEliminarItem {
        margin-top: 1rem;
    }
}
