.order-card {
    background: var(--svetlo-seryy);
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, 1fr);
    padding: 10px;
    gap: 10px;
}

.order-card__media {
    grid-area: 1 / 1 / 3 / 2;
    padding: 15px;
    height: 100%;
    box-shadow: inset 0 0 9px 0 rgba(224, 224, 224, 0.7);
    background: var(--belyy);
    min-width: 90px;
    aspect-ratio: 1/1;
}

.order-card__media img {
    max-width: 30px;
    margin: 0 auto;
}

.order-card__title {
    grid-area: 1 / 2 / 2 / 3;
    min-width: 0;
    font-weight: 500;
    font-size: clamp(15px, 2vw + 5px, 23px);
    line-height: 140%;
    color: var(--chernyy);
    overflow-x: hidden;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card__info {
    grid-area: 2 / 2 / 3 / 3;
    min-width: 0;
    display: flex;
    justify-content: space-between;
}

.order-card__info-count {
    align-self: end;
    white-space: nowrap;
}

.order-card__info-price {
    align-self: end;
}

.order-card__old-price {
    margin-bottom: 3px;
    font-weight: 400;
    font-size: clamp(11px, 2vw, 18px);
    line-height: 100%;
    text-decoration: line-through;
    color: var(--seryy);
    white-space: nowrap;
}

.order-card__current-price {
    font-weight: 500;
    font-size: clamp(15px, 12.86px + 0.36vw, 18px);
    line-height: 140%;
    color: var(--chernyy);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .order-card {
        display: grid;
        grid-template-columns: repeat(3, auto);
        grid-template-rows: 1fr;
        padding: 15px;
        gap: 15px;
    }

    .order-card__media {
        padding: 10px;
        min-width: 100px;
        grid-area: auto;
    }

    .order-card__media img {
        max-width: 40px;
    }

    .order-card__title {
        white-space: initial;
        grid-area: auto;
    }

    .order-card__info {
        gap: 15px;
        text-align: end;
        grid-area: auto;
    }

    .order-card__info-count {
        align-self: flex-start;
    }

    .order-card__info-price {
        align-self: flex-end;
        display: flex;
        flex-direction: column;
    }

    .order-card__old-price {
        margin-bottom: 0;
    }
}
@media (min-width: 1200px) {
    .order-card {
        grid-template-columns: 123px 1fr 200px;
        padding: 20px;
        gap: 20px;
    }

    .order-card__media {
        min-width: 123px;
    }
    .order-card__media img {
        max-width: 50px;
    }

    .order-card__info {
        gap: 20px;
    }
}
