/* - Red: hsl(14, 86%, 42%)
- Green: hsl(159, 69%, 38%)

- Rose 50: hsl(20, 50%, 98%)
- Rose 100: hsl(13, 31%, 94%)
- Rose 300: hsl(14, 25%, 72%)
- Rose 400: hsl(7, 20%, 60%)
- Rose 500: hsl(12, 20%, 44%)
- Rose 900: hsl(14, 65%, 9%) */

:root{
    --Red: hsl(14, 86%, 42%);
    --Green: hsl(159, 69%, 38%);
    --Rose_50: hsl(20, 50%, 98%);
    --Rose_100: hsl(13, 31%, 94%);
    --Rose_300: hsl(14, 25%, 72%);
    --Rose_400: hsl(7, 20%, 60%);
    --Rose_500: hsl(12, 20%, 44%);
    --Rose_900: hsl(14, 65%, 9%);
}

*{
    box-sizing: border-box;
}

body{
    margin: 0;
    background-color: var(--Rose_100);
}

button{
    border: transparent;
}

hr{
    width: 90%;
}

button:hover{
    cursor: pointer;
}

main{
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    padding: 20px;
}

.flex_hr{
    display: flex;
    align-items: center;
    gap: .5rem;
}

.red_btn{
    background-color: var(--Red);
    color: var(--Rose_100);
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
}

.red_btn:hover{
    background-color: hsl(14deg 90.19% 20.0);
}

.products_container{
    width: 70%
}

.item2{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1rem;
}

.img_wrapper{
    height: 250px;
    width: 250px;
    position: relative;
    border-radius: 10px;
    background-size: cover;
}

.product_txt{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 20px 0;
}

.category{
    color: var(--Rose_400)
}

.price{
    color: var(--Red)
}

.button_wrapper{
    align-self: center;
    width: 115px;
}

.add_to_cart{
    z-index: 1;
    position: absolute;
    top: -20px;
    padding: 10px;
    border: 1px solid var(--Rose_400);
    border-radius: 20px;
}

.add_to_cart:hover{
    color: var(--Red);
    border-color: var(--Red);
}

.add_to_cart.active{
    display: none;
}

.qty_counter{
    display: none;
    justify-content: space-between;
    background: var(--Red);
    position: absolute;
    top: -20px;
    gap: .8rem;
    padding: 10px;
    border-radius: 20px;
}

.qty_counter.active{
    display: flex;
}

.qty_btn{
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    background-color: var(--Red);
}

.qty_btn:hover{
    background-color: #fff;
    color: var(--Red)
}

/* Cart Items */
.cart_container{
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap:.7rem;
    padding: 20px;
    height: fit-content;
    width:400px;
    border: transparent;
    border-radius: 10px;
}

.empty_cart{
    display: flex;
    flex-direction: column;
}

.cart_container.active .loaded_cart{
    display: flex;
}

.cart_container.active .empty_cart{
    display: none;
}

.title{
    color: var(--Red);
}

.loaded_cart{
    display: none;
    flex-direction: column;
    gap: .7rem;
}

.items_container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart_left{
    display: flex;
    flex-direction: column;
}

.cart_left2{
    display: flex;
    flex-direction: column;
    width: 65%;
}

.details{
    display: flex;
    gap: 1rem;
}

.cart_item_qty{
    color: var(--Red)
}

.cart_item_price{
    color: var(--Rose_400)
}

.btn_remove_btn{
    color: var(--Rose_400);
    border-radius: 50%;
    border: 1px solid var(--Rose_400);
}

.btn_remove_btn:hover{
    border-color: var(--Rose_900);
    color: var(--Rose_900)
}


#remove_btn{
    border-radius: 50%;
    border: 1px solid grey;
}

.order_total{
    display: flex;
    justify-content: space-between;
    width: 80%;
}

.carbon_info{
    background-color: var(--Rose_100);
    padding: 10px;
}

.confirm_order{
    padding: 10px;
    background-color: var(--Red);
    color: #fff;
    border: transparent;
    border-radius: 20px;
}

.order_conf_box_wrapper{
    position: fixed;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-color: #3d3d3d5c;
    z-index: 2;
}

.order_conf_box_wrapper.active{
    display: flex;
}

.order_confirmation_box{
    min-height: 400px;
    min-width: 400px;
    background-color: var(--Rose_50);
    padding: 20px;
    border: transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.confirmation_list{
    width: 100%;
    background-color: var(--Rose_100);
    padding: 20px;
    font-size: 80%;
}

.lower_third{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item_thumbnail{
    width:70px;
}

.start_order_btn{
    width: 90%;
}

@media (max-width: 710px){
    main{
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 430px){
    .cart_container{
        width: 90%;
    }

    .order_confirmation_box{
        min-width: none;
    }
}
