/* Палитра категорий для быстрого перехода */
.ircc-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.ircc-category-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px 6px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    color: #1a202c;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.ircc-category-nav__item:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #1a202c;
}

.ircc-category-nav__item.is-active {
    border-color: #3182ce;
    background: #ebf8ff;
    color: #2c5282;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.ircc-category-nav__item--parent {
    border-style: dashed;
    color: #4a5568;
}

.ircc-category-nav__media {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ircc-category-nav__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ircc-category-nav__label {
    padding-right: 2px;
    color: inherit;
}

@media (max-width: 768px) {
    .ircc-category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 22px;
        max-width: 100%;
        width: 100%;
    }

    .ircc-category-nav__item {
        flex: 0 0 auto;
    }
}
