.product-container {
    @media( max-width : 400px ) {
        --bs-gutter-x: 0;
    }
}

/*Load More and Pagination*/

.facetwp-facet-load_more{
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.facetwp-pagination-progress {
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    background-color: #E5E5E5;
    height: 10px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar-inner {
    background-color: var( --color-blue-01 );
    height: 100%;
    width: 0;
    transition: width 0.3s ease-in-out;
}

.pagination-progress-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.facetwp-toggle {
    font-weight: 400;
    font-size: 14px;
    color: var( --color-red );
    padding-right: 15px;
    position: relative;
    background: none;
    display: flex;
    gap: 5px;
    text-transform: capitalize;

    &:hover {
        background: none!important;
        color: var( --color-red )!important;
    }

    &::after {
        content: "\e902" !important;
        font-family: 'gloveamerica' !important;
        font-size: 12px;
        position: relative;
        top: 2px;
    }
}

.facetwp-facet.is-active .facetwp-toggle::after{
    content: "\e904"!important;
}

/* Color Facet */

div.facetwp-color{
    margin: 0 10px 0 0 !important;
    border-radius: 9999px;
    border: 2px solid #cecccb;
    width: 17px;
    height: 17px;

    &::after{
        content: '';
        position: absolute;
        width: 100px;
        top: 0;
        left: 0;
        height: 27px;
    }
}

div.facetwp-color[data-value="clear"]{
    background-image: url(/wp-content/themes/gloveamerica/assets/img/icons/clear-icon.png);
    background-size: cover;
}

.color-wrap {
    display:flex;
    margin-bottom:10px;
    align-items: center;
    position: relative;
}

.facetwp-color.checked{
    border: 2px solid var( --color-blue );
}

.facetwp-color.checked + .color-name{
    font-weight: bold;
    color: var( --color-blue );
}

.facetwp-color.checked::after{
    display:none;
}

/* Checkbox Facet */

.facetwp-checkbox{
    background: unset !important;
    padding-left: 0 !important
}

.facetwp-checkbox.checked{
    background-image: unset !important;
    font-weight: bold;
    color: var( --color-blue );
}

/* Shop */

.product-shop {
    & p {
        color: var( --color-white );
    }
}

.product-listing-archive {
    @media( max-width : 1199px ) {
        padding-top: 0;
    }

    & div#primary {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.product-sidebar {
    padding: 25px 30px;
    background-color: var( --color-dark-gray );

    & h3 {
        font-size: 22px;

        &.facet-label {
            font-size: 18px;
            margin-bottom: 0;
            padding-bottom: 13px;
            border-bottom: 1px solid var( --color-gray-01 );
        }
    }

    & .facetwp-facet {
        margin-top: 5px;
        margin-bottom: 20px;
    }
}

.product-selected-container {
    padding: 17px 20px;
    border: 1px solid var( --color-gray-01 );
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.woocommerce-breadcrumb {
    display: none;
}

.woocommerce-ordering {
    margin-bottom: 0!important;
    display: none;

    @media( min-width : 1199px ) {
        display: block;
    }

    & .choices__list  {
        font-size: 16px;
    }
}

.woocommerce-ordering div.choices__inner {
    border: transparent;
    padding: 0 26px 0 0 !important;
    height: auto;
}

.woocommerce-product-header-bottom {
    display: flex;
    padding-top: 20px;

    @media( min-width : 1200px ) {
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    & .facetwp-facet {
        margin-bottom: 0;
        font-size: 16px;
        display: flex;
        align-items: center;
    }
}

.woocommerce-product-header-bottom .facetwp-facet-product_sort {
    @media( max-width : 1199px ) {
        display: none;
    }
}

.woocommerce-product-header-bottom .facetwp-facet-product_sort .choices__inner {
    font-size: 16px;
    border-bottom: transparent;
}

.woocommerce-product-header-bottom .choices__list--single .choices__item {
    position: relative;
    top: 7px;
    text-transform: capitalize;
}

.woocommerce-product-header-bottom .choices__list--dropdown .choices__item {
    font-size: 16px;
}

.woocommerce-product-header-bottom .choices {
    margin-bottom: 0;
}


.woocommerce-product-header-bottom .woocommerce-notices-wrapper {
    display: none;
}

.facetwp-pagination-progress {
    max-width: 250px;
    width: 100%;
    margin: 0 auto;
}

.facet-load-more {
    margin-top: 54px;
}

.facetwp-load-more  {
    position: relative;
    display: table;
    color: var( --color-white );
    border-radius: 0;
    font-size: 17px;
    line-height: 1.24em;
    font-weight: 400;
    padding: 12px 20px;
    vertical-align: middle;
    text-decoration: none;  
    background: var(--color-red); 
    transition: all ease-in-out 0.3s;
    border: 2px solid transparent;

    @media( min-width : 1000px ) {
        display: inline-block;
    }
}

/* Product Card Rating Styles */
.products-card__rating {
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 10px;
}

.star-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.review-count {
    font-size: 14px;
    color: #666;
}

/* Review Slider Styles */
.review-slider-container {
    position: relative;
    margin-top: 15px;
}

.review-slider {
    overflow: hidden;
    position: relative;
    min-height: 80px; /* Minimum height to prevent collapse */
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--color-blue-01, #0066cc);
    transition: opacity 0.3s ease-in-out;
    box-sizing: border-box;
}

.review-slide.active {
    opacity: 1;
    position: relative;
}

.review-content {
    text-align: left;
}

.review-stars {
    margin-bottom: 8px;
}

.review-stars .star-rating {
    font-size: 14px;
}

.review-text {
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
    color: #333;
    font-style: italic;
}

.review-author {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: right;
}

/* Review Slider Navigation */
.review-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    gap: 10px;
}

.review-prev,
.review-next {
    background: var(--color-blue-01, #0066cc);
    color: white;
    border: none;
    width: 50px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.review-prev:hover,
.review-next:hover {
    background: var(--color-blue-02, #0052a3);
    transform: scale(1.1);
}

.review-prev:disabled,
.review-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Animation for slider transitions - handled by the .review-slide transition */

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-card__rating {
        padding: 10px 0;
    }
    
    .review-slide {
        padding: 10px;
    }
    
    .review-text {
        font-size: 12px;
    }
    
    .review-author {
        font-size: 11px;
    }
}