.nwf-shop {
    --nwf-text: #262626;
    --nwf-muted: #757575;
    --nwf-border: #e5e5e5;
    --nwf-soft: #f7f7f7;
    --nwf-white: #fff;
    width: 100%;
    color: var(--nwf-text);
    font-family: inherit;
}

.nwf-shop *,
.nwf-shop *::before,
.nwf-shop *::after {
    box-sizing: border-box;
}

.nwf-filter {
    display: grid;
    grid-template-columns: 1.35fr 1fr .72fr .72fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 26px;
    padding: 18px;
    border: 1px solid var(--nwf-border);
    border-radius: 10px;
    background: var(--nwf-white);
}

.nwf-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--nwf-text);
    font-size: 13px;
    font-weight: 600;
}

.nwf-field input,
.nwf-field select,
.nwf-actions button {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--nwf-border);
    border-radius: 7px;
    background: var(--nwf-white);
    color: var(--nwf-text);
    font: inherit;
    font-size: 14px;
    box-shadow: none;
    outline: none;
}

.nwf-field input:focus,
.nwf-field select:focus {
    border-color: var(--nwf-text);
}

.nwf-actions {
    display: flex;
    gap: 8px;
}

.nwf-actions button {
    width: auto;
    min-width: 82px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 600;
}

.nwf-submit {
    border-color: var(--nwf-text) !important;
    background: var(--nwf-text) !important;
    color: #fff !important;
}

.nwf-reset {
    background: var(--nwf-soft) !important;
}

.nwf-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 22px;
    margin: 0 0 16px;
    color: var(--nwf-muted);
    font-size: 13px;
}

.nwf-shop.is-loading .nwf-results {
    opacity: .42;
    pointer-events: none;
}

.nwf-results {
    transition: opacity .18s ease;
}

.nwf-results ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 22px;
    margin: 0 !important;
}

.nwf-results ul.products::before,
.nwf-results ul.products::after {
    display: none !important;
}

.nwf-results ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.nwf-empty {
    padding: 44px 18px;
    border: 1px solid var(--nwf-border);
    border-radius: 8px;
    text-align: center;
    color: var(--nwf-muted);
}

.nwf-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 42px;
}

.nwf-pages .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--nwf-border);
    border-radius: 6px;
    color: var(--nwf-text);
    text-decoration: none;
}

.nwf-pages .current {
    border-color: var(--nwf-text);
    background: var(--nwf-text);
    color: #fff;
}

@media (max-width: 1100px) {
    .nwf-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nwf-actions,
    .nwf-actions button {
        width: 100%;
    }

    .nwf-results ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .nwf-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .nwf-search-field,
    .nwf-actions {
        grid-column: 1 / -1;
    }

    .nwf-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }
}

@media (max-width: 480px) {
    .nwf-filter {
        grid-template-columns: 1fr;
    }

    .nwf-search-field,
    .nwf-actions {
        grid-column: auto;
    }
}
