/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.wpc-filters-main-wrap li.wpc-term-item input[type=checkbox], 
.wpc-filters-main-wrap li.wpc-term-item input[type=radio].wpc-filters-main-wrap li.wpc-term-item input[type=checkbox], 
.wpc-filters-main-wrap li.wpc-term-item input[type=radio].wpc-filters-main-wrap li.wpc-term-item input[type=checkbox], 
.wpc-filters-main-wrap li.wpc-term-item input[type=radio] {
    width: 35px;
}


.widget .wpc-term-count-0:not(.wpc-has-not-empty-children) a, 
.widget-area .widget .wpc-term-count-0:not(.wpc-has-not-empty-children) a, 
.widget-area .wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label, 
.widget-area .wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label span.wpc-filter-label-wrapper, 
.wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label, 
.wpc-filters-labels li.wpc-term-count-0:not(.wpc-has-not-empty-children) label span.wpc-filter-label-wrapper, 
.wpc-term-count-0:not(.wpc-has-not-empty-children), 
.wpc-term-count-0:not(.wpc-has-not-empty-children) a, 
body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) label, 
body .wpc-filters-main-wrap li.wpc-term-count-0:not(.wpc-has-not-empty-children) label a{
    display: none;
}


.whatsapp-button {
    position: fixed;
    bottom: 65px;
    left: 15px;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: none; /* Hidden by default */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
}

/* Show button only on mobile */
@media screen and (max-width: 767px) {
    .whatsapp-button {
        display: flex;
    }
}


/* loading images */

/* Container styling */
.woocommerce div.product div.images,
.woocommerce-product-gallery__wrapper {
    position: relative;
    min-height: 400px; /* Adjust based on your image size */
}

/* Spinner styling */
.woocommerce-product-gallery__wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db; /* Change color as needed */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Hide spinner when images are loaded */
.woocommerce-product-gallery__wrapper.images-loaded::before {
    display: none;
}

/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Initial image state */
.woocommerce-product-gallery__image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Loaded image state */
.woocommerce-product-gallery__image.is-loaded {
    opacity: 1;
}
