.shop-filter {
    --shop-header-gray: rgb(166, 166, 166);
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fafafa;
}

.shop-filter__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.shop-filter__field {
    min-width: 0;
}

.shop-filter__label {
    display: block;
    width: fit-content;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--shop-header-gray);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

@media screen and (min-width: 769px) {
    .shop-filter__label {
        width: auto;
        margin-bottom: 12px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #555;
    }
}

.shop-filter__header {
    margin: -20px -20px 14px;
    padding: 10px 12px;
    border-radius: 8px 8px 0 0;
    background: rgb(166, 166, 166);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.shop-filter__input,
.shop-filter__select {
    width: 100%;
    height: 40px;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

.shop-filter__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shop-filter__btn {
    border: 1px solid #c8c8c8;
    background: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}

.shop-filter__btn.is-active {
    border-color: #8cc152;
    background: #8cc152;
    color: #fff;
}

.shop-filter__brands {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.shop-filter__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.shop-filter__brand input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #8cc152;
    border-radius: 3px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.shop-filter__brand input[type="checkbox"]::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
}

.shop-filter__brand input[type="checkbox"]:checked {
    background: #8cc152;
}

.shop-filter__brand input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.shop-filter__brand input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(140, 193, 82, 0.45);
    outline-offset: 1px;
}

.shop-filter__summary {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 700;
}

.shop-content__heading {
    scroll-margin-top: 120px;
}

.shop-content__empty {
    margin-top: 18px;
    padding: 12px 0;
    border-top: 1px solid #d8d8d8;
    font-size: 14px;
    color: #666;
}

/* Width extension via additive classes only */
.shop-content--wide-layout {
    width: 96rem;
    max-width: 100%;
}

.shop-filter--wide-layout {
    width: 100%;
}

.shop-list-root--wide-layout {
    width: 100%;
}

table.store-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

table.store-table thead th {
    background: rgb(166, 166, 166);
    color: #fff;
    padding: 10px 10px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

table.store-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

table.store-table td {
    border-bottom: 1px solid #ddd;
    padding: 20px 12px;
    vertical-align: top;
    line-height: 1.7;
}

.store-name {
    font-weight: bold;
}

.store-meta {
    font-size: 12px;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
}

.badge.CELLULA {
    background: rgb(196, 166, 64);
}

.badge.FALCO {
    background: rgb(18, 41, 74);
}

.brand-badges {
    white-space: nowrap;
}

.brand-badges .badge {
    display: inline-block;
    margin-right: 6px;
}

.no-result {
    padding: 12px 8px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .shop-filter {
        margin-top: 16px;
        padding: 22px 16px;
    }

    .shop-filter__row {
        display: block;
        margin-bottom: 18px;
    }

    .shop-filter__header {
        display: none;
    }

    .shop-filter__field {
        width: 100%;
        min-width: 100%;
    }

    .shop-filter__field + .shop-filter__field {
        margin-top: 18px;
    }

    .shop-filter__label {
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .shop-filter__brands {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 18px;
        margin-top: 18px;
    }

    .shop-filter__buttons {
        gap: 10px;
    }

    .shop-filter__summary {
        margin-top: 18px;
        font-size: 13px;
    }

    .shop-filter__btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .shop-content--wide-layout {
        width: 100%;
    }

    table.store-table {
        font-size: 12px;
    }

    table.store-table thead {
        display: none;
    }

    table.store-table tbody {
        display: block;
    }

    table.store-table tbody tr {
        display: block;
        margin-top: 0;
        padding: 14px 0;
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    table.store-table tbody tr + tr {
        border-top: 1px solid #ddd;
    }

    table.store-table tbody tr:last-child {
        border-bottom: 1px solid #ddd;
    }

    table.store-table tbody tr:nth-child(even) {
        background: transparent;
    }

    table.store-table td {
        display: block;
        width: 100%;
        border-bottom: none;
        padding: 6px 0;
        line-height: 1.5;
    }

    .brand-badges {
        white-space: normal;
    }

    .no-result {
        border: none;
    }
}


