body {
    background-color: white !important;
}

main {
    animation: fadeIn 0.7s ease-out;
}

main h2 {
    padding: 40px;
    font-size: 2.5vw;
    justify-self: center;
    color: var(--grey);
}

main p {
    justify-self: center;
    font-size: 1vw;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
}

.product {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    height: 100%;
    justify-content: flex-start;
    margin-bottom: 40px;
}

main a {
    overflow: hidden;
}

.product img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 2s ease;
}

.product h3 {
    text-align: center;
    margin-top: 10px;
    font-size: 1.6vw;
    color: var(--grey);
}


main a:hover img {
    transform: scale(1.2);
}

.red {
    color: var(--red);
    text-decoration: none;
}

.red:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}


@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(2, 1fr); 
    }

    main p {
        margin-bottom: 30px;
        padding: 0 15px;
        font-size: 2vw;
    }

    main h2 {
        font-size: 5vw;
    }

    .product h3 {
        font-size: 3vw;
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: repeat(1, 1fr); 
        padding:0 15px;
    }

    main h2 {
        font-size: 8vw;
    }

    .product h3 {
        font-size: 5vw;
    }

    main p {
        font-size: 3.5vw;
        text-align: center;
    }
}