/* Стили для ссылки-обертки */
.collection-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Стили для блока объекта из подборки */
.collection-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 415px;
    background: #F3F3F3;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    overflow: visible;
    /* border: 1px solid #3533310D; */
    position: relative;
    min-height: 160px;

}

.collection-item__img-wrap {
    width: 147px;
    min-width: 147px;
    max-width: 147px;
    height: auto;
    aspect-ratio: 4/3;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-item__content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

.collection-item__location-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.collection-item__location-icon {
    width: 10px;
    height: 13px;
    display: block;
}

.collection-item__location-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -3%;
    color: #888;
}

.collection-item__category {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    line-height: 85%;
    letter-spacing: -3%;
    color: #232A39;
    margin-bottom: 3px;
}

.collection-item__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.collection-item__price {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: -5%;
    color: #353331;
}

.collection-item__price-note {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -3%;
    color: #888;
    margin-top: 3px;
    text-align: left;
}

@media (max-width: 991px) {
    .collection-item {
        width: 415px;
        padding: 10px;
    }
    .collection-item__img-wrap {
        width: 147px;
        min-width: 147px;
        max-width: 147px;
    }
    .collection-item__location-text {
        font-size: 14px;
    }
    .collection-item__category {
        font-size: 24px;
    }
    .collection-item__price {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .collection-item {
        width: 300px;
        padding: 5px;
    }
    .collection-item__img-wrap {
        width: 125px;
        min-width: 125px;
        max-width: 125px;
    }
    .collection-item__location-text {
        font-size: 12px;
    }
    .collection-item__category {
        font-size: 16px;
    }
    .collection-item__price {
        font-size: 18px;
    }
}

/* Квадратик со стрелкой в правом нижнем углу */
.collection-item__arrow-btn {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 37px;
    height: 37px;
    background: #353331;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.collection-item__arrow-icon {
    width: 7px;
    height: 7px;
    display: block;
    filter: brightness(0) invert(1); /* Делаем стрелку белой */
}

.collection-item__wing-top {
    width: 10px;
    height: 10px;
    position: absolute;
    bottom: 33px;
    right: 0;
    z-index: 1;
}

.collection-item__wing-bottom {
    width: 10px;
    height: 10px;
    position: absolute;
    bottom: 23px;
    right: -2px;
    transform: rotate(270deg);
    z-index: 1;
}

.collection-item__wing-left {
    width: 10px;
    height: 10px;
    position: absolute;
    right: 33px;
    bottom: 0;
    z-index: 1;
}

.collection-item__wing-right {
    width: 10px;
    height: 10px;
    position: absolute;
    right: 23px;
    bottom: -2px;
    z-index: 1;
    transform: rotate(90deg);
}

.collection-item__wing-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Адаптив для квадратика */
@media (max-width: 575px) {
    .collection-item {
        min-height: 115px;
    }
    .collection-item__arrow-btn {
        width: 26px;
        height: 26px;
    }
    
    .collection-item__arrow-icon {
        width: 7px;
        height: 7px;
    }
    .collection-item__arrow-btn {
        width: 31px;
        height: 31px;
    }
    .collection-item__wing-right {
        right: 17px;
    }
    .collection-item__wing-left {
        right: 26px;
    }
    .collection-item__wing-top {
        bottom: 27px;
    }
    .collection-item__wing-bottom {
        bottom: 18px;
    }
} 