/**
 * Fichier print.css minimal
 * Objectif : imprimer une fiche produit WooCommerce sur une page
 */

@media print {
    /* Cacher les éléments inutiles */
    header,
    footer,
    nav,
    .mobile-menu-container,
    .btn-contact,
    .wp-block-social-links,
    .wp-block-buttons,
    .woocommerce-breadcrumb,
    .woocommerce-product-gallery,
    .add_to_cart_button,
    .woocommerce-tabs,
    .related.products,
    .product_meta,
    .single_variation_wrap,
    #reassurance,
    #produits-similaires,
    .otgs-development-site-front-end,
    .wpml-ls-statics-footer,
    .wpml-ls,
    .wpml-ls-legacy-list-horizontal,
    .lc-access-toolbar,
    .woocommerce-message,
    .woocommerce-notices-wrapper,
    .woocommerce-product-rating,
    .search-contact-wrapper,
    .wp-block-navigation,
    .wpml-language-switcher-block,
    .menu-logo,
    .bottom-menu,
    .site-footer {
        display: none !important;
    }

     body {
        color: #000;
        background: #fff;
        font-size: 10pt;
        line-height: 1.3;
        margin: 0;
        padding: 0;
    }

    .wp-site-blocks {
        max-width: 100%;
        padding: 0.5cm 1cm;
    }

    h1, h2, h3 {
        margin: 0.3em 0;
        font-size: 12pt;
    }

    p {
        margin: 0.2em 0;
    }

    /* Titre */
    .product_title,
    .wp-block-post-title {
        font-size: 14pt;
        font-weight: bold;
        margin: 0.3em 0 0.5em;
    }

    /* Prix */
    .price {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 0.8em;
    }

    /* Description */
    .woocommerce-product-details__short-description,
    .woocommerce-Tabs-panel--description,
    .entry-content,
    .product-description,
    .wp-block-post-content {
        font-size: 10pt;
        margin-bottom: 1em;
    }

    /* Miniaturisation des images */
    .woocommerce-product-gallery__image,
    .woocommerce-product-gallery img,
    .wc-block-product-gallery-large-image,
    .wp-block-woocommerce-product-gallery-large-image,
    .wp-block-image img {
        max-width: 120px !important;
        height: auto !important;
        display: block;
        margin: 0 0 0.5em;
    }

   /* Spécifications : 2 colonnes côte à côte */
    .leco-specs .leco-specs-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 16px;
    }

    .leco-spec-item {
        font-size: 10pt;
        margin-bottom: 2px;
        border: none;
        padding: 0;
    }

    .leco-spec-label {
        font-weight: bold;
        display: inline;
    }

    .leco-spec-value {
        margin-left: 0.3em;
        display: inline;
    }

    /* Retrait des liens imprimés */
    a::after,
    a[href]::after {
        content: "";
    }
}