.section-category {
    background-color: #f3f5fb;
}

.cat-subcats {
    margin-top: 18px;
}

.cat-subcats__header {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cat-subcats__nav {
    margin: 0;
}

.cat-subcats__swiper {
    overflow: hidden;
}

.cat-subcats__swiper .swiper-wrapper {
    align-items: stretch;
}

.cat-subcats__btn-left,
.cat-subcats__btn-right {
    border: 0;
    cursor: pointer;
}

.cat-subcats__slide {
    width: 255px;
    height: auto;
    display: flex;
}

.cat-subcat-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 78px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: #fff;
    color: #222d32;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.cat-subcat-card:hover {
    color: #222d32;
}

.cat-subcat-card__arrow {
    display: block;
    width: 18px;
    height: 32px;
    flex: 0 0 16px;
    align-self: flex-start;
    margin-top: 2px;
}

.cat-subcat-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.cat-subcat-card__name {
    max-width: 100%;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cat-subcat-card__count {
    color: #48a4a3;
    font-size: 12px;
    line-height: 1.2;
}

.cat-category-layout {
    margin-top: 18px;
}

.cat-filter {
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.cat-filter__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    color: #222d32;
    font-size: 20px;
    font-weight: 400;
}

.cat-filter__heading a {
    color: #d62246;
    font-size: 15px;
    font-weight: 400;
}

.cat-filter__heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-filter__close,
.cat-filter-toggle {
    display: none;
}

.cat-filter-toggle__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.cat-filter__body {
    padding: 14px 12px 12px;
}

.cat-filter__accordion-header {
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
    border-radius: 0;
    padding: 14px 0;
    margin-bottom: 12px;
    color: #222d32;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
}

.cat-filter .accordion-item {
    border-radius: 0;
}

.cat-filter .accordion-content {
    height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 0;
}

.cat-filter .accordion-item.active .accordion-content {
    height: auto !important;
    padding-bottom: 12px;
}

.cat-filter__price-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cat-filter__input,
.cat-filter__search {
    width: 100%;
    height: 37px;
    padding: 0 12px;
    border: 1px solid rgba(73, 164, 163, .85);
    border-radius: 8px;
    color: #222d32;
    font-size: 14px;
    background: #fff;
}

.cat-filter__input::placeholder,
.cat-filter__search::placeholder {
    color: #9aa6b2;
}

.cat-filter__range {
    position: relative;
    height: 22px;
    margin: 0 4px 4px;
}

.cat-filter__range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    height: 4px;
    border-radius: 4px;
    background: #cad3e0;
}

.cat-filter__range-track span {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    border-radius: 6px;
    background: #48a4a3;
    transform: translateY(-50%);
}

.cat-filter__range-track span::before,
.cat-filter__range-track span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #48a4a3;
    border: 4px solid #f3f5fb;
    transform: translateY(-50%);
}

.cat-filter__range-track span::before {
    left: -8px;
}

.cat-filter__range-track span::after {
    right: -8px;
}

.cat-filter__range-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 22px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.cat-filter__range-input::-webkit-slider-thumb {
    pointer-events: auto;
    cursor: pointer;
}

.cat-filter__range-input::-moz-range-thumb {
    pointer-events: auto;
    cursor: pointer;
}

.cat-filter__option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    color: #222d32;
    font-size: 15px;
    line-height: 1.25;
    cursor: pointer;
}

.cat-filter__option.is-hidden {
    display: none;
}

.cat-filter__option input[type="checkbox"],
.cat-filter__option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 4px;
    border: 1.5px solid #48a4a3;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
}

.cat-filter__option input[type="checkbox"]:checked,
.cat-filter__option input[type="radio"]:checked {
    background-color: #48a4a3;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.2 8L11 1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cat-filter__search {
    margin-bottom: 12px;
    height: 34px;
    font-size: 13px;
}

.cat-filter__empty {
    color: #8a98a8;
    font-size: 13px;
    padding-bottom: 4px;
}

.cat-filter__actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-filter__apply {
    width: 100%;
    min-height: 39px;
    border: 0;
    border-radius: 4px;
    background: #439696;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.cat-filter__reset-bottom {
    width: 100%;
    min-height: 39px;
    border-radius: 4px;
    border: 1px solid #d8dfeb;
    background: #fff;
    color: #5c6573;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cat-products {
    width: 100%;
}

.cat-result-bar {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px;
    margin-bottom: 34px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: #fff;
}

.cat-result-bar__count {
    color: #222d32;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.cat-result-bar__sort {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5c6573;
    font-size: 14px;
}

.cat-result-bar__sort-form {
    display: flex;
    align-items: center;
}

.cat-sort-dropdown {
    position: relative;
    z-index: 8;
}

.cat-sort-dropdown__button {
    min-width: 200px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid #48a4a3;
    border-radius: 10px;
    background: #fff;
    color: #48a4a3;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.cat-sort-dropdown__chevron {
    width: 13px;
    height: 13px;
    border-right: 2px solid #48a4a3;
    border-bottom: 2px solid #48a4a3;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
    flex: 0 0 14px;
}

.cat-sort-dropdown.is-open .cat-sort-dropdown__chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.cat-sort-dropdown__menu {
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    min-width: 235px;
    display: none;
    padding: 14px 0;
    border: 1px solid #48a4a3;
    border-radius: 10px;
    background: #f3f5fb;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.cat-sort-dropdown.is-open .cat-sort-dropdown__menu {
    display: block;
}

.cat-sort-dropdown__option {
    display: block;
    padding: 7px 20px;
    color: #222d32;
    font-size: 17px;
    line-height: 1.25;
}

.cat-sort-dropdown__option:hover,
.cat-sort-dropdown__option.is-active {
    color: #222d32;
    background: rgba(72, 164, 163, .08);
}

.cat-result-bar__select {
    min-width: 154px;
    height: 36px;
    padding: 0 36px 0 14px;
    border: 1px solid rgba(73, 164, 163, .85);
    border-radius: 8px;
    color: #48a4a3;
    font-size: 13px;
    font-weight: 400;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #48a4a3 50%), linear-gradient(135deg, #48a4a3 50%, transparent 50%);
    background-position: calc(100% - 18px) 14px, calc(100% - 11px) 14px;
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
}

.cat-products__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.cat-products__grid > .cat-product-card {
    width: auto !important;
    min-width: 0 !important;
}

.cat-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 398px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    overflow: hidden;
}

.cat-product-card__img-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    margin-bottom: 12px;
}

.cat-product-card__img-block img {
    display: block;
    max-height: 160px;
    width: 100%;
    object-fit: contain;
}

.cat-product-card__main-block {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 7px;
    min-height: 152px;
}

.cat-product-card__name-link {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    color: #222d32;
}

.cat-product-card__name-link:hover {
    color: #222d32;
}

.cat-product-card__pc {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.cat-product-card__stars {
    display: flex;
    gap: 2px;
    height: 18px;
}

.cat-product-card__stars img {
    width: 16px;
    height: 16px;
}

.cat-product-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 31px;
    color: #8a98a8;
    font-size: 12px;
    line-height: 1.2;
}

.cat-product-card__count {
    margin: 0;
    color: #48a4a3;
    font-size: 13px;
    font-weight: 400;
}

.cat-product-card__price {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.cat-product-card__btn-container {
    margin-top: auto;
    padding-top: 10px;
}

.cat-product-card__btn-container .btn-book {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
}

.cat-pill {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.cat-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: currentColor;
}

.cat-pill.is-in-stock {
    background: #3f8b8b;
}

.cat-pill.is-preorder {
    background: #4b5563;
}

.cat-pill-age {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 2;
    min-width: 50px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    color: #3f8b8b;
    background: #fff;
    border: 1.5px solid #3f8b8b;
}

.cat-product-card .favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
}

.cat-pagination {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
    padding: 14px 26px;
    border-radius: 8px;
    background: #fff;
}

.cat-pagination__current {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #5c6573;
    font-size: 16px;
    line-height: 1.2;
}

.cat-pagination__current-page {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bac5d6;
    border-radius: 6px;
    background: #f8f9fc;
    color: #222d32;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08);
}

.cat-pagination__pages {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cat-pagination .cat-pagination__number {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #222d32;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.cat-pagination .cat-pagination__number.is-active {
    background: #3f8b8b;
    color: #fff;
}

.cat-pagination .cat-pagination__ellipsis {
    width: auto;
    min-width: 20px;
    background: transparent;
}

.cat-pagination .cat-pagination__arrow {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: #3f8b8b;
    background-size: 12px auto;
}

.cat-pagination .section-list__pagination-left.cat-pagination__arrow {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='20' viewBox='0 0 12 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2L2 10L10 18' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cat-pagination .section-list__pagination-right.cat-pagination__arrow {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='20' viewBox='0 0 12 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L10 10L2 18' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cat-pagination .cat-pagination__arrow.is-disabled {
    background-color: #cad3e0;
    cursor: default;
}

.cat-pagination__edge {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #eef3f8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px auto;
}

.cat-pagination__edge-first {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='18' viewBox='0 0 16 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2L7 9L14 16M8 2L1 9L8 16' stroke='%233f8b8b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cat-pagination__edge-last {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='18' viewBox='0 0 16 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L9 9L2 16M8 2L15 9L8 16' stroke='%233f8b8b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cat-pagination__edge.is-disabled {
    opacity: .45;
    cursor: default;
}

@media (max-width: 1200px) {
    .cat-category-layout {
        gap: 18px;
    }

    .cat-category-layout .cat-filter {
        width: 280px;
        flex: 0 0 280px;
        margin-right: 0;
    }

    .cat-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.cat-filter-open {
        overflow: hidden;
    }

    .cat-category-layout {
        flex-direction: column;
    }

    .cat-category-layout .cat-filter {
        position: fixed;
        inset: 0;
        z-index: 1000;
        width: 100%;
        height: 100dvh;
        flex: none;
        display: none !important;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cat-category-layout .cat-filter.is-open {
        display: flex !important;
    }

    .cat-filter-toggle {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
        border: 1px solid #3f8b8b;
        border-radius: 8px;
        background: #3f8b8b;
        color: #fff;
        font-size: 16px;
        font-weight: 400;
        cursor: pointer;
    }

    .cat-filter__heading {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #fff;
    }

    .cat-filter__close {
        position: relative;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #d8dfeb;
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
    }

    .cat-filter__close::before,
    .cat-filter__close::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: #3f8b8b;
    }

    .cat-filter__close::before {
        transform: rotate(45deg);
    }

    .cat-filter__close::after {
        transform: rotate(-45deg);
    }

    .cat-filter__body {
        width: 100%;
        padding-bottom: 24px;
    }

    .cat-result-bar {
        margin-bottom: 18px;
    }
}

@media (max-width: 767px) {
    .section-category {
        padding-top: 16px;
    }

    .section-category .breadcrumbs {
        margin-bottom: 14px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .section-category .section-group__heading {
        font-size: 24px;
        line-height: 1.2;
    }

    .cat-subcats {
        margin-top: 14px;
    }

    .cat-subcats__header {
        gap: 12px;
    }

    .cat-subcats__slide {
        width: 220px;
    }

    .cat-subcat-card {
        min-height: 70px;
        gap: 14px;
        padding: 14px;
    }

    .cat-subcat-card__arrow {
        width: 14px;
        height: 25px;
        flex-basis: 14px;
    }

    .cat-filter__heading {
        padding: 14px 16px;
        font-size: 18px;
    }

    .cat-filter__body {
        padding: 10px 12px 12px;
    }

    .cat-filter__accordion-header {
        padding: 12px 0;
        font-size: 16px;
    }

    .cat-result-bar {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .cat-result-bar__count {
        font-size: 20px;
    }

    .cat-result-bar__sort {
        width: 100%;
        justify-content: space-between;
    }

    .cat-sort-dropdown,
    .cat-sort-dropdown__button {
        width: 100%;
    }

    .cat-sort-dropdown__button {
        min-width: 0;
    }

    .cat-sort-dropdown__menu {
        left: 0;
        right: 0;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .cat-products__grid {
        grid-template-columns: 1fr;
    }

    .cat-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .cat-pagination__pages {
        gap: 8px;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .cat-filter__price-row {
        gap: 8px;
    }

    .cat-products__grid {
        gap: 12px;
    }

    .cat-product-card {
        min-height: 0;
        padding: 14px;
    }

    .cat-product-card__img-block {
        min-height: 150px;
    }

    .cat-product-card__img-block img {
        max-height: 140px;
    }

    .cat-product-card__main-block {
        min-height: 0;
    }

    .cat-product-card__name-link {
        font-size: 15px;
    }

    .cat-pill {
        min-height: 30px;
        padding: 0 9px;
        font-size: 13px;
    }

    .cat-pill-age {
        top: 44px;
        min-width: 46px;
        min-height: 32px;
        font-size: 13px;
    }

    .cat-pagination__pages {
        width: 100%;
        justify-content: center;
    }

    .cat-pagination .cat-pagination__arrow {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .cat-pagination__edge,
    .cat-pagination .cat-pagination__number {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .cat-subcats__nav {
        display: none;
    }

    .cat-subcats__slide {
        width: 190px;
    }

    .cat-result-bar__sort {
        align-items: flex-start;
        flex-direction: column;
    }

    .cat-filter__price-row {
        flex-direction: column;
    }

    .cat-pagination__current {
        width: 100%;
        justify-content: center;
    }

    .cat-pagination__pages {
        gap: 6px;
    }
}
