/**
* Theme Name: Quilly Child
* Description: This is a child theme of Quilly, generated by Merlin WP.
* Author: <a href="http://themelexus.com/">Themelexus</a>
* Template: quilly
* Version: 1.0.0
*/

/* Blog archive: replace the theme's Read More label visually with French text. */
body.page-id-29 .more-link .hover-text,
body.page-id-29 .more-link .elementor-button-text {
    font-size: 0 !important;
}

body.page-id-29 .more-link .hover-text::after,
body.page-id-29 .more-link .elementor-button-text::after {
    content: "Lire plus";
    font-size: 14px;
}

/* Accueil : afficher les couvertures du carousel de livres en entier,
   quelle que soit leur proportion, sans recadrage ni déformation. */
body.home .elementor-element-6829ac7 .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    overflow: hidden;
}

body.home .elementor-element-6829ac7 .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 1024px) {
    body.home .elementor-element-6829ac7 .product-image {
        height: 320px;
    }
}

@media (max-width: 767px) {
    body.home .elementor-element-6829ac7 .product-image {
        height: 360px;
    }
}

/* Boutique : couvertures entières, proportions respectées et présentation régulière. */
body.woocommerce-shop .quilly-products-grid .product-image,
body.tax-product_cat .quilly-products-grid .product-image,
body.tax-product_tag .quilly-products-grid .product-image {
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

body.woocommerce-shop .quilly-products-grid .product-image img,
body.tax-product_cat .quilly-products-grid .product-image img,
body.tax-product_tag .quilly-products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

body.woocommerce-shop .quilly-products-grid .product-block,
body.tax-product_cat .quilly-products-grid .product-block,
body.tax-product_tag .quilly-products-grid .product-block {
    height: 100%;
}

@media (max-width: 1024px) {
    body.woocommerce-shop .quilly-products-grid .product-image,
    body.tax-product_cat .quilly-products-grid .product-image,
    body.tax-product_tag .quilly-products-grid .product-image {
        height: 390px;
    }
}

@media (max-width: 767px) {
    body.woocommerce-shop .quilly-products-grid .product-image,
    body.tax-product_cat .quilly-products-grid .product-image,
    body.tax-product_tag .quilly-products-grid .product-image {
        height: 440px;
    }
}

/* Fiche produit : titre des produits associés centré et noir. */
body.single-product .related.products > h2,
body.single-product .related.products .related-title,
body.single-product .related.products h2 {
    text-align: center !important;
    color: #000000 !important;
}

/* Produits associés : titre centré et noir sur les fiches produit. */
body.single-product .related.products > h2,
body.single-product .related.products h2,
body.single-product .related.products .related-title {
    text-align: center !important;
    color: #000000 !important;
}