/* ================================ */
/* ===== Global Products CSS ====== */
/* ================================ */

/* Force the product grid to be in 5 columns */
.woocommerce ul.products {
    display: grid ;
    grid-template-columns: repeat(5, 1fr) ; /* 5 columns */
    column-gap: 30px ; /* Horizontal gap */
    row-gap: 20px ; /* Vertical spacing */
    align-items: stretch ;
    padding: 0 ;
    margin: 0 ;
    list-style: none ; /* Remove bullets */
}

/* Style individual product cards */
.woocommerce ul.products li.product {
    background: #fff ;
    border-radius: 8px ;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) ;
    overflow: hidden ;
    text-align: center ;
    padding: 5px ;
    display: flex ;
    flex-direction: column ;
    justify-content: space-between ;
    height: 100% ;
    max-width: 100% ;
    margin: 0 ;
    transition: transform 0.3s ease, box-shadow 0.3s ease ;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Style product images */
.woocommerce ul.products li.product img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
		
}

/* Style the product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 400;
    margin: 10px 0;
		margin-left: 10px;
		margin-right: 10px;
}

/* Style the price */
.woocommerce ul.products li.product .price {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

/* Style the "megtekintés" button */
.woocommerce ul.products li.product .product-button {
    background-color: #f5f5f5;
    color: #000000;
    padding: 10px 10px;
    text-decoration: none;
    border-radius: 5px;
    border: 0px solid #000;
    margin-bottom: 10px;
		margin-left: 10px;
		margin-right: 10px;
    font-weight: 500;
    transition: all 0.5s ease;
}

.woocommerce ul.products li.product .product-button:hover {
    background-color: #f0f0f0;
    border-color: #333; 
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 1224px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
    }
}

/* Hide the default "Add to Cart" button */
.woocommerce ul.products li.product .button {
    display: none !important;
}