.category {
    margin-top: 150px;
}

.category .filters {
    margin-top: 90px;
}


.category .filters__dropdown .search-box {
    position: relative;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e6ed;
}

.category .filters__dropdown .search-box input {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #bacade;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.category .filters__dropdown .search-box input:focus {
    border-color: #228aed;
}

.category .filters__dropdown .search-box::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a7d94'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.category .filters__dropdown .search-box + label {
    margin-top: 5px;
}

.category .filters__dropdown {
    flex-direction: column;
    gap: 8px;
}


.category .filters__title {
    font-weight: 500;
    font-size: 20px;
    color: #16224a
}

.category .filters__wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: space-between
}


.active-filters {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e6ed;
    border-bottom: 1px solid #e0e6ed;
}

.active-filters__container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f3f8fe;
    border: 1px solid #bacade;
    border-radius: 30px;
    font-size: 14px;
    color: #16224a;
}

.active-filter__remove {
    margin-left: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-filter__remove svg {
    transition: fill 0.2s ease;
}

.active-filter__remove:hover svg {
    fill: #228aed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .active-filters {
        padding: 12px 0;
    }
    
    .active-filter {
        padding: 5px 10px;
        font-size: 13px;
    }
}


.filters__dropdown .filter-values-list label.hidden-by-search {
    display: none;
}


.category .filters__box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%
}

.category .filters__box-item {
    width: calc(25% - 60px);
    position: relative;
    border: 1px solid #bacade;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    max-height: 40px;
    cursor: pointer
}

.category .filters__box-item span {
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.category .filters__box-item .arrow {
    width: 9px;
    height: 9px;
    border-left: 1px solid #16224a;
    border-bottom: 1px solid #16224a;
    transform: rotate(-45deg);
    transition: all .2s ease
}

.category .filters__box-item.open .arrow {
    transform: rotate(135deg)
}

.category .filters__dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: -1px;
    background-color: #f3f8fe;
    border: 1px solid #bacade;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
    z-index: 10;
    padding: 10px;
    width: calc(100% + 2px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #228aed #bacade
}

.category .filters__dropdown::-webkit-scrollbar {
    width: 2px;
    border-radius: 3px
}

.category .filters__dropdown::-webkit-scrollbar-track {
    background: #bacade;
    border-radius: 3px
}

.category .filters__dropdown::-webkit-scrollbar-thumb {
    background-color: #228aed;
    border-radius: 3px
}

.category .filters__dropdown label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px
}

.category .filters__dropdown label input[type=checkbox] {
    accent-color: #228aed
}

.category .filters__dropdown.hidden {
    display: none
}

.category .filters__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 190px;
    flex-grow: 1;
    flex-shrink: 0
}

.category .filters__buttons button:first-child {
    background-color: #228aed;
    color: #f3f8fe;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid #228aed;
    cursor: pointer;
    transition: all .2s ease-in;
    width: 100%;
    padding: 8px 0
}

.category .filters__buttons button:first-child:hover {
    background-color: #21488b;
    color: #f3f8fe;
    border: 1px solid #21488b
}

.category .filters__buttons a:last-child {
    background-color: rgba(0, 0, 0, 0);
    outline: none;
    cursor: pointer;
    border: none;
    color: #6a7d94;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.category__products {
    margin-top: 50px
}

.category__products-list {
    margin-top: 20px;
    border-top: 1px solid #bacade
}



.category .subcategories {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 295px));
    column-gap: clamp(5px, 2vw, 20px);
    row-gap: 30px;
    width: 100%;
}

.category .subcategories .subcategory__item {
    max-height: 100px;
    min-height: 54px;
}

.subcategory__item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #bacade;
    border-radius: 4px;
    align-items: center;
}

.subcategory__item-title {
    font-weight: 500;
    font-size: 16px;
    color: #16224a;
    margin: 5px;
}

.subcategory__item-image {
    width: 62px;
    height: 100%;
    flex-grow: 0;
    flex-shrink: 0
}

.subcategory__item-image img {
    height: 100%;
    width: 100%;
    object-fit: cover
}

.subcategory__item:hover {
    box-shadow: 0 0 4px rgba(22, 34, 74, .25)
}

.subcategory__item:hover .subcategory__item-title {
    color: #228aed
}




.category__product {
    display: grid;
    grid-template-columns: 85px 1fr 200px;
    padding: 19px 0;
    border-bottom: 1px solid #bacade;
    gap: 20px;
    align-items: center;
    position: relative
}



.category__product.purchased .category__product-price button {
    background-color: #228aed;
    color: #f3f8fe;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid #228aed;
    cursor: pointer;
    transition: all .2s ease-in
}

.category__product .purchase_icon {
    position: absolute;
    display: none
}

.category__product.purchased .purchase_icon {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    height: 19px
}

.category__product-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.category__product-price {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.category__product-price div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 16px
}

.category__product-price div span {
    display: flex;
    gap: 5px;
    align-items: baseline
}

.category__product-price div #price {
    font-size: 20px;
    font-weight: 600;
}

.category__product-price button {
    background-color: #f3f8fe;
    color: #21488b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid #21488b;
    cursor: pointer;
    transition: all .2s ease-in;
    padding: 10px 0;
}

.category__product-price button:hover {
    background-color: #21488b;
    color: #f3f8fe;
    border: 1px solid #21488b;
}

.category__showmore {
    display: grid;
    grid-template-areas: ". btn pagination";
    grid-template-columns: repeat(3, 1fr);
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.category__showmore-button {
    grid-area: btn;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category__showmore-button button {
    background-color: #f3f8fe;
    color: #21488b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: 1px solid #21488b;
    cursor: pointer;
    transition: all .2s ease-in;
    padding: 17px 42px;
}

.category__showmore-button button:hover {
    background-color: #21488b;
    color: #f3f8fe;
    border: 1px solid #21488b;
}

.category__showmore .pagination {
    grid-area: pagination;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6a7d94;
    font-size: 20px
}

.category__showmore .pagination__num {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    text-align: center;
    transition: all .3s ease
}

.category__showmore .pagination__num:hover {
    color: #f3f8fe;
    background-color: #228aed
}

.category__showmore .pagination .arrow {
    width: 9px;
    height: 9px;
    border-left: 1px solid #bacade;
    border-bottom: 1px solid #bacade
}

.category__showmore .pagination .arrow:hover {
    border-left: 1px solid #228aed;
    border-bottom: 1px solid #228aed;
    cursor: pointer
}

.category__showmore .pagination .arrow-left {
    transform: rotate(45deg)
}

.category__showmore .pagination .arrow-right {
    transform: rotate(-135deg)
}


@media(max-width: 1200px) {
    .category .subcategories .subcategory {
        width: calc(33.333% - 14px);
    }
}

@media(max-width: 992px) {
    .category .filters {
        margin-top: 44px
    }
    .category .filters__title {
        font-size: 18px
    }
    .category .filters__wrapper {
        flex-direction: column;
        gap: 45px
    }
    .category .filters__box {
        gap: 16px
    }
    .category .filters__box-item {
        width: 30%
    }
    .category .filters__box-item span {
        font-size: 16px
    }
    .category .filters__buttons {
        flex-direction: row;
        align-self: end;
        width: auto;
        gap: 10px
    }
    .category .filters__buttons button:first-child {
        padding: 8px 45px
    }
    .category .filters__buttons button:last-child {
        padding: 8px 45px
    }
    .category__products-title {
        font-size: 14px
    }
    .category__showmore {
        display: flex;
        flex-direction: column;
        gap: 30px
    }
    .category__showmore-button button {
        padding: 17px 42px
    }
    .category .subcategories .subcategory {
        width: calc(50% - 10px);
        min-width: 200px;
    }
}

@media(max-width: 768px) {
    .category .subcategories .subcategory {
        width: 100%;
        height: 90px;
    }
    .category .filters__title {
        font-size: 16px
    }
    .category .filters__box {
        flex-direction: column
    }
    .category .filters__box-item {
        width: 100%
    }
    .category .filters__buttons {
        flex-direction: column;
        align-self: center;
        width: 100%
    }
    .category__product {
        grid-template-columns: 85px 1fr;
        gap: 10px;
        row-gap: 20px
    }
    .category__product-title {
        text-overflow: ellipsis;
        overflow: visible;
        white-space: wrap
    }
    .category__product-price {
        grid-column: 1/3
    }
    .category__product-price button {
        font-size: 16px
    }
    .category__showmore-button button {
        width: 100%;
        padding: 8px 0
    }
    .category__showmore-button {
        width: 100%
    }
    .category__showmore .pagination__num {
        font-size: 18px
    }
}

@media(max-width: 576px) {
    .category .subcategories .subcategory {
        width: 100%;
    }
}


.articles-page{
    margin-top:150px
}