.list-item {
    width: 212px;
    float: left;
    margin: 10px;
    background-color: white;
    border-radius: 6px;
    position: relative;
}

.list-item > a.wrap {
    display: block;
    color: #073c5e;
    border: 1px solid #073c5e;
    border-radius: 5px;
    box-shadow: 0 7px 8px -8px rgba(0, 0, 0, 0.8);
}

.list-item.not-in-stock > a.wrap {
    filter: grayscale(1);
}

.list-item > a.wrap,
.list-item > a.wrap:hover,
.list-item > a.wrap:active {
    text-decoration: none;
    filter: grayscale(0);
}

/*noinspection CssOptimizeSimilarProperties*/
.list-item > a.wrap > .image {
    width: 100%;
    height: 198px;
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    filter: brightness(0.95);
}

.list-item > a.wrap > .name {
    padding: 0 10px;
    height: 64px;
    overflow: hidden;
    margin: 10px 0;
}

.list-item > a.wrap > .price {
    padding: 10px;
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    height: 64px;
}

.list-item > a.wrap > .quantity {
    padding: 5px 10px;
    text-align: right;
    font-weight: 800;
}

.list-item > a.wrap > .price .from-price {
    font-weight: 500;
    font-size: 14px;
    padding-left: 4px;
}

.list-item > a.wrap > .price > div:first-child {
    text-decoration: line-through;
    color: #ab2724;
}

.list-item > a.wrap > .price > div {
    height: 22px;
}

.list-item > a.wrap:hover {
    border-color: #12659a;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8);
}

.list-item > a.wrap:hover  > .image {
    filter: brightness(1);
}

.list-item > a.wrap:hover  > .name,
.list-item > a.wrap:hover  > .price {
    color: #12659a;
}

.list-item .discounted-product,
.list-item .in-stock {
    position: absolute;
    top: 0;
    width: 75px;
    height: 65px;
    padding: 3px 0;
    z-index: 3;
    color: #fbfbfb;
    font-weight: 600;
    text-transform: uppercase;
}

.list-item .discounted-product {
    left: 0;
    font-size: 14px;
    background-image: linear-gradient(140deg, #ab2724 48%, transparent 50%);
    border-top-left-radius: 4px;
}

.list-item .discounted-product > span {
    display: block;
    padding-top: 6px;
    padding-left: 8px;
    transform: rotate(-40deg);
    -webkit-transform: rotate(-40deg);
    -moz-transform: rotate(-40deg);
    -ms-transform: rotate(-40deg);
    -o-transform: rotate(-40deg);
}

.list-item .in-stock {
    right: 0;
    background-image: linear-gradient(220deg, #073c5e 48%, transparent 50%);
    border-top-right-radius: 4px;
    font-size: 12px;
}

.list-item.not-in-stock .in-stock {
    background-image: linear-gradient(220deg, #808080 48%, transparent 50%);
}

.list-item .in-stock > span {
    display: block;
    padding-top: 6px;
    padding-left: 22px;
    transform: rotate(40deg);
    -webkit-transform: rotate(40deg);
    -moz-transform: rotate(40deg);
    -ms-transform: rotate(40deg);
    -o-transform: rotate(40deg);
}