/* Homepage category sidebar: fixed scroll height to match banner area */
.home-banner-area .home-category-scroll-wrap {
    max-height: 407px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* slider 315px + featured strip ~108px - category header ~54px */
.home-banner-area.has-featured-categories .home-category-scroll-wrap {
    max-height: 369px;
}

/* Homepage featured categories: auto scroll + touch/mouse swipe, hidden scrollbar */
.home-featured-categories-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.home-featured-categories-marquee::-webkit-scrollbar {
    display: none;
}

.home-featured-categories-track {
    display: flex;
    width: max-content;
    gap: 14px;
}

.home-featured-categories-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    flex-shrink: 0;
}

.home-featured-category-item {
    flex: 0 0 auto;
    width: 76px;
}

.home-featured-category-link {
    display: block;
    text-align: center;
}

.home-featured-category-thumb {
    width: 76px;
    height: 76px;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.home-featured-category-thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-featured-category-name {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search filter sidebar */
.aiz-filter-sidebar .filter-category-scroll {
    max-height: 418px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Search filter sidebar: flyout subcategories to the right of the list */
.aiz-filter-sidebar .aiz-filter-category-menu .sub-cat-menu {
    left: 100%;
    width: 280px;
    height: auto;
    max-height: 420px;
    top: 0;
    margin-left: 8px;
}

.aiz-filter-sidebar .aiz-filter-category-menu .category-nav-element {
    position: relative;
}

.aiz-filter-sidebar .aiz-filter-category-menu .category-nav-element:hover > a {
    position: relative;
    z-index: 10;
    background: #fff;
    box-shadow: -2px 3px 5px rgb(0 0 0 / 0.1);
}
