/* WooCommerce Product Filter Plugin Styles */

/* Ensure no conflict with other site styles */
.woo-filter-sidebar {
    display: flex;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .woo-filter-sidebar .product-display {
        width: 100% !important;
        padding: 0px !important;
    }

    .woo-filter-sidebar .product h4 {
        letter-spacing: 2px;
    }

    .woo-filter-sidebar #woo-pagination-bottom {
        justify-content: center;
        border: none;
        margin-top: 40px !important;
        margin-bottom: 20px;
    }

    .woo-filter-sidebar #woo-pagination-top ul {
        display: none;
    }

    .woo-filter-sidebar #woo-pagination-top {
        margin-top: 20px;
    }

    .woo-filter-sidebar #woo-pagination-bottom .results-text {
        display: none;
    }

    .woo-filter-sidebar #woo-pagination-top {
        margin-bottom: 0px;
    }
}

.woo-filter-sidebar .sidebar {
    width: 25%;
    padding: 15px;
    background-color:#efefef;
    border-radius: 10px;
    color: #000000;
    box-sizing: border-box;
}

#filter-toggle {
    background: white;
    border-radius: 10px;
    color: black;
    font-size: 20px;
    font-weight: 600;
    padding: 5px;
    text-align: center;
    border: none;
    width: 100% ;
    display: flex;

    justify-content: center !important;
}

@media screen and (max-width: 768px) {
    .woo-filter-sidebar .sidebar {
        width: 100%;
    }
}

.woo-filter-sidebar .sidebar h3,
.woo-filter-sidebar .sidebar span {
    margin-bottom: 10px;
    font-size:1.25em ;
}

.woo-filter-sidebar .sidebar span {
    border-bottom: 2px solid white;
}

.ourCollections {
    background: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
}

.ourCollections span {
    padding: 5px 10px;
    border-radius: 10px;
}

.ourCollections .collection-links {
    padding: 0px 5px;
}


.woo-filter-sidebar .sidebar form {
    display: flex;
    flex-direction: column;
}

.woo-filter-sidebar .sidebar form label {
    margin-bottom: 5px;
}

/* Product Display Section */
.woo-filter-sidebar .product-display {
    width: 75%;
    padding-left: 20px;
    box-sizing: border-box;
}

.woo-filter-sidebar .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    text-align: center;
}


.woo-filter-sidebar .product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.woo-filter-sidebar .product a {
    display: block;
    margin-bottom: 10px;
    /*height: 300px;*/
    position: relative;
}

.woo-filter-sidebar .product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.woo-filter-sidebar .product .product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.woo-filter-sidebar .product:hover .product-hover-image {
    opacity: 1;
}

.woo-filter-sidebar .product h4 {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 600;
}

.woo-filter-sidebar .product p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0px;
}



.product a:hover .product-main-image {
    opacity: 0;
}

.product a:hover .product-hover-image {
    opacity: 1 !important;
}

button.remove-from-cart,
button.add-to-cart {
    font-weight: 500;
    width: 100%;
    font-size: 16px;
    text-transform: capitalize;
    padding: 5px 0px;
}

button.remove-from-cart {
    background-color: red;
}

button.add-to-cart {
    background-color: black ;
    border-radius: 10px;
}

/* Pagination */
.woo-filter-sidebar .pagination {
    text-align: center;
    display: flex;
    border: 1px solid black;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    padding: 0px 10px;
}

.woo-filter-sidebar #woo-pagination-top {
    margin-bottom: 20px;
}

.woo-filter-sidebar #woo-pagination-bottom {
    margin-top: 20px;
}

p.results-text {
    margin: 10px 0px;
}

.woo-filter-sidebar .pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.woo-filter-sidebar .pagination li {
    display: inline;
    font-size: 14px;
}

.pagination ul li a,
.pagination ul li>span {
    padding: 8px 12px;
    background: #f4f4f4;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination ul li.active a,
.pagination ul li.active span {
    background-color: #BF9441;
    color: #fff;
    border-color: #BF9441;
    font-weight: bold;
    cursor: default;
}

.pagination ul li a:hover {
    border-color: #BF9441;
    color: #BF9441;
}




/*Product Image*/

.product-image-gallery {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
    margin-right: 15px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    padding: 10px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}


.thumbnails-container {
    position: relative;
}

.thumbnail {
    margin-bottom: 10px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.main-image {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
}

.main-image img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.4s ease-in-out;
}

/* Scroll arrows absolute positioning */
.scroll-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    /*color: white;*/
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 15px;
    z-index: 10;
}

.scroll-arrow.up {
    top: 5px;
}

.scroll-arrow.down {
    bottom: 5px;
}

.ourCollections {
    background: white;
    padding: 10px;
    border-radius: 10px;
}


.ourCollections .collection-links {
    padding: 0px 5px;
}

/* Responsive styling */
@media (max-width: 768px) {

    .woo-filter-sidebar .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .woo-filter-sidebar .product {
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        padding: 5px;
    }

    .gallery-thumbnails {
        width: 20%;
        justify-content: start;
    }

    .main-image {
        width: 80%;
    }

    .thumbnail img {
        height: 90px;
    }
}

#material-filters,
#gender-filters,
#color-filters {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px 12px;
}


@media (max-width: 768px) {

    #gender-filters,
    #material-filters,
    #color-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    #gender-filters label,
    #material-filters label,
    #color-filters label {
        display: flex;
        align-items: center;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 150px;
        margin: 0px;
        gap: 2px;
    }

    #woo_filter_sidebar_container #filter-toggle {
        background: white;
        color: #BF9441;
        padding: 10px;
        border-radius: 10px;
        margin: 0px;
        font-weight: 600;
        text-align: center;
    }

    .woo-filter-sidebar .sidebar {
        padding: 10px;
    }

    .woo-filter-sidebar .sidebar form {
        padding: 10px 10px 0px 10px;
        display: none;
        height: 250px;
        overflow: auto;
    }

    .woo-filter-sidebar .sidebar form h4 {
        margin-bottom: 5px !important;
        border-bottom: 2px solid white;
        padding-bottom: 5px;
        font-size: 16px;
    }

}

/* Loading Overlay Style */
#woo-products .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#woo-products.loading .loading-overlay {
    opacity: 1;
}