/* Category Page - Minimalist Style */
:root {
    --content-indent: 34px; /* отступ как у пункта меню ЖЕНЩИНЫ */
}

.main.container-fluid {
    background: #fff;
    padding: 0 !important;
}

/* Category Header */
.catalogue {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 24px 10px;
    border-bottom: 1px solid #e5e5e5;
    gap: 24px;
}

.catalogue-left {
    flex: 1 1 0;
    min-width: 280px;
}

.catalogue-left .w-500 {
    width: 100%;
    max-width: 100% !important;
}

.catalogue-right {
    flex: 1 1 0;
    min-width: 280px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .catalogue {
        flex-direction: column;
    }
    
    .catalogue-right {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .catalogue-left .w-500 {
        margin-left: -20px !important;
        margin-right: -20px !important;
    }

    .subcategories-cloud {
        margin-left: 0;
        margin-right: 0;
    }
}

.catalogue-header {
    margin-left: 16px;
    margin-right: 16px;
}

.catalogue-header-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #000;
    margin: 0 !important;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: 1px;
    padding-left: 12px;
    padding-right: 12px;
}

.catalogue-header-text {
    font-size: 12px;
    color: #666;
    margin: 0 !important;
    margin-top: 8px !important;
    line-height: 1.5;
    max-width: 100%;
    padding-left: 11px;
    padding-right: 11px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.catalogue-description {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 10px;
    padding-right: 10px;
}

.catalogue-description .catalogue-header-text {
    padding-left: 12px;
    padding-right: 12px;
}

.catalogue-description__body.is-collapsed .catalogue-header-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalogue-description__toggle {
    display: inline-block;
    margin: 4px 0 0 12px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.catalogue-description__toggle:hover,
.catalogue-description__toggle:focus-visible {
    color: #000;
}

.catalogue-description__toggle[hidden] {
    display: none !important;
}

.catalogue-description__toggle .catalogue-description__toggle-less {
    display: none;
}

.catalogue-description__toggle[aria-expanded="true"] .catalogue-description__toggle-more {
    display: none;
}

.catalogue-description__toggle[aria-expanded="true"] .catalogue-description__toggle-less {
    display: inline;
}

/* Breadcrumbs */
.catalogue-left nav[aria-label="breadcrumb"] {
    margin-left: 19px;
    margin-right: 19px;
}

.catalogue-left nav[aria-label="breadcrumb"] .breadcrumb-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: 8px;
    margin-right: 8px;
}

.breadcrumb {
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 12px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
    color: #000;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ccc;
    padding: 0 8px;
}

.f-color-breadcrumb-gray {
    color: #666 !important;
}

/* Sorting and Filtering */
.sorting-and-filtering {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-left: -7px;
    margin-right: -7px;
    padding: 12px 12px;
    border-bottom: 1px solid #e5e5e5;
}

.sorting-and-filtering .d-flex {
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

#open-filter-btn {
    border-radius: 0 !important;
    background: #000 !important;
    border: 1px solid #000 !important;
    font-size: 12px;
    padding: 10px 20px;
    height: 40px;
    flex: 1 1 0;
    min-width: 0;
}

#open-filter-btn:hover {
    background: #333 !important;
    border-color: #333 !important;
}

.sort-select-custom {
    min-width: 0;
    flex: 1 1 0;
    border-radius: 0 !important;
    border: 1px solid #e5e5e5 !important;
    padding: 10px 30px 10px 30px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #fff;
    color: #000;
    font-size: 12px;
    height: 40px;
}

.sort-select-custom:focus {
    border-color: #000 !important;
    box-shadow: none !important;
}

/* Filter Offcanvas */
#filterOffcanvas {
    font-size: 12px;
    border-left: 1px solid #e5e5e5 !important;
    box-shadow: none !important;
}

#filterOffcanvas .offcanvas-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

#filterOffcanvas .offcanvas-title {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#filterOffcanvas .btn-close {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

#filterOffcanvas .btn-close:hover {
    opacity: 1;
}

#filterOffcanvas .offcanvas-body {
    padding: 20px;
}

#filterOffcanvas .filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

#filterOffcanvas .filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#filterOffcanvas .filter-section h6 {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px !important;
}

/* Двойной range: один трек, два ползунка, чёрные круги */
#filterOffcanvas .filter-section-price .category-price-labels {
    margin-bottom: 10px;
}

#filterOffcanvas .category-dual-range {
    position: relative;
    height: 32px;
    width: 100%;
}

#filterOffcanvas .category-price-range-input {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

#filterOffcanvas .category-price-range-input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}

#filterOffcanvas .category-price-range-min::-webkit-slider-runnable-track {
    background: transparent;
}

#filterOffcanvas .category-price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: 50%;
    background: #000;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

#filterOffcanvas .category-price-range-input:focus {
    outline: none;
}

#filterOffcanvas .category-price-range-input:focus-visible::-webkit-slider-thumb {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#filterOffcanvas .category-price-range-input::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}

#filterOffcanvas .category-price-range-min::-moz-range-track {
    background: transparent;
}

#filterOffcanvas .category-price-range-input::-moz-range-thumb {
    pointer-events: auto;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

#filterOffcanvas .category-price-range-min {
    z-index: 2;
}

#filterOffcanvas .category-price-range-max {
    z-index: 1;
}

#filterOffcanvas .offcanvas-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

#filterOffcanvas .filter-action-btn {
    font-size: 12px;
    padding: 12px 16px;
    font-weight: 500;
}

#apply-filters {
    background: #000 !important;
    border: 1px solid #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-size: 12px;
}

#apply-filters:hover {
    background: #333 !important;
    border-color: #333 !important;
}

#clear-filters {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-size: 12px;
}

#clear-filters:hover {
    border-color: #000 !important;
}

/* Filter Values */
#filterOffcanvas .filter-value {
    transition: all 0.15s ease;
}

#filterOffcanvas .btn-outline-dark {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-size: 12px;
    padding: 8px 12px;
}

#filterOffcanvas .btn-outline-dark:hover,
#filterOffcanvas .btn-outline-dark.selected {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

/* Color swatches */
#filterOffcanvas .pallete-color {
    width: 28px;
    height: 28px;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.15s ease;
}

#filterOffcanvas .pallete-color:hover,
#filterOffcanvas .pallete-color.selected {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
}

#filterOffcanvas .swatches-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Size options */
#filterOffcanvas .filter-size-options {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px !important;
}

#filterOffcanvas .filter-size-options .radio-option {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#filterOffcanvas .filter-size-options .size-box {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    font-size: 11px;
    color: #000;
    cursor: pointer;
    transition: all 0.15s ease;
}

#filterOffcanvas .filter-size-options .radio-option:hover .size-box,
#filterOffcanvas .filter-size-options .radio-option.selected .size-box,
#filterOffcanvas .filter-size-options .radio-option.active .size-box {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Other filter buttons */
#filterOffcanvas .filter-other-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#filterOffcanvas .other-filter-btn {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: #000 !important;
    border-radius: 0 !important;
    font-size: 11px;
    padding: 8px 12px;
}

#filterOffcanvas .other-filter-btn:hover,
#filterOffcanvas .other-filter-btn.selected {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

#filterOffcanvas .filter-tag-btn.filter-tag-btn--themed {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: var(--tag-fg, #6c757d) !important;
    border-radius: 0 !important;
    font-size: 11px;
    padding: 8px 12px;
}
#filterOffcanvas .filter-tag-btn.filter-tag-btn--themed:hover {
    border-color: #ccc !important;
}
#filterOffcanvas .filter-tag-btn.filter-tag-btn--themed.selected {
    background: #fff !important;
    border-color: var(--tag-fg, #6c757d) !important;
    color: var(--tag-fg, #6c757d) !important;
}

/* Убираем горизонтальный скролл на странице категории */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}
.main {
    overflow-x: hidden;
}
.main.container-fluid {
    overflow-x: hidden !important;
    max-width: 100%;
}
.products-grid-category {
    overflow-x: hidden;
}
.catalogue {
    overflow-x: hidden;
    max-width: 100%;
}
.sorting-and-filtering {
    overflow-x: hidden;
    max-width: 100%;
}

/* Стили для тегов в фильтрах */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-btn {
    border-radius: 0 !important;
    padding: 8px 12px !important;
    font-weight: 500;
    transition: all 0.15s ease;
    position: relative;
    cursor: pointer;
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #e5e5e5 !important;
    font-size: 12px !important;
    min-height: 36px;
    line-height: 1.2;
}

.tag-btn:hover {
    border-color: #000 !important;
}

.tag-btn.active {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.tag-count {
    opacity: 0.6;
    font-weight: 400;
}

/* Стили для уменьшенных кнопок фильтров */
.filter-action-btn {
    font-size: 12px;
    padding: 10px 16px;
    height: 40px;
}

/* Единый размер интерактивных кнопок фильтра */
.filter-section .btn.filter-value {
    height: 36px;
    min-height: 36px;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    font-size: 12px;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    color: #000 !important;
}

.filter-section .btn.filter-value:hover {
    border-color: #000 !important;
}

.filter-section .btn.filter-value.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Стили для цветовых палитр */
.pallete-color {
    border: 1px solid #e5e5e5;
    transition: all 0.15s ease;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.pallete-color:hover,
.pallete-color.active,
.pallete-color.selected {
    border-color: #000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000;
}

/* Modified by Composer | 2026-03-02_01 - адаптив: flex-wrap вместо grid */
.subcategories-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    align-content: flex-start;
}

.subcategory-tag {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #000;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 18px;
    text-align: center;
    vertical-align: bottom;
    max-height: 3em;
}

.subcategory-tag:hover {
    border-color: #000;
    color: #000;
}

/* Пагинация каталога */
.catalog-pagination {
    padding: 24px 10px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.catalog-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-pagination__item--gap span {
    padding: 0 4px;
    color: #999;
    font-size: 12px;
}

.catalog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #000;
    font-size: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.catalog-pagination__link:hover {
    border-color: #000;
}

.catalog-pagination__link--current {
    border-color: #000;
    background: #000;
    color: #fff;
    font-weight: 500;
}

.catalog-pagination__item--disabled .catalog-pagination__link {
    opacity: 0.35;
    cursor: default;
}

.catalog-pagination__meta {
    text-align: center;
}

@media (max-width: 575.98px) {
    .catalog-pagination__link--prev,
    .catalog-pagination__link--next {
        min-width: auto;
        padding: 0 12px;
    }
}

/* Фильтр цвета в offcanvas (класс color-dot на pallete-color) */
.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 0;
    border: 1px solid #e5e5e5;
}
.color-dot.active, .color-dot:hover { border-color: #000; }
