/* Каталог — витрина в духе маркетплейсов: сайдбар + белая зона результатов */

.page-catalog .page-header {
    padding: 1.25rem 0 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.page-catalog .page-header h1 {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    color: var(--secondary);
}

/* Десктоп: каталог в одну высоту экрана — меньше «шапки», сетка с внутренним скроллом */
@media (min-width: 993px) {
    .page-catalog .page-header {
        padding: 0.5rem 0 0.4rem;
    }

    .page-catalog .page-header h1 {
        font-size: clamp(1.15rem, 1.6vw, 1.4rem);
        margin: 0 0 0.2rem;
    }

    .page-catalog .breadcrumb-list {
        font-size: 12px;
    }

    .page-catalog .catalog-section {
        padding: 0.5rem 0 0.75rem;
        display: flex;
        flex-direction: column;
        /* верх сайта + заголовок страницы + небольшой зазор; футер остаётся ниже при общем скролле */
        min-height: calc(100dvh - 200px);
        box-sizing: border-box;
    }

    .page-catalog .catalog-section > .container {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .page-catalog .catalog-layout {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
        gap: 1rem;
    }

    .page-catalog .catalog-sidebar {
        position: sticky;
        top: 0.75rem;
        align-self: start;
        max-height: calc(100dvh - 5.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .page-catalog .catalog-main {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .page-catalog .catalog-results {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .page-catalog .catalog-toolbar {
        flex-shrink: 0;
        padding: 0.55rem 0.95rem;
    }

    .page-catalog .catalog-live-root {
        flex: none;
        min-height: 0;
        overflow: visible;
        overscroll-behavior: auto;
        padding: 0.65rem 0.85rem 0.75rem;
    }

    .page-catalog .products-grid:not(.list-view) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .page-catalog .product-image {
        aspect-ratio: 4 / 5;
    }

    .page-catalog .product-info {
        padding: 0.65rem 0.75rem 0.75rem;
    }

    .page-catalog .product-name {
        font-size: 13px;
        min-height: 0;
        line-height: 1.35;
    }

    .page-catalog .product-specs {
        font-size: 11px;
        margin-bottom: 0.45rem;
    }

    .page-catalog .product-footer {
        gap: 0.45rem;
    }

    .page-catalog .price-current {
        font-size: 0.95rem;
    }
}

.page-catalog .breadcrumb {
    margin: 0;
}

.page-catalog .breadcrumb-list {
    font-size: 13px;
}

.catalog-section {
    padding: 1.25rem 0 3.5rem;
    background: #f1f3f6;
}

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

/* Сайдбар */
.catalog-sidebar {
    position: sticky;
    top: 88px;
}

.catalog-sidebar__header {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.catalog-sidebar__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.catalog-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -8px -6px -8px 0;
    border-radius: var(--radius);
    color: var(--gray-600);
    background: transparent;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.catalog-sidebar__close:hover {
    background: var(--gray-100);
    color: var(--secondary);
}

.catalog-sidebar__close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.catalog-filters-panel {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 1.15rem 0 0.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.catalog-filters-panel__title {
    margin: 0 1rem 0.85rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

.filter-reset-row {
    padding: 0.35rem 1rem 0.75rem;
    margin: 0 0.65rem;
    border-bottom: 1px solid var(--gray-100);
}

.filter-reset-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.filter-reset-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filter-list--scrollable {
    max-height: min(42vh, 260px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.filter-list--scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-list--scrollable::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 6px;
}

details.filter-details {
    margin: 0 0.65rem;
    padding: 0.65rem 0 0.85rem;
    border-top: 1px solid var(--gray-100);
}

.filter-details > summary {
    list-style: none;
}

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

.filter-details__summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 0.35rem 0.35rem;
    padding: 0.25rem 0.35rem;
    border-radius: 8px;
    user-select: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    transition: background 0.15s ease;
}

.filter-details__summary::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    transform: rotate(45deg);
    margin-top: -4px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.filter-details[open] > .filter-details__summary::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.filter-details__summary:hover {
    background: var(--gray-50);
}

.filter-details .filter-list {
    margin-top: 0.15rem;
}

.filter-details .filter-checkbox:first-of-type {
    margin-top: 0.2rem;
}

.filter-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.65rem;
    margin: 0.15rem 0.35rem 0;
}

.filter-price-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 76px;
    min-width: 0;
}

.filter-price-field__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
}

.filter-price-input {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.filter-price-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}

.filter-price-apply {
    flex: 1 1 auto;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
    white-space: nowrap;
}

@media (min-width: 380px) {
    .filter-price-apply {
        flex: 0 0 auto;
    }
}

.filter-section {
    padding: 0.65rem 0 0.85rem;
    margin: 0 0.65rem;
    border-top: 1px solid var(--gray-100);
}

.filter-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.filter-section__title {
    margin: 0 0 0.5rem 0.35rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter-list a {
    display: block;
    padding: 0.5rem 0.6rem 0.5rem 0.65rem;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--gray-700);
    border-radius: 8px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.filter-list a:hover {
    background: var(--gray-50);
    color: var(--secondary);
}

.filter-list a.active {
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.35rem 0.35rem;
    margin: 0 -0.35rem;
    border-radius: 8px;
    cursor: pointer;
}

.filter-checkbox:hover {
    background: var(--gray-50);
}

.filter-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.filter-checkbox span {
    font-size: 13.5px;
    color: var(--gray-700);
}

/* Зона результатов */
.catalog-main {
    min-width: 0;
}

.catalog-results {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 0;
    overflow: hidden;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.1rem;
    background: #fafbfc;
    border-bottom: 1px solid var(--gray-100);
}

.catalog-toolbar__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.catalog-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.results-count {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0;
    font-size: 14px;
    color: var(--gray-600);
}

.results-count__num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--secondary);
}

.results-count__label {
    font-weight: 500;
}

.sort-label {
    margin: 0;
    cursor: pointer;
}

.sort-label__text {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.65rem;
    min-width: 11.5rem;
    font-size: 13px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--secondary);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.view-toggle {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    background: var(--gray-100);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.view-btn {
    width: 38px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray-500);
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.view-btn:hover {
    color: var(--gray-800);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Сетка товаров (отступы зоны сетки на планшетах/мобиле; на десктопе — в блоке min-width:993px) */
@media (max-width: 992px) {
    .catalog-live-root {
        padding: 1.1rem 1.1rem 1.25rem;
    }
}

.page-catalog .products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767px) {
    .page-catalog .products-grid:not(.list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 420px) {
    .page-catalog .products-grid:not(.list-view) {
        grid-template-columns: 1fr;
    }
}

.page-catalog .product-card {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: none;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.page-catalog .product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.page-catalog .product-image {
    background: #f4f5f7;
}

.page-catalog .product-info {
    padding: 0.9rem 1rem 1rem;
}

.page-catalog .product-brand {
    font-size: 11px;
}

.page-catalog .product-name {
    font-size: 14px;
    min-height: 2.6em;
}

.page-catalog .product-specs {
    font-size: 12px;
    margin-bottom: 0.45rem;
}

.page-catalog .product-card-meta {
    margin: 0 0 0.35rem;
    font-size: 11px;
    line-height: 1.35;
    color: var(--gray-600);
}

.page-catalog .product-card-meta__k {
    font-weight: 600;
    color: var(--gray-500);
    margin-right: 0.35rem;
}

.page-catalog .product-card-features {
    margin: 0 0 0.4rem;
    padding: 0 0 0 1rem;
    font-size: 11px;
    line-height: 1.4;
    color: var(--gray-600);
}

.page-catalog .product-card-features li {
    margin-bottom: 0.15rem;
}

.page-catalog .product-card-desc {
    margin: 0 0 0.5rem;
    font-size: 11px;
    line-height: 1.45;
    color: var(--gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-catalog .product-footer {
    gap: 0.65rem;
}

.page-catalog .price-current {
    font-size: 1.05rem;
}

/* Список (как в маркетплейсах) */
.page-catalog .products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.page-catalog .products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
}

.page-catalog .products-grid.list-view .product-image {
    flex: 0 0 clamp(140px, 22vw, 200px);
    aspect-ratio: 1;
}

.page-catalog .products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.1rem;
    min-width: 0;
}

.page-catalog .products-grid.list-view .product-name {
    min-height: 0;
    -webkit-line-clamp: 2;
}

.page-catalog .products-grid.list-view .product-footer {
    margin-top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.page-catalog .products-grid.list-view .product-card-actions {
    flex: 1 1 220px;
    max-width: 320px;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 0.5rem;
    background: #fafbfc;
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
}

.empty-state svg {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

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

.catalog-filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    background: var(--white);
    color: var(--secondary);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    min-height: 42px;
    flex-shrink: 0;
}

.catalog-filters-toggle [data-lucide] {
    width: 18px;
    height: 18px;
}

.catalog-filters-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.collection-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.collection-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.collection-card-image {
    aspect-ratio: 1;
    background: var(--gray-50);
    overflow: hidden;
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-400);
    text-align: center;
    padding: 16px;
}

.collection-card-body {
    padding: 20px;
}

.collection-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--secondary);
}

.collection-card-meta {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 12px;
}

.collection-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.catalog-collections-btn {
    flex-shrink: 0;
    align-self: center;
    font-size: 13px;
    padding: 0.45rem 0.9rem;
}

/* Переключение коллекций: горизонтальный скролл + быстрый выбор */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.catalog-collection-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.45rem 0.85rem 0.55rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.catalog-collection-bar-wrap {
    flex: 1 1 200px;
    min-width: 0;
}

@media (max-width: 768px) {
    .catalog-collection-bar-wrap {
        flex-basis: 100%;
        mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    }
}

.catalog-collection-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    padding: 0.1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.catalog-collection-bar .catalog-collection-pill {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.catalog-collection-jump-label {
    flex: 0 0 auto;
    margin: 0;
}

.catalog-collection-jump {
    min-width: 10.5rem;
    max-width: min(46vw, 280px);
    padding: 0.45rem 2rem 0.45rem 0.55rem;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background-color: #fafbfc;
    color: var(--gray-800);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.45rem center;
}

.catalog-collection-jump:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.catalog-collection-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: #fafbfc;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
    white-space: nowrap;
    max-width: 100%;
}

.catalog-collection-pill:hover {
    border-color: rgba(249, 115, 22, 0.45);
    color: var(--primary);
    background: rgba(249, 115, 22, 0.06);
}

.catalog-collection-pill.is-active {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.12);
    color: var(--secondary);
    font-weight: 600;
}

/* Страница коллекций — тулбар без «витринной» подложки */
.catalog-toolbar--collections {
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 992px) {
    .page-catalog .catalog-toolbar {
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .catalog-filters-panel__title--desktop {
        display: none;
    }

    .catalog-sidebar__header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .catalog-filters-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1180;
        background: rgba(15, 23, 42, 0.4);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            visibility 0.3s;
    }

    .catalog-filters-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .catalog-layout {
        display: block;
    }

    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 92vw);
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        z-index: 1200;
        transform: translateX(-105%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
        background: var(--white);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
        border: none;
        border-radius: 0;
    }

    .catalog-sidebar.is-open {
        transform: translateX(0);
    }

    .catalog-filters-panel {
        border: none;
        border-radius: 0;
        padding: 0.5rem 0.25rem 1rem;
        box-shadow: none;
    }

    .catalog-filters-toggle {
        display: inline-flex;
    }

    .catalog-toolbar {
        gap: 0.65rem;
    }

    .catalog-toolbar .results-count {
        flex: 1 1 auto;
    }
}

@media (max-width: 576px) {
    .catalog-live-root {
        padding: 0.65rem;
    }

    .page-catalog .product-info {
        padding: 0.65rem 0.7rem 0.75rem;
    }

    .page-catalog .product-name {
        font-size: 12.5px;
        min-height: 0;
        -webkit-line-clamp: 3;
    }

    .page-catalog .product-card-actions {
        grid-template-columns: 1fr;
    }

    .page-catalog .products-grid.list-view .product-card {
        flex-direction: column;
    }

    .page-catalog .products-grid.list-view .product-image {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .catalog-toolbar {
        flex-direction: row;
        align-items: center;
    }

    .catalog-toolbar__left {
        flex-wrap: wrap;
    }

    .catalog-collections-btn {
        width: 100%;
        text-align: center;
        order: 10;
    }

    .catalog-filters-toggle {
        flex: 1;
        min-width: 0;
    }

    .catalog-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .sort-label__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .sort-select {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .page-catalog .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-list--scrollable {
        margin-right: 0;
    }
}

.catalog-live-root {
    transition: opacity 0.22s ease;
}

.catalog-live-root.catalog-live-loading {
    opacity: 0.55;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-live-root {
        transition: none;
    }

    .page-catalog .product-card:hover {
        transform: none;
    }
}
