#main{
    margin: 20vh 0;
    padding: 0 10vw;
}

#main h2{
    font-family: 'Lexend', sans-serif;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 10vh;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
}

#main .products{
    width: 100%;
    display: grid;
    grid-template-columns: 30% 30% 30%;
    grid-gap: 20vh 5%;
}

#main .products .card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
    position: relative;
}

#main .products .card a{
    width: 100%;
    height: 250px;
    border-radius: 10%;
    box-shadow: 0 5px #b3b3b362;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main .products .card a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#main .products .card a .image-hover{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000000aa;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#main .products .card a p{
    position: relative;
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--primary-color);
    font-size: 16px;
    padding: 5px 20px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#main .products .card a:hover .image-hover, #main .products .card a:hover p{
    opacity: 1;
}

#main .products .card span{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: absolute;
    top: -25px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#main .products .card span img{
    width: 30px;
    height: 30px;
}

#main .products .card h3{
    font-family: 'Sora', sans-serif;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
}

#main .products .card p{
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    text-align: center;
    padding: 0 15px;
}

#main .products .card.product a{
    height: 350px;
}

@media screen and (max-width:900px){
    
    #main .products{
        grid-template-columns: 47.5% 47.5%;
    }
}

@media screen and (max-width:600px){
    
    #main .products{
        grid-template-columns: 100%;
    }
}