﻿/* import fonts */
@import url("https://fonts.googleapis.com/css2?family=Rubik&display=swap");

/* VARIABLES */
:root {
    --bg-color: #fff;
    --link-color: #000;
    --link-size: 1.1rem;
    --right-side-bg-color: 81, 187, 254;
}

/* General CSS */
h6, h5,h4,h3,h2,h1,a{
    margin:0;
}

a {
    text-decoration: none;
    color: #000;
}

/* APP CONTAINER */
.app-container {
    width: 100%;
    height: 100vh;
}

/* APP BG */
.app-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: -1;
}

    .app-bg .left-side {
        background-color: rgb(255, 255, 255);
        width: 75%;
        height: 100%;
    }

    .app-bg .right-side {
        background-color: rgb(var(--right-side-bg-color));
        width: 25%;
        height: 100%;
    }

/* HEADER */
header {
    width: 100%;
    height: 100px;
    padding: 30px 10%;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

    header nav ul {
        display: flex;
        align-items: center;
    }

        header nav ul li {
            list-style: none;
            margin: 0 10px;
            padding: 5px 5px;
            border-radius: 15px;
        }

            header nav ul li.active {
                border: 1px solid #000;
            }

            header nav ul li a {
                font-size: var(--link-size);
                display: flex;
                align-items: center;
                height: 32px;
            }

            header nav ul li.btn {
                background-color: rgba(var(--right-side-bg-color), 0.4);
                border: 1px solid rgb(var(--right-side-bg-color));
            }

                header nav ul li.btn img {
                    width: 32;
                    height: 32px;
                }

            header nav ul li.home a {
                display: flex;
                align-items: center;
            }

                header nav ul li.home a img {
                    margin-right: 5px;
                }
/* HEADER -> SHOOPING BAG */
.shopping-bag {
    padding: 10px 5px;
}

    .shopping-bag a {
        display: flex;
        align-items: center;
    }

        .shopping-bag a img {
            width: 32px;
            height: 32px;
        }

.total-items-in-cart{
    margin:0 0 2em 0;
}
/* MAIN */
main {
    width: 100%;
    background-color: royalblue;
    position: relative;
    top: 100px;
}

    main .products-preview {
        width: 60%;
        height: calc(100vh - 100px);
        position: absolute;
        left: 0;
    }

    main .model {
        width: 40%;
        height: calc(100vh - 100px);
        position: absolute;
        right: 0;
        z-index: -1;
    }
/* PRODUCTS */
.products-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.product {
    width: 300px;
    border: 1px solid rgba(var(--right-side-bg-color), 0.4);
    border-radius: 10px;
    padding: 5px;
}

    .product img {
        width: 100%;
    }
/* MORE DETAILS */
.more-details {
    position: absolute;
    bottom: 80px;
    left: 50px;
    display: flex;
    align-items: center;
}

    .more-details .see-more-btn {
        cursor: pointer;
        display: flex;
        align-items: center;
        transform: rotate(-90deg);
        font-size: 1.2rem;
    }

.see-more-btn img {
    width: 80px;
    margin-right: 20px;
}

.more-details .description {
}

    .more-details .description small {
        color: rgb(149, 149, 149);
    }

    .more-details .description h1 {
        margin: 10px 0;
    }

        .more-details .description h1 small {
            color: #000;
        }
/* MODEL */
.model {
    display: flex;
    justify-content: right;
    align-items: center;
}

    .model .model-img {
        height: 100vh;
        position: absolute;
        left: 35%;
        transform: translate(-50%);
        top: -100px;
    }

    .model .product {
        width: 300px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 10px;
        padding: 5px;
    }

        .model .product img {
            width: 100%;
        }
/* products list */
.products-list {
    width: 100%;
    height: 100%;
    display: flex;
}

/* PRODUCTS */
.products {
    height: 100%;
    width: 100%;
    display: grid;
   column-gap:20px;
   row-gap:20px;
    grid-template-columns: repeat(4, 3fr);
    padding:10px;
}

    .products img {
        width: 200px;
        height: 150px;
        object-fit: contain;
        /* filter: drop-shadow(30px 10px 4px #ddd); */
    }

    .products .item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        background-color:#fff;
        width: 100%;
        height: 100%;
        border-radius:10px;
        box-shadow: 0 1px 1px rgba(0,0,0,0.04), 0 2px 2px rgba(0,0,0,0.04), 0 4px 4px rgba(0,0,0,0.04), 0 6px 8px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.04);
    }

        .products .item .item-container {
            height: 100%;
            border-radius: 25px;
            position: relative;
            display: block;
            width: 100%;
            margin-top: 10%;
        }

            .products .item .item-container .item-img {
                width: 100%;
               padding:10px;
                background-color: white;
                border-radius: 25px 25px 0 0;
                display: grid;
                justify-content: center;
                align-items: center;
            }
            .cargo-badge{
                background-color:#f2f2f2;
                border-radius:0 0  8px 8px ;
                text-align:center;
                font-size:0.6em;
            }
            .products .item .item-container .desc {
                width: 100%;
                color: #000;
                padding: 10px;
                text-align:center;
            }
            .products .item .item-container .desc > p {
               font-size:0.8em;
               margin:0;
            }

            .products .item .item-container .add-to-cart {
                display: flex;
                color: #0181cB;
                padding: 5px;
                cursor: pointer;
                justify-content: center;
                border: 1px solid #0181cB;
                border-radius: 10px;
                margin: 4% 10%;
                transition: ease 0.4s;
            }
                .products .item .item-container .add-to-cart:hover {
                    color: white !important;
                    border: 1px solid #0181cB;
                    border-radius: 10px;
                    background-color: #0181cB;
                }

            .products .item .item-container .add-to-wishlist {
                background-color: rgba(255, 21, 21, 0.7);
                display: flex;
                justify-content: center;
                align-items: center;
                position: absolute;
                top: 10px;
                right: 60px;
                padding: 5px;
                border-radius: 50%;
                cursor: pointer;
            }

            .products .item .item-container .add-to-cart img {
                width: 32px;
                height: 32px;
            }

            .products .item .item-container .add-to-wishlist img {
                width: 32px;
                height: 32px;
                padding: 5px;
            }
/* CART */
.cart {
    height: 100%;
    width: 25%;
    position: relative;
}
/* cart header */
.cart-header {
    display: grid;
    justify-content: space-around;
    padding: 10px 0;
    grid-template-columns: repeat(4, auto);
}
/* cart items */

.cart-items {
    overflow-y: auto;
    border-radius: 10px;
    padding: 0 10px;
    overflow-x: hidden;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04), 0 2px 2px rgba(0,0,0,0.04), 0 4px 4px rgba(0,0,0,0.04), 0 6px 8px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.04);
}
/* cart item */
.cart-item {
    display: grid;
    justify-content: space-around;
    padding: 10px;
    align-items:center;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    border-bottom: 1px solid #f1f1f1;
    font-size:1em;
}

    .cart-item div.item-info > h4 {
      font-size:0.8em;
    }
    /* item info */
    .cart-item .item-info {
        display: grid;
        align-items: center;
        border-radius: 0 10px 10px 0;
        padding: 10px;
    }
.removeBtn {
    cursor: pointer;
    margin-left: 20px;
}
.removeBtn:hover {
    color:crimson;
}
        .cart-item .item-info img {
            width: 75px;
        }
    /* unit price */
    .cart-item .unit-price {
        flex: 1;
        font-size: 1em;
    }
    /* units */
.cart-item .units {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
}

        .cart-item .units .number {
            margin: 0 10px;
            font-size: 1rem;
        }

        .cart-item > .units > .btn {
            width: 20px;
        
        padding:0;
        text-align:center;
            background-color: rgb(242, 255, 58);
            border-radius: 50%;
            font-weight: bold;
            cursor: pointer;
            -webkit-user-select: none; /* Chrome all / Safari all */
            -moz-user-select: none; /* Firefox all */
            -ms-user-select: none; /* IE 10+ */
        }

/* cart footer */
.cart-footer {
    width: 100%;
    background-color: rgb(255, 21, 21);
    position: absolute;
    bottom: 0;
    left: 0;
    border-left: 1px solid rgb(var(--right-side-bg-color));
}

    .cart-footer div {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0;
        font-size: 1.3rem;
    }

    .cart-footer .subtotal {
        background-color: white;
    }

    .cart-footer .checkout {
        background-color: rgb(242, 255, 58);
        cursor: pointer;
    }

    @media only screen and (max-width:1050px){
        .products {
            grid-template-columns: repeat(2, 3fr);
        }
        .cart-item {
            grid-template-columns: repeat(4, auto) !important;
        }
        .removeBtn {
  
            margin-left: 0px;
        }
    }