.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.out-of-stock-text {
    background: #ff0000;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}


.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}
.quantity-input button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.quantity-input button:hover {
    background-color: #f0f0f0;
}
.quantity-input input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 16px;
    -moz-appearance: textfield;
}
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


    #is_stok_available {
        font-size: 20px;
        color: #ff1a0d;
        
    }

    .button-loader {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 10px;
    }
   
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .btn-cart-single {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #f3f3f3;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .preloader {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 200px;
    }

    .no-image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 250px;
        background-color: #f8f8f8;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 20px;
        text-align: center;
        color: #888;
        font-size: 16px;
        font-weight: bold;
    }




    /* Zoom option */


    .zoom-container {
        position: relative;
    }

    .zoom-icon {
        position: absolute;
        top: 40rem;
        right: 10px;
        background:rgb(193, 193, 193);
        color: #fff;
        padding: 8px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
    }

    .zoom-container img {
        width: 100%; /* Ensures the image fits the container width */
        height: auto; /* Maintains the aspect ratio */
        object-fit: contain; /* Ensures the image is not stretched */
        transition: transform 0.4s ease-in-out;
    }

    .zoom-container img.zoomed {
        transform: scale(2);
        transform-origin: center center;
    }