@charset "UTF-8";

@font-face {
    font-family: "Erstoria";
    src: url("../fonts/Erstoria.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root{
    --first-color: #5402E9;
    --second-color: #F821F4;
    --third-color:#6CAF3D;
    --fourth-color:#F3A103;
    --black: #18181b;
    --white: #f8f9fa;
    --grey: #e9ecef;
    --main-font: "Erstoria", sans-serif;
    --text-xs: 0.75rem;   
    --text-sm: 0.875rem;  
    --text-base: 1rem;    
    --text-lg: 1.125rem;  
    --text-xl: 1.25rem;   
    --text-2xl: 1.5rem;   
    --text-3xl: 1.875rem; 
    --text-4xl: 2.25rem;  
    --text-5xl: 3rem;     
    --text-6xl: 3.75rem;  
    --text-7xl: 4.5rem;   
    --text-8xl: 6rem;     
    --text-9xl: 8rem;      
}
body{
    font-family: var(--main-font);
}

.modal_container{
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}

.modal_card{
    background-color: var(--white);
    width: 50%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    margin: auto;
    position: relative;
}

.modal_card img{
    width: 100%;
    height: 30vh;
    object-fit: cover;
    object-position: center;
}

.modal_card_info{
    padding: 5rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-x: scroll;
}

.modal_card_info h2{
    font-size: var(--text-6xl);
    color: var(--black);
}

.modal_card_info p{
    font-size: var(--text-3xl);
    color: var(--black);
}
#product_des_divisor{
    padding-bottom: 2rem;
    border-bottom: 1.5px solid var(--grey);
    border-radius: 5px;
}
#extras_list{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
    padding-bottom: 10vh;
}

.extra_item{
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--grey);
    padding: 2rem;
    border-radius: 5px;
    border: 0;
    color: var(--black);
    font-size: var(--text-2xl);
    transition: 0.2s ease-in-out;
    font-weight: 500;
}

.extra_item:hover{
    cursor: pointer;
    color: var(--main-font);
}
#close_modal_btn{
    background-color: var(--white);
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    padding: 1rem;
    border: 0;
    cursor: pointer;
}

#close_modal_btn svg{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.checkout_modal_section{
    width: 100%;
    height: 10vh;
    background-color: var(--grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 5rem;
}

.quantity_selection_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.quantity_selection_container button{
    color: var(--black);
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.quantity_selection_container span{
    font-size: var(--text-4xl);
}

#modal_final_price {
    font-size: var(--text-2xl);
    color: var(--black);
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
}

#modal_add_cart_btn{
    width: fit-content;
    height: fit-content;
    padding: 1.5rem 4rem;
    background-color: var(--second-color);
    color: var(--white);
    font-size: var(--text-2xl);
    border: 0;
    border-radius: 5px;
    transition: 0.2s ease-in-out;
    font-weight: 500;
    text-wrap: nowrap;
}

#modal_add_cart_btn:hover{
    background-color: var(--white);
    color: var(--second-color);
    cursor: pointer;
}

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

@media (max-width: 1024px) {
    .modal_card {
        width: 75%;
        height: 70vh;
    }

    .modal_card_info {
        padding: 3rem;
    }

    .modal_card_info h2 {
        font-size: var(--text-5xl);
    }

    .modal_card_info p {
        font-size: var(--text-2xl);
    }

    #extras_list {
        grid-template-columns: repeat(2, 1fr); 
    }

    .checkout_modal_section {

        padding: 0 3rem;
    }

    .modal_btn{
        display: flex;
        justify-content: space-between;
    }

    .checkout_modal_section {
        display: flex;
        flex-direction: column; /* Organiza en columna */
        gap: 1rem; /* Añade espacio entre las filas */
        padding: 1rem; /* Ajusta el padding para que se vea mejor */
        height: auto; /* Deja que la altura se ajuste automáticamente */
    }

    .modal_btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 3%;
    }

    #modal_final_price{
        flex: 0;
        font-size: var(--text-4xl);
        margin-right: 5rem;
    }

    #add-cart-button-cont {
        width: 100%; /* Ocupa todo el ancho */
        display: flex;
        justify-content: center; /* Centra el botón */
    }

    #modal_add_cart_btn {
        width: 100%; /* Botón ocupa todo el ancho */
        text-align: center; /* Centra el texto dentro del botón */
        padding: 2rem 0
    }

    .quantity_selection_container{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }
}