.category-hero-card {
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #faf7f8 100%);
    border: 1px solid #e7e2e4;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgb(15 23 42 / 7%);
}

.category-hero-content {
    min-width: 0;
    flex: 1 1 auto;
}

.category-breadcrumb .breadcrumb {
    gap: 4px 0;
}

.category-breadcrumb .breadcrumb-item,
.category-breadcrumb .breadcrumb-item a {
    font-size: 13px;
}

.category-breadcrumb .breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #68707c;
    transition: color .2s ease;
}

.category-breadcrumb .breadcrumb-item a:hover {
    color: var(--main-color-one);
}

.category-breadcrumb .breadcrumb-item.active {
    max-width: 320px;
    overflow: hidden;
    color: var(--main-color-one);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.category-hero-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--main-color-one);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgb(178 12 25 / 22%);
}

.category-hero-icon i {
    font-size: 21px;
}

.category-hero-title h1 {
    margin: 0 0 5px;
    color: #20242b;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 900;
    line-height: 1.5;
}

.category-hero-title p {
    margin: 0;
    color: #7b818b;
    font-size: 13px;
}

.category-hero-image {
    width: 112px;
    height: 102px;
    display: flex;
    flex: 0 0 112px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee8ea;
    border-radius: 16px;
}

.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-slider-placeholder {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 28px;
    color: #aaa;
}

.category-sidebar .item-box {
    margin-bottom: 15px;
}

.category-sidebar-list > .category-tree-node {
    border-bottom: 1px dashed #e7e7e7;
}

.category-sidebar-list > .category-tree-node:last-child {
    border-bottom: 0;
}

.category-tree-branch > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    cursor: pointer;
    list-style: none;
}

.category-tree-branch > summary::-webkit-details-marker {
    display: none;
}

.category-tree-link {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 7px 0;
    border: 0 !important;
}

.category-tree-node.active > .category-tree-link,
.category-tree-node.active > details > summary > .category-tree-link {
    color: var(--main-color-one);
    font-weight: 700;
}

.category-tree-toggle {
    display: inline-flex;
    transition: transform .2s ease;
}

.category-tree-branch[open] > summary .category-tree-toggle {
    transform: rotate(-90deg);
}

.category-tree-children {
    margin-inline-start: 7px;
    padding-inline-start: 14px;
    border-inline-start: 1px solid #eee;
}

.category-tree-children .category-tree-node {
    border-top: 1px dashed #f0f0f0;
}

.category-filter-color {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
    border: 1px solid #ddd;
    border-radius: 50%;
}

.category-product-image-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #ccc;
    font-size: 52px;
}

.category-pro .product-box {
    height: 100%;
}

.category-pro .product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-pro .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-pro .product-title {
    min-height: 62px;
}

.category-description {
    line-height: 2;
    color: #555;
}

.categories.free-swiper {
    overflow: hidden;
}

.cat-slider {
    overflow: hidden;
    padding: 4px 3px 18px;
}

.cat-slider .swiper-wrapper {
    align-items: stretch;
}

.cat-slider .swiper-slide {
    height: auto;
}

.cat-slider .swiper-slide > a {
    display: block;
    height: 100%;
}

.cat-slider .cat-item {
    height: 118px;
    min-height: 118px;
    gap: 14px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid #ebe7e8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgb(15 23 42 / 7%);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cat-slider .cat-item:hover {
    border-color: rgb(178 12 25 / 30%);
    box-shadow: 0 10px 24px rgb(15 23 42 / 11%);
    transform: translateY(-2px);
}

.cat-slider .cat-item-image {
    width: 88px;
    height: 88px;
    display: flex;
    flex: 0 0 88px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    border-radius: 12px;
}

.cat-slider .cat-item-image img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain;
}

.cat-slider .category-slider-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.cat-slider .cat-item-desc {
    min-width: 0;
    margin: 0;
}

.cat-slider .cat-item-desc h5 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #282c33;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.box_filter .list-inline-item {
    margin-inline: 0 .8rem;
}

.box_filter a {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 8px;
}

.box_filter a.active_custom {
    color: #fff !important;
    background: var(--main-color-one);
}

@media (max-width: 991.98px) {
    .category-pro .product-image,
    .category-product-image-placeholder {
        height: 220px;
    }

    .category-hero-card {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .category-hero-card {
        min-height: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .category-hero-title {
        margin-top: 14px;
    }

    .category-hero-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .category-breadcrumb .breadcrumb-item.active {
        max-width: 190px;
    }

    .cat-slider .cat-item {
        height: 108px;
        min-height: 108px;
    }

    .cat-slider .cat-item-image {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }
}
