.wc-block-grid {
    @media screen and (min-width: 768px) {
        @for $i from 3 to 9 {
            &.has-#{$i}-columns .wc-block-grid__products .wc-block-grid__product {
                flex: 1 0 33.33%;
                max-width: 33.33%;
            }
        }
    }
    @media screen and (min-width: 992px) {
        @for $i from 2 to 9 {
            &.has-#{$i}-columns .wc-block-grid__products .wc-block-grid__product {
                flex: 1 0 calc(#{100% / $i});
                max-width: 100% / $i;
            }
        }
    }

    &.has-1-columns {
        .wc-block-grid__products {
            .wc-block-grid__product {
                flex: 1 0 100%;
                max-width: 100%;
                width: 100%;
            }
        }
    }

    &.alignfull {
        .wc-block-grid__products {
            margin: 0 15px;
        }
    }

    .wc-block-grid__products {
        margin: 0 -10px;

        .wc-block-grid__product {
            text-align: left;
            padding: 0 10px 26px;
            margin-bottom: 0;
            flex: 1 0 50%;
            max-width: 50%;

            .wc-block-grid__product-image {
                margin-bottom: 17px;

                a:hover {
                    opacity: 1;
                }

                img {
                    width: 100%;
                    height: auto;
                }
            }

            .wc-block-grid__product-title {
                font-weight: 400;
                font-size: 13px;
                line-height: 1.5;
                margin-bottom: 4px;
                transition: all .3s ease;
                a:hover {
                    opacity: 1;
                }
                &:hover {
                    opacity: .8;
                }
            }

            .wc-block-grid__product-price,
            .wc-block-grid__product-price__value {
                font-size: 13px;
                font-weight: bold;
                line-height: 1.5;
                margin-bottom: 4px;
                letter-spacing: 0;

                del {
                    opacity: 0.5;
                }

                ins {
                    background: none;
                    font-weight: 700;
                }
            }

            .wc-block-grid__product-rating {
                font-size: 10px;
                margin-bottom: 4px;
                line-height: 10px;
                .wc-block-grid__product-rating__stars {
                    margin: 0;
                }
                .star-rating {
                    overflow: hidden;
                    position: relative;
                    width: 5.3em;
                    height: 1.618em;
                    line-height: 1.618;
                    font-size: 1em;
                    font-family: star;
                    font-weight: 400;
                    display: -block;
                    margin: 0;
                    text-align: left;
                    &:before {
                        content: "\53\53\53\53\53";
                        top: 0;
                        left: 0;
                        right: 0;
                        position: absolute;
                        opacity: .5;
                        color: #aaa;
                    }
                    span {
                        overflow: hidden;
                        top: 0;
                        left: 0;
                        right: 0;
                        position: absolute;
                        padding-top: 1.5em;
                        &:before {
                            content: "\53\53\53\53\53";
                            top: 0;
                            left: 0;
                            right: 0;
                            position: absolute;
                        }
                    }
                }
            }

            .wc-block-grid__product-onsale {
                min-height: 0;
                min-width: 0;
                padding: 2px 8px 0;
                font-size: 0.6875rem;
                font-weight: bold;
                text-align: center;
                line-height: 1.5em;
                left: auto;
                margin: 0;
                border-radius: 0;
                position: absolute;
                top: 15px;
                left: 25px;
                right: auto;
                background: #93af76;
                text-shadow: none;
                color: #ffffff;
                box-shadow: none;
                text-transform: uppercase;
                border: 0;
            }

            .wc-block-grid__product-add-to-cart {

                .wp-block-button__link,
                .added_to_cart  {
                    font-size: 0.8125rem;
                    font-weight: 700;
                    background: none;
                    padding: 0;
                    position: relative;
                    transition: opacity 0.3s ease;
                    vertical-align: text-top;

                    &:hover {
                        opacity: .7;
                    }

                    &.loading {
                        &:after {
                            background: none !important;
                            content: "";
                            width: 18px !important;
                            height: 18px !important;
                            border-radius: 50% !important;
                            background-color: transparent !important;
                            border: 3px solid !important;
                            animation: loader-spin 0.8s infinite both !important;
                            z-index: 99;
                            opacity: 1;
                            position: absolute;
                            top: -1px;
                            right: -25px;
                        }
                    }

                    &.added {
                        &:after {
                            content: '';
                        }
                    }
                }

                .added_to_cart
                {
                    font-weight: bold;
                    text-transform: uppercase;
                }
            }
        }
    }

    .wc-block-sort-select__select {
        background-position: right -1.5rem center;
        background-color: transparent;
        border: 0;
        width: fit-content;
        text-transform: uppercase;
    }

    .wc-block-pagination {
        button {
            cursor: pointer;
            font-weight: 700;
            transition: all .3s ease;
        }
    }
}

.wp-block-woocommerce-attribute-filter,
.wp-block-woocommerce-active-filters,
.wp-block-woocommerce-price-filter {
    h3 {
        font-size: 13px;
        text-transform: uppercase;
    }
}
.wp-block-woocommerce-attribute-filter {
    ul.wc-block-checkbox-list {
        li {
            label {
                font-weight: normal;
                text-transform: none;
                transition: all .3s ease;
            }
            input[type="checkbox"] {
                width: 15px;
                &:before {
                    top: 1px;
                    left: 5px;
                }
                &:after {
                    border-width: 1px;
                    width: 15px;
                    height: 15px;
                }
            }
            input:checked + label {
                font-weight: bold;
            }
            &.show-more,
            &.show-less {
                button {
                    font-weight: bold;
                    margin-top: 15px;
                    text-decoration: none;
                    transition: all .3s ease;
                }
            }
        }
    }
}

.wp-block-woocommerce-active-filters {
    ul.wc-block-active-filters-list {
        li {
            padding: 0 0 0 25px;
            .wc-block-active-filters-list-item__type {
                font-size: 13px;
                font-weight: bold;
                text-transform: uppercase;
            }
            .wc-block-active-filters-list-item__name {
                font-size: 13px;
            }
        }
    }
    .wc-block-active-filters-list {
        button {
            left: 0;
            &:before {
                background: none;
                font-family: 'CNCStore-Icon-Font';
                content: "\e918";
                cursor: pointer;
                border: 0;
                display: inline-block;
                font-weight: normal;
                color: #fff;
                margin-right: 10px;
                font-size: 13px;
                line-height: 1;
                width: 15px;
                height: 15px;
                padding: 1px 2px 1px 2.5px;
                border-radius: 3px;
            }
        }
    }
    .wc-block-active-filters__clear-all {
        font-size: 13px;
        font-weight: bold;
        float: none;
        text-decoration: none;
        transition: all .3s ease;
    }
}

.wc-block-product-categories.is-list {
    ul {
        list-style: none;
        margin-left: 0;

        ul {
            margin-left: 20px;
        }
    }
}

.wc-block-featured-category {
    .wc-block-featured-category__description {
        max-width: 75%;
    }
}

.wc-block-featured-product {
    .wc-block-featured-product__description {
        max-width: 75%;
    }

    .wc-block-featured-product__price {
        .woocommerce-Price-amount {
            font-weight: 700;
        }
    }

    * {
        color: #fff;

        ins {
            background: none;
        }
    }
}

.wp-block-woocommerce-reviews-by-product,
.wp-block-woocommerce-all-reviews,
.wp-block-woocommerce-reviews-by-category
{
    .wc-block-review-list-item__image img
    {
        background: none;
        border: 0;
        margin: 0;
        line-height: 1;
        position: absolute;
        float: none;
        left: 0;
        top: -5px;
        width: 50px;
        height: 50px;
        padding: 0;
        overflow: hidden;
        border-radius: 70px;
    }

    .wc-block-review-list-item__author,
    .wc-block-review-list-item__published-date,
    .wc-block-review-list-item__product
    {
        font-size: .83em;
        color: #767676;
    }

    .wc-block-review-list-item__text__read_more
    {
        font-size: 10px;
        font-weight: bold;
        line-height: 1.4;
        text-transform: uppercase;

        &:hover
        {
            opacity: 1;
        }
    }

    .wc-block-load-more
    {
        span
        {
            font-weight: bold;
        }

        button
        {
            outline: 0;
            padding: 14px 24px 11px;
        }
    }

    .wc-block-review-list-item__product
    {
        a:hover
        {
            opacity: 1;
        }
    }

    .wc-block-review-list-item__author
    {
        font-weight: bold;
    }

    .wc-block-review-list-item__info
    {
        margin-bottom: 10px;
    }

    .wc-block-review-list-item__text
    {
        margin: 0 0 0 65px;
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    .wc-block-review-list-item__rating__stars
    {
        font-size: 10px;
        top: 3px;
    }


    .wc-block-order-select
    {
        text-align: left;

        .wc-block-order-select__label
        {
            display: none;
        }

        .wc-block-order-select__select
        {
            border: 0;
            background-color: transparent;
            background-position: top -3px right -20px;
            text-transform: uppercase;
            text-shadow: none;
            width: auto;
        }
    }
}

.wp-block-woocommerce-product-search
{
    .wc-block-product-search__fields
    {
        position: relative;
    }

    .wc-block-product-search__button
    {
        border: 0;
        position: absolute;
        right: 2px;
        top: 2px;

        &:hover
        {
            border: 0;
            background: transparent;
            box-shadow: none !important;
        }
    }
}
