/* Category Section Styles extracted from style.css */
.category-section {
    padding: 25px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #f0f4ff;
    border-bottom: 1px solid #f0f4ff;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #6366f1;
    border-radius: 3px;
}

.category-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 15px 30px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-item {
    text-align: center;
    cursor: pointer;
    flex: 0 0 100px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover::before {
    opacity: 1;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: #6366f1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.category-item:hover .category-icon {
    background: #6366f1;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.category-name {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-item:hover .category-name {
    color: #4338ca;
}

@media (max-width: 768px) {
    .category-carousel {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .category-item {
        flex: 0 0 80px;
    }
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .category-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-carousel {
        gap: 15px;
        padding: 15px 10px 25px;
    }
    .category-item {
        flex: 0 0 70px;
    }
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}
