/*
Theme Name:   BelarX
Theme URI:    https://yoursite.com
Description:  BelarX — самописная child theme на базе Electro. Новый функционал пишется здесь, постепенно заменяя родительскую тему.
Author:       Your Name
Template:     belar
Version:      1.0.0
Text Domain:  belar
*/

/* ─────────────────────────────────────────
   Свои стили пишем ниже.
   Electro стили загружаются автоматически.
───────────────────────────────────────── */

/* ─── Ajax filter style ──────────────────────────────────────────────────────────────── */
 .belarx-filter-count {
    display: inline-block;
    background: #6b3fa0;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    margin-left: 6px;
}

.belarx-filter-arrow {
    float: right;
    font-size: 14px;
}

.yith-woocommerce-ajax-product-filter .widget-title {
    display: flex;
    align-items: center;
    font-family: 'Montserrat Medium', sans-serif;
    position: relative;
    padding: 10px 34px 10px 0;
    min-height: 60px;
    cursor: pointer;
    border-bottom: 1px solid #DADADA;
    margin-bottom: 0;
}

.belarx-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c8a96e; /* под твой акцентный цвет */
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    margin-left: 8px;
    flex-shrink: 0;
}

.belarx-filter-arrow {
    margin-left: auto;
    font-size: 14px;
    color: grey;
}

.sidebar .widget-title + ul {
    margin-left: 20px;
}

.yith-woocommerce-ajax-product-filter .widget-title {
    padding: 12px 14px;
}

.sidebar-blog .widget-title, .sidebar>.widget>.widget-title {
    margin-bottom: 0px;
}

#sidebar aside,
#sidebar .widget-title {
    margin-bottom: 0px;
}

.sidebar .widget-title + ul,
.sidebar .menu {
    margin-bottom: 10px;
}


.sidebar .widget-title:after, .sidebar-blog .widget-title:after {
    bottom: 2px;
    margin: 0 auto;
    width: 100%;
}

.woocommerce.widget_layered_nav li a:before {
    width: 20px!important;
    height: 20px!important;
}

.yith-woocommerce-ajax-product-filter ul:not(.yith-wcan-color) li>span::before {
    content: ""!important;
    width: 20px!important;
    height: 20px!important;
    border: 1px solid #333e48;
    border-radius: 4px;
}

.yith-wcan-list .chosen > a:before {
    color: none !important;
    content: "" !important;
}

.yith-wcan {
    text-align: center;
}

.yith-wcan li {
    text-align: left;
}

.yith-wcan-reset-navigation, .yith-wcan-reset-navigation:hover {
    background: none;
    text-decoration: underline;
    color: white;
}

/*.yith-wcan-list .chosen > a:before {*/
/*    display: none!important;*/
/*}*/
.woocommerce.widget_layered_nav .chosen a:before {
    background-size: 15px!important;
}







@media (min-width: 1200px) {
    .belar-brands__swiper .swiper-wrapper {
        display: flex;
        justify-content: space-between;
        transform: none !important;
    }

    .belar-brands__swiper .swiper-slide {
        width: calc((100% - (16px * 6)) / 7) !important;
        margin-right: 16px !important;
    }
    
    .belar-brands__swiper .swiper-slide:last-child {
        margin-right: 0 !important;
    }
    
    .belar-benefits__swiper .swiper-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        transform: none !important;
    }

    /* Тут деление на 5 оправдано */
    .belar-benefits__swiper .swiper-slide {
        width: calc((100% - (16px * 4)) / 5) !important;
        max-width: calc((100% - (16px * 4)) / 5) !important;
        flex-shrink: 0 !important;
        margin-right: 16px !important;
    }
    
    .belar-benefits__swiper .swiper-slide:last-child {
        margin-right: 0 !important;
    }
}


.woocommerce .widget_layered_nav ul.yith-wcan li span, .woocommerce-page .widget_layered_nav ul.yith-wcan li span {
    display: none;
}
