.search-cart{
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
}
.main-category{
    width: 100%;
    min-height: 550px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    color: white;
    padding: 60px;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr;
    &:before{
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #2c3345 0%, rgba(44, 51, 69, 0.11) 100%);
        pointer-events: none;
        z-index: 2;
    }
}
.main-category_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.main-category_title{
    max-width: 730px;
    font-weight: 500;
    font-size: clamp(26px, calc(15px + 2vw), 48px);
    z-index: 3;
    position: relative;
}
.main-category_txt{
    margin: 14px 0 0 0;
    max-width: 730px;
    font-size: clamp(14px, calc(10px + 1vw), 21px);
    z-index: 3;
    position: relative;
}
.load-categories{
    margin: 30px 0 0 0;
    width: 100%;
    font-weight: 400;
}
.load-categories-icon{
    --angle: 0deg;
}
.folder-block{
    margin: 30px 0 0 0;
}
.products{
    margin: 65px 0 0 0;
}
.category-list{
    margin: 30px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 30px;
}
:nth-child(6n + 3 of .category-card),
:nth-child(6n + 4 of .category-card){
    grid-area: auto / span 2
}
.container-left{
    display: grid;
    grid-template-columns: 100%;
    gap: 30px;
    align-content: flex-start;
}
.display-cond{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.filter-popup-btn{
    font-size: 18px;
    font-weight: 700;
    display: none;
    grid-template-columns: 20px 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid rgba(44, 51, 69, 0.1);
    border-radius: 10px;
    background: white;
    & :where(img, svg){
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}
.sort{
    min-width: 265px;
    .custom-dropdown_label{
        border-radius: 10px;
        border: 1px solid rgba(44, 51, 69, 0.1);
        font: 400 17px / normal 'Rubik', Arial, Helvetica, sans-serif;
        padding: 17.5px 30px 17.5px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        &:after{
            content: '';
            width: 5px;
            aspect-ratio: 1/1;
            border-right: 3px solid currentColor;
            border-bottom: 3px solid currentColor;
            transform: translate(0, -17%) rotate(45deg);
        }
    }
    .custom-dropdown_value-list{
        border-radius: 0 0 10px 10px;
        background: var(--black);
        padding: 0 0 10px 0;
    }
    .custom-dropdown_value-item{
        padding: 17.5px 30px 17.5px 30px;
        color: rgba(255, 255, 255, 0.4);
        &:hover{
            color: white;
        }
        &.active{
            color: white;
        }
    }
    .custom-dropdown_value-item:has(input:checked){
        color: white;
    }
}
.sort[open]{
    .custom-dropdown_label{
        color: white;
        border-radius: 10px 10px 0 0;
        background: var(--black);
        &:after{
            transform: translate(0, 17%) rotate(-135deg);
        }
    }
}
.product-list{
    margin: 30px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 30px;
    &.vertical {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    &.square{
        grid-template-columns: 1fr 1fr;
    }
    &.horizontal{
        grid-template-columns: 100%;
    }
}
.products_footer{
    margin: 30px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.edit-block{
    margin: 60px 0;
}

@media(max-width: 1024px){
    .main-category{
        padding: 20px;
        min-height: 280px;
        border-radius: 0;
    }
    .category-list{
        gap: 20px;
    }
    :nth-child(6n + 3 of .category-card),
    :nth-child(6n + 4 of .category-card){
        grid-area: auto;
    }
    .filter-popup-btn{
        display: grid;
    }
    .product-list{
        gap: 20px;
    }
    .products_footer{
        margin: 20px 0 0 0;
        flex-direction: column;
        align-items: center;
    }
    .categories-dropdown{
        display: none;
    }
}
@media (max-width: 800px) {
    .search-cart{
        grid-template-columns: 100%;
        .cart-btn{
            display: none;
        }
    }
    .main-category{
        width: calc(100% + var(--mobile-gap) * 2);
        margin: 0 0 0 calc(-1 * var(--mobile-gap));
    }
    .filter-popup-btn_txt{
        display: none;
    }
    .filter-popup-btn{
        grid-template-columns: 100%;
    }
}