/*
 * Mobile product listing guard.
 * Loaded after the base/category bundles so category cards stay at two columns
 * under the generic WooCommerce mobile grid rules in style-live.css.
 */
@media (max-width: 480px) {
    body .dm-category-products .dm-products-grid.products,
    body .dm-category-products ul.products.dm-products-grid,
    body.search-results .woocommerce ul.products,
    body.search-results ul.products.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body .dm-category-products .dm-products-grid.products::before,
    body .dm-category-products .dm-products-grid.products::after,
    body.search-results ul.products.products::before,
    body.search-results ul.products.products::after {
        content: none !important;
        display: none !important;
    }

    body .dm-category-products .dm-products-grid.products > li.product,
    body.search-results .woocommerce ul.products > li.product,
    body.search-results ul.products.products > li.product {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 0 12px !important;
        padding: 8px !important;
    }

    body .dm-category-products .dm-product-card__link,
    body.search-results .dm-product-card__link {
        min-width: 0 !important;
    }

    body .dm-category-products .dm-product-card__image,
    body.search-results .dm-product-card__image {
        aspect-ratio: 16 / 10 !important;
        margin-bottom: 8px !important;
        border-radius: 10px !important;
    }

    body .dm-category-products .dm-product-card__image img,
    body.search-results .dm-product-card__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body .dm-category-products .dm-product-card__title,
    body.search-results .dm-product-card__title {
        min-height: 2.4em !important;
        margin-bottom: 8px !important;
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body .dm-category-products .dm-product-card__features,
    body .dm-category-products .dm-product-card__trust,
    body.search-results .dm-product-card__features,
    body.search-results .dm-product-card__trust {
        display: none !important;
    }

    body .dm-category-products .dm-product-card__footer,
    body.search-results .dm-product-card__footer {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 0 !important;
        padding-top: 9px !important;
        flex-wrap: nowrap !important;
    }

    body .dm-category-products .dm-product-card__price-wrap,
    body.search-results .dm-product-card__price-wrap {
        min-width: 0 !important;
    }

    body .dm-category-products .dm-product-card__price-label,
    body.search-results .dm-product-card__price-label {
        margin-bottom: 2px !important;
        font-size: 0.58rem !important;
        line-height: 1 !important;
    }

    body .dm-category-products .dm-product-card__price,
    body.search-results .dm-product-card__price {
        font-size: 1.02rem !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
    }

    body .dm-category-products .dm-product-card__cta,
    body.search-results .dm-product-card__cta {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    body .dm-category-products .dm-platform-badge,
    body.search-results .dm-platform-badge {
        width: 26px !important;
        height: 26px !important;
    }

    body .dm-category-products .dm-platform-badge__logo,
    body.search-results .dm-platform-badge__logo {
        width: 14px !important;
        height: 14px !important;
    }
}
