/* Parent-category mobile navigation: show every category in two columns. */
@media (max-width: 767px) {
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills,
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .s3i-subcat-wrap,
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .owl-stage {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(8px, 2.5vw, 12px) !important;
        align-items: stretch;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills > .elementor-widget-shortcode,
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills > .elementor-shortcode,
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills > .elementor-widget-container,
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills > .s3i-subcat-wrap,
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .owl-item:has(.s3i-subcat-wrap) {
        grid-column: 1 / -1;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills :is(.elementor-widget-button, .elementor-widget-container, .elementor-shortcode, .s3i-subcat-wrap, .s3i-subcat-item, .elementor-button) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-basis: auto !important;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .elementor-widget-button {
        min-height: 0 !important;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills :is(.elementor-button, .s3i-subcat-item) {
        min-height: 44px !important;
        height: 100%;
        padding: clamp(10px, 3vw, 14px) !important;
        font-size: clamp(12px, 3.3vw, 14px) !important;
        line-height: 1.3 !important;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills :is(.elementor-button, .elementor-button-content-wrapper, .elementor-button-text, .s3i-subcat-item) {
        white-space: normal !important;
        overflow-wrap: anywhere;
        overflow: visible;
        text-overflow: clip;
    }

    /* Door Intercom retains Owl above mobile. Its mobile stage becomes a static
     * grid, overriding Owl's inline slide widths and translations. */
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills.owl-loaded {
        display: block !important;
        padding-inline: 0 !important;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .owl-stage-outer {
        width: 100%;
        height: auto !important;
        overflow: visible;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .owl-stage {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .owl-item {
        float: none;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        touch-action: auto;
    }

    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills :is(.owl-nav, .owl-dots, .owl-item.cloned),
    html body.tax-product_cat .cie-category-parent-intro .cie-category-parent-intro__pills .owl-stage::after {
        display: none !important;
    }
}
