.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 24px;
}

.product {
    position: relative;
    overflow: hidden;
}

.product.large {
    grid-column: span 2;
    grid-row: span 2;
}

.product a.product-link {
    display: block;
    color: inherit; /* Ensures text inherits the color from the parent elements */
    text-decoration: none; /* Removes underline from links */
}

.product img {
    width: 100%;
    height: auto;
    display: block;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffffd4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.product:hover .product-overlay {
    opacity: 1;
}


.product-info {
    display: flex;
    text-align: center;
    flex-direction: column;
    width: 270px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0.3s;
}


.static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 18%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.product.large.static img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

p.kisszoveg {
    font-weight: 500;
    font-size: 17px;
    line-height: 28px;
    letter-spacing: .01em;
    text-transform: uppercase;
    font-family: "Jost", sans-serif;
    margin: 0px;
}


p.kiemeles {
    font-weight: bold;
    font-size: 65px;
    line-height: 28px;
    letter-spacing: .01em;
    text-transform: uppercase;
    font-family: "Jost", sans-serif;
    margin: 25px 0px;
}


h3.product-name {
    font-family: "Space Grotesk", Sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}



p.price-form {
    color: #1e293b;
    margin-bottom: 0px;
    font-family: "Space Grotesk", Sans-serif;
    font-size: 35px;
    font-weight: 800;
}

span.form-text {
    font-size: 15px;
    font-weight: 500;
}

.product:hover .product-info {
    opacity: 1; 
}

.product-tag {
    position: absolute;
    top: 20px;
    left: 0px;
    background: #a4a4ee;
    color: #fff;
    padding: 1px 22px;
    font-size: 15px;
    text-transform: uppercase;
    z-index: 10;
    font-weight: bold;
    line-height: 32px;
}

.product:hover .product-tag {
    display: none; /* Hide tag on hover */
}


@media only screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 termék egy sorban */
    }

    .product.large {
        grid-column: span 2; /* Teljes szélesség a statikus képnek */
        grid-row: span 1; /* Egy sor magasság */
    }

    .product.large.static img {
        width: 100%;
        height: auto;
        object-fit: cover; /* Biztosítja, hogy a kép kitöltse a rendelkezésre álló teret anélkül, hogy torzulna */
    }

    .product {
        width: 100%;
    }
	
	p.kiemeles {
    font-weight: bold;
    font-size: 38px;

    margin: 20px 0px;
}
	p.kisszoveg {
    font-weight: 500;
    font-size: 17px;
    line-height: 28px;
    letter-spacing: .01em;
    text-transform: uppercase;
    font-family: "Jost", sans-serif;
    margin: 0px;
}
}