/**
 * Estilos CSS del FO
 * 
 * @author Difadi.com  <soporte@difadi.com>
 * @author Laura Gutiérrez <lgutierrez@difadi.com>
 * @copyright 2025 Difadi.com
 * @license Comercial
*/

#cart-bottom {
    position: fixed;
    height: auto;
    margin: 0;
    bottom: 0;
    width: var(--width-container);
    max-width: 100%;
    padding: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    z-index: 9999;
    transition: none !important;
    display: block;
    animation: slide-in 1s forwards;
    animation-delay: 1ms;
    background-color: var(--color-white);
    border-top: var(--border-width) solid var(--border-color);
}

#cart-bottom.hidden {
    display: none;
}

@keyframes slide-in {
    100% {
        transform: translate(-50%, 0%);
    }
}

#cart-bottom>div {
    width: 100%;
    margin: 0;
}

#cart-bottom>.cart-bottom-product {
    margin: 0 20px;
    width: calc(100% - 40px);
    background-color: #ffffff;
}

#cart-bottom>.cart-bottom-product>div {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spaces-sm) 0;
}

#cart-bottom .cart-product {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#cart-bottom .cart-product>div {
    padding: 0;
}

#cart-bottom .cart-product .cart-product-image {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
}

#cart-bottom .cart-product .cart-product-image p {
    margin-bottom: 0;
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    border: none !important;
    padding-right: 20px;
}

#cart-bottom .product-quantity {
    justify-content: end;
    margin: 0;
}

#cart-bottom .product-quantity .qty,
#cart-bottom .product-quantity .add {
    margin-bottom: 0;
    width: auto !important;
    min-width: fit-content;
}

#cart-bottom .product_action .product_prices {
    display: flex;
    justify-content: start;
    width: 100%;
}

#cart-bottom .product_action {
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-bottom .product_action .product-prices {
    display: flex;
    align-items: end;
    margin-bottom: 0 !important;
}

#cart-bottom .product_action .product_prices>span#product-price.hidden {
    display: none;
}

#cart-bottom .product_action .product-prices>div {
    margin-bottom: 0;
}

#cart-bottom .product_action .available_stock {
    display: none;
}

#cart-bottom .product_action .product-prices .current-price,
#cart-bottom .product_action .product-prices .price-discounts {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cart-bottom .product_action .product-prices .current-price {
    margin-bottom: 0;
    align-items: end;
    flex-wrap: wrap;
}

#cart-bottom .product_action .product-prices .current-price>span {
    font-weight: 700;
    margin-bottom: 0;
    font-size: var(--font-xl);
    line-height: 1;
}

#cart-bottom .product_action .product-prices .current-price>span.regular-price {
    line-height: 1;
    font-size: var(--font-lg);
    font-weight: 500;
    text-decoration: line-through;
}

#cart-bottom .product_action .product-prices .current-price>span.price_iva {
    line-height: 1;
    font-size: var(--font-md);
}

#cart-bottom .product_action .product-prices .current-price>span.bg-discount {
    font-size: var(--font-xs);
    font-weight: 500;
}

#cart-bottom .add .add-to-cart {
    width: 200px;
}

#cart-bottom .add-to-cart.disabled {
    cursor: none;
}

#cart-bottom .add-to-cart img {
    margin-right: 10px;
    width: 20px
}

#cart-bottom .product_add_to_cart .product-quantity {
    gap: 10px;
}

#cart-bottom .product_add_to_cart .product-quantity::after,
#cart-bottom #product-availability {
    display: none;
}

#cart-bottom .product-minimal-quantity {
    margin-bottom: 0 !important;
}

#cart-bottom .product_add_to_cart .product-quantity .input-group-btn-vertical .btn {
    padding: 0 !important;
}

#cart-bottom .product_add_to_cart {
    margin: 0;
}



@media(max-width:991px) {
    #cart-bottom .product_add_to_cart .product-quantity {
        gap: 0;
    }

    #cart-bottom .cart-product .cart-product-image {
        padding-left: 10px;
    }

    #cart-bottom .product_action .product_prices {
        justify-content: center;
    }

    #cart-bottom .product_action .t-price-iva {
        display: none;
    }

    #cart-bottom .cart-product>div.add {
        margin-top: var(--spaces-sm);
    }

    #cart-bottom .product-quantity .qty {
        display: none;
    }

    #cart-bottom .product-quantity .add {
        width: 100% !important;
        max-width: none !important;
    }

    #cart-bottom .add .add-to-cart {
        width: 100%;
        padding: 5px 10px;
        height: auto;
    }

    #product #footer.fixed {
        padding-bottom: 100px;
    }
}

@media(max-width:768px) {

    #cart-bottom .cart-product .cart-product-image img {
        display: none;
    }

    #cart-bottom .cart-product .cart-product-image p {
        font-size: 14px;
    }

    #cart-bottom .product_action .product-prices .show_discount>span {
        font-size: 16px;
    }

    #cart-bottom .product_action .product-prices .current-price,
    #cart-bottom .product_action .product-prices .show_discount {
        gap: 10px;
    }

    #cart-bottom .product-prices .product-price .current-price .show_discount .discount {
        font-size: 14px !important;
        padding: 5px 10px !important;
    }

    #cart-bottom .add .add-to-cart {
        font-size: 16px;
    }

    #cart-bottom .cart-product .cart-product-image {
        padding: 5px;
    }

    #product #footer.fixed {
        padding-bottom: 90px;
    }
}

@media(max-width:576px) {
    #cart-bottom .product_action .product-prices .show_discount {
        gap: 5px;
        justify-content: end;
    }
}