@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700;900&display=swap');

:root{
    --red : #ff2020;
    --grey : #dcdcdc;
    --white : #fff;
    --darkgrey : #333;
    --yellow : #ffd513;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{ /*esse estilo deverá ir em uma 'section'*/

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
    min-height: 100vh;
    width: 100%;
    background-color: var(--grey);
}
main{
    width: 100%;
}
#produtos {
    position: relative;
    width: 100%;
}
.container{
    position: relative;
    width: min(90%, 1200px);
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    margin: 0 auto;
}

.container .card{
    width:100%;
    background: var(--white);
}

.container .card .imgbox{
    position: relative;
    width: 100%;
    height: 310px;
    overflow: hidden;
}

.container .card .imgbox img{
   position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    object-fit: contain;
    transition: 0.5s ease-in-out;
    transform-origin: right;
}

.container .card:hover .imgbox img{
 transform: scale(1.5);
}


.action{

    position: absolute;

    top: 10px;

    right: 10px;

}



.action li{

    position: relative;

    list-style: none;

    width: 40px;

    height: 40px;

    background-color: var(--white);

    display: flex;

    justify-content: center;

    align-items: center;

    margin: 4px;

    cursor: pointer;

    transition: transform 0.5s;

    transform: translateX(60px);

}





.action li:nth-child(2){

    transition-delay: 0.15s;

}



.action li:nth-child(3){

    transition-delay: 0.3s;

}



.container .card:hover .action li{

    transform: translateX(0px);

}



.action li:hover{

    background-color: var(--red);

    color: var(--white);

}



.action li span{

    position: absolute;

    right: 50px;

    top: 50%;

    transform: translateY(-50%) translateX(-20px);

    white-space: nowrap;

    padding: 4px 10px;

    background-color: var(--white);

    color: var(--darkgrey);

    font-weight: 500;

    font-size: 12px;

    border-radius: 4px;

    pointer-events: none;

    opacity: 0;

    transition: 0.5s;

}



.action li:hover span{

    opacity: 1;

    transform: translateY(-50%) translateX(0px);

}



.action li span::before{

    content: '';

    position: absolute;

    top: 50%;

    right:-4px;

    width: 8px;

    height: 8px;

    background-color: var(--white);

    transform: translateY(-50%) rotate(45deg);

}



.container .card .content{

    padding: 10px;

}



.container .card .content .productName h3{

    font-size: 18px;

    font-weight: 700;

    color: var(--darkgrey);

    margin: 5px 0;
    text-align: center;

}



.container .card .content .price_rating{

    display: flex;

    justify-content: space-between;

    align-items:center;

}



.container .card .content .price_rating h2{

    font-size:20px;

    color: var(--red);

    font-weight: 500;

}



.container .card .content .price_rating .fas{

    color: var(--yellow);

    cursor: pointer;

}



.container .card .content .price_rating .fas.grey{

    color: var(--grey);

}

#produtos .headline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

#produtos .headline h2 {
    max-width: 355px;
}

#produtos .headline .frete-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-around;
    width: min(90%, 550px);
}

#produtos .headline .frete-box p:nth-child(1) {
    max-width: 190px;
    margin: 10px auto;
}
#produtos .headline .frete-box p:nth-child(2) {
    max-width: 200px;
    margin: 10px auto;
}

.estoque,
.validade-produto{
    font-size: 12px;
}

#produtos > p {
    text-align: center;
    font-weight: 700;
    width: 90%;
    margin: 45px auto;
}

footer{
    width: 100%;
    font-size: 12px;
    color: #333;
    background-color: rgb(94, 94, 94);
    padding: 15px 0;
    text-align: center;
}

footer a{
    color: #333;
    font-weight: 700;
    text-decoration: none;
}