/* Floating Cart Button: Initially hidden */
.float-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    position: fixed;
    right: 20px;
    cursor: pointer;
    z-index: 5;
    background-color: #FBFCFF;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 16px;
    box-shadow: 0px 6.4px 44.8px 0px rgba(117, 116, 129, 0.48);
}

.float-cart-button svg {
    width: 24px;
    height: 24px;
    pointer-events: none !important;
}

.float-cart-button .badge {
    position: absolute;
    top: 0;
    right: 1px;
    border: 1.333px solid #FFF;
    background: #00CC83;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none !important; /* Ensure badge doesn't block clicks */
}

.close-btn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: #13131A;
    cursor: pointer;
    display: none; /* Hidden by default */
}
@media (min-width: 1392px) {
    .sticky_desktop{
        position: sticky;
        bottom: 0;
        background: white !important;
    }
}

/* Hide the store_sidebar on small screens */
@media (max-width: 1392px) {
    #storeSidebar {
        display: none; /* Hide sidebar */
    }

    .store_container.store_sidebar.show {
        width: 80%;
    }

    button#checkout_btn {
        width: 100% !important;
    }
  
    .float-cart-button {
        display: flex; /* Show floating cart button */
        cursor: pointer !important;
    }
    .store_container.col-12.col-sm-12.col-md-9.col-lg-9.p-0.p-sm-0.p-md-3.p-lg-4.order-1.order-lg-2 {
        width: 100% !important;
    }

    .close-btn {
        display: block; /* Show close button */
    }

}

@media (max-width: 991px) {
    .store_container.store_sidebar.show {
        width: 100% !important;
        height: 100%;
        padding: 0 !important;
    }
    .box-holder{
        height: 100% !important;
        border-radius: 0 !important;
    }
    .scroll_style {
        max-height: calc(100vh - 230px) !important;
        padding-bottom: 150px;
    }
}


@media (max-width: 768px) {
    .button_fixed_button {
        position: absolute;
        bottom: 0;
        width: 100%;
        background: #FBFCFF;
    }
    .checkout_section{
        padding: 20px !important;
    }
}

@media (max-width: 425px) {
    .float-cart-button {
        height: 45px !important;
        width: 45px !important;
    }
    .float-cart-button .badge {
        top: 0px !important;
        right: 2px !important;
        width: 17px !important;
        height: 17px !important;
        font-size: 10px !important;
    }
}


.overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 9998; /* Lower than the sidebar's z-index */
}
