﻿/*https://designmodo.com/shopping-cart-ui/*/

.cart-body {
    width: 100%;
    height: 100%;
    padding-bottom: 10px;
    min-height: 600px;
    margin: 0;
    background-color: #c8cccf;
    font-family: 'Roboto', sans-serif;
}

.cart-body-command {
    width: 800px;
    height: auto;
    min-height: 300px;
    padding: 10px;
    padding-bottom: 10px;
    background-color: #c8cccf;
     font-family: 'Roboto', sans-serif;
}

.shopping-cart {
    width: 750px;
    margin: auto;
    margin-bottom: 10px;
    background: #FFFFFF;
    box-shadow: 1px 2px 3px 0px rgba(0,0,0,0.10);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.title {
    height: 60px;
    border-bottom: 1px solid #E1E8EE;
    padding: 20px 30px;
    color: #5E6977;
    font-size: 18px;
    font-weight: 400;
}

.item {
    padding: 20px 30px;
    height: 120px;
    display: flex;
}

    .item:nth-child(3) {
        border-top: 1px solid #E1E8EE;
        border-bottom: 1px solid #E1E8EE;
    }

.buttons {
    position: relative;
    padding-top: 30px;
    margin-right: 30px;
}

.delete-btn,
.like-btn {
    display: inline-block;
    Cursor: pointer;
}

.delete-btn {
    width: 32px;
    height: 32px;
    background-image: url("../img/delete-icon.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.like-btn {
    width: 32px;
    height: 32px;
    background-image: url("../img/hearth-icon.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.is-active {
    animation-name: animate;
    animation-duration: .8s;
    animation-iteration-count: 1;
    animation-timing-function: steps(28);
    animation-fill-mode: forwards;
}

@keyframes animate {
    0% {
        background-position: left;
    }

    50% {
        background-position: right;
    }

    100% {
        background-position: right;
    }
}

.image {
    height: 78px;
    width: 78px;
    margin-right: 50px;
}

    .image img {
        height: 100%;
        width: 100%;
    }

.description {
    padding-top: 10px;
    margin-right: 60px;
    width: 715px;
}

    .description span {
        display: block;
        font-size: 14px;
        color: #43484D;
        font-weight: 400;
    }

        .description span:first-child {
            margin-bottom: 5px;
        }

        .description span:last-child {
            font-weight: 300;
            margin-top: 8px;
            color: #86939E;
        }

.quantity {
    padding-top: 20px;
    margin-right: 60px;
}

    .quantity input {
        -webkit-appearance: none;
        border: none;
        text-align: center;
        width: 32px;
        font-size: 16px;
        color: #43484D;
        font-weight: 300;
    }

.cart-button {
    width: 30px;
    height: 30px;
    background-color: #E1E8EE;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.minus-btn img {
    margin-bottom: 3px;
}

.plus-btn img {
    margin-top: 2px;
}

button:focus,
input:focus {
    outline: 0;
}

.price {
    width: 83px;
    padding-top: 27px;
    text-align: center;
    font-size: 16px;
    color: #43484D;
    font-weight: 300;
}

@media (max-width: 800px) {
    .shopping-cart {
        width: 100%;
        height: auto;
        overflow: hidden;
    }

    .item {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .image,
    .quantity,
    .description {
        width: 100%;
        text-align: center;
        margin: 6px 0;
    }

    .buttons {
        margin-right: 20px;
    }
}
