/* ============================================
   CATEGORIES CAROUSEL
   ============================================ */

.categories-carousel {
    position: relative;
    padding: 0 60px;
}

.categories-track-container {
    overflow: hidden;
    width: 100%;
}

.categories-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.categories-track .category-card {
    flex: 0 0 calc(20% - 16px);
    /* 5 items per row */
    min-width: calc(20% - 16px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 1200px) {
    .categories-track .category-card {
        flex: 0 0 calc(25% - 15px);
        /* 4 items per row on medium screens */
        min-width: calc(25% - 15px);
    }
}

@media (max-width: 768px) {
    .categories-track .category-card {
        flex: 0 0 calc(50% - 10px);
        /* 2 items per row on tablets */
        min-width: calc(50% - 10px);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .categories-carousel {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .categories-track .category-card {
        flex: 0 0 100%;
        /* 1 item per row on mobile */
        min-width: 100%;
    }
}