@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{

    --negro: #0e0000;
    --blanco: #ececec;
    --gris_muy_claro: #e7e7e7;
    --gris: #7b7b7b;
    --gris_ojei: #aeaeae;
    --gris_claro: #dfdfdf;
    --gris_oscuro: #5d5d5d;
    --gris_muy_oscuro:#333333;
    --verde: #137513;

    --oliva_oscuro: #272b00;
    --olivia: #54582f;
    --verde: #02BF68;
    --amarrillo_claro: #feeeb8;

}

html{
    scroll-behavior: smooth;
}

#contAlert{
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 22;
}

#alert{
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    width: 50%;
    background-color: var(--veige);
    button{
        padding: 12px 18px;
        font-size: 1rem;
    }
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: "Poppins";
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

main{
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 100vh;
    width: 100%;
}

#leftSide{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

.folderBtn{
    font-size: 1rem;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: unset;
    border: unset;
    border-bottom: 1px solid var(--gris_ojei);
    p{margin: 0;}
    box-sizing: border-box;
}

.folderBtn:hover{
    background-color: #eeeeee;
    cursor: pointer;
}

.contPago{
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 39px;
    width: 90%;
    margin-bottom: 32px;
    button{
        background-color: var(--veige_semi);
        color: #fff;
        padding: 12px 0;
        border: unset;
        letter-spacing: 1px;
        border: 1px solid var(--veige_semi);
    }
    button:hover{
        background-color: #fff;
        color: var(--veige_semi);
        cursor: pointer;
    }
}

#paypal-buttons-container{

    width: 100%;
    h2{
        color: var(--veige_oscuro);
        font-weight: 550;
    }
    
}

#contDireccion{
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
    border-bottom: 1px solid var(--veige_oscuro);
    padding-bottom: 4rem;
    input{
        text-indent: 8px;
        padding: 12px 0;
        border: unset;
        border-bottom: 1px solid var(--gris_ojei);
        width: 90%;
        outline: none;
    }
    input:focus{
        border-color: var(--veige_semi);
    }
}

h3{
    width: 90%;
    font-weight: 600;
    color: var(--veige_oscuro);
    margin-bottom: 0px;
}

#rightSide{
    padding-inline: 64px;
    box-sizing: border-box;
    width: 50%;
    background-color: var(--veige);
    border-left: 1px solid var(--veige_semi);
}

nav{
    border-bottom: 1px solid var(--gris_ojei);
}

.btn{
    margin: 16px 0;
    background-color: var(--veige_semi);
    padding: 1rem 0;
    width: 80%;
    color: var(--blanco);
    font-weight: 600;
    border: 1px solid var(--veige_semi);
    text-align: center;
    text-decoration: none;
}

.btn:hover{
    background-color: var(--blanco);
    color: var(--veige);
    cursor: pointer;
}

#paypal-buttons-container{
    width: 90%;
}

#cont-pay{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding-bottom: 32px;
    border-right: 1px solid var(--gris_ojei);
}

#pay-title{
    margin-top: 54px;
    color: var(--gris);
    font-size: 1.4rem;
    text-align: center;
    padding-inline: 4px;
    text-wrap: balance;
}

#cont-products{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    background-color: var(--gris_claro);
}

#contCompraItems{
    display: flex;
    flex-direction: column;
}


#contCompraItems{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#compraTitle{
    margin-top: 32px;
    width: 90%;
    color: var(--gris_oscuro);
}

.car-head{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.carItem{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 1rem 0;
    height: auto;
    width: 100%;
}

.carline{
    margin: 1rem 0;
    height: 1px;
    width: 90%;
    background-color: var(--gris);
    flex-shrink: 0;
}

.carImg{
    height: 100px;
    width: 100px;
    border: 1px solid;
    flex-shrink: 0;
    background-position: center;
    background-size: cover;
}

.carData{
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    padding: 0 2rem;
    text-align: start;
    text-wrap: pretty;
    box-sizing: border-box;
    flex-grow: 0;
}

.carData>:nth-child(2){
    margin-top: 0px;
    font-size: 0.7rem;
}

.carTitle{
    font-weight: 500;
}

.carPrice{
    flex-shrink: 0;
}

.carStock{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    height: 30px;
    width: 100%;
}

#compraDetails{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.compraItemD{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#mainLine{
    font-weight: 700;
    color: var(--gris_muy_oscuro);
    font-size: 1.2rem;
}

#detailLine{
    font-size: 0.85rem;
    color: var(--gris);
    font-weight: 600;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#carContBtns{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

#fullBtn{
    width: 80%;
    margin-bottom: 32px;
}

/* Firefox */
/* input[type=number] {
  -moz-appearance: textfield;
} */

.carStock input{
    padding: 0;
    height: 100%;
    width: 20%;
    box-sizing: border-box;
    text-align: center;
    user-select: none;
    border: 1px solid var(--gris_muy_claro);
}

.carStock input:focus{
    outline: none;
    border: 1px solid #D0C9AA;
}

.carStock button{
    padding: 0 1rem;
    height: 100%;
    background-color: black;
    border: 1px solid black;
    color: #fff;
}

.carStock button:hover{
    background-color: var(--blanco);
    color: black;
    cursor: pointer;
}

.contNums{
    display: flex;
    flex-direction: row;
    width: 90%;
    gap: 64px;
}

@media(max-width:808px){
    .carData{
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .carPrice{
        font-size: 0.8rem;
    }

    .carStock button{
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }

    #cont-pay, #cont-products{
        width: 100%;
        padding: 1rem 0;
    }

    #cont-pay{
        border: none;
    }
    
    main{
        height: auto;
        min-height: unset;
        flex-direction: column-reverse;
        align-items: center;
    }
}