/* СТИЛИ ДЛЯ БЛОКА CATEGORY-DESCRIPTION */

.category-description {
    display: flex;
    margin-top: 30px;
    column-gap: 15px;
}

.category-description__btn-wrapper {
    margin-top: 15px;
}

.category-description__text {
    text-align: justify;
}

.category-description__btn {
    display: inline-block;
    border-radius: 5px;
    padding: 15px 70px;
    text-align: center;
    background: #257985;
    border: none; 
    text-align: center;
    cursor: pointer;
    font-family: var(--font-family);
    color: #fff;
    font-size: 25px;
    transition: all .3s ease-out;
}

.category-description__btn:hover {
    background: #309dad;
    transform: translateY(-3px);
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATEGORY-DESCRIPTION */

@media (max-width: 700px) {
    
    .category-description {
        flex-direction: column;
    }
    
    .category-description__figure img{
        width: 100%;
    }
}

/* СТИЛИ ДЛЯ БЛОКА CATEGORY */

.category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category__item {
    border: 3px solid #257985;
    padding: 30px;
    display: flex;
    align-items: center;
    height: 240px;
    column-gap: 15px;
    transition: all .3s ease-out;
}

.category__name {
    font-size: 38px;
    margin-top: 20px;
    color: #257985;
}

.category__name span {
    font-size: 38px;
    color: #FF4447;
}

.category__item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category__image {
    width: 180px;
    height: auto;
}

.category__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 14px;
}

.category__title {
    color: #007d84;
    font-size: 18px;
    font-weight: bold;
}

.category__description {
    margin-top: 10px;
}

.category--columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.category--columns-1 {
    grid-template-columns: 1fr;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATEGORY */

@media (max-width: 1380px) {
    
    .category {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 930px) {
    
    .category {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    
    .category__item {
        flex-direction: column;
        height: auto;
        text-align: center;
    }
    
    .category__image {
        width: 120px;
        margin-bottom: 15px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА CATEGORY-PRODUCT */

.category-product {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

.category-product__container {
    border: 1px solid #257985;
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
    transition: all .3s ease-out;
}

.category-product__container:hover {
    box-shadow: 0 8px 21px rgba(0, 0, 0, 0.3);
}

.category-product__image-container {
    display: grid;
    grid-template-columns: 170px 1fr;
    padding: 35px;
    gap: 25px;
    align-items: stretch;
}

.category-product__link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.category-product__img {
    max-height: 120px;
    object-fit: contain;
}

.category-product__description-text {
    text-overflow: ellipsis;
    margin-top: 10px;
}

.category-product__name {
    padding: 12px 35px;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #257985;
    display: inline-block;
    text-decoration: none;
    margin-top: auto;
    transition: all .3s ease-out;
    position: relative;
}

.category-product__name-text {
    position: relative;
    display: inline-block;
}

.category-product__name-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform .3s ease-out;
    transform-origin: bottom right;
}

.category-product__name:hover .category-product__name-text::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.category-product__btn {
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #257985;
    display: inline-block;
    padding: 5px 45px;
    height: 36px;
    opacity: .9;
    color: #257985;
    background-color: #fff;
    transition: all .3s ease-out;
}

.category-product__btn:hover {
    background: #257985;
    color: #fff;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATEGORY-PRODUCT */

@media (max-width: 1150px) {
    
    .category-product__image-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 700px) {
    
    .category-product {
        grid-template-columns: 1fr;
    }
}

/* СТИЛИ ДЛЯ БЛОКА FILTERS */

.filters-form-wrapper {
    border: 2px solid #257985;
}

.filter-title {
    font-size: 18px;
    color: #fff;
    background-color: #257985;
    padding: 10px 15px;
}

.toggle {
    display: none;
}

.filter-choose {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 15px;
    position: relative;
}

.filter-choose::after {
    content: "⌵";
    color: #257985;
    font-size: 12px;
    transition: transform .3s ease;
    position: static;
    margin-left: 10px;
}

.toggle:checked + .filter-choose::after {
    transform: translateY(20%) rotate(180deg);
}

.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 5px;
}

.toggle:checked + .filter-choose + .filter-options {
    max-height: 200px;
    padding: 10px 15px;
    overflow-y: auto;
}

.filter-group:has(input:checked) .filter-options {
    max-height: 200px;
    padding: 10px 15px;
    overflow-y: auto;
}

.filter-group:has(.filter-options input:checked) .filter-choose::after {
    transform: translateY(20%) rotate(180deg);
    transition: none;
}

.filter-options label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.range-inputs {
    display: flex;
    gap: 10px;
}

.input-with-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-with-label span {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.input-with-label input {
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-top: 3px;
}

.apply-btn {
    background-color: #257985;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all .3s ease-out;
}

.apply-btn:hover {
    background-color: #309dad;
}
    
.strelka {
    font-weight: 700;
    color: #ff4447;
}

/* СТИЛИ ДЛЯ БЛОКА CATEGORY-LIST */

.category-list {
    display: grid;
    grid-template-columns: minmax(200px, 0.25fr) 1fr;
    gap: 20px;
    align-items: start;
}

.category-list__pagination {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.category-list__pagination li {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    transition: all .3s ease-out;
}

.category-list__pagination li a {
    display: inline-block;
    padding: 10px 17px;
    border-radius: 50%;
    text-decoration: none;
    color: #257985;
    background: #fff;
    border: 1px solid #257985;
    min-width: 36px;
    text-align: center;
    font-size: 22px;
    transition: all .2s ease-out;
    font-weight: 700;
}

.category-list__pagination li.selected a {
    color: #fff;
    background: #257985;
}

.category-list__pagination li:not(.selected):hover a:not(.inline-link) {
    background: #257985;
    color: #fff;
}
  
.category-list__pagination li a.inline-link {
    border: 0;
    padding: 0;
    font-size: 24px;
    transition: ease .1s;
}
  
.category-list__pagination li a.inline-link:hover {
    transform: scale(1.35);
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATEGORY-LIST */

@media (max-width: 700px) {
    
    .category-list {
        grid-template-columns: 1fr;
    }
}