@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --background: #E9E9E9;
    --white: #fff;
    --black: #2B2B2B;
    --light-gray: #fafafa;
    --gray: #D9D9D9;
    --dark-gray: #717171;

    /* --background: #fff;
    --white: #fff;
    --black: #2B2B2B;
    --light-gray: #E9E9E9;
    --gray: #D9D9D9;
    --dark-gray: #717171; */

    --stroke-gray: #C8C8C8;

    --green: #26A477;
    --red: #FF0000;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    color: var(--black);
    box-sizing: border-box;
}

body{
    width: 100%;
    background: var(--background);

    display: flex;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;

    padding-top: 116px;
    padding-bottom: 88px;
}

ion-icon{
    color: var(--dark-gray);
}

button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: var(--green);
    color: var(--white);
    font-weight: 600;

    border: 0;
    cursor: pointer;

    border-radius: 6px;

}

input, select{
    height: 48px;

    padding: 0 16px;

    border-radius: 6px;
    border: 1px solid var(--stroke-gray);
    background: var(--light-gray);

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

a{
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

a:hover{
    font-weight: 800;
}

main{
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;

    padding: 0px 40px;
}

.banner{
    width: 100%;
    height: 248px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 8px;
    background: url(../assets/banner.png) center / cover no-repeat;
}

.banner img{
    height: 204px;
}

.encontrar-produtos{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.encontrar-produtos h1{
    color: var(--green);
    text-align: center;
    font-size: 32px;
    font-weight: 700;

    line-height: 80%;
}

.encontrar-produtos span{
    color: var(--green);
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
}

.encontrar-produtos .cards{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 72px;
    align-self: stretch;
}

.card-carro, .card-produto{
    border: 1px solid var(--stroke-gray);

    display: flex;
    width: 324px;
    height: 296px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;

    transition: border 0.7s;

    cursor: pointer;
}

.card-carro{
    background: url(../assets/carro-card.png) center / cover no-repeat, var(--gray);
    transition: background 0.7s;
}

.card-produto{
    background: url(../assets/oleo-image.png) center / cover no-repeat, var(--gray);
    transition: background 0.7s;
}

.encontrar-produtos .card-carro:hover{
    background: rgba(0, 0, 0, 0.6) url(../assets/carro-card.png) center / cover;
    transition: background 0.7s;
}

.encontrar-produtos .card-produto:hover{
    background: rgba(0, 0, 0, 0.6) url(../assets/oleo-image.png) center / cover;

    transition:  0.7s;
}

.card-carro .typography, .card-produto .typography{
    height: 98px;

    transition: transform 0.7s;
}

.card-carro:hover, .card-produto:hover{
    border: 1px solid var(--green);

    transition: border 0.7s;
}

.card-carro:hover .typography, .card-produto:hover .typography{
    transform: scale(1.2);

    transition: transform 0.7s;

}

section.categorias{
    margin-top: 16px;

    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 16px;

}

section.categorias h1{
    align-self: center;
    font-size: 24px;
    font-weight: 400;
}

section.categorias .list{
    align-self: center;

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;

    overflow: auto;

}

.list .categoria{
    display: flex;
    min-width: 132px;
    width: 132px;
    height: 132px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;

    border-radius: 6px;
    border: 2px solid var(--green);
    background: var(--green);

    cursor: pointer;
    transition: 0.7s;


}

.list .categoria:hover{
    background: var(--background);
    transition: 0.7s;
}


.list .categoria:hover p{
    color: var(--green);
    transition: 0.5s;
}

.categoria img{
    width: 100%;
    height: 80%;

    object-fit: contain;
}

.categoria p{
    height: 20%;


    text-transform: uppercase;
    color: var(--white);

    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

section.produtos{
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 0 64px;
}

section.produtos .top{
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

section.produtos .top h1{
    font-size: 18px;
}

section.produtos .top a{
    font-size: 15px;
}

section.produtos .list{

    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product{
    display: flex;
    width: 220px;
    height: 280px;
    padding: 12px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--stroke-gray);
    border-radius: 6px;
    background: var(--light-gray);

    box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.35);

    cursor: pointer;

    transition:  0.5s;
}

.product:hover{
    border: 1px solid var(--green);

    transition:  0.5s;
}

.product .title{
    color: var(--black);

    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.product img{
    width: 100%;
    height: 40%;

    object-fit: contain;
}

.product .prices{
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product .prices .old-price{
    color: var(--red);
    text-decoration: line-through;

    font-size: 13px;
    font-weight: 600;
}

.product .prices .price{
    font-size: 18px;
    font-weight: 800;
}

.product button{
    width: 100%;

    background: none;
    color: var(--green);

    height: 32px;
    padding: 0px 16px;
    border-radius: 4px;
    border: 2px solid var(--green);

    transition: 0.7s;

    z-index: 6;

    cursor: pointer;
}

.product button:hover{
    background: var(--green);
    color: var(--white);

    transition: 0.7s;
}


@media (max-width: 870px){
    body{
        padding-top: 96px;
        padding-bottom: 96px;
    }

    main{
        padding: 16px;
    }

    .banner{
        height: 204px;

    }

    .banner img{
        width: 100%;
        object-fit: contain;
    }

    .encontrar-produtos .cards{
        width: 100%;
        gap: 24px;
    }

    .card-carro, .card-produto{
        display: flex;
        width: 50%;
        height: 296px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 6px;
    
        transition: border 0.7s;
    
        cursor: pointer;
    }

    .card-carro img, .card-produto img{
        width: 80%;
        object-fit: contain;
    }

    section.categorias{
        width: 100%;
    }

    section.categorias .list{
        align-self: flex-start;

        overflow: auto;
    }

    section.produtos{
        padding: 0;
    }
    
}