/* ==========================================================================
   Shop filter, «Смотрите также», brands.

   Linked by the filter's own partials (shop_filter_assets()), so pages
   without a filter do not load it. Built on the theme's tokens only
   (--c-*, --s-*, --t-*, --r-*), so it follows the site design and dark mode.

   Layout:
   - wide screens, «слева»: a card in the category's aside, groups as
     <details> accordions;
   - wide screens, «над списком»: a row of pill buttons whose <details>
     open as drop-downs;
   - phones and tablets: either one is a drawer from the left, opened by
     «Фильтры» (chips.twig) — :target without script, .is-open with it.
   ========================================================================== */

/* --- the aside the category gives the filter -------------------------------- */

@media (min-width: 64rem) {
    /* A long filter cannot be sticky: its bottom would never be reachable. */
    .shop-side--filter {
        position: static;
        display: grid;
        gap: var(--s-5);
    }
}

@media (max-width: 63.99rem) {
    /* The aside is hidden on phones; its filter still has to open. */
    .shop-side--filter {
        display: contents;
    }

    .shop-side--filter > .shop-tree {
        display: none;
    }
}

/* --- panel ---------------------------------------------------------------------- */

.shop-filter {
    --fv-gap: 0.55rem;
    font-size: var(--t-sm);
}

.shop-filter--side {
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius, var(--r-md));
    background: var(--c-surface);
}

.shop-filter__head {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-4) var(--s-3);
    border-bottom: 1px solid var(--c-border);
}

.shop-filter__title {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex: 1;
    margin: 0;
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.shop-filter__badge,
.shop-facet__badge,
.shop-fchips__n {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding-inline: 0.35rem;
    border-radius: var(--r-pill);
    background: var(--c-accent);
    color: var(--c-accent-contrast);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.shop-facet__badge--dot {
    min-width: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
}

.shop-filter__reset {
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--c-link);
    text-decoration: none;
}

.shop-filter__reset:hover {
    text-decoration: underline;
}

.shop-filter__close {
    display: none;
}

.shop-filter__body {
    padding: 0 var(--s-4);
}

.shop-filter__foot,
.shop-filter__backdrop {
    display: none;
}

/* --- a group ------------------------------------------------------------------- */

.shop-facet {
    border-bottom: 1px solid var(--c-border);
}

.shop-facet:last-child {
    border-bottom: 0;
}

.shop-facet__head {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: 0.85rem 0;
    font-weight: 650;
    color: var(--c-text-strong);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.shop-facet__head::-webkit-details-marker {
    display: none;
}

.shop-facet__label {
    flex: 1;
    min-width: 0;
}

.shop-facet__chevron {
    display: inline-grid;
    color: var(--c-text-muted);
    transition: transform var(--dur) var(--ease);
}

.shop-facet__chevron .cms-icon {
    width: 1rem;
    height: 1rem;
}

.shop-facet[open] > .shop-facet__head .shop-facet__chevron {
    transform: rotate(90deg);
}

.shop-facet__head:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.shop-facet__hint {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid var(--c-border-strong);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c-text-muted);
    cursor: help;
}

.shop-facet__hint::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 16rem;
    padding: 0.5rem 0.7rem;
    border-radius: var(--r-sm);
    background: var(--c-text-strong);
    color: var(--c-bg);
    font-size: var(--t-xs);
    font-weight: 450;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.shop-facet__hint:hover::after,
.shop-facet__hint:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.shop-facet__body {
    padding-bottom: var(--s-4);
}

.shop-facet__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --- a value ------------------------------------------------------------------- */

.shop-fv {
    display: flex;
    align-items: center;
    gap: var(--fv-gap);
    min-height: 2.1rem;
    padding: 0.25rem 0.4rem;
    margin-inline: -0.4rem;
    border-radius: var(--r-sm);
    color: var(--c-text);
    text-decoration: none;
    line-height: 1.3;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

a.shop-fv:hover {
    background: var(--c-surface-sunk);
    color: var(--c-text-strong);
}

.shop-fv:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 1px;
}

.shop-fv__label {
    flex: 1;
    min-width: 0;
}

.shop-fv__count {
    margin-inline-start: auto;
    font-size: var(--t-xs);
    font-variant-numeric: tabular-nums;
    color: var(--c-text-faint, var(--c-text-muted));
}

.shop-fv.is-on {
    color: var(--c-text-strong);
    font-weight: 600;
}

.shop-fv.is-off {
    opacity: 0.45;
    cursor: default;
}

.shop-fv__box {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid var(--c-border-strong);
    border-radius: 5px;
    background: var(--c-surface);
    color: transparent;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.shop-fv__box .cms-icon {
    width: 0.8rem;
    height: 0.8rem;
    stroke-width: 3;
}

a.shop-fv:hover .shop-fv__box {
    border-color: var(--c-accent);
}

.shop-fv.is-on .shop-fv__box {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: var(--c-accent-contrast);
}

.shop-facet--radio .shop-fv__box {
    border-radius: 50%;
}

.shop-facet--radio .shop-fv__box .cms-icon {
    display: none;
}

.shop-facet--radio .shop-fv.is-on .shop-fv__box {
    background: var(--c-surface);
    box-shadow: inset 0 0 0 3.5px var(--c-accent);
}

.shop-fv__logo {
    flex: none;
    width: 2.25rem;
    height: 1.4rem;
    object-fit: contain;
}

/* Swatches: a colour, or two for a split one; «no colour» is hatched. */
.shop-fv__swatch {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--sw, transparent);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14);
    transition: box-shadow var(--dur) var(--ease);
}

.shop-fv__swatch[style*='--sw2'] {
    background: linear-gradient(135deg, var(--sw) 50%, var(--sw2) 50%);
}

.shop-fv__swatch--none {
    background: repeating-linear-gradient(45deg, var(--c-surface-sunk) 0 3px, var(--c-border) 3px 5px);
}

.shop-fv.is-on .shop-fv__swatch {
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14), 0 0 0 2px var(--c-surface), 0 0 0 4px var(--c-accent);
}

/* Buttons: chips in a row. */
.shop-facet--buttons .shop-facet__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.shop-facet--buttons .shop-fv {
    gap: 0.35rem;
    min-height: 2.1rem;
    margin: 0;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-pill);
    background: var(--c-surface);
}

.shop-facet--buttons .shop-fv__label {
    flex: none;
}

.shop-facet--buttons .shop-fv__count {
    margin: 0;
}

.shop-facet--buttons a.shop-fv:hover {
    border-color: var(--c-accent);
    background: var(--c-surface);
}

.shop-facet--buttons .shop-fv.is-on {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

/* «Показать все (N)» and the search box. */
.shop-facet__rest > .shop-facet__list {
    margin-top: 2px;
}

.shop-facet--buttons .shop-facet__rest > .shop-facet__list {
    margin-top: 0.4rem;
}

.shop-facet__rest {
    display: flex;
    flex-direction: column-reverse;
}

.shop-facet__more {
    display: inline-flex;
    width: max-content;
    margin-top: var(--s-2);
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--c-link);
    cursor: pointer;
    list-style: none;
}

.shop-facet__more::-webkit-details-marker {
    display: none;
}

.shop-facet__more:hover {
    text-decoration: underline;
}

.shop-facet__more-close,
.shop-facet__rest[open] .shop-facet__more-open {
    display: none;
}

.shop-facet__rest[open] .shop-facet__more-close {
    display: inline;
}

.shop-facet__search {
    position: relative;
    margin-bottom: var(--s-2);
}

.shop-facet__search .cms-icon {
    position: absolute;
    top: 50%;
    left: 0.65rem;
    width: 0.95rem;
    height: 0.95rem;
    color: var(--c-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.shop-page .shop-facet__search-input {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.35rem 0.6rem 0.35rem 2rem;
    font-size: var(--t-sm);
}

.shop-facet__search-empty {
    margin: var(--s-2) 0 0;
    font-size: var(--t-xs);
    color: var(--c-text-muted);
}

.shop-facet__item[hidden] {
    display: none;
}

/* --- range ----------------------------------------------------------------------- */

.shop-range {
    display: grid;
    gap: var(--s-3);
}

.shop-range__fields {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.shop-range__field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.shop-range__edge {
    position: absolute;
    top: 50%;
    left: 0.6rem;
    font-size: var(--t-xs);
    color: var(--c-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.shop-page .shop-range__input {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.35rem 0.5rem 0.35rem 1.9rem;
    font-size: var(--t-sm);
    font-variant-numeric: tabular-nums;
    appearance: textfield;
    -moz-appearance: textfield;
}

.shop-range__input::-webkit-outer-spin-button,
.shop-range__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.shop-range__dash {
    color: var(--c-text-faint, var(--c-text-muted));
}

.shop-range__unit {
    font-size: var(--t-xs);
    color: var(--c-text-muted);
}

.shop-range__slider {
    position: relative;
    height: 1.5rem;
    margin-inline: 0.55rem;
}

.shop-range__track {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--c-border);
    transform: translateY(-50%);
}

.shop-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--from, 0%);
    right: calc(100% - var(--to, 100%));
    border-radius: inherit;
    background: var(--c-accent);
}

.shop-range__thumb {
    position: absolute;
    inset: 0 -0.55rem;
    width: calc(100% + 1.1rem);
    height: 100%;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.shop-range__thumb:focus {
    outline: none;
}

.shop-range__thumb::-webkit-slider-runnable-track {
    background: none;
    border: 0;
}

.shop-range__thumb::-moz-range-track {
    background: none;
    border: 0;
}

.shop-range__thumb::-webkit-slider-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--c-accent);
    border-radius: 50%;
    background: var(--c-surface);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
    cursor: grab;
    pointer-events: auto;
    -webkit-appearance: none;
}

.shop-range__thumb::-moz-range-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid var(--c-accent);
    border-radius: 50%;
    background: var(--c-surface);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.18);
    cursor: grab;
    pointer-events: auto;
}

.shop-range__thumb:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px var(--c-accent-soft), 0 1px 3px rgb(0 0 0 / 0.18);
}

.shop-range__apply {
    min-height: 2.35rem;
    padding: 0.35rem 0.9rem;
}

.shop-range[data-enhanced] .shop-range__apply {
    display: none;
}

/* --- the row above the list (wide screens) ------------------------------------------ */

@media (min-width: 64rem) {
    .shop-filter--bar {
        margin-block-end: var(--s-4);
    }

    .shop-filter--bar .shop-filter__head {
        display: none;
    }

    .shop-filter--bar .shop-filter__body {
        display: flex;
        flex-wrap: wrap;
        gap: var(--s-2);
        padding: 0;
    }

    .shop-filter--bar .shop-facet {
        position: relative;
        border: 0;
    }

    .shop-filter--bar .shop-facet__head {
        min-height: 2.5rem;
        padding: 0.4rem 0.85rem;
        border: 1px solid var(--c-border-strong);
        border-radius: var(--r-pill);
        background: var(--c-surface);
        font-weight: 600;
        transition: border-color var(--dur) var(--ease);
    }

    .shop-filter--bar .shop-facet__head:hover,
    .shop-filter--bar .shop-facet[open] > .shop-facet__head {
        border-color: var(--c-accent);
    }

    .shop-filter--bar .shop-facet.is-active > .shop-facet__head {
        border-color: var(--c-accent);
        background: var(--c-accent-soft);
        color: var(--c-accent);
    }

    .shop-filter--bar .shop-facet[open] > .shop-facet__head .shop-facet__chevron {
        transform: rotate(-90deg);
    }

    .shop-filter--bar .shop-facet__head .shop-facet__chevron {
        transform: rotate(90deg);
    }

    .shop-filter--bar .shop-facet__body {
        position: absolute;
        z-index: 40;
        top: calc(100% + 6px);
        left: 0;
        width: max-content;
        min-width: 15rem;
        max-width: 22rem;
        max-height: min(26rem, 70vh);
        overflow: auto;
        padding: var(--s-4);
        border: 1px solid var(--c-border);
        border-radius: var(--card-radius, var(--r-md));
        background: var(--c-surface);
        box-shadow: var(--shadow-lift);
    }

    .shop-filter--bar .shop-facet--range .shop-facet__body {
        width: 20rem;
    }
}

/* --- the drawer (phones and tablets) ------------------------------------------------ */

@media (max-width: 63.99rem) {
    .shop-filter {
        position: fixed;
        z-index: 1000;
        inset: 0 auto 0 0;
        display: flex;
        flex-direction: column;
        width: min(24rem, 92vw);
        border: 0;
        border-radius: 0;
        background: var(--c-surface);
        box-shadow: var(--shadow-lift);
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 220ms var(--ease), visibility 0s linear 220ms;
    }

    .shop-filter:target,
    .shop-filter.is-open {
        visibility: visible;
        transform: none;
        transition: transform 220ms var(--ease), visibility 0s;
    }

    .shop-filter__head {
        padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
    }

    .shop-filter__title {
        font-size: var(--t-md);
        letter-spacing: 0;
        text-transform: none;
        color: var(--c-text-strong);
    }

    /* The drawer's foot has «Сбросить всё». */
    .shop-filter__reset {
        display: none;
    }

    .shop-filter__close {
        display: inline-grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 50%;
        color: var(--c-text-strong);
    }

    .shop-filter__close:hover {
        background: var(--c-surface-sunk);
    }

    .shop-filter__body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .shop-fv {
        min-height: 2.6rem;
    }

    .shop-filter__foot {
        display: flex;
        gap: var(--s-2);
        padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--c-border);
        background: var(--c-surface);
    }

    .shop-filter__foot > * {
        flex: 1;
        min-height: 2.9rem;
        padding-inline: var(--s-3);
    }

    .shop-filter__show {
        flex: 2;
    }

    .shop-filter__backdrop {
        position: fixed;
        z-index: 999;
        inset: 0;
        display: block;
        background: rgb(12 14 20 / 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 220ms var(--ease), visibility 0s linear 220ms;
    }

    .shop-filter:target + .shop-filter__backdrop,
    .shop-filter.is-open + .shop-filter__backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity 220ms var(--ease), visibility 0s;
    }

    /* The bar's drop-downs are accordions in the drawer. */
    .shop-filter--bar .shop-facet[open] > .shop-facet__head .shop-facet__chevron {
        transform: rotate(90deg);
    }
}

html.shop-filter-locked {
    overflow: hidden;
}

/* --- chips above the results ---------------------------------------------------------- */

.shop-fchips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-3);
    margin-block-end: var(--s-4);
}

.shop-fchips__open {
    min-height: 2.5rem;
    padding: 0.4rem 0.9rem;
}

.shop-fchips__open .cms-icon {
    width: 1.1rem;
    height: 1.1rem;
}

@media (min-width: 64rem) {
    .shop-fchips__open {
        display: none;
    }

    .shop-fchips--empty {
        display: none;
    }
}

.shop-fchips__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.25rem 0.5rem 0.25rem 0.8rem;
    border-radius: var(--r-pill);
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-size: var(--t-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--dur) var(--ease);
}

.shop-chip .cms-icon {
    width: 0.95rem;
    height: 0.95rem;
    opacity: 0.8;
}

.shop-chip:hover {
    background: color-mix(in srgb, var(--c-accent) 18%, var(--c-surface));
}

.shop-fchips__reset {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--c-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-fchips__reset:hover {
    color: var(--c-text-strong);
}

/* While the list reloads in place. */
[data-shop-filter-busy] {
    opacity: 0.55;
    transition: opacity 120ms var(--ease);
    pointer-events: none;
}

/* --- «Смотрите также» -------------------------------------------------------------------- */

.shop-seealso {
    margin-block: var(--s-8) 0;
    padding-block-start: var(--s-6);
    border-top: 1px solid var(--c-border);
}

.shop-seealso__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-seealso__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.35rem 0.95rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    background: var(--c-surface);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--c-text-strong);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.shop-seealso__link:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.shop-seealso__n {
    font-size: var(--t-xs);
    font-weight: 500;
    color: var(--c-text-muted);
}

/* --- brands ---------------------------------------------------------------------------- */

.shop-brands__index {
    display: grid;
    gap: var(--s-2);
    margin-block-end: var(--s-6);
    padding: var(--s-4);
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius, var(--r-md));
    background: var(--c-surface);
}

.shop-brands__letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-brands__letter {
    display: inline-grid;
    place-items: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding-inline: 0.4rem;
    border-radius: var(--r-sm);
    font-weight: 650;
    color: var(--c-text-strong);
    text-decoration: none;
}

.shop-brands__letter:hover {
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.shop-brands__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: var(--s-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-brand-tile {
    display: grid;
    grid-template-rows: 5.5rem auto;
    gap: var(--s-2);
    height: 100%;
    padding: var(--s-4);
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius, var(--r-md));
    background: var(--c-surface);
    color: var(--c-text-strong);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.shop-brand-tile:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.shop-brand-tile__logo {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.shop-brand-tile__logo img {
    max-width: 100%;
    max-height: 5rem;
    object-fit: contain;
}

.shop-brand-tile__mono {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-family: var(--font-display);
    font-size: var(--t-lg);
    font-weight: 700;
}

.shop-brand-tile__name {
    margin: 0;
    font-weight: 650;
    text-align: center;
}

.shop-brand-tile__count {
    display: block;
    font-size: var(--t-xs);
    font-weight: 450;
    color: var(--c-text-muted);
}

.shop-brands__group {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--s-4);
    padding-block: var(--s-4);
    border-top: 1px solid var(--c-border);
    scroll-margin-top: var(--s-6);
}

.shop-brands__group-letter {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--t-xl);
    font-weight: 700;
    line-height: 1;
    color: var(--c-accent);
}

.shop-brands__names {
    columns: 14rem auto;
    column-gap: var(--s-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-brands__names li {
    break-inside: avoid;
    padding-block: 0.2rem;
}

.shop-brands__names a {
    color: var(--c-text-strong);
    text-decoration: none;
}

.shop-brands__names a:hover {
    color: var(--c-link);
    text-decoration: underline;
}

.shop-brands__names span {
    margin-inline-start: 0.35rem;
    font-size: var(--t-xs);
    color: var(--c-text-muted);
}

.shop-brand-head {
    display: flex;
    align-items: center;
    gap: var(--s-5);
}

.shop-brand-head__logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 7rem;
    height: 5rem;
    padding: var(--s-2);
    border: 1px solid var(--c-border);
    border-radius: var(--card-radius, var(--r-md));
    background: var(--c-surface);
}

.shop-brand-head__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-brand-head__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    margin: 0;
    font-size: var(--t-sm);
    color: var(--c-text-muted);
}

.shop-brand-head__facts dt {
    display: inline;
}

.shop-brand-head__facts dd {
    display: inline;
    margin: 0 0 0 0.3rem;
    color: var(--c-text-strong);
}

@media (max-width: 40rem) {
    .shop-brand-head {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--s-3);
    }

    .shop-brands__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-3);
    }

    .shop-brands__group {
        grid-template-columns: 2rem 1fr;
        gap: var(--s-3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-filter,
    .shop-filter__backdrop,
    .shop-facet__chevron,
    .shop-brand-tile {
        transition: none;
    }
}
