/*
 * DIPROCLEAN WooCommerce Mobile v1.1.0
 * Compatible avec le DOM Hyori: div.products / div.product
 */

.dp-wc-mobile-active .products,
.dp-wc-mobile-active .products > .product {
    box-sizing: border-box;
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dp-wc-mobile-active .products.row,
    .dp-wc-mobile-active .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }

    .dp-wc-mobile-active .products.row > .product,
    .dp-wc-mobile-active .products-grid > .product {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        float: none !important;
    }
}

@media (max-width: 767px) {
    .dp-wc-mobile-active .products.row,
    .dp-wc-mobile-active .products-grid,
    .dp-wc-mobile-active div.products {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .dp-wc-mobile-active .products.row > .product,
    .dp-wc-mobile-active .products-grid > .product,
    .dp-wc-mobile-active div.products > div.product {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        flex-basis: 100% !important;
        margin: 0 !important;
        float: none !important;
        clear: none !important;
    }

    .dp-wc-mobile-active .product-block,
    .dp-wc-mobile-active .product-block .block-inner,
    .dp-wc-mobile-active .product-block .metas,
    .dp-wc-mobile-active .product-block .bottom {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .dp-wc-mobile-active .product img,
    .dp-wc-mobile-active .product-block img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .dp-wc-mobile-active .woocommerce-loop-product__title,
    .dp-wc-mobile-active .product .title-wrapper,
    .dp-wc-mobile-active .product .title-wrapper a {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .dp-wc-mobile-active .product .price,
    .dp-wc-mobile-active .product-block .price {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .dp-wc-mobile-active a.button.product_type_external,
    .dp-wc-mobile-active .product a.button,
    .dp-wc-mobile-active .product-block a.button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 52px !important;
        margin: 12px 0 0 !important;
        padding: 12px 16px !important;
        font-size: 1rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        box-sizing: border-box !important;
    }
}
