.topbar {
    padding-bottom: clamp(10px, 2vw, 20px);
    gap: clamp(5px, 1vw, 10px);

    &__box {
        display: grid;
        gap: clamp(5px, 1vw, 10px);
    }

    .title-main {
        padding: clamp(5px, 1vw, 10px) 0;
        margin-bottom: 0;
    }

    p{
        padding: 10px 0;

        font-family: var(--font-family);
        font-weight: 400;
        font-size: clamp(14px, 2.267vw, 20px);
        line-height: 140%;
        letter-spacing: 0.01em;
        color: var(--colors-default);
    }
}

.breadcrumbs {
    &__list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    &__item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;

        &::after {
            display: block;
            content: '';
            width: 20px;
            height: 20px;
            position: relative;
            background-image: url(../img/icons/chevron-right.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        a {
            font-family: var(--font-family);
            font-weight: 400;
            font-size: 14px;
            line-height: 143%;
            color: var(--colors-primary);

            &:hover {
                text-decoration: underline;
            }
        }
    }

    .active {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        line-height: 143%;
        color: var(--colors-grey);
    }

    @include mobile {
        &__list{
            gap: 4px;
        }
        &__item{
            gap: 4px;

            &::after{
                width: 16px;
                height: 16px;
            }
        }
    }
}




.catalog-page {
    background: var(--colors-grey-light-2);
    padding-top: clamp(20px, 4vw, 40px);
    padding-bottom: clamp(60px, 17.333vw, 184px);
    padding-bottom: clamp(40px, 10.667vw, 100px);

    &__wrap {
        display: flex;
        gap: 20px;
    }

    &__main {
        width: 100%;
    }

    @include mobile {
        &__wrap{
            flex-direction: column;
        }
    }

}

.catalog-sidebar {
    background: var(--colors-white);
    min-width: 280px;
    max-width: 280px;
    padding: 24px;

    &__close{
        display: none;
    }

    &__form {
        display: grid;
        gap: 35px;
    }

    @include mobile {
        position: fixed;
        z-index: 60;
        left: -150vw;
        top: 0;
        overflow: scroll;  
        height: 100vh;
        min-width: 100vw;
        max-width: 100vw;
        transition: 0.33s;

        padding: 60px 15px 120px 15px;

        &__close{
            display: flex;
            position: absolute;
            top: 18px;
            right: 15px;
        }

        .mobile-sticky{
            width: 100%;
            position: fixed;
            bottom: 0;
            background-color: var(--colors-white);
            padding: 0;
            display: flex;
            justify-content: center;

            .btn-apply{
                position: relative;
                left: -15px;
            }
        }

        &.active{
            left: 0;
        }

    }

}

.mobile-topbar{
    display: none;
    @include mobile {
        display: flex;
    }
}

.btn-filters{
    display: flex;
    align-items: center;
    background-color: var(--colors-primary);
    width: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    gap: 10px;
    min-height: 40px;
    padding-left: 44px;
    background-image: url(../img/icons/filters.svg);
    background-position: center left 10px;
}


.filter-sorting {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


.radio-group-item {
    position: relative;

    input[type='radio'] {
        position: absolute;
        display: none;
        opacity: 0;
        pointer-events: none;
    }
    input[type='checkbox'] {
        position: absolute;
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .custom-radio-btn {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        line-height: 143%;
        letter-spacing: 0.01em;
        text-align: center;
        color: var(--colors-default);
        border: 1px solid #7f7f7f;
        padding: 9.5px 15px;
        display: flex;
        cursor: pointer;
        transition: 0.23s;

        &--red {
            color: var(--colors-accent);
            border-color: var(--colors-accent);
        }
    }

    // checkbox
    input[type='checkbox']:checked+.custom-radio-btn {
        background-color: var(--colors-primary);
        color: #fff;
        border-color: var(--colors-primary);
    }

    // radio
    input[type='radio']:checked+.custom-radio-btn {
        background-color: var(--colors-primary);
        color: #fff;
        border-color: var(--colors-primary);
    }

    input[type='radio']:checked+.custom-radio-btn--red {
        background-color: var(--colors-accent);
        color: #fff;
        border-color: var(--colors-accent);
    }

    .custom-radio-btn:hover {
        background-color: rgba(54, 142, 240, 0.1);
    }
}




.price-range {
    display: flex;
    gap: 20px;

    &__input {
        width: 100%;

        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        line-height: 143%;
        letter-spacing: 0.01em;
        color: --colors-default;
        background: var(--colors-white);
        border: 1px solid var(--colors-grey);
        padding: 12.5px 15px;

        &::placeholder {
            font-family: var(--font-family);
            font-weight: 400;
            font-size: 14px;
            line-height: 143%;
            letter-spacing: 0.01em;
            color: var(--colors-grey2);
        }
    }

}

.aside-mintitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    letter-spacing: 0.01em;
    color: var(--colors-default);
    display: inline-flex;
    margin-bottom: 10px;
}

.btn-fireplace {
    display: flex;
    align-items: center;
    background: var(--colors-primary);
    padding: 12px 20px;
    padding-right: 98px;
    background-image: url(../img/icons/Fireplace.svg);
    background-repeat: no-repeat;
    background-position: center right 20px;
    min-height: 84px;

    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.01em;
    color: var(--colors-white);
}



// 
// 
// 



.category-top-list{
    margin-bottom: 40px;
    
    @include mobile {
        display: none;
    }
}



.catalog-prodlist{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    @media (max-width: 1400px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @include tablet {
        grid-template-columns: repeat(2, 1fr);
    }

    @include mobile {
        gap: 12px;
    }
}