/* Catalog Page Styles */

.catalog-header {
    padding: 24px 0 20px;
    background: var(--color-cream);
}

@media (min-width: 375px) {
    .catalog-header {
        padding: 32px 0 24px;
    }
}

.catalog-header__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 36px);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.catalog-header__count {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Toolbar */
.catalog-toolbar {
    position: sticky;
    top: var(--header-height);
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    z-index: 90;
    padding: 10px 0;
}

@media (min-width: 375px) {
    .catalog-toolbar {
        padding: 12px 0;
    }
}

.catalog-toolbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .catalog-toolbar__inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

/* Catalog Search */
.catalog-search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.catalog-search__icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 1;
}

.catalog-search__input {
    width: 100%;
    padding: 10px 14px 10px 44px;
    background: var(--color-white);
    border: 1.5px solid rgba(43, 43, 43, 0.1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(43, 43, 43, 0.06);
}

@media (min-width: 375px) {
    .catalog-search__input {
        padding: 12px 16px 12px 48px;
        font-size: 14px;
    }
}

.catalog-search__input:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 4px 12px rgba(242, 151, 160, 0.15);
}

.catalog-search__input::placeholder {
    color: var(--color-text-muted);
}

.catalog-search__clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 43, 43, 0.06);
    border: none;
    border-radius: 8px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.catalog-search__clear:hover {
    background: rgba(242, 151, 160, 0.1);
    color: var(--color-pink);
}

.catalog-search__clear svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .catalog-search {
        max-width: 500px;
    }
}

/* Filter Toggle Button */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--color-white);
    border: 1.5px solid rgba(43, 43, 43, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(43, 43, 43, 0.06);
}

.filter-toggle:hover {
    border-color: var(--color-pink);
    background: rgba(242, 151, 160, 0.05);
    color: var(--color-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 151, 160, 0.2);
}

.filter-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.filter-toggle:hover svg {
    transform: rotate(90deg);
}

.filter-toggle__count {
    display: none;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--color-pink) 0%, #E8868F 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(242, 151, 160, 0.3);
}

.filter-toggle__count.is-visible {
    display: flex;
}

/* Sort Wrapper */
.sort-wrapper {
    margin-left: auto;
    position: relative;
}

@media (min-width: 768px) {
    .sort-wrapper {
        margin-left: auto;
    }
}

@media (min-width: 1024px) {
    .filter-toggle {
        display: none; /* Скрываем кнопку фильтра только на больших экранах */
    }
}

/* Custom Select for Sort */
.custom-select {
    position: relative;
    min-width: 200px;
}

.custom-select__trigger {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-white);
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    position: relative;
}

.custom-select__trigger:hover {
    border-color: rgba(43, 43, 43, 0.2);
}

.custom-select__trigger:focus,
.custom-select.is-open .custom-select__trigger {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px var(--color-pink-soft);
}

.custom-select__text {
    flex: 1;
}

.custom-select__arrow {
    position: absolute;
    right: 16px;
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.custom-select.is-open .custom-select__arrow {
    transform: rotate(180deg);
    color: var(--color-pink);
}

.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1.5px solid rgba(43, 43, 43, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(43, 43, 43, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.custom-select.is-open .custom-select__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select__option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid rgba(43, 43, 43, 0.05);
}

.custom-select__option:last-child {
    border-bottom: none;
}

.custom-select__option:hover {
    background: rgba(242, 151, 160, 0.08);
    color: var(--color-pink);
}

.custom-select__option.is-selected {
    background: rgba(242, 151, 160, 0.12);
    color: var(--color-pink);
    font-weight: 600;
}

/* Scrollbar for dropdown */
.custom-select__dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select__dropdown::-webkit-scrollbar-thumb {
    background: rgba(242, 151, 160, 0.3);
    border-radius: 3px;
}

.custom-select__dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 151, 160, 0.5);
}

/* Layout */
.catalog-content {
    padding: 24px 0 60px;
}

.catalog-layout {
    display: grid;
    gap: 24px;
}

@media (min-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 320px 1fr;
        gap: 40px;
    }
}

/* Sidebar */
.catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: var(--color-white);
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(43, 43, 43, 0.12);
}

/* Custom scrollbar for sidebar */
.catalog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.catalog-sidebar::-webkit-scrollbar-track {
    background: rgba(43, 43, 43, 0.04);
}

.catalog-sidebar::-webkit-scrollbar-thumb {
    background: rgba(242, 151, 160, 0.3);
    border-radius: 3px;
}

.catalog-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 151, 160, 0.5);
}

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

@media (min-width: 1024px) {
    .catalog-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 60px);
        transform: none;
        max-width: none;
        height: fit-content;
        background: transparent;
        padding: 0;
        box-shadow: none;
        z-index: 1;
    }
}

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 43, 43, 0.6);
    backdrop-filter: blur(4px);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .filter-overlay {
        display: none; /* Скрываем overlay на десктопе */
    }
}

/* === FILTERS (EPIC REDESIGN) === */
.filters {
    padding: 24px;
    background: var(--color-white);
    height: 100%;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .filters {
        padding: 28px;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(43, 43, 43, 0.08);
        border: 1px solid rgba(43, 43, 43, 0.06);
    }
}

.filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 16px 0;
    border-bottom: 2px solid rgba(242, 151, 160, 0.1);
    position: sticky;
    top: var(--header-height);
    background: var(--color-white);
    z-index: 10;
    margin-top: 0;
    padding-top: 24px;
}

@media (min-width: 1024px) {
    .filters__header {
        position: static; /* Убираем sticky на десктопе */
        top: auto;
        margin-bottom: 20px;
    }
}

.filters__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters__collapse-all {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    background: rgba(43, 43, 43, 0.04);
    border: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filters__collapse-all:hover {
    background: rgba(242, 151, 160, 0.1);
    color: var(--color-pink);
    transform: scale(1.05);
}

.filters__collapse-all svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.filters__collapse-all.is-collapsed svg {
    transform: rotate(180deg);
}

.filters__active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(43, 43, 43, 0.08);
    min-height: 0;
    position: relative;
    z-index: 5;
}

@media (max-width: 767px) {
    .filters__active {
        margin-top: 62px;
    }
}

.filters__active:empty {
    display: none;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(242, 151, 160, 0.15) 0%, rgba(232, 134, 143, 0.15) 100%);
    border: 1px solid rgba(242, 151, 160, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-pink);
}

.filter-tag__label {
    line-height: 1;
}

.filter-tag__remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-pink);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.filter-tag__remove:hover {
    transform: rotate(90deg);
}

.filter-tag__remove svg {
    width: 12px;
    height: 12px;
}

.filters__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.filters__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: rgba(43, 43, 43, 0.08);
    border: 2px solid rgba(43, 43, 43, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.filters__close:hover,
.filters__close:focus {
    background: rgba(242, 151, 160, 0.15);
    border-color: var(--color-pink);
    color: var(--color-pink);
    transform: rotate(90deg) scale(1.05);
    outline: none;
    box-shadow: 0 4px 12px rgba(242, 151, 160, 0.2);
}

.filters__close:active {
    transform: rotate(90deg) scale(0.95);
}

.filters__close svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

@media (min-width: 1024px) {
    .filters__close { 
        display: none; /* Скрываем на десктопе */
    }
}

.filters__close svg {
    width: 20px;
    height: 20px;
}

.filter-group {
    margin-bottom: 16px;
    border: 1px solid rgba(43, 43, 43, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(43, 43, 43, 0.02);
    transition: all 0.3s ease;
}

.filter-group:hover {
    border-color: rgba(242, 151, 160, 0.2);
    background: rgba(242, 151, 160, 0.02);
}

.filter-group.is-open {
    border-color: rgba(242, 151, 160, 0.3);
    background: rgba(242, 151, 160, 0.04);
}

.filter-group__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group__header:hover {
    background: rgba(242, 151, 160, 0.05);
}

.filter-group__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group__title-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-pink);
}

.filter-group__title::before {
    display: none;
}

.filter-group__icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-group.is-open .filter-group__icon {
    transform: rotate(180deg);
    color: var(--color-pink);
}

.filter-group__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.4s ease,
                padding-bottom 0.4s ease,
                opacity 0.3s ease;
    padding: 0 20px;
    opacity: 0;
}

.filter-group.is-open .filter-group__content {
    max-height: 2000px;
    padding: 0 20px 20px;
    opacity: 1;
}

.filter-group__content-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-10px);
    transition: transform 0.3s ease 0.1s;
}

.filter-group.is-open .filter-group__content-inner {
    transform: translateY(0);
}

/* Category Search */
.category-search {
    margin-bottom: 12px;
}

.category-search__input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(43, 43, 43, 0.04);
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.category-search__input:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(242, 151, 160, 0.1);
}

.category-search__input::placeholder {
    color: var(--color-text-muted);
}

/* Category Items */
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.category-group {
    display: flex;
    flex-direction: column;
}

.category-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.category-children.is-expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 4px;
}

.category-filters::-webkit-scrollbar {
    width: 4px;
}

.category-filters::-webkit-scrollbar-track {
    background: transparent;
}

.category-filters::-webkit-scrollbar-thumb {
    background: rgba(242, 151, 160, 0.3);
    border-radius: 2px;
}

.category-filters::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 151, 160, 0.5);
}

.category-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(43, 43, 43, 0.04);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateX(0);
}

.category-item--has-children {
    padding-left: 12px;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, var(--color-pink) 0%, #E8868F 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.category-item:hover {
    background: rgba(242, 151, 160, 0.08);
    border-color: rgba(242, 151, 160, 0.3);
}

.category-item:hover::before {
    width: 3px;
}

.category-item.is-active {
    background: linear-gradient(135deg, rgba(242, 151, 160, 0.15) 0%, rgba(232, 134, 143, 0.15) 100%);
    border-color: var(--color-pink);
    color: var(--color-pink);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(242, 151, 160, 0.2);
}

.category-item:not(.is-active) {
    background: rgba(43, 43, 43, 0.04);
    border-color: transparent;
    color: var(--color-text);
    font-weight: 500;
    box-shadow: none;
}

.category-item.is-active::before {
    width: 3px;
}

.category-item:not(.is-active)::before {
    width: 0;
}

.category-item__toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-right: -4px;
    pointer-events: none;
}

.category-item__toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.category-item--has-children .category-item__toggle-icon {
    transform: rotate(0deg);
}

.category-group:has(.category-children.is-expanded) .category-item__toggle-icon {
    transform: rotate(90deg);
}

.category-item__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.category-item__icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.category-item:hover .category-item__icon svg {
    transform: scale(1.1);
}

.category-item.is-active .category-item__icon {
    color: var(--color-pink);
}

.category-item:not(.is-active) .category-item__icon {
    color: var(--color-text);
}

.category-item__name {
    flex: 1;
    position: relative;
    z-index: 1;
}

.category-item__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(43, 43, 43, 0.08);
    padding: 4px 8px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-item__count:empty {
    display: none;
}

.category-item.is-active .category-item__count {
    background: rgba(242, 151, 160, 0.2);
    color: var(--color-pink);
}

.category-item:not(.is-active) .category-item__count {
    background: rgba(43, 43, 43, 0.08);
    color: var(--color-text-muted);
}

/* Child Categories */
.category-item--child {
    background: rgba(43, 43, 43, 0.02);
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
    position: relative;
    border-left: 2px solid rgba(242, 151, 160, 0.15);
    padding-left: 14px !important;
}

.category-item--child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: rgba(242, 151, 160, 0.3);
}

.category-item--child:hover {
    background: rgba(242, 151, 160, 0.06);
    border-left-color: rgba(242, 151, 160, 0.3);
}

.category-item--child:hover::before {
    background: rgba(242, 151, 160, 0.5);
    width: 12px;
}

.category-item--child.is-active {
    background: linear-gradient(135deg, rgba(242, 151, 160, 0.12) 0%, rgba(232, 134, 143, 0.12) 100%);
    border-left-color: var(--color-pink);
}

.category-item--child.is-active::before {
    background: var(--color-pink);
    width: 12px;
}

.category-item--child .category-item__icon {
    width: 18px;
    height: 18px;
    opacity: 0.75;
}

.category-item--child.is-active .category-item__icon {
    opacity: 1;
}

.category-item--child .category-item__name {
    font-weight: 400;
}

.category-item--child.is-active .category-item__name {
    font-weight: 500;
}

.category-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.category-empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.category-empty p {
    font-size: 14px;
    margin: 0;
}

/* Price Range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-range__display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(242, 151, 160, 0.1) 0%, rgba(232, 134, 143, 0.1) 100%);
    border: 1.5px solid rgba(242, 151, 160, 0.2);
    border-radius: 12px;
    font-weight: 600;
}

.price-range__value {
    font-size: 18px;
    color: var(--color-pink);
    font-weight: 700;
}

.price-range__separator {
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 500;
}

.price-range__currency {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.price-range__slider-wrapper {
    position: relative;
    height: 6px;
    background: rgba(43, 43, 43, 0.1);
    border-radius: 3px;
    margin: 20px 0;
}

.price-range__slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
}

.price-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-pink);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(242, 151, 160, 0.4);
    transition: all 0.2s ease;
}

.price-range__slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(242, 151, 160, 0.6);
}

.price-range__slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-pink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(242, 151, 160, 0.4);
    transition: all 0.2s ease;
}

.price-range__slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(242, 151, 160, 0.6);
}

.price-range__slider--min {
    z-index: 3;
}

.price-range__slider--max {
    z-index: 2;
}

.price-range__slider--max::-webkit-slider-thumb {
    background: var(--color-pink);
}

.price-range__slider--max::-moz-range-thumb {
    background: var(--color-pink);
}

.price-range__inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-input-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(43, 43, 43, 0.04);
    border: 1.5px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(242, 151, 160, 0.1);
}

.price-input::placeholder {
    color: var(--color-text-muted);
}

/* Checkboxes in Filters */
.filter-group .checkbox {
    padding: 14px 16px;
    background: rgba(43, 43, 43, 0.04);
    border: 1.5px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
}

.filter-group .checkbox:hover {
    background: rgba(242, 151, 160, 0.08);
    border-color: rgba(242, 151, 160, 0.2);
    transform: translateX(4px);
}

.filter-group .checkbox__input {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--color-text-muted);
    transition: all 0.3s ease;
}

.filter-group .checkbox__input:checked {
    background: linear-gradient(135deg, var(--color-pink) 0%, #E8868F 100%);
    border-color: var(--color-pink);
    box-shadow: 0 2px 8px rgba(242, 151, 160, 0.3);
}

.filter-group .checkbox__input:checked ~ .checkbox__label {
    color: var(--color-pink);
    font-weight: 600;
}

.filter-group .checkbox__label {
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

/* Filter Footer */
.filters__reset-top {
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(43, 43, 43, 0.08);
}

.filters__reset-top .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(43, 43, 43, 0.2);
    background: transparent;
    color: var(--color-text);
}

.filters__reset-top .btn:hover {
    border-color: var(--color-pink);
    background: rgba(242, 151, 160, 0.05);
    color: var(--color-pink);
}

.filters__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
}

.filters__footer .btn {
    width: 100%;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Actions (legacy) */
.filters__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
}

.filters__actions .btn {
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.filters__actions .btn--primary {
    background: linear-gradient(135deg, var(--color-pink) 0%, #E8868F 100%);
    box-shadow: 0 4px 16px rgba(242, 151, 160, 0.3);
}

.filters__actions .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(242, 151, 160, 0.4);
}

.filters__actions .btn--ghost {
    background: rgba(43, 43, 43, 0.04);
    color: var(--color-text);
}

.filters__actions .btn--ghost:hover {
    background: rgba(43, 43, 43, 0.08);
    color: var(--color-pink);
}

/* Main Grid */
.catalog-main {
    min-height: 400px;
}

/* === PRODUCT CARDS (EPIC DESIGN) === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
}

.product-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(43, 43, 43, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(43, 43, 43, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.12);
    border-color: rgba(242, 151, 160, 0.2);
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #faf8f5;
    border-radius: 20px 20px 0 0;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-card__img {
    transform: scale(1.08);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f4ed 0%, #f5ebe0 30%, var(--color-pink-soft) 70%, #f0e6e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 50%);
}

.product-card__placeholder svg {
    width: 56px;
    height: 56px;
    color: rgba(212, 196, 176, 0.6);
    position: relative;
    z-index: 1;
}

.product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.badge {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge--new {
    background: rgba(43, 43, 43, 0.95);
    color: var(--color-cream);
}

.badge--sale {
    background: linear-gradient(135deg, var(--color-pink) 0%, #E8868F 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(242, 151, 160, 0.4);
}

.product-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(43, 43, 43, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.product-card__favorite:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(43, 43, 43, 0.15);
}

.product-card__favorite svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.product-card__favorite:hover svg {
    color: var(--color-pink);
}

.product-card__favorite.is-active {
    background: var(--color-pink);
    box-shadow: 0 2px 8px rgba(242, 151, 160, 0.3);
}

.product-card__favorite.is-active svg {
    color: white;
    fill: white;
}

.product-card__quick-buy {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(43, 43, 43, 0.85) 100%);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-card__quick-buy {
    transform: translateY(0);
}

.product-card__quick-buy .btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.product-card__quick-buy .btn:hover {
    background: var(--color-pink);
    color: white;
}

.product-card__quick-buy .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card__brand {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-pink);
    margin-bottom: 6px;
}

.product-card__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 3em;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card__name a:hover {
    color: var(--color-pink);
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    flex-wrap: wrap;
}

.product-card__price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.product-card__price-old {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(43, 43, 43, 0.4);
    opacity: 0.8;
    position: relative;
}

.product-card__price-sale {
    color: var(--color-pink);
    font-size: 24px;
    font-weight: 800;
}

.product-card__actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(43, 43, 43, 0.08);
}

.product-card__actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-card__actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(43, 43, 43, 0.04);
    border: 1.5px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.filter-switch:hover {
    background: rgba(242, 151, 160, 0.08);
    border-color: rgba(242, 151, 160, 0.2);
}

.filter-switch__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-switch__slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(43, 43, 43, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-switch__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--color-white);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(43, 43, 43, 0.2);
}

.filter-switch__input:checked + .filter-switch__slider {
    background: linear-gradient(135deg, var(--color-pink) 0%, #E8868F 100%);
}

.filter-switch__input:checked + .filter-switch__slider::before {
    transform: translateX(20px);
}

.filter-switch__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    user-select: none;
}

.filter-switch__input:checked ~ .filter-switch__label {
    color: var(--color-pink);
    font-weight: 600;
}

/* Empty State */
.catalog-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
}

.catalog-empty__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(242, 151, 160, 0.1) 0%, rgba(232, 134, 143, 0.1) 100%);
    border-radius: 50%;
    position: relative;
}

.catalog-empty__icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(242, 151, 160, 0.2) 0%, rgba(232, 134, 143, 0.2) 100%);
    z-index: -1;
    opacity: 0.5;
}

.catalog-empty__icon svg {
    width: 64px;
    height: 64px;
    color: var(--color-pink);
    opacity: 0.8;
}

.catalog-empty__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.catalog-empty__text {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    max-width: 400px;
    line-height: 1.6;
}

.catalog-empty__btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(242, 151, 160, 0.2);
}

.catalog-empty__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(242, 151, 160, 0.3);
}

/* Stock Status */
.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 12px;
    margin-bottom: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-stock--in {
    background: rgba(139, 195, 74, 0.15);
    color: #5a8f2a;
}

.product-stock--out {
    background: rgba(158, 158, 158, 0.15);
    color: #757575;
}

/* Адаптив для маленьких экранов */
@media (max-width: 375px) {
    .product-stock {
        font-size: 11px;
        padding: 4px 10px;
        letter-spacing: 0.03em;
    }
}

/* Image Link */
.product-card__image {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Subtle fade-in animation */
.product-card {
    animation: card-fade-in 0.4s ease-out;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Load More Button */
#load-more-btn {
    min-width: 200px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 151, 160, 0.4);
}

/* Pagination (legacy) */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination__btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition);
}

.pagination__btn:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
}

.pagination__btn.is-active {
    background: var(--color-pink);
    border-color: var(--color-pink);
    color: white;
}

.pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.skeleton-image {
    aspect-ratio: 1;
    margin-bottom: 14px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text--sm {
    height: 12px;
    width: 60%;
}

.skeleton-text--lg {
    height: 18px;
    width: 40%;
}
