@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_oscuro: #5d5d5d;
    --gris_muy_oscuro:#333333;
    --verde: #137513;

    --oliva_oscuro: #272b00;
    --olivia: #54582f;
    --verde: #86895d;
    --oro: #BEB37E;
    --oro_claro: #D0C9AA;
    --amarrillo_claro: #feeeb8;

}

html{
    scroll-behavior: smooth;
}

body {

    position: relative;
    font-family: "Poppins";
    padding: 0;
    margin: 0;
    background-color: var(--blanco);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

#todo{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    background-color: var(--blanco);
    background-image: url(../images/background_texture.avif);
    background-size: 1100px;
}

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

.tachita{
    font-size: 1.5rem;
}

.tachita:hover{
    cursor: pointer;
    color: var(--oro);
}

#compra-fill{
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
}

#compra{
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
    text-align: center;
    border-radius: 10px;
    padding: 1rem 0;
    height: auto;
    min-height: 100vh;
    width: 40%;
    background-color: var(--blanco);
    border: 1px solid var(--olivia);
    color: var(--color0);
}

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

.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: 92%;
}

.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;
}

.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%;
}

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{
    font-family: "Poppins";
    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: var(--oro);
    border: 1px solid var(--oro);
    color: var(--blanco);
}

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

#compra-head h2{
    font-weight: 600;
}

#paypal-buttons-container{

    width: 50%;
    height: 50%;
    background-color: var(--color0);

}

#paypal-buttons-container h2{

    font-weight: 500;
    width: 100%;
    text-align: center;

}

@media(max-width:808px){

    #paypal-buttons-container{

        width: 95%;

    }

}

#cont-info{
    margin-top: 94px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    height: auto;
    width: 90%;
    padding: 4rem 0;
    background-color: var(--gris_muy_claro);
}

#img{
    height: 300px;
    width: 300px;
    border: 1px solid var(--oro);
    background-color: var(--blanco);
    background-size: cover;
    background-position: center;
}

#text-info{
    max-width: 60%;
    width: 55%;
}

#cal{
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--gris);
    gap: 4px;
    font-size: 0.85rem;
}

#tachado{
    text-decoration: line-through;
    color: var(--gris);
    font-size: 0.85rem;
    margin-right: 8px;
}

.detail{
    color: var(--gris);
    font-size: 0.85rem;
}

#desc{
    color: var(--gris_oscuro);
    font-size: 0.9rem;
}

.line{
    width: 90%;
    height: 1px;
    background-color: var(--oro);
}

.btn2{
    position: absolute;
    top: 135px;
    left: 30px;
    padding: 1rem;
    color: var(--blanco);
    font-weight: 600;
    font-family: "Poppins";
    color: var(--oro);
    border: 1px solid var(--oro);
    text-decoration: none;
}

.btn2:hover{
    color: var(--blanco);
    background-color: var(--oro);
}

.btn{
    background-color: var(--oro);
    padding: 1rem 0;
    width: 40%;
    color: var(--blanco);
    font-weight: 600;
    font-family: "Poppins";
    border: 1px solid var(--oro);
}

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

/* ? CONT DETAILS */

#cont-details{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
    height: auto;
    padding: 4rem 0;
    width: 90%;
    background-color: var(--oro_claro);
    color: var(--blanco);
    text-shadow: 0px 2px 4px rgb(0, 0, 0, 0.3);
}

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

.detailo{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 18px;
    padding: 1rem 0;
    font-size: 1.1rem;
}

.detailo i{
    font-size: 2rem;
}

.detail-text{
    font-weight: 700;
}

#cont-more{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 62px;
    margin-bottom: 32px;
    width: 95%;
    padding: 4rem 0;
    background-color: var(--gris_muy_claro);
}

#cont-more h2{
    width: 95%;
}

#cont-more p{
    margin: 0;
    width: 95%;
    color: var(--gris);
    font-size: 0.9rem;
}

#cont-produs{
    display: flex;
    flex-direction: row;
    gap: 22px;
    height: auto;
    width: 90%;
    padding: 2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 1rem;
}

#cont-produs::-webkit-scrollbar{
    height: 10px;
}

.cont-produ{
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 370px;
    width: 200px;
    padding: 0 0.7rem;
    gap: 16px;
    background-color: var(--oro);
    box-shadow: 3px 5px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    text-align: center;
    font-size: 0.9rem;
}

.cont-produ:hover{
    cursor: pointer;
    transform: scale(105%);
}

.img-produ{
    height: 200px;
    width: 80%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.title-produ{
    font-weight: 700;
    color: var(--blanco);
    font-size: 0.9rem;
}

.text-produ{
    color: var(--blanco);
    font-size: 0.8rem;
}

@media(max-width:808px){
    #cont-info{
        flex-direction: column;
    }
    #text-info{
        width: 95%;
        max-width: 90%;
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #compra{
        width: 95%;
    }

    #compra-fill{
        width: 5%;
    }

    .carData{
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .carPrice{
        font-size: 0.8rem;
    }

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

    #btn-buy{
        padding: 1rem 0.5rem;
    }

    #desc, #title{
        text-align: center;
    }

    #cont-details{
        text-align: center;
    }

    #cont-details h2{
        font-size: 1.1rem;
    }

    .detailo i{
        font-size: 1.5rem;
    }

    .detailo{
        font-size: 0.7rem;
    }

}

