#sticky-purchase-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    background: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: 0.3s ease;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
}

#sticky-purchase-bar.active {
    transform: translateX(-50%) translateY(0);
}

/* Loader styling  */
.sticky-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.sticky-loader::after {
    content: "";
    width: 25px;
    height: 25px;
    border: 3px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

#sticky-purchase-bar.loading .sticky-loader {
    display: flex;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 1024px) {
    #sticky-purchase-bar {
        left: 0;
        transform: translateX(0) translateY(100%);
        max-width: 100%;
        width: 100%;
        padding: 10px 15px;
    }

    #sticky-purchase-bar.active {
        transform: translateX(0) translateY(0);
    }
}

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

    .sticky-product-name,
    .sticky-product-price .price-container .price {
        font-size: 1.6rem !important;
    }

    .sticky-left {
        gap:15px !important;
    }

    .sticky-product-name{
        max-width: 160px;
    }

    #sticky-purchase-bar{
        padding: 10px 5px;
    }

    .sticky-right .action.primary{
        font-size: 16px;
        padding: 10px 10px 10px;
    }
}

.sticky-left {
    align-items: anchor-center;
    display: flex;
    gap: 40px;
}

.sticky-product-name,
.sticky-product-price .price-container .price {
    font-size: 3.2rem;
    font-weight: 600;
    font-family: 'Roboto Slab';
    color: #b22a31;
}

.sticky-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.sticky-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
}

.sticky-qty input {
    width: 40px;
    text-align: center;
    border: none;
}

.sticky-addtocart {
    background: rgb(24, 41, 87) !important;
    border-color: rgb(24, 41, 87) !important;
}