/*
 * COQUETTE.TN
 * Cartes produits mobiles identiques à l'accueil
 *
 * Pages concernées :
 * - Promotions
 * - Catégories
 * - Sous-catégories
 */

@media screen and (max-width: 767px) {

    /* ==================================================
       1. CONTENEUR DU NOM DU PRODUIT
       ================================================== */

    body#prices-drop .product-miniature .product-title,
    body.page-prices-drop .product-miniature .product-title,

    body#category .product-miniature .product-title,
    body.page-category .product-miniature .product-title,

    body#prices-drop .product-miniature .product_name,
    body.page-prices-drop .product-miniature .product_name,

    body#category .product-miniature .product_name,
    body.page-category .product-miniature .product_name,

    body#prices-drop .product-miniature .product-name,
    body.page-prices-drop .product-miniature .product-name,

    body#category .product-miniature .product-name,
    body.page-category .product-miniature .product-name {
        display: block !important;

        width: 100% !important;

        height: 63px !important;
        min-height: 63px !important;
        max-height: 63px !important;

        margin-top: 5px !important;
        margin-bottom: 7px !important;

        padding: 0 !important;

        line-height: 21px !important;
        white-space: normal !important;

        overflow: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* ==================================================
       2. LIEN DU NOM : TROIS LIGNES AVEC ...
       ================================================== */

    body#prices-drop .product-miniature .product-title a,
    body.page-prices-drop .product-miniature .product-title a,

    body#category .product-miniature .product-title a,
    body.page-category .product-miniature .product-title a,

    body#prices-drop .product-miniature .product_name a,
    body.page-prices-drop .product-miniature .product_name a,

    body#category .product-miniature .product_name a,
    body.page-category .product-miniature .product_name a,

    body#prices-drop .product-miniature .product-name a,
    body.page-prices-drop .product-miniature .product-name a,

    body#category .product-miniature .product-name a,
    body.page-category .product-miniature .product-name a {
        display: -webkit-box !important;

        width: 100% !important;

        height: 63px !important;
        min-height: 63px !important;
        max-height: 63px !important;

        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;

        line-height: 21px !important;
        white-space: normal !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;

        word-break: normal !important;
        overflow-wrap: break-word !important;

        visibility: visible !important;
        opacity: 1 !important;
    }

    /* ==================================================
       3. ZONE MARQUE + NOM + PRIX
       ================================================== */

    body#prices-drop .product-miniature .product-description,
    body.page-prices-drop .product-miniature .product-description,

    body#category .product-miniature .product-description,
    body.page-category .product-miniature .product-description,

    body#prices-drop .product-miniature .product-description-inner,
    body.page-prices-drop .product-miniature .product-description-inner,

    body#category .product-miniature .product-description-inner,
    body.page-category .product-miniature .product-description-inner,

    body#prices-drop .product-miniature .product-info,
    body.page-prices-drop .product-miniature .product-info,

    body#category .product-miniature .product-info,
    body.page-category .product-miniature .product-info {
        height: auto !important;
        min-height: 155px !important;
        max-height: none !important;

        padding-bottom: 12px !important;

        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* ==================================================
       4. PRIX SOUS LE NOM
       ================================================== */

    body#prices-drop .product-miniature .product-price-and-shipping,
    body.page-prices-drop .product-miniature .product-price-and-shipping,

    body#category .product-miniature .product-price-and-shipping,
    body.page-category .product-miniature .product-price-and-shipping {
        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: block !important;
        clear: both !important;

        width: 100% !important;

        height: auto !important;
        min-height: 38px !important;
        max-height: none !important;

        margin-top: 4px !important;

        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* ==================================================
       5. CARTE PRODUIT ADAPTABLE
       ================================================== */

    body#prices-drop .product-miniature,
    body.page-prices-drop .product-miniature,

    body#category .product-miniature,
    body.page-category .product-miniature,

    body#prices-drop .product-miniature-container,
    body.page-prices-drop .product-miniature-container,

    body#category .product-miniature-container,
    body.page-category .product-miniature-container,

    body#prices-drop .thumbnail-container,
    body.page-prices-drop .thumbnail-container,

    body#category .thumbnail-container,
    body.page-category .thumbnail-container {
        max-height: none !important;
        overflow: visible !important;
    }

    /* ==================================================
       6. LIGNES ET GRILLES DE PRODUITS
       ================================================== */

    body#prices-drop #js-product-list .products,
    body.page-prices-drop #js-product-list .products,

    body#category #js-product-list .products,
    body.page-category #js-product-list .products,

    body#prices-drop #products .products,
    body.page-prices-drop #products .products,

    body#category #products .products,
    body.page-category #products .products {
        overflow: visible !important;
        align-items: stretch !important;
    }

    /* Les colonnes d'une même ligne gardent une hauteur cohérente */
    body#prices-drop #js-product-list .products > article,
    body.page-prices-drop #js-product-list .products > article,

    body#category #js-product-list .products > article,
    body.page-category #js-product-list .products > article {
        display: flex !important;
        flex-direction: column !important;
    }
}
