.collections-block{
    padding-bottom: 140px;
}

.collections-block h4{
    margin-bottom: 60px;
}

.collections-block .collections-items{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.collections-block .search{
    gap: 40px;
}
.collections-block .search .search-block{
    margin-top: 24px;
}
.collections-block .collections-items .collection-item{
    aspect-ratio: 418 / 340;
    width: 100%;
    background-color: #EFEFF4;
    background-size: cover; 
    background-position: center; 
    border: 1px solid var(--very-light-grey);
    border-radius: 10px;
    position: relative;
   
}

.collections-block .collections-items .collection-item a{
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
}

.collections-block .collections-items .collection-item:hover svg rect{
    fill: var(--accent-2);
}

.collections-block .collections-items .collection-item svg{
    position: absolute;
    right: 16px;
    top: 16px;
}

.collections-block .title-2{
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 16px;
}

.collections-block .title-2:after{
    content: '';
    display: block;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    position: absolute;
    background: linear-gradient(90deg, #FF977B 0%, rgba(255, 151, 123, 0) 100%);
}



@media (max-width: 1919px) {
    .collections-block .collections-items{
        grid-template-columns: repeat(3, 1fr);
    }

    .collections-block h4 {
        margin-bottom: 40px;
    }

    .collections-block .collections-items button {
        margin-top: 32px;
    }


    .collections-block .title-2{
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .collections-block{
        padding-bottom: 100px;
    }
}

@media (max-width: 1439px) {


    .collections-block .collections-items button {
        margin-top: 28px;
    }


    .collections-block{
        padding-bottom: 80px;
    }

    .collections-block .title-2 {
        margin-top: 32px;
    }
}

@media (max-width: 1279px) {

    .collections-block h4 {
        margin-bottom: 32px;
    }
    .collections-block .collections-items .collection-item a{
        padding: 16px;
    }

    .collections-block .collections-items .collection-item svg {
        position: absolute;
        right: 10px;
        top: 10px;
        height: 28px;
        width: 28px;
    }


    .collections-block .title-2{
        margin-bottom: 40px;
    }

    .collections-block .collections-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .collections-block .collections-items {
        grid-template-columns: 1fr;
    }

    .collections-block .collections-items .collection-item{
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 120px;
    }

    .collections-block .collections-items .collection-item svg{
        display: none;
    }

    .collections-block .collections-items .collection-item a{
        justify-content: center;
    }

    .collections-block .title-2{
        margin-bottom: 24px;
        margin-top: 24px;
    }
 
    .collections-block {
        padding-bottom: 60px;
    }
}

@media (max-width: 579px) {
    .collections-block .collections-items .collection-item a p{
        max-width: 230px;
    }
}