@media (max-width: 767.98px) {
    #product-list:has(.ks-gallery-action) { margin-inline: -6px; }
    /* NOVA sets individual wrapper heights inline. Let each gallery row stretch its cards. */
    #product-list > .product-wrapper:has(.ks-gallery-action) {
        display: flex;
        flex-direction: column;
        height: auto !important;
        padding-inline: 6px;
        margin-bottom: 16px;
    }
    #product-list .productbox-column:has(.ks-gallery-action),
    #product-list .productbox-column:has(.ks-gallery-action) > .form-basket,
    #product-list .form-basket:has(.ks-gallery-action) > .productbox-inner,
    #product-list .productbox-inner:has(.ks-gallery-action) > .row,
    #product-list .col:has(> .ks-gallery-action) {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
    }
    #product-list .productbox-column:has(.ks-gallery-action) { height: auto; }
    #product-list .productbox-inner:has(.ks-gallery-action) > .row { flex-wrap: nowrap; }
    #product-list .productbox-inner:has(.ks-gallery-action) > .row > .col { flex-basis: auto; }
    #product-list .col:has(> .ks-gallery-action) .productbox-title { margin-top: 10px; padding-inline: 12px; }
    #product-list .col:has(> .ks-gallery-action) .price_wrapper { padding-inline: 12px; margin-bottom: 10px; }
    #product-list .col:has(> .ks-gallery-action) .old-price-value { white-space: nowrap; }
    #product-list .ks-gallery-action {
        margin: auto 10px 10px;
        min-height: 44px;
        padding: 5px 4px;
        gap: 5px;
        border: 1px solid #d9c3d2;
        border-radius: 9px;
        background: #f7f0f5 !important;
        color: #712859 !important;
        font-size: .875rem;
        font-weight: 600;
        line-height: 1.2;
        box-shadow: none;
    }
    #product-list .ks-gallery-action.btn-outline-primary {
        background: transparent !important;
        border-color: #d7d4d7;
        color: inherit !important;
    }
    #product-list .ks-gallery-action:focus-visible { outline: 2px solid #862f6c; outline-offset: 2px; }
    #product-list .ks-gallery-action:active { background: #eadce5 !important; }
    #product-list .ks-gallery-action .fa-shopping-cart { font-size: .85em; }
}
@media (max-width: 375px) {
    #product-list .ks-gallery-action .fa-shopping-cart { display: none; }
}

