/* GENERAL CART STYLE SECTION */

#cart{
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column;
    justify-content: start;
    margin: 20px 0;
    gap: 50px;
}

#cart h1{
    text-transform: capitalize;
    font-size: 4rem;
    color: #0a111f;
    align-self: center;
    text-align: center;
    font-weight: 700;
}

#cart .cart_empty_view{
    width: fit-content;
    align-self: center;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 40px;
    gap: 5px;
}



#cart .cart_empty_view i{
    font-size: 8rem;
    color: #606063;
}

#cart .cart_empty_view p{
    width: fit-content;
    font-size: 1.5rem;
    font-weight: 400;
    color: #606063;
}

#cart .cart_components{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;

}




/* PRODUCTS LIST */

.products_list{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* PRODUCT CARD */
.product_card{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
    border-radius: 20px;
}

.product_card .product_card_left{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.product_card  button{
    background-color: transparent;
    border: 0px;
    cursor: pointer;
}

.product_card  button i{
    color: #ec162c;
    font-size: 2rem;
} 

.product_card .product_card_left img.product_image{
    width: 150px;
    height: auto;
    border-radius: 20px;
}

.product_card .product_card_left .category_name_div{
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 250px;
}

.product_card .product_card_left .category_name_div .product_category{
    width: 100%;
    font-size: 1rem;
    font-weight: 400;
    text-transform: capitalize;
    color: #606063;
}

.product_card .product_card_left .category_name_div .product_name{
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: capitalize;
    color: #0a111f;
}

.product_card .product_card_left .category_name_div .remaining_quantity_warning{
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    color: #c1292e;
    font-size: 1rem;
    font-weight: 500;
}


.product_card .product_card_right{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.product_card .product_card_right .price_info{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;

}

.product_card .product_card_right .price_info .sales_change{
    background-color: #fca311;
    padding: 5px;
    border-radius: 5px;
    color: #FFFF;
    font-weight: 500;
    font-size: 0.9rem;
}

.product_card .product_card_right .price_info .product_old_price{
    font-size: 0.9rem;
    text-decoration: line-through;
}

.product_card .product_card_right .price_info .product_price{
    font-size: 1.75rem;
    font-weight: 600;
    color: #088178;
}

.product_card .product_card_right .change_quantity{
    width: fit-content;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    padding: 5px 10px;
    border-radius: 10px;
    align-self: flex-end;
}

.product_card .product_card_right .change_quantity span{
    background-color: #fca311;
    color: #FFFF;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
}

.product_card .product_card_right .change_quantity p{
    color: #0a111f;
    font-size: 1.25rem;
    font-weight: 400;
    
}

/* recap_container */

.recap_container{
   width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recap_container h2{
    text-transform: capitalize;
    font-size: 2rem;
    font-weight: 500;
    color: #0a111f;
}

.horizontal_line{
    align-self: center;
    width: 70%;
    height: 0.5px;
    background-color: #606063;
}

/*recap_card  */
.recap_card{
    
    display: flex;
    flex-direction: column;
    background-color: #f2f2f2;
    gap: 15px; 
    padding: 10px 20px;
    border-radius: 15px;
}

.recap_card .recap_section{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

}

.recap_card .recap_section h5{
    font-size: 1.25rem;
    font-weight: 500;
    color: #0a111f;

}

.recap_card .recap_section p{
    font-size: 1.25rem;
    font-weight: 400;
    color: #0a111f;

}

.recap_card .recap_section h5.total{
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a111f;

}

.recap_card .recap_section p.total{
    font-size: 1.75rem;
    font-weight: 600;
    color: #088178;

}

.recap_card .delivery_info{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    color: #606063;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
}

.recap_card .delivery_info i{
    font-size: 2rem;
}

.recap_card .delivery_info span{
    color: #0a111f;
    font-weight: 600;
}

.recap_card .order_button{
    width: 100%;
    font-size: 1.5rem;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    color: #FFFF;
    padding: 10px;
    background-color: #fca311;
    border-radius: 10px;
    
    font-weight: 600;
    transition: 0.6s ease;
    border: 0px;
    cursor: pointer;
    transition: 0.3s ease;
}


@media (max-width:1160px) {
    #cart .cart_components{
        display: flex;
        flex-direction: column;
        justify-content: center;
        
    
    }

    


    .product_card{
        gap: 20px;
        padding: 5px 10px;
        border-radius: 10px;
        flex-direction: column;
        align-items: baseline;
        justify-content: center;
        
    }
    
    .product_card .product_card_left{
        display: flex;
        flex-direction: row;
        
        gap: 20px;
    }

    .product_card  button{
        
        align-self: center;
    }
    .product_card .product_card_left img.product_image{
        width: 70px;
        border-radius: 10px;
    }

    .product_card .product_card_left .category_name_div{
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .product_card .product_card_right{
        width: 100%;
        display: flex;
        flex-direction: row;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .product_card .product_card_right .price_info{
        flex-grow: 1;
    
    }

    .product_card .product_card_right .change_quantity{
        right: 0;
        bottom: 0;
       position: absolute;
    }


    .recap_container{
        width: 100%;
         
         gap: 10px;
     }


     .recap_container h2{
        text-align: center;
    }
}

@media (max-width:350px) {
    

    .product_card .product_card_right .change_quantity{
        
        gap: 10px;
        
        padding: 3px 6px;
        border-radius: 5px;
        
    }

    .product_card .product_card_right .price_info .sales_change{
        display: none;
    }

    .product_card .product_card_left img.product_image{
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    

    .recap_card .recap_section{
        gap: 5px;
    }

    .recap_card .delivery_info{
        flex-direction: column;
        margin-top: 5px;
        
    }
    
}