/* .cards {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(230px, 500px);
    grid-gap: 20px;
    margin-bottom: 20px;
} */

/* Main page cards */
.cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex: 200px;
    margin-bottom: 20px;
}

.cards a {
    text-decoration: none;
}
.card {
    background-color: #ffffff;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    text-align: center;
    margin: 10px;
}

.card h5 {
    margin-bottom: 0px;
}

.card img {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.card:hover{
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.5);
}


.card .card-title {
    transition: 0.3s;
    padding: 25px 0 25px 0;
}

.card .card-text {
    transition: 0.3s;
    padding: 0 0 25px;
}

.card:hover .card-title, .card:hover .card-text {
    background-color: #f4511e;
    opacity: 0.9;
}

/* Product card */

.product-card * {
    margin-bottom: 15px;
}

#aluminiowe, #dezynfekujace, #downlighty, #kasetony, #reflektory, #wiszace {
    padding-bottom: 25px;
}

.product-card {
    display: flex;
    flex-direction: column;

    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    padding: 15px;
    margin-top: 25px;
}

.product-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    margin-bottom: 10px;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.product-text {
    text-align: justify;
}

@media screen and (min-width: 768px) {
    .product-card {
        flex-direction: row;
    
        padding: 50px;
        margin-top: 25px;
    }
    #aluminiowe, #dezynfekujace, #downlighty, #kasetony, #reflektory, #wiszace {
        padding-top: 70px;
    }
    
    .product-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .product-spacing {
        padding: 25px;
    }
    .product-contents{
        width: 50%;
    }
    .product-img {
        width: 50%;
        align-self: center;
    }
}