/* WEB-314: geometry corrections only; retain copy, navigation and visibility. */
.ws-mobile-dialog nav .ws-mobile-editorial-links a.ws-mobile-showrooms,
.ws-mobile-dialog nav .ws-mobile-editorial-links a.ws-mobile-blog {
    justify-content: flex-start;
}
.ws-mobile-dialog nav .ws-mobile-editorial-links a > span {
    margin: 0;
}

.ws-newsletter .ws-newsletter__inner,
.ws-newsletter .ws-newsletter__form,
.ws-newsletter .ws-newsletter__email {
    min-width: 0;
}
@media (min-width: 768px) and (max-width: 1100px) {
    .ws-newsletter .ws-newsletter__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-block: 18px;
    }
    .ws-newsletter .ws-newsletter__form {
        grid-template-columns: minmax(0, 1fr) 112px minmax(0, auto);
    }
}

/* The native list-mode marker must win over the collection grid breakpoint. */
body.ws-collection-detail #maincontent .products-list .ws-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
}
body.ws-collection-detail #maincontent .products-list .ws-product-card {
    min-width: 0;
}
@media (min-width: 768px) {
    body.catalog-category-view.ws-collection-detail #maincontent .products-list .product-item-photo {
        width: 30%;
        max-width: 280px;
        margin: 0;
    }
    body.ws-collection-detail #maincontent .products-list .product-info {
        min-width: 0;
        width: auto;
        flex: 1;
    }
    body.ws-collection-detail #maincontent .toolbar-products {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }
    body.ws-collection-detail #maincontent .toolbar-sorter {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    body.category-sooduspakkumised .page-main:has(.ws-campaign-hero) .toolbar-products {
        display: block;
        padding: 0;
        background: transparent;
    }
    body.category-sooduspakkumised .page-main:has(.ws-campaign-hero) .toolbar-sorter,
    body.category-sooduspakkumised .page-main:has(.ws-campaign-hero) .toolbar-sorter label {
        display: block;
        width: 100%;
        margin: 0;
    }
    body.category-sooduspakkumised .page-main:has(.ws-campaign-hero) .toolbar-sorter select {
        width: 100%;
        max-width: none;
        padding-left: 12px;
        text-align: left;
    }
}
