/* Desktop Categories Simple Carousel style */

.desktop-categories-section {
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.desktop-categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.desktop-categories-carousel {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.desktop-categories-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
    gap: 20px;
}

.desktop-category-item {
    flex: 0 0 180px;
    position: relative;
}

.desktop-category-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Hover Effects */
.desktop-category-card:hover {
    transform: translateY(-4px);
    border-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

/* Category Image */
.desktop-category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

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

/* Category Icon */
.desktop-category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #0056b3);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.desktop-category-icon i {
    font-size: 2rem;
    color: white;
}

.desktop-category-card:hover .desktop-category-icon {
    transform: scale(1.05);
}

/* Category Text */
.desktop-category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.desktop-category-card:hover .desktop-category-name {
    color: #0d6efd;
}

.desktop-category-count {
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.desktop-category-card:hover .desktop-category-count {
    color: #495057;
}

/* Minimal Carousel Controls */
.desktop-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.desktop-carousel-btn {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.desktop-carousel-btn:hover {
    transform: scale(1.1);
    background: #0056b3;
}

.desktop-carousel-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .desktop-category-item {
        flex: 0 0 160px;
    }
}

@media (max-width: 1200px) {
    .desktop-category-item {
        flex: 0 0 140px;
    }
    
    .desktop-category-card {
        padding: 20px 12px;
        height: 180px;
    }
    
    .desktop-category-image,
    .desktop-category-icon {
        width: 60px;
        height: 60px;
    }
    
    .desktop-category-icon i {
        font-size: 1.5rem;
    }
}

/* Performance Optimizations */
.desktop-categories-track {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.desktop-category-card {
    contain: layout style paint;
}
