.stepy-category-nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 20;
}

.stepy-category-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
}

.stepy-category-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stepy-category-link {
    display: flex;
    align-items: center;
    padding: 15px 9px;
    font-size: 13px;
    font-weight: 550;
    color: #242424;
    text-decoration: none;
    white-space: nowrap;
}

.stepy-category-link:hover,
.stepy-category-link.is-selected {
    color: #2563eb;
}

.stepy-category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: #555;
}

.stepy-category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 10px 10px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.09);
}

.stepy-category-dropdown a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.stepy-category-dropdown a:hover,
.stepy-category-dropdown a.is-selected {
    background: #f5f7fa;
    color: #2563eb;
}

.stepy-category-all {
    font-weight: 650;
    border-bottom: 1px solid #eee;
}

.stepy-category-item.is-open .stepy-category-dropdown {
    display: block;
}

.stepy-category-item:nth-last-child(-n+2)
.stepy-category-dropdown {
    left: auto;
    right: 0;
}

@media (hover: hover) and (min-width: 1200px) {
    .stepy-category-item:hover .stepy-category-dropdown {
        display: block;
    }
}

@media (max-width: 1199px) {
    .stepy-category-inner {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 0 12px;
        gap: 6px;
    }

    .stepy-category-inner::-webkit-scrollbar {
        display: none;
    }

    .stepy-category-link {
        padding: 14px 10px;
        font-size: 13px;
    }

    .stepy-category-dropdown {
        position: fixed;
        top: var(--stepy-dropdown-top, 120px);
        left: 12px !important;
        right: 12px !important;
        min-width: 0;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 10px;
        z-index: 100;
    }
}
