.ys-catalog-card._mobile {
    display: none;
}

@media screen and (max-width: 600px) {
    .filter-panel + .inner_wrapper .ys-catalog-card {
        display: none;
    }

    .filter-panel + .inner_wrapper .ys-catalog-card._mobile {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    #main .grid-list.ys-catalog-items {
        display: grid;
        gap: 2px;
        grid-template-columns: repeat(2, 1fr);
        transform: translateX(-16px);
        width: 100vw;
    }

    .ys-catalog-card-images {
        display: flex;
        flex-direction: column;
        gap: 3px;
        position: relative;
    }

    .ys-catalog-card-images-slider {
        max-width: 100%;
        max-width: calc((100vw - 2px) / 2);
        border-radius: 20px;
        height: 250px;
        z-index: 1;
        position: relative;
    }

    .ys-catalog-card-images-slider img,
    .ys-catalog-card-images-slider video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ys-catalog-card-price {
        display: flex;
        gap: 5px;
        align-items: center;
        padding-inline: 5px;
    }

    .ys-catalog-card-price-main {
        font-size: 18px;
        font-weight: 700;
        line-height: 17px;
        color: #333;
    }

    .ys-catalog-card-price-main._sale {
        color: #dc2f2f;
    }

    .ys-catalog-card-price-old {
        font-size: 12px;
        line-height: 11px;
        text-decoration: line-through;
    }

    .ys-catalog-card-name {
        padding-inline: 5px;
        font-size: 14px;
        line-height: 14px;
        text-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc((100vw - 12px) / 2);
        color: #333;
    }

    .ys-catalog-card-images-pagination {
        display: flex;
        gap: 3px;
        justify-content: center;
        align-items: center;
        transition: 0.2s;
    }

    .ys-catalog-card-images-pagination-item {
        height: 4px;
        width: 4px;
        min-width: 4px;
        background-color: rgba(136, 136, 136, 0.5);
        border-radius: 50%;
        transition: 0.2s;
    }

    .ys-catalog-card-images-pagination-item._current {
        background-color: #dc2f2f;
    }

    .ys-catalog-card-images-pagination-item._small {
        height: 2px;
        width: 2px;
        min-width: 2px;
    }

    .ys-catalog-card-images-tags {
        position: absolute;
        bottom: 0px;
        z-index: 2;
        font-size: 12px;
        line-height: 12px;
        pointer-events: none;
    }

    .ys-catalog-card-images-tags-item:not(._img) {
        padding: 2px 5px 2px 18px;
        background-color: #222;
        width: max-content;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        color: #fff;
    }

    .ys-catalog-card-images-tags-item._img {
        height: 16px;
    }

    .ys-catalog-card-images-tags-item._img > img {
        height: 16px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .ys-catalog-card-images-tags-item._sale {
        background-color: #f44;
    }

    .ys-catalog-card-images-tags-item._recommend {
        background-color: #96f;
    }

    .ys-catalog-card-images-tags-item._stock {
        background-color: #fc6;
        color: #333;
    }

    .ys-catalog-card-images-tags-item._new {
        background-color: #3c6;
    }

    .ys-catalog-card-images-tags-item._hit {
        background-color: #f66;
    }

    .ys-catalog-card-images-cart {
        position: absolute;
        z-index: 2;
        bottom: -5px;
        right: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 45px;
        width: 45px;
        border-radius: 15px;
        background-color: #dc2f2f;
        border: 2px solid #fff;
        transition: 0.2s;
    }

    .ys-catalog-card-images-cart p {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(50%, -50%);
        border-radius: 50%;
        font-size: 10px;
        line-height: normal;
        padding: 1px;
        aspect-ratio: 1;
        height: 15px;
        min-height: 15px;
        max-height: 15px;
        width: 15px;
        min-width: 15px;
        max-width: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        transition: 0.2s;
        background-color: #dc2f2f;
        opacity: 0;
    }

    .ys-catalog-card-images-cart svg {
        transition: 0.2s;
    }

    .ys-catalog-card-images-cart._added {
        background: #ffd3d3;
    }

    .ys-catalog-card-images-cart._added svg {
        fill: #dc2f2f;
    }

    .ys-catalog-card-images-cart._added p {
        opacity: 1;
    }

    .ys-catalog-card-images-fav {
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 2;
    }

    .ys-catalog-card-images-fav path:first-child {
        fill: #fff;
        transition: 0.2s;
    }

    .ys-catalog-card-images-fav._active path:first-child {
        fill: #f00;
    }
}

@media screen and (max-width: 450px) {
    #main .grid-list.ys-catalog-items {
        display: grid;
        gap: 2px;
        grid-template-columns: repeat(2, 1fr);
        transform: translateX(-16px);
        width: 100vw;
    }
}
