.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs__itemWrapper {
    display: flex;
    align-items: center;
}

.breadcrumbs__itemWrapper:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #999;
}

.breadcrumbs__item {
    font-size: 13px;
    color: var(--text-muted);
    transition: color .25s;
}

.breadcrumbs__item:hover:not(.breadcrumbs__item_current) {
    color: var(--text-secondary);
}

.breadcrumbs__item_current {
    color: var(--text-secondary);
    font-weight: 500;
}

.pageTitle {
    margin-bottom: 24px;
}

.pageTitle__top {
    margin-bottom: 12px;
}

.pageTitle__heading {
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    color: #000;
    margin: 0;
}

.pageTitle__label {
    font-size: 15px;
    line-height: 120%;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .pageTitle__heading { font-size: 24px; }
}

.catalogLayout {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 28px;
}

.catalogLayout__title {
    margin-bottom: 20px;
}

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

.catalogLayout__panel {
    position: sticky;
    top: 24px;
}

.catalogLayout__main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (max-width: 960px) {
    .catalogLayout { grid-gap: 16px; }

    .catalogLayout__title { margin-bottom: 12px; }

    .catalogLayout__mainBlock {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .catalogLayout__panel {
        position: static;
        display: none;
    }

    .catalogLayout__main {
        gap: 16px;
    }

    .catalogToolbar__filtersTrigger { order: 1; }
    .sortingDropdown { order: 2; }

    .catalogToolbar__filtersPanel {
        order: 3;
        flex: 0 0 100%;
    }

    .filterChips { order: 4; }
}

.catalogFilters {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 16px 8px;
    background: #fff;
}

.catalogFilters__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.catalogFilters__title {
    font-size: 17px;
    font-weight: 700;
}

.catalogFilters__reset {
    font-size: 13px;
    color: var(--brand-color);
}

.catalogFilters__reset:hover {
    text-decoration: underline;
}

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

.facet:last-child {
    border-bottom: none;
}

.facet__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    list-style: none;
}

.facet__summary::-webkit-details-marker {
    display: none;
}

.facet__name {
    margin-right: auto;
}

.facet__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-color);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.facet__arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .2s;
}

.facet[open] .facet__arrow {
    transform: rotate(180deg);
}

.facet__list {
    display: flex;
    flex-direction: column;
    max-height: 260px;
    overflow-y: auto;
    padding-bottom: 12px;
}

.catalogToolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.catalogToolbar__filtersMobile {
    display: none;
}

@media (max-width: 960px) {
    .catalogToolbar__filtersMobile {
        display: contents;
    }
}

.catalogToolbar__filtersBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-color);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-left: auto;
}

.catalogToolbar__filtersPanel {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
}

.catalogToolbar__filtersPanel[hidden] {
    display: none;
}

.catalogToolbar__filtersPanel .catalogFilters {
    border: none;
    border-radius: 0;
    padding: 4px 0 8px;
    background: transparent;
}

.sortingDropdown {
    position: relative;
}

.catalogFilters__select {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: border-color .25s;
}

.catalogFilters__select:hover {
    border-color: var(--brand-color);
}

.catalogFilters__selectInner {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
}

.catalogFilters__icon,
.catalogFilters__arrow {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.catalogFilters__arrow {
    margin-left: auto;
    transition: transform .25s;
}

.catalogFilters__labelValue {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 15px;
    line-height: 120%;
    color: var(--text-secondary);
}

.sortingDropdown__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    z-index: 100;
    overflow: hidden;
}

.sortingDropdown__menu[hidden] {
    display: none;
}

.sortingDropdown__menuItem {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 120%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color .2s;
}

.sortingDropdown__menuItem:hover {
    background-color: #f5f5f5;
}

.sortingDropdown__menuItem_active {
    background-color: #fbeaee;
    color: var(--brand-color);
    font-weight: 600;
}

.filterOption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 130%;
    color: var(--text-secondary);
    transition: color .2s;
}

.filterOption:hover {
    color: var(--brand-color);
}

.filterOption__box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
}

.filterOption_selected .filterOption__box {
    border-color: var(--brand-color);
    background-color: var(--brand-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="9" viewBox="0 0 12 9" fill="none"><path d="M1 4.5L4.5 8L11 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.filterOption_selected .filterOption__label {
    font-weight: 600;
}

.filterOption__label {
    margin-right: auto;
}

.filterOption__count {
    font-size: 13px;
    color: var(--text-muted);
}

.filterChips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filterChip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f2f3f5;
    font-size: 13px;
    color: var(--text-secondary);
    transition: background-color .2s;
}

.filterChip:hover {
    background: #e6e8ec;
}

.filterChip__name {
    color: var(--text-muted);
}

.filterChip__remove {
    font-size: 15px;
    line-height: 1;
    color: var(--text-muted);
}

.productCatalog__emptyReset {
    margin-top: 20px;
}

@media (max-width: 576px) {
    .catalogToolbar .catalogToolbar__filtersTrigger {
        flex: 0 0 auto;
    }

    .catalogToolbar .sortingDropdown {
        flex: 1 1 0;
        min-width: 0;
    }

    .catalogToolbar .sortingDropdown .catalogFilters__select {
        width: 100%;
    }

    .catalogToolbar .catalogFilters__select {
        padding: 12px;
    }

    .catalogToolbar .catalogFilters__selectInner {
        gap: 6px;
    }

    .catalogToolbar .sortingDropdown .catalogFilters__icon {
        display: none;
    }
}

.productCatalog__wrapper {
    margin-bottom: 56px;
}

.productCatalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 56px 40px;
    margin-bottom: 56px;
}

.productCatalog__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.productCatalog__emptyTitle {
    font-size: 24px;
    font-weight: 600;
    color: #424242;
    margin-bottom: 12px;
}

.productCatalog__emptyText {
    font-size: 16px;
    color: #757575;
    max-width: 400px;
}

@media (max-width: 1100px) {
    .productCatalog__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 60px 40px;
    }
}

@media (max-width: 576px) {
    .productCatalog__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 40px 16px;
    }
}

.productCard {
    position: relative;
    display: flex;
    flex-direction: column;
}

.productCard__link {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: inherit;
}

.productCard::before {
    content: "";
    position: absolute;
    box-shadow: 0 0 0 transparent;
    border-radius: 16px;
    transition: box-shadow .25s;
}

.productCard:hover::before {
    left: -30px;
    right: -30px;
    top: -30px;
    bottom: -141px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .09);
}

.productCard:hover {
    z-index: 2;
}

.productCard:hover .productCard__actions {
    display: block;
}

.productCard__imageWrapper {
    position: relative;
}

.productCard__imageHolder {
    position: relative;
    width: 100%;
    padding-top: 100%;
    cursor: pointer;
    background: #f2f3f5;
    border-radius: 8px;
}

.productCard__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.productCard__discount {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 8px;
    background-color: var(--brand-color);
    border-radius: 3px;
    font-weight: 700;
    font-size: 13px;
    line-height: 120%;
    color: #fff;
}

.productCard__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
}

.productCard__priceBlock {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.productCard__price {
    font-weight: 700;
    font-size: 17px;
    line-height: 120%;
    color: #000;
}

.productCard__originalPrice {
    margin-left: 8px;
    font-weight: 400;
    font-size: 13px;
    line-height: 120%;
    text-decoration-line: line-through;
    color: var(--text-muted);
}

.productCard__additionalInfo {
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    align-items: center;
}

.productCard__code {
    font-size: 13px;
    line-height: 120%;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.productCard__rating {
    margin-left: 12px;
    display: flex;
    align-items: center;
}

.productCard__ratingIcon {
    margin-right: 4px;
}

.productCard__ratingValue {
    font-size: 13px;
    line-height: 120%;
    color: var(--text-muted);
}

.productCard__title {
    font-weight: 400;
    font-size: 15px;
    line-height: 144%;
    color: #000;
    max-height: 46px;
    min-height: 43px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.productCard__features {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
    width: 100%;
    font-size: 13px;
    line-height: 130%;
    color: var(--text-muted);
}

.productCard__feature {
    display: flex;
    gap: 6px;
}

.productCard__featureName::after {
    content: ":";
}

.productCard__featureValue {
    color: var(--text-secondary);
}

.productCard__actions {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    padding-top: 20px;
    z-index: 3;
}

.productCard__actionsContent {
    display: flex;
    align-items: center;
}

.productCard__addToCart {
    padding: 12px 16px;
    background: var(--brand-color);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    line-height: 120%;
    color: #fff;
    cursor: pointer;
    transition: background .25s;
}

.productCard__addToCart:hover {
    background: var(--brand-color-hover);
}

.productCard__addToCart_disabled {
    background: #e0e0e0;
    color: var(--text-muted);
    cursor: default;
}

.productCard__addToCart_disabled:hover {
    background: #e0e0e0;
}

.productCard__likeButton {
    display: flex;
    margin-left: 8px;
    padding: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.productCard__likeButton path {
    transition: stroke .25s;
}

.productCard__likeButton:hover path {
    stroke: var(--text-secondary);
}

.productCard__likeButton_liked path {
    fill: var(--brand-color);
    stroke: var(--brand-color);
}

.productCard__info {
    display: flex;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
    line-height: 120%;
    color: var(--text-muted);
}

.productCard__inStock {
    margin-left: 6px;
    font-size: 15px;
    line-height: 120%;
    color: var(--text-secondary);
}

.availability {
    font-size: 13px;
    font-weight: 600;
    line-height: 120%;
}

.availability_in_stock {
    color: #1f9254;
}

.availability_out_of_stock {
    color: #c0392b;
}

.availability_on_order,
.availability_awaiting,
.availability_preorder {
    color: #b07d17;
}

@media (max-width: 960px) {
    .productCard:hover::before { display: none; }

    .productCard__actions {
        display: block;
        position: static;
        padding-top: 16px;
    }
}

.subcategoriesGrid {
    margin-bottom: 40px;
}

.subcategoriesGrid__title {
    font-weight: 600;
    font-size: 24px;
    line-height: 130%;
    color: #000;
    margin: 0 0 24px 0;
}

.subcategoriesGrid__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.subcategoryCard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    border: 1px solid #f0f0f0;
}

.subcategoryCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .09);
    border-color: var(--brand-color);
}

.subcategoryCard__imageWrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f8f8f8;
    overflow: hidden;
}

.subcategoryCard__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcategoryCard__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategoryCard__name {
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #000;
    margin: 0;
}

.subcategoryCard__count {
    font-size: 13px;
    line-height: 120%;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .subcategoriesGrid__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .subcategoriesGrid__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .subcategoriesGrid__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.categoryDescription {
    font-size: 15px;
    line-height: 144%;
    color: var(--text-secondary);
}

.categoryDescription p { margin-bottom: 16px; }
.categoryDescription p:last-child { margin-bottom: 0; }
.categoryDescription ul { margin: 16px 0; padding-left: 24px; }
.categoryDescription li { margin-bottom: 8px; }
.categoryDescription a { color: var(--brand-color); text-decoration: underline; }

.pagination {
    display: flex;
    align-items: center;
}

.pagination_withMargin {
    margin-top: 28px;
}

.pagination__info {
    width: 100%;
}

.paginationList {
    display: flex;
    padding: 0;
    list-style-type: none;
    flex-flow: wrap;
    margin: 0;
    align-items: center;
    gap: 8px;
}

.paginationButton {
    display: flex;
    align-items: center;
}

.paginationButton > a,
.paginationButton > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    color: #4f4f4f;
    font-weight: 400;
    font-size: 15px;
    line-height: 120%;
    transition: all .25s;
}

.paginationButton:not(.paginationButton_active):hover > a {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.paginationButton_active > span {
    background: var(--brand-color);
    color: #fff;
}

.ellipsis {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: #4f4f4f;
    font-size: 15px;
}

.pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 20px;
    color: #4f4f4f;
    transition: background .25s;
}

.pagination__arrow:hover {
    background: #f5f5f5;
}

@media (max-width: 576px) {
    .paginationList { justify-content: center; }
}
