/* Grille des résultats WooCommerce d’Enfold. */
#top.cc-grille-boutique #main main.template-shop ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    column-gap: 1%;
    row-gap: 12px;
}

#top.cc-grille-boutique #main main.template-shop ul.products::before,
#top.cc-grille-boutique #main main.template-shop ul.products::after {
    content: none;
}

#top.cc-grille-boutique #main main.template-shop ul.products > li.product {
    display: flex;
    flex-direction: column;
    float: none;
    clear: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

.cc-grille-boutique main.template-shop ul.products .inner_product,
.cc-grille-boutique main.template-shop ul.products .woocommerce-loop-product__link,
.cc-grille-boutique main.template-shop ul.products .inner_product_header,
.cc-grille-boutique main.template-shop ul.products .inner_product_header_table,
.cc-grille-boutique main.template-shop ul.products .inner_product_header_cell {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.cc-grille-boutique main.template-shop ul.products .thumbnail_container {
    flex: none;
    aspect-ratio: 1;
}

#top.cc-grille-boutique main.template-shop ul.products .thumbnail_container > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#top.cc-grille-boutique main.template-shop ul.products .inner_product_header .price {
    margin-top: auto;
}

@media (max-width: 767px) {
    #top.cc-grille-boutique #main main.template-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {
    #top.cc-grille-boutique #main main.template-shop ul.products {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 20px;
    }
}
