.p-category {
    margin: 0 0 50px 0;
}
.p-category-head {
    margin: 0 0 30px 0;
}
.p-category-head-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 150%;
    margin: 0 0 10px 0;
    padding: 0;
}
.p-category-head-description {

}
/**/
.p-category-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 50px 0;
}
.p-category-sidebar {

}
.p-category-container.is-sidebar .p-category-sidebar {
    width: 280px;
    margin: 0 20px 0 0;
}
.p-category-content {
    width: 100%;
}
.p-category-container.is-sidebar .p-category-content {
    width: calc(100% - 300px);
}
/*childs*/
.p-main-category-childs{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 70px -20px;
}
.p-main-category-child{
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(20% - 20px);
    margin: 0 0 20px 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--black);
    background: #f7f9fc;
    padding: 30px;
    transition: .3s;
    border-radius: 3px;
}
.p-main-category-child:hover{
    transform: scale(1.1,1.1);
    color: var(--blue-600);
}
/*childs*/
.p-category-childs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 30px -10px;
}

.p-category-child {
    width: calc(20% - 10px);
    display: flex;
    align-items: center;
    margin: 0 0 10px 10px;
    border-radius: 3px;
    overflow: hidden;
    padding: 10px;
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 500;
    transition: .3s;
}
.p-category-child:before{
    content: '';
    display: flex;
    width:6px;
    height:6px;
    border-radius: 3px;
    background: var(--gray-500);
    margin:0 6px 0 0;
}

.p-category-child:hover {
    color: var(--blue-700);
}

/*top panel*/
.p-category-content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px 0;
    display: none;
}

/*filter button*/
.p-category-filter-show {
    display: none;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    border-radius: 3px;
    background: var(--red-700);
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: .3s;
}

.p-category-filter-show:hover {
    background: var(--red-600);
}

.p-category-filter-show:before {
    content: '\e912';
    font-family: si-solid;
    color: var(--white);
    font-size: 20px;
    margin: 0 10px 0 0;
}

/*sorting*/
.p-category-sorting {
    display: flex;
    align-items: center;
    display: none;
}

.p-category-sorting-name {
    font-weight: 500;
    margin: 0 10px 0 0;
}

.p-category-sorting-active {
    position: relative;
}

.p-category-sorting-active span {
    display: flex;
    align-items: center;
    height: 40px;
    background: var(--bluegray-50);
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    min-width: 200px;
    padding: 0 40px 0 20px;
    border-radius: 3px;
    cursor: pointer;;
}

.p-category-sorting-active span:after {
    content: '\e907';
    font-family: si-solid;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0, -50%);
}

.p-category-sorting-list {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 3px;
    z-index: 4;
    box-shadow: 0 0 10px rgb(0 0 0 / 7%);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.p-category-sorting-active:hover .p-category-sorting-list {
    opacity: 1;
    visibility: visible;
}

.p-category-sorting-list li a {
    display: flex;
    padding: 10px;
    font-size: 14px;
    font-weight: 400;
    transition: .3s;
}

.p-category-sorting-list li a:hover {
    background: var(--gray-100);
}

/*Product List*/
.product-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0 -20px;
}

.p-category-container.is-sidebar .product-preview {
    width: calc(33.333333% - 20px);
}

/**/
.p-category-footer {
    margin: 0 0 50px 0;
}

.p-category-footer-description {

}
/*pagination*/
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 20px 0 50px 0;
}

.pagination li {
    margin: 0 2px;
}

.pagination li a, .pagination li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #404040;
    font-weight: 400;
    font-size: 14px;
    color: var(--white);
    border-radius: 3px;
    transition: .3s;
}

.pagination li.disabled {
    display: none;
}

.pagination li.active a, .pagination li a:hover {
    background: var(--blue-700);
    color: var(--white);
}
/**/
.p-category-footer{
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 3px;
    padding: 20px;
}
.p-category-footer-description{
    max-height: 500px;
    overflow: hidden;
    overflow-y: auto;
    padding: 0 20px 0 0;
}




@media (max-width: 1024px) {
    .p-category-head{
        margin:0 0 10px 0;
    }
    .p-category-head-title{
        font-size: 18px;
    }

}
@media (max-width: 980px) {
	.product-list .product-preview{
        width: calc(33.33333333% - 20px);
    }
}
@media (max-width: 680px) {
    .category-title{
        text-align: center;
        font-size: 18px;
        margin:0 0 20px 0;
    }
    /*childs*/
    .p-main-category-child{
        padding:10px;
        font-size: 16px;
        width: calc(50% - 20px);
    }
    .p-category-child {
        width: calc(100% - 20px);
    }
    .product-list .product-preview{
        width: calc(50% - 20px);
    }
}
@media (max-width: 480px) {
    .product-list .product-preview{
        width: calc(100% - 20px);
    }
}