/* 1. Contenitore della griglia */
.product-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 50px;
}

/* 2. Stile della singola "Card" Prodotto */
.product-card {
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    max-width: 344px;


    a {
        cursor: pointer;
        height: 420px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

/* .product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
} */

/* 3. Immagine del Prodotto */
.product-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 4. Dettagli (Titolo e Prezzo) */
.product-card-details {
    padding-top: 16px;
    flex-grow: 1;
    /* Fa in modo che questa sezione si espanda se le card hanno altezze diverse */
}

/* 5. Titolo del Prodotto */
.product-card-title {
    margin: 0;
}

.product-card-title a {
    text-decoration: none;
    color: black;
}

/* 6. Prezzo del Prodotto */
.product-card-price {
    font-weight: 600;
    color: var(--marrone-peck-darker);
}

/* Stile per i prezzi in saldo  */
.product-card-price del {
    font-weight: normal;
    color: var(--marrone-peck-darker);
    margin-right: 8px;
    opacity: 0.8;
}

.product-card-price ins {
    text-decoration: none;
    background: none;
}

/* 7. Layout Responsivo per Tablet e Mobile */
/* Per tablet - 2 colonne */
@media (max-width: 992px) {
    .product-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Per smartphone - 1 colonna */
@media (max-width: 600px) {
    .product-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 8. Stile per la paginazione */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
    clear: both;

    a,
    a:visited {
        color: black;
        padding: 8px;
        margin-inline: 8px;
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: 1.42;
        letter-spacing: 0.28px;
    }

    a.active {
        border-bottom: 1px solid black;
    }
}

.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #555;
    transition: background-color 0.2s, color 0.2s;
}

.woocommerce-pagination .page-numbers:hover {
    background-color: #f5f5f5;
    color: #222;
}

.woocommerce-pagination .page-numbers.current {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.row-filtri {
    h3 {
        margin-bottom: 8px;
        padding: 0;
    }

    .facetwp-facet-categorie {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
}

.facetwp-facet-categorie .facetwp-counter {
    display: none !important;
}