.products-table{
    display: grid;
    grid-template-columns: auto auto auto;
}
.fa-shopping-cart {
    position: absolute;
    right: 2rem;
    top: 1.2rem;
    color: black;
}
.fa-shopping-cart:hover {
    color: white;
}
.total-qty {
    position: absolute;
    height: 1rem;
    width: 1rem;
    background: white;
    color: black;
    border-radius: 50%;
    border: 1px solid white;
    text-align: center;
    line-height: 1rem;
    font-weight: 600;
    top: 1rem;
    right: 1.5rem;
    user-select: none;
}

.details .purchase .add-btn {
    border-radius: 20px;
    border: 1px solid white;
    background: none;
    color: white;
    padding: 6px 10px;
}
.details .purchase .add-btn:hover {
    background: white;
    color: black;
}
.main-cart .card:hover {
    height: 450px;
    width: 260px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.main-cart .card:hover .details {
    bottom: 0;
}
.main-cart .card:hover .wrapper {
    display: block;
}
.side-nav {
    position: fixed;
    background: #ededed;
    opacity: 0.95;
    height: 100vh;
    width: 40vw;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    top: 0;
    right: -100%;
    z-index: 10;
    padding:20px;
    overflow: hidden;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}
.side-nav .fa-times {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 1.5rem;
}
.side-nav h2 {
    align-self: center;
    -webkit-transform: translateY(1rem);
    transform: translateY(1rem);
    font-size: 2rem;
    font-weight: 600;
}
.side-nav .cart-items {

    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
}
.side-nav .cart-items .empty-cart {
    margin: auto 0;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    color: black;
}
.side-nav .cart-items .cart-item {
    display: flex;
    height: 5rem;
    width: 100%;
    -webkit-box-align: center;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid whitesmoke;
}
.side-nav .cart-items .cart-item:hover {
    background: rgba(255, 255, 255, 0.25);
}
.side-nav .cart-items .cart-item .cart-img {
    width: 5rem;
    height: 5rem;
    justify-content: center;
}
.side-nav .cart-items .cart-item .cart-img img {
    width: 100%;
    align-self: center;
}
.side-nav .final {
    position: absolute;
    align-self: flex-end;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    bottom: 10%;
}
.side-nav .final strong {
    align-self: flex-end;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 20px;
    margin-bottom: 1rem;
}
.side-nav .final .action {
    -webkit-box-pack: space-evenly;
    justify-content: space-evenly;
}
.side-nav .final .action .btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: 1px solid white;
    margin-right: 20px;
    border-radius: 10px;
}
.side-nav .final .action .btn:hover {
    color: black;
    box-shadow: inset 20em 0 0 0 white;
}
.qty-change {
    -webkit-box-pack: space-evenly;
    justify-content: space-evenly;
    -webkit-box-align: baseline;
    align-items: baseline;
}
.btn-qty {
    border: 1px solid white;
    border-radius: 50%;
    padding: 2px 5px;
}
.btn-qty:hover {
    background: white;
    color: black;
}
.qty {
    padding: 2px 5px;
}
.invoice {
    position: absolute;
    height: 90%;
    width: 90%;
    background: rgba(0, 0, 0, 0.95);
    padding: 5% 4%;
    margin: 0 auto;
    left: 0;
    right: 0;
    align-self: center;
    flex-direction: column;
    border-radius: 20px;
    transition: 0.25s;
}
.invoice .shipping-items {
    padding: 10px 0;
    width: 100%;
    justify-content: space-between;
}
.invoice .shipping-items .item-names, .invoice .shipping-items .items-price {
    flex-direction: column;
    justify-content: space-around;
}
.invoice .payment {
    flex-direction: column;
}
.invoice .payment em, .invoice .payment div {
    margin-top: 10px;
    font-weight: 600;
    justify-content: space-between;
}
.invoice .order {
    position: absolute;
    bottom: 10%;
    width: 40%;
    justify-content: space-around;
}
.invoice .order .btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
}
.invoice .order .btn-order {
    background: #00bbf9;
}
.invoice .order .btn-cancel {
    background: #bb342f;
}
.invoice .order-details {
    height: 300px;
    flex-direction: column;
    justify-content: space-around;
}
.invoice .order-details em, .invoice .order-details p {
    border-bottom: 1px dashed white;
    padding-bottom: 10px;
}
.invoice .order-details em {
    font-size: 1.2rem;
    font-weight: 600;
}
.invoice .order-details .thanks {
    position: absolute;
    text-align: center;
    margin: auto;
    border: none;
    left: 0;
    right: 0;
    bottom: 55%;
}
.invoice .order-details p {
    font-size: 1.1rem;
}
.invoice .order-details p span {
    font-weight: 600;
}
.btn-ok {
    position: absolute;
    width: 80%;
    font-size: 1.2rem;
    border-radius: 10px;
    padding: 1rem 2rem;
    margin: auto;
    bottom: 10%;
    left: 0;
    right: 0;
    background: #5bc0be;
}
@media (max-width: 768px) {
    .side-nav {
        width: 80%;
    }
    .invoice .order {
        width: 60%;
    }
    .main-cart {
        overflow: scroll;
    }
}
@media (max-width: 576px) {
    .side-nav {
        width: 100%;
    }

    .side-nav .cart-img {
        display: none;
    }

    .invoice .order {
        width: 80%;
    }

    .nav {
        width: 576px;
        height: 4rem;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        filter: invert(1);
    }

    .main-cart {
        justify-content: flex-start;
        flex-wrap: nowrap;
        flex-direction: column;
        height: 95%;
        top: 4rem;
    }

    .main-cart .card {
        margin: 20px auto;
    }
}


/*/////////////////////////////////////*/
/*ProductList
*/

input,
textarea,
button {
    height: 25px;
    margin: 0;
    padding: 10px;
    font-family: Raleway, sans-serif;
    font-weight: normal;
    font-size: 12pt;
    outline: none;
    border-radius: 0;
    background: none;
    border: 1px solid #282B33;
}

button,
select {
    height: 45px;
    padding: 0 15px;
    cursor: pointer;
}

button {
    background: none;
    border: 1px solid black;
    margin: 25px 0;
}

button:hover {
    background-color: #282B33;
    color: white;
}


.tools {
    overflow: auto;
    zoom: 1;
}

.search-area {
    float: left;
    width: 60%;
}

.settings {
    display: none;
    float: right;
    width: 40%;
    text-align: right;
}

#view {
    display: none;
    width: auto;
    height: 47px;
}

#searchbutton {
    width: 60px;
    height: 47px;
}

input#search {
    width: 30%;
    width: calc(100% - 90px);
    padding: 10px;
    border: 1px solid #282B33;
}

@media screen and (max-width: 400px) {
    .search-area {
        width: 100%;
    }
}

.products {
    width: 100%;
    font-family: Raleway;
}

.product {
    display: inline-block;
    width: calc(24% - 13px);
    margin: 10px 10px 30px 10px;
    vertical-align: top;
}

.product img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: 200px;
    max-width: calc(100% - 20px);
    background-cover: fit;
    box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.8);
    border-radius: 2px;
}

.product-content {
    text-align: center;
}

.product h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.product h3 small {
    display: block;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    margin: 7px 0 0 0;
}

.product .product-text {
    margin: 7px 0 0 0;
    color: #777;
}

.product .price {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.product .genre {
    font-size: 14px;
}


@media screen and (max-width: 1150px) {
    .product {
        width: calc(33% - 23px);
    }
}

@media screen and (max-width: 700px) {
    .product {
        width: calc(50% - 43px);
    }
}

@media screen and (max-width: 400px) {
    .product {
        width: 100%;
    }
}

/* TABLE VIEW */

@media screen and (min-width: 401px) {
    .settings {
        display: block;
    }

    #view {
        display: inline;
    }

    .products-table .product {
        display: block;
        width: auto;
        margin: 10px 10px 30px 10px;
    }

    .products-table .product .product-img {
        display: inline-block;
        margin: 0;
        width: 120px;
        height: 120px;
        vertical-align: middle;
    }

    .products-table .product img {
        width: auto;
        height: 120px;
        max-width: 120px;
    }

    .products-table .product-content {
        text-align: left;
        display: inline-block;
        margin-left: 20px;
        vertical-align: middle;
        width: calc(100% - 145px);
    }

    .products-table .product h3 {
        margin: 0;
    }
}
