.cart-card {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(3, auto);
    align-items: start;
    gap: 10px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.07);
    background: var(--belyy);
    padding: 15px;
    position: relative;
}

.cart-card__media {
    grid-area: 1 / 1 / 4 / 2;
    height: 100%;
    box-shadow: inset 0 0 13px 0 rgba(224, 224, 224, 0.7);
    background: var(--belyy);
    aspect-ratio: 1;
    width: 120px;
}

.cart-card--absenced .cart-card__media {
    opacity: 0.5;
}

.cart-card__media.card-slider {
    padding: 23px;
}

.cart-card__media .card-slider__view img {
    max-height: 172px;
}

.cart-card__info-price {
    grid-area: 1 / 2 / 2 / 3;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
}

.cart-card__old-price {
    font-weight: 700;
    font-size: 11px;
    font-size: clamp(11px, 7.571px + 1.071vw, 23px);
    line-height: 100%;
    text-decoration: line-through;
    color: var(--seryy);
}

.cart-card__current-price {
    font-weight: 700;
    font-size: clamp(16px, 12.8px + 1vw, 30px);
    line-height: 150%;
    color: var(--chernyy);
}

.cart-card__checker {
    position: absolute;
    right: 15px;
    top: 15px;
}

.cart-card__title {
    grid-area: 2 / 2 / 3 / 3;
    font-weight: 700;
    font-size: clamp(15px, 13.286px + 0.536vw, 18px);
    line-height: 140%;
    color: var(--chernyy);
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.cart-card__counter {
    grid-area: 3 / 2 / 4 / 3;
    display: flex;
    align-items: center;
    background: var(--svetlo-seryy);
    width: max-content;
    height: 37px;
    font-weight: 700;
    font-size: clamp(0.9375rem, 0.8839rem + 0.2679vw, 1.125rem);
    line-height: 140%;
    color: var(--chernyy);
}

.cart-card__count {
    width: 48px;
    height: 36px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    color: var(--chernyy);
    -moz-appearance: textfield;
}

.cart-card__count::-webkit-outer-spin-button,
.cart-card__count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-card__line-total {
    grid-column: 2 / 3;
    font-weight: 600;
    font-size: clamp(14px, 12px + 0.4vw, 18px);
    color: var(--chernyy);
}

.cart-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cart-card__btn {
    height: 100%;
    padding: 13px;
    font-size: 15px;
    line-height: 140%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.cart-card__count {
    padding-inline: 2px;
}

.cart-card__actions {
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.cart-card__actions-btn {
    width: 16px;
}

.cart-card__actions--menu {
    display: none;
}

.cart-card__rating-menu {
    display: none;
}

@media (min-width: 768px) {
    .cart-card {
        gap: 20px;
        grid-template-columns: 220px 1fr;
    }

    .cart-card__media {
        width: 100%;
    }

    .cart-card__counter {
        align-self: self-end;
        height: 51px;
        font-weight: 500;
    }

    .cart-card__btn {
        padding: 18px;
    }

    .cart-card__count {
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .cart-card {
        gap: 20px;
        padding: 20px;
        grid-template-rows: auto 1fr auto;
        column-gap: 20px;
        row-gap: 10px;
        max-width: 1163px;
    }

    .cart-card--absenced .cart-card__title {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cart-card--absenced .cart-card__title::before {
        content: "НЕТ В НАЛИЧИИ";
        font-family: var(--font-family);
        font-weight: 500;
        font-size: 18px;
        line-height: 140%;
        color: var(--seryy);
    }

    .cart-card__info-price {
        flex-direction: column;
        align-items: end;
        grid-area: 3 / 3 / 4 / 4;
        align-self: self-end;
    }

    .cart-card__old-price {
        font-weight: 400;
    }

    .cart-card__current-price {
        font-weight: 500;
        line-height: 117%;
    }

    .cart-card__checker {
        top: 20px;
        right: 20px;
        display: none;
    }

    .cart-card__actions--menu {
        display: flex;
        gap: 20px;
    }
    .cart-card__actions--points {
        display: none;
    }

    .cart-card__rating-menu {
        display: flex;
        align-items: center;
        gap: 5px;
        font-weight: 500;
        font-size: clamp(14px, 12.86px + 0.36vw, 18px);
        line-height: 140%;
    }

    .cart-card__reviews-count {
        display: flex;
        gap: 4px;
        color: var(--seryy);
    }

    .cart-card__rating-icon {
        width: 19px;
    }
    .cart-card__rating-menu {
        margin-bottom: 25px;
    }
    .cart-card__price {
        padding: 10px;
    }
    .cart-card__buy-button {
        width: 93px;
    }
    .cart-card__content {
        padding: 10px;
    }

    .cart-card__title {
        grid-area: 1 / 2 / 2 / 3;
        max-height: max-content;
    }
    .cart-card__counter {
        grid-area: 3 / 2 / 4 / 3;
        align-self: flex-end;
    }

    .cart-card__rating-menu {
        grid-area: 2 / 2 / 3 / 3;
    }

    .cart-card__actions {
        right: 20px;
        top: 20px;
        bottom: auto;
    }

    .cart-card__actions-btn {
        width: 25px;
        height: 25px;
    }
}

@media (min-width: 1400px) {
    .cart-card {
        grid-template-columns: 280px 1fr 1fr;
    }
}
