/* import fonts */
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:wght@100;200;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* variables */
:root {
    --bg-color: #fff;
    --link-color: #000;
    --link-size: 1.1rem;
    --right-side-bg-color: 81, 187, 254;
    --main-color: #fd4646;
    --text-color: #171427;
    --light: #eeeded;
    --orange: #ffa16c;
}

/* General CSS */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #000;
}

img {
    width: 100%;
}

body {
    color: var(--text-color);
}

.container {
    max-width: 1068px;
    height: 100%;
}

section {
    padding: 4rem 0 3rem;
}

/* App container */
.app-container {
    width: 100vw;
    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: 73%;
    height: 100%;
}

.app-bg .right-side {
    background-color: rgb(var(--right-side-bg-color));
    /* background-color: aquamarine; */
    width: 27%;
    height: 100%;
}

/* Header */
header {
    width: 100%;
    height: 100px;
    padding: 30px 10%;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-color);
    box-shadow: 0 1px 4px hsl(0 4% 15%/ 10%);
    z-index: 99;
    opacity: 0.7;
}

.logo {
    font-size: 2rem;
    color: var(--orange);
    font-weight: 500;
    font-family: 'Lobster', cursive;
}

/* Header -> Shopping bag */
.shopping-bag {
    padding: 10px 5px;
    display: flex;
    align-items: center;
}

.shopping-bag i {
    font-size: 1.7rem;
    margin-right: 0.5rem;
}

.shopping-bag .total-items-in-cart {
    margin-left: 10px;
    padding: 5px;
    background-color: var(--orange);
    border-radius: 5px;
}

/* Shop */
.shop {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Products list */
.products-list {
    width: 100vw;
    height: 100vh;
    display: flex;
}

/* Products */
.products {
    height: 100%;
    width: 73%;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(4, 4fr);
    gap: 2rem;
}

.products .item {
    position: relative;
    margin: 1.2rem;
}

.products .item:hover {
    padding: 10px;
    border: 1px solid var(--text-color);
    transition: 0.4s;
}

.products .item .item-img {
    width: 100%;
    height: 70%;
    margin-bottom: 0.5rem;
}

.products .item .desc {
    width: 100%;
    padding: 10px;
}

.products .item .desc h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.products .item .desc small {
    font-weight: 500;
}

.products .item .add-to-cart {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--orange);
    color: var(--text-color);
    padding: 10px;
    cursor: pointer;
}

.products .item .add-to-cart:hover {
    color: var(--bg-color);
}

/* Cart */
.cart {
    height: 100%;
    width: 26%;
    position: relative;
}

/* Cart header */
.cart-header {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

/* Cart items */
.cart-items {
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    overflow-x: hidden;
}

/* cart item */
.cart-item {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.cart-item div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* item info */
.cart-item .item-info {
    /* flex: 1; */
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0 10px 10px 0;
    padding: 10px;
}

.cart-item .item-info img {
    width: 75px;
}

/* unit price */
.cart-item .unit-price {
    flex: 1;
    font-size: 1.2rem;
}

/* units */
.cart-item .units {
    flex: 1;
}

.cart-item .units .number {
    margin: 0 10px;
    font-size: 1.2rem;
}

.cart-item .units .btn {
    width: 20px;
    height: 20px;
    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+ */
}

/* delete */
.cart-item .delete {
    flex: 1;
}

.cart-item .delete .cart-remove {
    font-size: 1.5rem;
    color: var(--main-color);
    cursor: pointer;
}

/* Cart footer */
.cart-footer {
    width: 100%;
    background-color: rgb(255, 21, 21);
    position: absolute;
    bottom: -10%;
    left: 0;
    border-left: 1px solid rgb(var(--right-side-bg-color));
}

.cart-footer div {
    display: flex;
    align-items: flex-end;
    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;
}