.mini-carrito {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/*Estilo para carrito vacio*/

.carrito_banner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 15px;
}

.carrito_banner img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.carrito-vacio {
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
}

#lottie-animation {
    width: 70%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
}

.carrito-vacio h3 {
    font-size: 1.5rem;
    color: #878787;
    margin-top: 20px;
    font-family: 'Poppins-Bold', sans-serif;
}


.sidebar_carrito {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.sidebar_carrito.activo {
    right: 0;
}

#overlay_carrito {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}

#overlay_carrito.activo {
    display: block;
}

.anuncio_envio {
    width: 100%;
    background: linear-gradient(to right, #ffc700, #ffe400);
    padding: 0.5vw;
    text-align: center;
    margin-bottom: 0.9vh;
    font-size: 10px;
    font-family: 'Poppins-Light', sans-serif;
    font-weight: 100;
    border-radius: 40px;
    margin-top: 3vh;
}

.productos_carrito {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2vh;
    background-color: rgb(255, 255, 255);
    flex: 1;
    overflow-y: scroll;
}

.producto_carrito {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.9vw;
    background-color: #ffffff;
}

.producto_carrito img {
    width: 100px;
    height: 100px;
    object-fit: scale-down;
    margin-right: 0.5vw;
    background-color: rgb(255, 255, 255);
}

.producto_carrito .info_carrito {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: rgb(255, 255, 255);
}

.producto_carrito .info_carrito .sku {
    font-size: 12px;
    color: #878787;
    margin: 0;
    padding: 0;
    font-family: 'Poppins-Regular', sans-serif;
}

.producto_carrito .info_carrito .nombre {
    font-size: 16px;
    color: #282b31;
    margin: 0;
    padding: 0;
    font-family: 'Poppins-Bold', sans-serif;
}

.producto_carrito .info_carrito .marca {
    font-size: 14px;
    color: #878787;
    margin: 0;
    padding: 0;
    font-family: 'Poppins-Regular', sans-serif;
}

.producto_carrito .info_carrito .precio {
    font-size: 18px;
    color: #282b31;
    margin: 0;
    padding: 0;
    font-family: 'Poppins-Bold', sans-serif;
    margin-top: auto;
}

.producto_carrito .info_carrito .acciones_producto {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 0.5vh;
}

.cantidad {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 999px;
    /* forma de cápsula */
    padding: 4px 10px;
    gap: 8px;
    width: fit-content;
    border: 1px solid #878787;
}

.cantidad button {
    padding: 6px 12px;
    font-size: 18px;
    border: none;
    background-color: #ffffff;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cantidad button:hover {
    background-color: #F8B133;
    color: #ffffff;
}

.cantidad input {
    width: 20px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.line_carrito {
    width: 1px;
    height: 20px;
    background-color: #ccc;
}

.quitar {
    margin-left: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #878787;
    font-family: 'Poppins-Regular', sans-serif;
}

.quitar:hover {
    color: #F8B133;
}

.bloque_total {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgb(255, 255, 255);
    padding-bottom: 0.9vh;
    border-top: 1px solid #ccc;
}

.bloque_total .costo_envio {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 18px;
    color: #282b31;
    padding-top: 1vh;
}

.bloque_total .sub_total {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 18px;
    color: #282b31;
    padding-top: 1vh;
}

.bloque_total .total {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 18px;
    color: #282b31;
    padding-top: 1vh;
    border-top: 1px solid #ccc;
}

.bloque_total .acciones {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
}

.ahorro_carrito {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 18px;
    color: #282b31;
    padding-top: 1vh;
    padding-bottom: 1vh;
    background-color: #fffb00;
}

.btn.carrito {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra el texto */
    position: relative;
    padding-right: 4vw;
    /* Espacio para el ícono */
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 14px;
    background-color: #ffffff;
    color: #878787;
    border: 1px solid #878787;
    text-decoration: none;
    border-radius: 22px;
    padding: 10px 40px;
    cursor: pointer;
}

.btn.carrito:hover {
    background-color: #F8B133;
    color: #ffffff;
    border: 1px solid #F8B133;
}

/* Ícono alineado a la derecha absoluta dentro del botón */
.btn.carrito .icono_carrito-derecha {
    position: absolute;
    right: 15px;
    width: 12px;
    height: 14px;
}

.btn.finalizar {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra el texto */
    position: relative;
    padding-right: 40px;
    /* Espacio para el ícono */
    font-family: 'Poppins-Bold', sans-serif;
    font-size: 14px;
    background-color: #282b31;
    color: #ffffff;
    text-decoration: none;
    border-radius: 22px;
    padding: 10px 40px;
    cursor: pointer;
}

.btn.btn.finalizar:hover {
    background-color: #F8B133;
    color: #ffffff;
    border: 1px solid #F8B133;
}

/* Ícono alineado a la derecha absoluta dentro del botón */
.btn.finalizar .icono_carrito-derecha {
    position: absolute;
    right: 15px;
    width: 12px;
    height: 14px;
}

@media screen and (max-width:1366px) {
    .anuncio_envio {
        font-size: 8px;
    }

    .producto_carrito .info_carrito .sku {
        font-size: 10px;
    }

    .producto_carrito .info_carrito .nombre {
        font-size: 14px;
    }

    .producto_carrito .info_carrito .marca {
        font-size: 12px;
    }

    .producto_carrito .info_carrito .precio {
        font-size: 16px;
    }

    .cantidad {
        padding: 2px 8px;
    }

    .cantidad button {
        padding: 4px 10px;
        font-size: 16px;
    }

    .cantidad input {
        width: 18px;
        font-size: 12px;
    }

    .bloque_total .costo_envio {
        font-size: 16px;
    }

    .bloque_total .sub_total {
        font-size: 16px;
    }

    .bloque_total .total {
        font-size: 16px;
    }

    .ahorro_carrito {
        font-size: 16px;
    }

    .btn.carrito {
        padding-right: 4vw;
        font-size: 12px;
        padding: 10px 30px;
    }

    .btn.carrito .icono_carrito-derecha {
        position: absolute;
        right: 10px;
        width: 10px;
        height: 10px;
    }

    .btn.finalizar {
        padding-right: 4vw;
        font-size: 12px;
        padding: 10px 30px;
    }

    .btn.finalizar .icono_carrito-derecha {
        right: 10px;
        width: 10px;
        height: 10px;
    }

}

@media screen and (max-width:500px) {

    .sidebar_carrito {
        width: 100vw;
    }


}