/* catalog left side */

.generalLeftSide {
    text-align: right;
}
.generalLeftSide .viewBox {
    margin: 15px 0;
}
.generalLeftSide .block ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding-right: 0;
    list-style-type: none;
}
.generalLeftSide .viewBox > .list > li.active {
    position: relative;
}
.generalLeftSide .viewBox ul.sublist {
    padding-left: 15px;
}
.generalLeftSide li a {
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    padding-bottom: 10px;
}
.generalLeftSide .block-category-navigation li.active > .sublist > li a {
    color: #000;
    font-weight: 400;
}
.generalLeftSide li.active.last > a {
    color: #17a2b8;
}
.generalLeftSide li a .total {
    position: relative;
    left: -5px;
    font-size: 14px;
    font-weight: 400;
    opacity: .5;
}
.generalLeftSide .block-category-navigation li.active .sublist > li.last > a {
    color: #17a2b8;
    font-weight: 500;
}
.generalLeftSide li {
    position: relative;
}
.generalLeftSide li.active.last > a .total, .generalLeftSide li a:hover .total {
    opacity: 1;
}
.generalLeftSide .block-category-navigation li.active > .sublist > li::before, .generalLeftSide .block-category-navigation li.active > .sublist > li::after {
    content: "";
    position: absolute;
    top: 0;
    right: -15px;
    width: 10px;
    height: 105%;
    border-right: 1px solid #e7e7e7;
}
.generalLeftSide .block-category-navigation li.active > .sublist > li::before {
    height: 105%;
}
.generalLeftSide .block-category-navigation li.active > .sublist > li:last-child::before {
    display: none;
}
.generalLeftSide .block-category-navigation li.active > .sublist > li::after {
    height: 10px;
    border-bottom: 1px solid #e7e7e7;
}
.generalLeftSide .btn.color-container {
    margin: 0 5px 5px 0;
}
.generalLeftSide .btn.color-container:focus, .generalLeftSide .btn.color-container:active {
    box-shadow: none;
    border-radius: 100%;
}
.generalLeftSide .btn.color-container .color {
    width: 32px;
    height: 32px;
}

/* catalog selectors */

.viewmode-icon.grid {
    margin-right: 0 !important;
    margin-left: 1.5rem;
}

/* catalog right side */

.sort-container {
    display: inline-flex;
    align-items: center;
}
.sort-container:not(:last-child) {
    margin: 0 10px 0 0;
}
.sort-container .col-form-label {
    margin: 0 0 0 5px;
    font-weight: 500;
    white-space: nowrap;
}
.item-statistics {
    font-weight: 500;
}
.item-statistics .items-per-page span,
.item-statistics .items-separator {
    margin: 0 0 0 5px;
}
.block-recently-viewed-products .card {
    border: 0;
}
.block-recently-viewed-products .card .card-body {
    padding: 5px 0 ;
}
.block-recently-viewed-products .card img {
    background-color: #F8F9FB;
}
.b-avatar .b-avatar-img img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 0;
}
.viewmode-icon {
    cursor: pointer;
}
.viewmode-icon .list-icon {
    margin: 0 20px 0 0;
}

/* tabs */

.nav-tabs .nav-link {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    border: 0;
    outline: none;
    border-radius: 0;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}
.nav-tabs .nav-link.active {
    color: #000;
}
.nav-tabs .nav-link:hover:not(.active) {
    background-color: rgba(0,0,0,.08);
    color: #000;
}
.nav-tabs .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: rgba(0,0,0,.2);
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}
.nav-tabs .nav-link:hover::before {
    left: 0;
    right: 0;
}
.nav-tabs .nav-link.active::before {
    background: #0E606C;
    left: 0;
    right: 0;
}

/* pagintaion */

.pagination {
    flex-wrap: wrap;
}
.pagination .page-item {
    margin: 0 0 5px 0;
}
.pagination .page-link {
    color: #000;
    font-weight: 500;
    background-color: #f8f9fa;
    cursor: pointer;
}
.pagination .currentpage.page-item .page-link {
    pointer-events: none;
}
.pagination .currentpage.page-item .page-link {
    color: #fff;
    background-color: #0E606C;
    border-color: #0E606C;
}
.pagination .page-item:not(.currentpage):hover .page-link {
    color: #fff;
    background-color: #1FB0C7;
    border-color: #1FB0C7;
}

@media (max-width: 575px) {
    .sort-container, .sort-container:not(:last-child) {
        width: 100%;
    }
}

/* dark catalog */

[dark-theme="true"] .pagination .page-link {
    color: #fff;
    border-color: #555;
    background-color: #2d3133;
}
[dark-theme="true"] .viewBox img, [dark-theme="true"] .block-recently-viewed-products .card > a {
    background-color: #2d3133;
    border: 1px solid #555;
}
[dark-theme="true"] .block-recently-viewed-products .card img {
    background-color: #2d3133;
}
[dark-theme="true"] .block-recently-viewed-products .card, [dark-theme="true"] .nav-tabs .nav-link {
    background-color: transparent;
}
[dark-theme="true"]  .nav-tabs .nav-link.active {
    background-color: #363c40;
}
[dark-theme="true"] .block-recently-viewed-products .card .card-body h5 a, [dark-theme="true"] .nav-tabs .nav-link:hover:not(.active), [dark-theme="true"] .nav-tabs .nav-link, [dark-theme="true"]  .nav-tabs .nav-link.active  {
    color: #fff;
}
[dark-theme="true"] .block-recently-viewed-products .card .card-body h5 a:hover, [dark-theme="true"] .generalLeftSide li.active.last > a, [dark-theme="true"] .generalLeftSide .block-category-navigation li.active .sublist > li.last > a {
    color: #1FB0C7;
}