/* Only the native subcategory grid changes; desktop and product images stay native. */
@media (max-width: 767.98px) {
    #result-wrapper .fenral-category-grid {
        margin-right: -6px;
        margin-left: -6px;
    }
    #result-wrapper .fenral-category-grid > .col-12 {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 0;
        padding-right: 6px;
        padding-left: 6px;
        margin-bottom: 12px;
    }
    #result-wrapper .fenral-category-grid .sub-categories {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 10px 8px;
        margin-bottom: 0;
        border: 1px solid #e3e7ea;
        border-radius: 8px;
        background: #fff;
    }
    #result-wrapper .fenral-category-grid .subcategories-image {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1;
        margin: 0 0 6px;
    }
    #result-wrapper .fenral-category-grid .subcategories-image picture {
        display: block;
        width: 100%;
    }
    #result-wrapper .fenral-category-grid .subcategories-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    #result-wrapper .fenral-category-grid .caption {
        padding: 0;
        text-align: center;
    }
    #result-wrapper .fenral-category-grid .caption a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 4px 0;
        font-size: 0.875rem;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}
