:root {
    /* --adblock-size-x: 306px; */
    --adblock-size-x: 268px;
    --layeredNav-size-x: 195.6px;
}

/* Layout seperation */
#main .mbw-ad-block {
    padding: 10px;
}

@media only screen and (min-width: 1025px) {
    #main {
        display: grid;
        grid-template-columns: 
            calc(100% - var(--adblock-size-x)) 
            var(--adblock-size-x);
    }

    .mbw-listing-content {
        display: grid;
        grid-template-columns: 
            var(--layeredNav-size-x)
            calc(100% - var(--layeredNav-size-x));
        align-items: start;
    }
}

@media only screen and (max-width: 1024px) {
    #main .mbw-ad-block {
        margin-bottom: 20px;
    }
}

.woocommerce-products-header__title {
    display: none;
}


/*Advance filter style*/
 .layered-navigation-wrapper fieldset {
    all: unset;
}

.layered-navigation-wrapper {
    padding: 10px;
    color: #000;
}

.layered-navigation-wrapper .sidebar-title {
    padding: 4px 6px;
    font-size: 22px;
    font-weight: 600;
    line-height: 21.78px;
    text-align: left;
    margin: 0;
}

.layered-navigation-wrapper .block {
    margin-top: 15px;
}

.layered-navigation-wrapper .block .block-title-wrapper svg {
    transition: all 0.3s;
}

.layered-navigation-wrapper .block.active .block-title-wrapper svg {
    transform: rotate(180deg);
}

.layered-navigation-wrapper .block-title-wrapper {
    border: 0;
    background-color: transparent;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 6px;
    color: #000;

    &:hover,
    &:focus {
        background-color: inherit;
        color: inherit;
        
    }
}

.layered-navigation-wrapper .block-title-wrapper .block-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 16.94px;
    text-align: left;
}

.layered-navigation-wrapper .block.active .block-title-wrapper svg {
    transform: rotate(180deg);
}

.layered-navigation-wrapper .search-input {
    width: 100%;
    display: block;
    padding: 10px 15px 10px 35px;
    background: #F2F2F2;
    border: 0;
    border-radius: 25px;
}

.layered-navigation-wrapper .search-input::placeholder {
    color: #000;
    font-size: 12px;
}

.layered-navigation-wrapper .search-wrapper {
    position: relative;
}

.layered-navigation-wrapper .search-wrapper .search-icon {
    position: absolute;
    top: 18px;
    left: 17px;
}

.layered-navigation-wrapper .block .block-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s linear;
}

.layered-navigation-wrapper .block.active .block-content {
    max-height: 300px;
}

.layered-navigation-wrapper .block-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 242px;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.layered-navigation-wrapper .block-list .item {
    display: flex;
    align-items: center;
    column-gap: 5px;
}

.layered-navigation-wrapper .block-list .item .link {
    font-size: 17px;
    font-weight: 500;
    line-height: 16.94px;
    text-align: left;
    display: block;
    color: #000;
    text-decoration: none;
}

.layered-navigation-wrapper .block-list input[type="checkbox"] {
    margin: 0;
    width: 17px;
    height: 17px;
    border-radius: 3px;
}

.layered-navigation-wrapper .block-list .item,
.layered-navigation-wrapper .block-content .input-wrapper {
    padding: 4px 6px;
    margin-top: 10px;
}

/* Products section */
.woocommerce .mbw-listing-loop {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 15px;
    row-gap: 15px;
}

.woocommerce .mbw-listing-loop .woocommerce-result-count {
    font-size: 17px;
    color: #000;
    margin-bottom: 0;
}

.woocommerce .mbw-listing-loop form.woocommerce-ordering {
    margin-bottom: 0;
}

.woocommerce .mbw-listing-loop form.woocommerce-ordering select.orderby {
    border: 0;
    background: inherit;
    padding: 10px 5px;
    font-size: 13px;
}

.woocommerce-page .content-area main#main.site-main {
    margin-bottom: 65px;
}

.woocommerce-page main#main.site-main ul.products {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 20px;

    &::after,
    &::before {
        content: unset;
    }
}

.woocommerce-page main#main.site-main ul.products .product {
    width: initial;
    margin: initial;
    float: initial;
}

.woocommerce-page .product .attachment-woocommerce_thumbnail{
    background-color: #F4F4F4;
    margin: 0 auto !important;
    text-align: center;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    min-height: 205px;
    max-height: 205px;
    min-width: initial;
    display: grid !important;
    place-items: center;
    padding: 5px;
    object-fit: contain;
}

.woocommerce-page .product .woocommerce-loop-product__title {
    max-width: calc(100% - 65px);
    padding: 0 !important;
    margin: 5px 0 !important;
    font-size: 15px !important;
    color: #000;
    font-weight: 600;
    font-family: var(--primary-font);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.woocommerce-page .product span.price {
    display: flex !important;
    gap: 14px;
    font-family: var(--primary-font);
    padding-top: 10px;
    margin-bottom: 0 !important;
    color: initial !important;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.woocommerce-page .product span.price ins {
    text-decoration: none;
}

.woocommerce-page .product span.price bdi {
    color: #000;
    font-weight: 500;
}

.woocommerce-page .product span.price ins bdi {
    color: #FF1E1E;
}

.woocommerce-page .product span.price del {
    opacity: initial !important;
}