/* ==========================================================================
   Category Slider Component Styles (assets/css/categorySlider.css)
   ========================================================================== */

.categories-section {
    padding: 2.5rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider-arrow-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.category-slider-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) #f1f5f9;
    cursor: grab;
}

.category-slider-wrapper:active {
    cursor: grabbing;
}

.category-slider-wrapper::-webkit-scrollbar {
    height: 6px;
}

.category-slider-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: var(--radius-full);
}

.category-slider-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
    transition: background 0.3s ease;
}

.category-slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.category-sliderTrack {
    display: flex;
    gap: 1rem;
}

.category-card {
    flex: 0 0 175px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    user-select: none;
    position: relative;
}

.category-card:hover {
    border-color: var(--primary-light);
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card.active {
    border-color: var(--primary);
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15), var(--shadow-md);
    transform: translateY(-2px);
}

.cat-count-pill {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.category-card.active .cat-count-pill {
    background: var(--primary);
    color: white;
}

.cat-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin: 0 auto 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
}

.category-card:hover .cat-icon-box {
    transform: scale(1.08);
}

.cat-all { background: #e0e7ff; color: #4f46e5; }
.cat-shopping { background: #fce7f3; color: #ec4899; }
.cat-gaming { background: #e0f2fe; color: #0284c7; }
.cat-entertainment { background: #fee2e2; color: #dc2626; }
.cat-dining { background: #d1fae5; color: #059669; }
.cat-travel { background: #fef3c7; color: #d97706; }
.cat-crypto { background: #f3e8ff; color: #9333ea; }

.category-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .category-card {
        flex: 0 0 140px;
        padding: 0.95rem 0.65rem;
    }

    .cat-icon-box {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
        margin-bottom: 0.45rem;
    }

    .category-card h3 { font-size: 0.85rem; }
}

@media (max-width: 576px) {
    .categories-section {
        padding: 1.75rem 0;
    }

    .category-card {
        flex: 0 0 128px;
        padding: 0.85rem 0.5rem;
    }

    .cat-icon-box {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .category-card h3 {
        font-size: 0.8rem;
    }

    .cat-count-pill {
        font-size: 0.68rem;
        padding: 0.1rem 0.45rem;
    }
}
