/* Category Icon Filter Bar */

.category-icon-bar-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding: 0 40px;
}

.category-icon-bar {
/*    display: flex;*/
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-icon-bar::-webkit-scrollbar {
    display: none;
}

/* Individual category item */
.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    padding: 8px 4px;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.category-icon-item:hover {
    background: #F5F5F5;
}

/* Circle around the emoji */
.category-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.category-icon-emoji {
    font-size: 28px;
    line-height: 1;
}

/* Label below the icon */
.category-icon-label {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
    text-align: center;
    transition: all 0.2s ease;
}

/* Active state */
.category-icon-item.active .category-icon-circle {
    background: #FFF0F0;
    border-color: #FF4856;
}

.category-icon-item.active .category-icon-label {
    color: #FF4856;
    font-weight: 600;
}

/* Scroll buttons */
.category-icon-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.category-icon-scroll-btn:hover {
    background: #FAFAFA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.category-icon-scroll-btn svg {
    width: 16px;
    height: 16px;
    color: #333;
}

.category-icon-scroll-right {
    right: 0;
}

.category-icon-scroll-left {
    left: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-icon-bar {
        display: flex;
    }

    .category-icon-bar-wrapper {
        padding: 0 4px;
        margin-bottom: 8px;
    }

    .category-icon-scroll-btn {
        display: none !important;
    }

    .category-icon-item {
        min-width: 64px;
        padding: 6px 2px;
    }

    .category-icon-circle {
        width: 48px;
        height: 48px;
    }

    .category-icon-emoji {
        font-size: 24px;
    }

    .category-icon-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-icon-item {
        min-width: 58px;
    }

    .category-icon-circle {
        width: 44px;
        height: 44px;
    }

    .category-icon-emoji {
        font-size: 22px;
    }

    .category-icon-label {
        font-size: 10px;
    }
}
