/* GOOGLE FONT */
.kumbh-sans-font {
    font-family: "Kumbh Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "YOPQ" 300;
}

* {
    font-family: "Kumbh Sans", sans-serif;
}

/* MOBILE LAYOUT */

html {
    width: 100%;
}

body {
    position: relative;
    width: 100%;
    margin: 0;
}

header {
    width: 100%;
}

.mobile-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

img[alt="open-menu icon image"] {
    margin-right: 15px;
}

img[alt="cart icon image"] {
    margin-right: 20px;
}

img[alt="profile avatar"] {
    width: 25px;
    height: 25px;
}

.header-group-2 {
    position: relative;
}

.cart-notification {
    display: none;
    position: absolute;
    top: -5px;
    left: 10px;
    width: 35%;
    border-radius: 40px;
    font-size: 13px;
    text-align: center;
    color: hsl(0, 0%, 100%);
    background-color: hsl(26, 100%, 55%);
}

.desktop-header {
    display: none;
}

main {
    width: 100%;
}

h1,
p {
    margin: 0;
}

p {
    font-weight: 400;
}

h1.heading {
    color: hsl(220, 13%, 13%);
}

p#title {
    font-weight: 700;
    color: hsl(219, 9%, 45%);
    font-variant: all-petite-caps;
}
p#description {
    margin-top: 10px;
    color: hsl(219, 9%, 45%);
}

.container {
    width: 100%;
}

.mobile-background-image-container {
    width: 100%;
    height: 350px;
    background-image: url("../images/image-product-1.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
}

.desktop-background-container {
    display: none;
}

img[alt="previous icon image"],
img[alt="next icon image"] {
    width: 12px;
    height: 12px;
    padding: 12px;
    border-radius: 50%;
    background-color: hsl(0, 0%, 100%);
}

img[alt="previous icon image"] {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    margin: auto 0;
}

img[alt="next icon image"] {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto 0;
}

.product-info-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-details-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-price-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    display: flex;
    align-items: center;
}

.price p {
    margin-left: 15px;
    font-weight: 700;
    color: hsl(0, 0%, 100%);
    background-color: hsl(220, 13%, 13%);
    border-radius: 5px;
    padding: 5px 10px;
}

.discount {
    font-weight: 700;
    text-decoration-line: line-through;
    color: hsl(219, 9%, 45%);
}

.product-checkout-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.buttons-container {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 10px;
    background-color: hsl(223, 64%, 98%);
}

button {
    border: none;
    border-radius: 0.75em;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Kumbh Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "YOPQ" 300;
    color: hsl(220, 13%, 13%);
    background-color: hsl(26, 100%, 55%);
    box-shadow: 0 15px 5px 5px hsl(25, 100%, 94%);
}

button img[alt="button cart-icon image"] {
    width: 16px;
    height: 14px;
}

button span {
    margin-left: 10px;
}

/* MOBILE NAVIGATION */

.mobile-overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background-color: hsla(219, 9%, 45%, 0.5);
}

.mobile-menu {
    display: none;
    width: 70%;
    height: 100%;
    padding-top: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 100px;
    position: absolute;
    top: 0;
    left: 0;
    font-weight: 700;
    color: hsl(220, 13%, 13%);
    background-color: hsl(0, 0%, 100%);
}

.menu-close-container {
    padding-left: 25px;
}

ul {
    margin: 0;
    padding-left: 25px;
    list-style: none;
}

.mobile-navigation li {
    margin-bottom: 40px;
}

/* MOBILE CART */

.mobile-cart {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    width: 90%;
    border-radius: 10px;
    margin: 0 auto;
    background-color: hsl(0, 0%, 100%);
}

.cart-header {
    width: 100%;
    padding: 30px 0 30px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid lightgray;
}

.cart-header p {
    font-weight: 700;
}

.cart-item-container {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-name,
.item-cost,
.item-count-text {
    color: hsl(219, 9%, 45%);
}

p.empty-cart {
    color: hsl(219, 9%, 45%); /* empty cart message */
}

.cart-total {
    color: hsl(0, 0%, 0%);
}

img[alt="cart item thumbnail"] {
    width: 50px;
    border-radius: 3.5px;
}

.cart-item-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7.5px;
}

.checkout-button {
    /* inherits some styles from the button styling */
    margin-top: 20px;
    width: 100%;
    box-shadow: none;
}

/* HOVER STATE */
img[alt="open-menu icon image"]:hover,
img[alt="close-menu icon image"]:hover,
img[alt="previous icon image"]:hover,
img[alt="next icon image"]:hover {
    cursor: pointer;
}

/* DESKTOP LAYOUT */

@media screen and (min-width: 960px) {
    header {
        max-width: 1100px;
        margin: 0 auto 0 auto;
        padding-bottom: 25px;
        border-bottom: 1px solid lightgray;
    }
    .mobile-header {
        display: none;
    }
    .desktop-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
        box-sizing: border-box;
    }

    ul {
        padding: 0;
    }
    .header-group-1 {
        width: 90%;
        display: flex;
        align-items: center;
        gap: 30px;
    }
    li {
        display: inline;
        margin-left: 30px;
        padding: 35px 0;
        color: hsl(219, 9%, 45%);
    }
    .header-group-2 {
        width: 10%;
        display: flex;
        align-items: center;
    }
    .cart-notification {
        top: 2.5px;
        left: 5px;
        width: 25%;
    }
    img[alt="cart icon image"] {
        margin-right: 40px;
    }
    img[alt="profile avatar"] {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }
    .container {
        display: flex;
        max-width: 1100px;
        margin: 100px auto;
    }
    .mobile-background-image-container {
        display: none;
    }
    .desktop-background-container {
        display: flex;
        flex-direction: column;
        width: 43%;
        gap: 30px;
        padding-left: 50px;
        box-sizing: border-box;
    }
    .desktop-background-image-container {
        width: 100%;
        height: 400px;
        background-image: url("../images/image-product-1.jpg");
        background-position: center;
        background-size: cover;
        border-radius: 15px;
    }
    .product-info-container {
        width: 57%;
        padding: 50px 100px;
        box-sizing: border-box;
    }
    .desktop-products-container {
        display: flex;
        justify-content: space-between;
    }
    img[alt="product-1"],
    img[alt="product-2"],
    img[alt="product-3"],
    img[alt="product-4"] {
        width: 87.5px;
        border-radius: 10px;
    }
    .product-price-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .product-checkout-container {
        flex-direction: row;
    }
    .buttons-container {
        width: 40%;
    }
    button {
        width: 60%;
        box-shadow: none;
    }
    /* DESKTOP CART */
    .desktop-cart {
        position: absolute;
        top: 85px;
        right: 4%;
        min-width: 390px;
        width: 25%;
        min-height: 250px;
        border-radius: 10px;
        margin: 0 auto;
        background-color: hsl(0, 0%, 100%);
        box-shadow: 15px 15px 30px gray;
    }
    /* ACTIVE STATE */
    li:hover {
        cursor: pointer;
        border-bottom: 5px solid hsl(26, 100%, 55%);
    }
    img[alt="cart icon image"]:hover {
        cursor: pointer;
    }
    img[alt="profile avatar"]:hover {
        cursor: pointer;
        outline: 2px solid hsl(26, 100%, 55%);
    }
    img[alt="product-1"]:hover,
    img[alt="product-2"]:hover,
    img[alt="product-3"]:hover,
    img[alt="product-4"]:hover {
        cursor: pointer;
        opacity: 0.5;
    }

    img[alt="minus icon image"]:hover,
    img[alt="plus icon image"]:hover,
    img[alt="delete icon image"]:hover {
        cursor: pointer;
    }

    button:hover {
        cursor: pointer;
        background-color: hsla(26, 100%, 55%, 0.75);
    }
    .desktop-background-image-container:hover,
    .close-icon-container > img:hover {
        cursor: pointer;
    }

    /* LIGHTBOX */
    .desktop-overlay {
        display: none;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        background-color: hsla(0, 0%, 0%, 0.75);
    }
    .lightbox-container {
        display: none;
        width: 30%;
        height: fit-content;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }
    .close-icon-container {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
    }
    .close-icon-container img {
        width: 20px;
    }
    .lightbox-background-image-container {
        height: 500px;
        background-image: url("../images/image-product-1.jpg");
        background-position: center;
        background-size: cover;
        position: relative;
        margin-bottom: 35px;
        border-radius: 15px;
    }
    img[alt="previous icon image"] {
        left: -25px;
        padding: 20px;
    }

    img[alt="next icon image"] {
        right: -25px;
        padding: 20px;
    }
    .lightbox-products-container {
        display: flex;
        justify-content: space-around;
    }
    .lightbox-products-container > img {
        width: 80px;
    }
    .lightbox-products-container img:nth-child(1) {
        margin-left: 30px;
    }
    .lightbox-products-container img:nth-child(4) {
        margin-right: 30px;
    }
}
