/* Category Slider Section */
.category-slider-section {
    padding: 00px 0;
    background: #f8f9fa;
    margin-top: 0;
}

.category-slider-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.category-slider-section .section-title {
    font-size: 2.5rem;
    color: #2d7a3e;
    margin-bottom: 10px;
    font-weight: 700;
}

.category-slider-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.category-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.category-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

/* Show 8 items on desktop */
.category-item {
    flex: 0 0 calc((100% - 140px) / 8);
    min-width: 120px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s 
ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(45, 122, 62, 0.15);
    background: linear-gradient(135deg, #f0f8f4, #ffffff);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d7a3e, #27ae60);
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.category-emoji {
    font-size: 40px;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

.category-item:hover .category-name {
    color: #2d7a3e;
}

.category-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #2d7a3e;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-nav-btn:hover {
    background: #2d7a3e;
    color: white;
    border-color: #2d7a3e;
    transform: translateY(-50%) scale(1.1);
}

.category-nav-btn.prev {
    left: 0;
}

.category-nav-btn.next {
    right: 0;
}

/* Laptop - 6 items */
@media (max-width: 1200px) {
    .category-item {
        flex: 0 0 calc((100% - 100px) / 6);
        min-width: 140px;
    }
}

/* Tablet - 4 items */
@media (max-width: 768px) {
    .category-slider-section {
        padding: 0px 0;
    }
    
    .category-item {
        flex: 0 0 calc((100% - 45px) / 4);
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .category-slider-wrapper {
        padding: 0 40px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .category-emoji {
        font-size: 30px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
    
    .category-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Mobile - 3 items */
@media (max-width: 480px) {
    .category-item {
        flex: 0 0 calc((100% - 20px) / 3);
        min-width: 90px;
        padding: 3px 1px;
    }
    
    .category-slider-wrapper {
        padding: 0 3px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .category-emoji {
        font-size: 25px;
    }
    
    .category-icon img {
        width: 35px;
        height: 35px;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .category-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-item {
    animation: slideIn 0.5s ease forwards;
}

.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.15s; }
.category-item:nth-child(3) { animation-delay: 0.2s; }
.category-item:nth-child(4) { animation-delay: 0.25s; }
.category-item:nth-child(5) { animation-delay: 0.3s; }
.category-item:nth-child(6) { animation-delay: 0.35s; }
.category-item:nth-child(7) { animation-delay: 0.4s; }
.category-item:nth-child(8) { animation-delay: 0.45s; }
