.chm-catalog-page {
    background: #fafafa;
}

html.catalog-filter-open,
html.catalog-filter-open body {
    overflow: hidden;
}

.catalog-page,
.catalog-search-page {
    color: #171717;
    background: #fafafa;
    font-family: var(--font-body);
}

.catalog-shell,
.catalog-search-shell {
    width: min(calc(100% - 32px), 1280px);
    margin-inline: auto;
    padding: 30px 0 72px;
}

.catalog-breadcrumbs {
    overflow: hidden;
    margin-bottom: 16px;
    color: #737373;
    font-size: 13px;
    line-height: 20px;
}

.catalog-breadcrumbs ol {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
}

.catalog-breadcrumbs li {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.catalog-breadcrumbs li:not(:last-child)::after {
    content: "/";
    flex: 0 0 auto;
    padding: 0 8px;
    color: #a3a3a3;
}

.catalog-breadcrumbs a {
    transition: color 180ms ease;
}

.catalog-breadcrumbs a:hover,
.catalog-breadcrumbs a:focus-visible {
    color: #171717;
}

.catalog-breadcrumbs [aria-current="page"] {
    overflow: hidden;
    color: #171717;
    text-overflow: ellipsis;
}

.catalog-heading {
    padding: 0 0 22px;
    text-align: center;
}

.catalog-heading h1,
.catalog-search-shell > h1 {
    margin: 0;
    color: #171717;
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 42px;
    font-weight: 700;
    letter-spacing: 0;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.catalog-results {
    min-width: 0;
}

.catalog-toolbar {
    position: relative;
    z-index: 4;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.catalog-results.is-loading {
    opacity: .58;
    transition: opacity .16s ease;
    pointer-events: none;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #737373;
    font-size: 14px;
    line-height: 20px;
}

.catalog-sort-menu {
    position: relative;
}

.catalog-sort-menu > button,
.catalog-filter-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    color: #242424;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    font-size: 14px;
    line-height: 20px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.catalog-sort-menu > button:hover,
.catalog-sort-menu > button:focus-visible,
.catalog-filter-toggle:hover,
.catalog-filter-toggle:focus-visible {
    border-color: #bdbdbd;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.06);
}

.catalog-sort-menu > button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

.catalog-sort-menu.is-open > button svg {
    transform: rotate(180deg);
}

.catalog-sort-options {
    position: absolute;
    z-index: 10;
    top: calc(100% + 6px);
    left: 0;
    display: grid;
    width: 224px;
    padding: 6px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.11);
}

.catalog-sort-options[hidden] {
    display: none;
}

.catalog-sort-options a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px;
    border-radius: 5px;
    color: #242424;
    font-size: 14px;
    line-height: 20px;
}

.catalog-sort-options a:hover,
.catalog-sort-options a:focus-visible {
    background: #f4f4f5;
}

.catalog-sort-options svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.catalog-filter-toggle {
    display: none;
}

.catalog-filter-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.catalog-filter-panel {
    position: sticky;
    top: 18px;
    min-width: 0;
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 0 18px 18px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #a3a3a3 transparent;
}

.catalog-filter-panel::-webkit-scrollbar {
    width: 6px;
}

.catalog-filter-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #a3a3a3;
}

.catalog-filter-mobile-head {
    display: none;
}

.catalog-filter-desktop-head {
    display: flex;
    min-height: 54px;
    align-items: center;
}

.catalog-filter-desktop-head h2,
.catalog-filter-mobile-head h2 {
    margin: 0;
    color: #171717;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px;
}

.catalog-active-filters a {
    display: inline-flex;
    min-height: 32px;
    max-width: 100%;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    overflow: hidden;
    border: 1px solid #a3a3a3;
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-active-filters svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.catalog-filter-group {
    border-bottom: 0;
}

.catalog-filter-group > summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #242424;
    list-style: none;
    font-size: 14px;
    line-height: 22px;
    font-weight: 650;
}

.catalog-filter-group > summary::-webkit-details-marker {
    display: none;
}

.catalog-filter-group > summary svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

.catalog-filter-group[open] > summary svg {
    transform: rotate(180deg);
}

.catalog-filter-options {
    display: grid;
    gap: 2px;
    padding: 0 0 14px;
}

.catalog-filter-options label,
.catalog-filter-link {
    display: grid;
    min-height: 36px;
    grid-template-columns: 18px minmax(0,1fr) auto;
    align-items: center;
    gap: 7px;
    color: #525252;
    font-size: 14px;
    line-height: 20px;
}

.catalog-filter-options label:hover,
.catalog-filter-link:hover,
.catalog-filter-link:focus-visible,
.catalog-filter-link.is-active {
    color: #171717;
}

.catalog-filter-options input[type="checkbox"],
.catalog-filter-options input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #111;
}

.catalog-filter-options input[type="checkbox"] { border-radius:3px; }

.catalog-filter-options small {
    color: #a3a3a3;
    font-size: 12px;
}

.catalog-radio {
    display: block;
    width: 17px;
    height: 17px;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    background: #fff;
}

.catalog-filter-link.is-active .catalog-radio {
    border: 5px solid #111;
}

.catalog-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.catalog-price-fields label {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 12px;
}

.catalog-price-fields input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 9px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.catalog-filter-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 0 2px;
}

.catalog-filter-actions a,
.catalog-filter-actions button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 18px;
}

.catalog-filter-actions a {
    color: #737373;
}

.catalog-filter-actions button {
    color: #fff;
    background: #111;
    font-weight: 650;
}

.catalog-filter-backdrop {
    display: none;
}

.catalog-category-rail {
    display: none;
}

.catalog-grid,
.catalog-search-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 24px 14px;
}

.catalog-card {
    min-width: 0;
}

.catalog-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f4f5;
}

.catalog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.catalog-card:hover .catalog-card-media img,
.catalog-card:focus-within .catalog-card-media img {
    transform: scale(1.018);
}

.catalog-card-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    color: #fff;
    border-radius: 999px;
    background: #111;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
}

.catalog-card-badge.is-muted {
    background: #737373;
}

.catalog-card-body {
    min-width: 0;
    padding: 8px 2px 0;
}

.catalog-card-title {
    display: block;
    overflow: hidden;
    color: #737373;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 20px;
    transition: color 180ms ease;
}

.catalog-card-title:hover,
.catalog-card-title:focus-visible {
    color: #171717;
}

.catalog-card-rating {
    display: flex;
    min-height: 20px;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #737373;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

.catalog-stars {
    display: inline-flex;
    gap: 0;
    color: #d4d4d4;
}

.catalog-stars i,
.catalog-stars svg {
    display: block;
    width: 12px;
    height: 12px;
}

.catalog-stars svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1;
}

.catalog-stars i.is-filled {
    color: #f4c430;
}

.catalog-card-footer {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-card-price {
    min-width: 0;
    color: #171717;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.catalog-card-price del {
    color: #a3a3a3;
    font-size: 11px;
    font-weight: 400;
}

.catalog-card-price ins {
    text-decoration: none;
}

.catalog-card-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1px;
}

.catalog-card-actions button,
.catalog-card-actions a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    color: #737373;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transition: color 180ms ease, background-color 180ms ease;
}

.catalog-card-actions button:hover,
.catalog-card-actions button:focus-visible,
.catalog-card-actions a:hover,
.catalog-card-actions a:focus-visible {
    color: #171717;
    background: #eee;
}

.catalog-card-actions button.is-active svg {
    fill: currentColor;
}

.catalog-card-actions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    padding-top: 46px;
}

.catalog-pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.catalog-pagination a,
.catalog-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.catalog-pagination .current {
    color: #fff;
    border-color: #111;
    background: #111;
}

.catalog-empty-state,
.catalog-search-empty {
    display: grid;
    min-height: 390px;
    place-content: center;
    justify-items: center;
    padding: 40px 16px;
    text-align: center;
}

.catalog-empty-icon,
.catalog-search-empty > span {
    color: #d4d4d4;
}

.catalog-empty-icon svg,
.catalog-search-empty > span svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.catalog-empty-state h2,
.catalog-search-empty h2 {
    margin: 18px 0 6px;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 28px;
}

.catalog-empty-state p,
.catalog-search-empty p {
    margin: 0;
    color: #737373;
    font-size: 14px;
}

.catalog-empty-state > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    margin-top: 20px;
    padding: 0 18px;
    color: #fff;
    border-radius: 999px;
    background: #111;
    font-size: 13px;
}

.catalog-search-shell {
    padding-top: 30px;
}

.catalog-search-shell > h1 {
    max-width: 760px;
    font-size: 32px;
    line-height: 40px;
}

.catalog-search-form {
    display: flex;
    width: min(570px,100%);
    height: 50px;
    align-items: center;
    margin-top: 14px;
    padding: 0 9px 0 12px;
    border: 1px solid #bdbdbd;
    border-radius: 999px;
    background: #f4f4f5;
    box-shadow: inset 0 0 0 1px #fff, 0 0 0 1px rgba(0,0,0,.12);
}

.catalog-search-form label {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 9px;
}

.catalog-search-form label > svg,
.catalog-search-form button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.catalog-search-form label > svg {
    flex: 0 0 18px;
    color: #737373;
}

.catalog-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
    color: #242424;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.catalog-search-form input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.catalog-search-form button {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 0;
    color: #737373;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.catalog-search-form button[hidden] {
    display: none;
}

.catalog-search-form button:hover,
.catalog-search-form button:focus-visible {
    color: #171717;
    background: #e4e4e7;
}

.catalog-search-form .search-image {
    display: grid;
}

.catalog-search-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    margin: 28px 0 24px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
}

.catalog-search-tabs a {
    display: inline-flex;
    min-width: 50px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #737373;
    border-radius: 999px;
    font-size: 14px;
}

.catalog-search-tabs a.is-active {
    color: #fff;
    background: #111;
}

.catalog-search-grid {
    gap: 24px;
}

.catalog-card-search .catalog-card-rating,
.catalog-card-search .catalog-card-actions {
    display: none;
}

.catalog-card-search .catalog-card-title {
    padding-top: 1px;
}

.catalog-card-search .catalog-card-footer {
    min-height: 22px;
}

.catalog-search-empty {
    min-height: 290px;
}

.catalog-search-recent {
    padding-top: 18px;
}

.catalog-search-recent-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.catalog-search-recent-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 34px;
}

.catalog-search-recent-heading a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

@media (max-width: 1000px) and (min-width: 801px) {
    .catalog-layout {
        grid-template-columns: 205px minmax(0,1fr);
        gap: 24px;
    }

    .catalog-grid,
    .catalog-search-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 800px) {
    .catalog-shell,
    .catalog-search-shell {
        width: min(calc(100% - 30px), 640px);
        padding: 24px 0 54px;
    }

    .catalog-breadcrumbs {
        margin-bottom: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .catalog-breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .catalog-heading {
        padding-bottom: 22px;
    }

    .catalog-heading h1,
    .catalog-search-shell > h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-category-rail {
        display: flex;
        gap: 10px;
        margin: 4px -15px 22px;
        padding: 0 15px 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .catalog-category-rail::-webkit-scrollbar {
        display: none;
    }

    .catalog-category-chip {
        display: grid;
        width: 66px;
        flex: 0 0 66px;
        justify-items: center;
        gap: 5px;
        color: #737373;
        scroll-snap-align: start;
        font-size: 11px;
        line-height: 15px;
        text-align: center;
    }

    .catalog-category-image {
        display: grid;
        width: 60px;
        height: 60px;
        overflow: hidden;
        place-items: center;
        border: 1px solid transparent;
        border-radius: 50%;
        background: #f4f4f5;
    }

    .catalog-category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .catalog-category-all {
        border-color: #e4e4e7;
        background: #fff;
    }

    .catalog-category-image svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
    }

    .catalog-category-chip.is-active {
        color: #171717;
        font-weight: 600;
    }

    .catalog-category-chip.is-active .catalog-category-image {
        border: 2px solid #171717;
        box-shadow: inset 0 0 0 3px #fff;
    }

    .catalog-toolbar {
        min-height: 42px;
        margin-bottom: 12px;
    }

    .catalog-sort {
        gap: 6px;
        font-size: 13px;
    }

    .catalog-sort-menu > button,
    .catalog-filter-toggle {
        min-height: 38px;
        padding-inline: 12px;
    }

    .catalog-sort-options {
        width: 176px;
        max-width: calc(100vw - 30px);
    }

    .catalog-filter-toggle {
        display: inline-flex;
        border-radius: 999px;
    }

    .catalog-filter-backdrop {
        position: fixed;
        z-index: 109;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(0,0,0,.72);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .catalog-filter-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .catalog-filter-panel {
        position: fixed;
        z-index: 110;
        top: auto;
        right: 8px;
        bottom: 10px;
        left: 8px;
        display: flex;
        width: auto;
        max-height: min(78dvh,680px);
        flex-direction: column;
        overflow: hidden;
        padding: 0;
        border-radius: 12px 12px 0 0;
        background: #fff;
        box-shadow: 0 22px 60px rgba(0,0,0,.24);
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
        transition: transform 220ms ease, opacity 180ms ease;
    }

    .catalog-filter-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .catalog-filter-mobile-head {
        position: relative;
        display: grid;
        min-height: 72px;
        flex: 0 0 72px;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 10px 14px 0;
        border-bottom: 0;
    }

    .catalog-filter-mobile-head::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        width: 96px;
        height: 5px;
        border-radius: 6px;
        background: #f0f0f0;
        transform: translateX(-50%);
    }

    .catalog-filter-mobile-head h2 {
        font-size: 17px;
        line-height: 24px;
        text-align: center;
    }

    .catalog-filter-mobile-head button {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
    }

    .catalog-filter-mobile-head svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    .catalog-filter-desktop-head {
        display: none;
    }

    .catalog-active-filters {
        flex: 0 0 auto;
        padding: 10px 16px 0;
    }

    .catalog-filter-form {
        display: flex;
        min-height: 0;
        flex: 1;
        flex-direction: column;
        overflow: auto;
        padding: 0 16px;
    }

    .catalog-filter-group > summary {
        min-height: 52px;
    }

    .catalog-filter-options label,
    .catalog-filter-link {
        min-height: 36px;
    }

    .catalog-filter-actions {
        position: sticky;
        z-index: 2;
        bottom: 0;
        flex: 0 0 auto;
        padding: 12px 0 14px;
        border-top: 0;
        background: #fff;
    }

    .catalog-filter-actions a,
    .catalog-filter-actions button {
        min-height: 44px;
    }

    .catalog-filter-actions button {
        min-width: 134px;
    }

    .catalog-grid,
    .catalog-search-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px 12px;
    }

    .catalog-card-media {
        border-radius: 11px;
    }

    .catalog-card-body {
        padding-top: 7px;
    }

    .catalog-card-title {
        font-size: 13px;
        line-height: 19px;
    }

    .catalog-card-rating {
        gap: 3px;
        font-size: 10px;
    }

    .catalog-stars i,
    .catalog-stars svg {
        width: 11px;
        height: 11px;
    }

    .catalog-card-price {
        font-size: 14px;
    }

    .catalog-card-actions button,
    .catalog-card-actions a {
        width: 27px;
        height: 27px;
    }

    .catalog-card-actions svg {
        width: 17px;
        height: 17px;
    }

    .catalog-pagination {
        overflow-x: auto;
        justify-content: flex-start;
        padding-top: 34px;
    }

    .catalog-search-shell {
        padding-top: 28px;
    }

    .catalog-search-shell > h1 {
        max-width: 340px;
    }

    .catalog-search-form {
        width: 100%;
        height: 48px;
        margin-top: 12px;
    }

    .catalog-search-tabs {
        max-width: 100%;
        margin: 28px 0 24px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .catalog-search-tabs::-webkit-scrollbar {
        display: none;
    }

    .catalog-search-tabs a {
        min-width: 50px;
        flex: 0 0 auto;
    }

    .catalog-search-empty {
        min-height: 270px;
        padding-inline: 0;
    }

    .catalog-search-empty > span svg {
        width: 56px;
        height: 56px;
    }

    .catalog-search-empty h2 {
        margin-top: 16px;
        font-size: 18px;
        line-height: 26px;
    }

    .catalog-search-recent {
        padding-top: 12px;
    }

    .catalog-search-recent-heading {
        margin-bottom: 14px;
    }

    .catalog-search-recent-heading h2 {
        font-size: 23px;
        line-height: 31px;
    }

    .catalog-search-recent-heading a {
        width: 58px;
        min-height: 48px;
        padding: 0 7px;
        text-align: center;
    }

    .catalog-search-recent-grid {
        display: flex;
        gap: 12px;
        margin-right: -15px;
        padding-right: 15px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .catalog-search-recent-grid::-webkit-scrollbar {
        display: none;
    }

    .catalog-search-recent-grid .catalog-card {
        width: 135px;
        flex: 0 0 135px;
        scroll-snap-align: start;
    }
}

@media (max-width: 350px) {
    .catalog-shell,
    .catalog-search-shell {
        width: calc(100% - 24px);
    }

    .catalog-sort > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
    }

    .catalog-sort-options {
        width: 168px;
    }

    .catalog-grid,
    .catalog-search-grid {
        gap-inline: 9px;
    }

    .catalog-card-actions {
        gap: 0;
    }
}

/* Keep the recent-products rail inside the mobile viewport. */
@media (max-width: 800px) {
    .catalog-search-recent-grid {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        padding-right: 0;
        overscroll-behavior-inline: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card-media img,
    .catalog-filter-panel,
    .catalog-filter-backdrop,
    .catalog-sort-menu > button svg {
        transition: none;
    }
}
