/* Categories Section Styles */
.categories-carousel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.categories-grid-scroll {
    flex: 1;
    overflow: hidden;
}

.categories-grid {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 12px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .categories-grid {
        animation: categoriesAutoScroll 20s linear infinite;
        overflow: hidden;
    }

    .categories-grid:hover {
        animation-play-state: paused;
    }

    .categories-grid-scroll {
        overflow: hidden;
    }
}

.categories-grid::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    min-width: 120px;
    scroll-snap-align: start;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-avatar-slider {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: none;
    cursor: pointer;
}

.category-images-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.category-image.active {
    opacity: 1;
}

.category-card:hover .category-image.active {
    transform: scale(1.05);
}

.category-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.category-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.category-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.category-dot:hover {
    background: #2563eb;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #0f172a;
    line-height: 1.3;
}

.categories-arrow {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.categories-arrow img {
    width: 15px;
    height: 11px;
}

.categories-arrow.left img {
    transform: rotate(180deg);
}

.categories-arrow:hover {
    transform: scale(1.05);
    background: #2563eb;
}

.categories-arrow:hover img {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .category-avatar-slider {
        width: 96px;
        height: 96px;
    }

    .category-label {
        font-size: 13px;
    }

    .categories-arrow {
        min-width: 38px;
        height: 38px;
    }

    .category-dot {
        width: 5px;
        height: 5px;
    }
}

@media (max-width: 480px) {
    .category-avatar-slider {
        width: 88px;
        height: 88px;
    }

    .category-label {
        font-size: 12px;
    }

    .categories-carousel {
        gap: 12px;
    }

    .categories-arrow {
        min-width: 34px;
        height: 34px;
    }

    .category-dot {
        width: 4px;
        height: 4px;
    }
}
