.v-catalog {
    align-items: stretch;
}

.v-catalog > .v-catalog-item,
.v-catalog-slider-wrapper .swiper-slide > .v-catalog-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    position: relative;
}

.v-catalog-slider-wrapper .swiper-slide {
    display: flex;
    height: auto;
}

.v-catalog-item__link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.v-catalog-item__link:hover,
.v-catalog-item__link:focus,
.v-catalog-item__link:hover *,
.v-catalog-item__link:focus * {
    color: inherit;
    text-decoration: none;
}

.v-catalog-item__link.is-loading {
    pointer-events: none;
}

.v-catalog-item__name.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.v-catalog-item .photo {
    flex-shrink: 0;
    width: 100%;
}

.v-catalog-item .photo img {
    display: block;
    width: 100%;
    height: auto;
}

.v-catalog-item__detail-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.75em;
    align-self: flex-start;
}

.v-catalog-item .v-request-btn {
    flex-shrink: 0;
    margin-top: 0.75em;
}

.v-catalog-item .category,
.v-catalog-item .brand,
.v-catalog-item .article {
    flex-shrink: 0;
}

.v-catalog-item .price {
    margin-top: auto;
}

.v-catalog-item .price--approx {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.v-catalog-item .price--api {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75em;
}

.v-catalog-item .price--api .v-catalog-item__price-value {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
}

.v-catalog-item__price-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    flex-shrink: 0;
    margin-left: auto;
    color: #16a34a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.v-catalog-item__price-stock::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

.v-catalog-item__price-from {
    flex-shrink: 0;
}

.v-catalog-item__price-value {
    flex-shrink: 0;
}

.v-catalog-item__price-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.v-catalog-item__price-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    cursor: help;
}

.v-catalog-item__price-info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 5;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #374151;
    color: #fff!important;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    transform: translateX(-50%);
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.v-catalog-item__price-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #374151;
}

.v-catalog-item__price-info:hover .v-catalog-item__price-info-tooltip,
.v-catalog-item__price-info:focus .v-catalog-item__price-info-tooltip,
.v-catalog-item__price-info:focus-within .v-catalog-item__price-info-tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 576px) {
    .v-catalog-item .price--api {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 0.25em;
    }

    .v-catalog-item .price--api .v-catalog-item__price-value {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .v-catalog-item__price-stock {
        margin-left: 0;
        align-self: flex-start;
        text-align: left;
        font-size: 12px;
    }

    .v-catalog-item .price--approx {
        flex-wrap: wrap;
        row-gap: 0.25em;
    }

    .v-catalog-item .price--approx .v-catalog-item__price-value {
        min-width: 0;
        flex: 1 1 auto;
    }
}
