.category {
    max-width: 75em;
    margin: auto;
    padding: 0 .75em;
}

.category-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    box-sizing: border-box;
    width: 100%;
    background: #FFF;
    border: 1px solid var(--light-black);
    border-radius: .4em;
    padding: 1.5em 2em;
    height: fit-content;
    max-height: 14em;
    overflow: hidden;
}

.category-wrapper.active {
    max-height: fit-content;
}

.category__product-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.category-more {
    position: sticky;
    bottom: 2em;
    transform: translateY(-1.3em);
    width: 100%;
    display: none;
    justify-content: center;
    cursor: pointer;
}

.category-more.active {
    display: flex;
}

.category-more-hide, .revert .category-more-show {
    display: none;
}

.revert .category-more-item i {
    transform: rotate(180deg);
}

.revert .category-more-hide {
    display: block;
}

.category-more-item {
    background: #FFF;
    border: 1px solid var(--light-black);
    padding: .5em 1.2em;
    border-radius: .4em;
    display: inline-flex;
    align-items: center;
    gap: .5em;
}

.category-more-item i {
    color: var(--default-color);
}

.category__nested-item {
    width: 100%;
}

.category__nested-item a {
    color: #2A2A2A;
}

a.category__nested-link {
    font-weight: 700;
    font-size: 1.125em;
    line-height: 1.8em;
}

.category__nested-column {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: .5em;
    padding: .875em;
}

a.category__nested-link.link--nested {
    font-weight: 500;
    font-size: 1em;
    line-height: .15em;
}

section.category__product {
    padding: 2em 0;
}

section.category__product {
    width: 100%;
    padding: 2em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

h1.category__title {
    font-size: 1.5em;
    font-weight: 500;
}

.card {
    background: #FFF;
    border: 1px solid var(--light-black);
    padding: .75em;
    border-radius: 1em;
    position: relative;
    width: 100%;
    transition: .3s;
}

.card:hover {
    box-shadow: var(--medium-shadow);
}

.card__photo {
    position: relative;
    border-radius: .5em;
    overflow: hidden;
}

.card__photo img {
    border-radius: .5em;
}

.card__photo img {
    border-radius: .5em;
    width: 100%;
    height: 10em;
    object-fit: contain;
}

.card__features {
    position: absolute;
    bottom: .75em;
    left: .5em;
    width: calc(100% - 1em);
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    opacity: 0;
    transform: translateX(-50%);
    transition: .3s;
}

.card:hover .card__features {
    opacity: 1;
    transform: translateX(0);
}

.card__features-item {
    background: #FFF;
    font-size: .75em;
    border-radius: 1em;
    padding: 0 .75em .15em;
    font-weight: 500;
    border: 1px solid var(--light-black);
}

.card__wishlist {
    position: absolute;
    top: .7em;
    right: .7em;
    z-index: 9;
    background: #FFF;
    padding: .75em;
    border-bottom-left-radius: .5em;
    cursor: pointer;
}

.card__wishlist.active i {
    color: var(--danger-color);
    transform: scale(1.2);
}

span.card__wishlist-left-el {
    position: absolute;
    top: 0;
    left: -8px;
    width: 16px;
    height: 12px;
    overflow: hidden;
}

span.card__wishlist-left-el::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -26px;
    width: 18px;
    height: 18px;
    background: transparent;
    border-radius: 50%;
    border: 16px solid #FFF;
    z-index: -1;
}

span.card__wishlist-right-el {
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 10px;
    height: 16px;
    overflow: hidden;
}

span.card__wishlist-right-el::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -24px;
    width: 18px;
    height: 18px;
    background: transparent;
    border-radius: 50%;
    border: 16px solid #FFF;
    z-index: -1;
}

.card__cart {
    padding: 1.25em .75em;
    display: flex;
    justify-content: center;
    gap: .5em;
    border-radius: .5em;
    font-size: .875em;
    position: relative;
    z-index: 9;
    cursor: pointer;
    background: var(--default-color);
    color: #FFF;
    border: 1px solid var(--default-color);
    transition: .3s;
}

.card__pre-link {
    padding: 1.25em .75em;
    display: flex;
    justify-content: center;
    gap: .5em;
    border-radius: .5em;
    font-size: .875em;
    cursor: pointer;
    background: var(--default-color);
    color: #FFF;
    border: 1px solid var(--default-color);
}

.card__cart:hover {
    background: var(--default-color-hover);
}

.card__cart.active {
    color: var(--default-color);
    background: #FFF;
}

.card__cart.active:hover {
    color: var(--default-color-hover);
}

.empty--image {
    width: 100%;
    height: 10em;
    background: repeating-linear-gradient(
            135deg,
            #FFFFFF,
            #FFFFFF 10px,
            #F2F5F9 10px,
            #F2F5F9 20px
    );
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.empty--image i {
    color: #F2F5F9;
    font-size: 6em;
    text-shadow: 2px 2px 5px #FFFFFF;
}

.empty--image span {
    background: #FFF;
    padding: .5em;
    text-transform: uppercase;
    color: #F2F5F9;
    border-radius: .3em;
}

.card__price {
    padding-bottom: 1em;
    display: flex;
    gap: 1em;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
}

.card__price-full {
    background: #F2F5F9;
    padding: .5em 1em;
    border-radius: .4em;
    font-weight: bold;
}

.card__price-full i {
    font-size: .75em;
}

.card__price-dumping {
    font-size: .875em;
    font-weight: 700;
    color: var(--success-color);
}

.card__discount {
    position: absolute;
    top: 1.5em;
    left: 1.5em;
    background: var(--danger-color);
    color: #FFFF;
    padding: .35em .5em;
    font-size: .75em;
    border-radius: .4em;
    font-weight: bold;
}

.card__vendor, .card__brand {
    color: #808080;
    font-size: .875em;
    transform: translateY(-.85em);
}

h3.card__title {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    font-weight: 500;
}

aside.category__filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    background: #FFF;
    z-index: 99;
    padding: 2em;
    box-sizing: border-box;
    transform: translateX(-100vw);
    transition: .3s;
}

aside.category__filter.active {
    transform: translateX(0);
}

h3.category__filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

[data-form="filter"] {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.category__filter-list {
    display: flex;
    flex-direction: column;
    gap: .35em;
    padding: .53em 0;
}

.category__filter-item {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.category__filter-item label, .custom--label {
    font-size: .875em;
}

.category__filter-item select {
    border: 1px solid var(--light-black);
    border-radius: .2em;
    padding: .75em;
    font-size: .75em;
}

.category__filter-item .form__checkbox .custom-label::before {
    transform: translateY(0);
}

.range--panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5em;
}

span.range--panel-min, span.range--panel-max {
    color: var(--gray-color);
}

.range-slider {
    position: relative;
    width: 100%;
    height: 30px;
}

.range-slider input[type="range"] {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    top: 0;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.range-slider .progress-bar {
    position: absolute;
    height: 5px;
    background: #007bff;
    top: 0;
    transform: translateY(100%);
    border-radius: 5px;
    z-index: -1;
}

.range-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: var(--light-black);
    transform: translateY(100%);
    z-index: -1;
    border-radius: .5em;
}

.category__panel {
    width: 100%;
}

button.category__filter-submit {
    border: 0;
    width: 100%;
    background: var(--primary-color);
    color: #FFF;
    padding: 1em .75em;
    border-radius: .4em;
    cursor: pointer;
    transition: .3s;
}

button.category__filter-submit:hover {
    background: var(--primary-color-hover);
}

.category__filter-button a {
    color: #2A2A2A;
}

.category__panel {
    width: 100%;
    border: 1px solid var(--light-black);
    background: #FFF;
    padding: .75em;
    border-radius: .4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category__list {
    padding: 2em 0;
}

.category__left {
    display: flex;
    gap: 1em;
}

.tab-card {
    color: var(--gray-color);
    cursor: pointer;
    transition: .3s;
}

.tab-card i.bx.bx-menu {
    font-size: 1.2em;
}

.tab-card i.bx.bxs-grid-alt {
    transform: translateY(.1em);
}

.tab-card.active {
    color: var(--default-color);
    cursor: default;
}

.custom-select {
    position: relative;
    width: 100%;
    font-size: .875em;
}

.custom-select::before {
    content: '\ecb7';
    font-family: 'icomoon', sans-serif;
    color: rgba(0, 0, 0, .5);
    position: absolute;
    top: .75em;
    right: .75em;
    transition: .3s;
}

.custom-select:hover:before {
    color: var(--default-color);
}

.custom-select__selected {
    border: 1px solid var(--light-black);
    border-radius: 4px;
    padding: .75em;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.custom-select__options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}

.custom-select__options::-webkit-scrollbar {
    width: 6px;
}

.custom-select__options::-webkit-scrollbar-track {
    background: #F1F2F6;
}

.custom-select__options::-webkit-scrollbar-thumb {
    background-color: #DADDE2;
    border-radius: 2px;
    border: 0;
}

.custom-select__options.visible {
    display: block;
}

.custom-select__option {
    padding: .5em;
    cursor: pointer;
    display: flex;
    gap: .5em;
}

.custom-select__option:hover {
    background: #f9f9f9;
}

.custom-select__option::before {
    content: '\e959';
    font-family: 'icomoon', sans-serif;
    color: var(--light-black);
}

.custom-select__option.selected {
    background: #F2F5F9;
    color: #777;
}

.custom-select__option.selected:before {
    content: '\ea28';
    color: var(--default-color);
}

.custom-select__tag {
    background: #007bff;
    color: #fff;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
    display: inline-block;
}

.custom-select__tag + .custom-select__tag {
    margin-left: 4px;
}

.category__sort {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5em;
}

.category__sort-label {
    font-size: .875em;
    color: #333;
}

.category__sort-header {
    padding: .625em;
    background-color: #FFF;
    border: 1px solid var(--light-black);
    cursor: pointer;
    font-size: .875em;
    color: #333;
    border-radius: .4em;
}

.category__sort-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: fit-content;
    background-color: #fff;
    border: 1px solid var(--light-black);
    box-shadow: var(--medium-shadow);
    z-index: 99;
}

.category__sort-item {
    padding: .625em;
    cursor: pointer;
    transition: .3s;
    font-size: .875em;
    text-align: right;
}

.category__sort-item:hover {
    background-color: #f2f5f9;
}

.category__sort-item.active {
    background-color: #F7F9FC;
    cursor: default;
}

.category__sort-item:first-child {
    border-top: none;
}


@media (min-width: 620px) {
    .card {
        max-width: 50%;
        flex: 1 1 calc(50% - 1em);
    }
}

@media (min-width: 768px) {
    .card {
        max-width: calc(33.333% - .5em);
        flex: 1 1 calc(33.333% - 1em);
    }

    .category__nested-item {
        width: calc(50% - .5em);
    }
}

@media (min-width: 1024px) {

    .category__nested-item {
        width: 100%;
    }

    .category__product-list {
        padding: 2em 0;
    }

    .category__panel-filter, span.category__filter-close {
        display: none;
    }

    .category__grid, .category__list {
        display: flex;
        gap: 1em;
        align-items: flex-start;
        padding: 2em 0;
    }

    .category-more, .category-more.active {
        display: none;
    }

    .category-wrapper {
        max-height: fit-content;
    }

    a.category__nested-link {
        font-size: 1em;
        line-height: 1em;
    }

    aside.category__filter {
        position: relative;
        width: calc(25% - .5em);
        transform: translateX(0);
        border-radius: .4em;
        border: 1px solid var(--light-black);
        min-height: fit-content;
    }

    section.category__product {
        width: calc(75% - 0.5em);
        padding: 0;
    }

    section.category__product.full {
        width: 100%;
    }

    .card {
        max-width: calc(33.333% - .5em);
        flex: 1 1 calc(33.333% - 1em);
    }

    section.category__product.full .card {
        max-width: calc(25% - .5em);
        flex: 1 1 calc(25% - 1em);
    }

    h3.category__filter-title {
        margin-top: 0;
    }

    span.range--panel-min, span.range--panel-max {
        font-size: .875em;
    }

    aside.category__nested {
        width: calc(25% - .5em);
    }

    .category__nested-column {
        padding: .875em 0;
        gap: .65em;
    }

    .category__nested-column a {
        display: flex;
        gap: .5em;
        font-size: .875em;
        color: rgba(0, 0, 0, .75);
    }

    .category__nested-column a::before {
        content: '\ecba';
        font-family: 'icomoon', sans-serif;
        color: rgba(0, 0, 0, .35);
    }

}

@media (min-width: 1400px) {
    .category {
        padding: 1em 0;
    }
}

