/* Footer Categories Section */
.footer-categories-section {
    padding: 40px 0;
    background: #f8f9fa;
    width: 100%;
}

.footer-categories-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.footer-categories-grid {
    margin-top: 0 !important;
}

/* Category Item */
.footer-category-item {
    margin-bottom: 20px;
}

.footer-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.footer-category-header:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.footer-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s ease;
    line-height: 1.4;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-category-title:hover {
    color: #ed174f;
}

/* Category Count Badge */
.category-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #ed174f;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

.footer-category-toggle {
    background: #f0f0f0;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.footer-category-toggle:hover {
    background: #ed174f;
    color: #fff;
}

.footer-category-toggle svg {
    transition: transform 0.3s ease;
}

.footer-category-toggle.active svg {
    transform: rotate(180deg);
}

/* Subcategories List - Hidden by default */
.footer-subcategories {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease !important;
    display: block !important;
}

.footer-subcategories.active {
    max-height: 600px !important;
    opacity: 1 !important;
    margin-top: 10px !important;
}

.footer-subcategories li {
    padding: 8px 15px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0 !important;
    transform: translateX(-10px);
}

.footer-subcategories.active li {
    opacity: 1 !important;
    transform: translateX(0);
}

.footer-subcategories li:hover {
    border-left-color: #ed174f;
    background: #f8f9fa;
}

.footer-subcategories li a {
    font-size: 15px;
    color: #666;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.footer-subcategories li a:hover {
    color: #ed174f;
}

/* Staggered animation for subcategories */
.footer-subcategories.active li:nth-child(1) { transition-delay: 0.05s; }
.footer-subcategories.active li:nth-child(2) { transition-delay: 0.1s; }
.footer-subcategories.active li:nth-child(3) { transition-delay: 0.15s; }
.footer-subcategories.active li:nth-child(4) { transition-delay: 0.2s; }
.footer-subcategories.active li:nth-child(5) { transition-delay: 0.25s; }
.footer-subcategories.active li:nth-child(6) { transition-delay: 0.3s; }
.footer-subcategories.active li:nth-child(7) { transition-delay: 0.35s; }
.footer-subcategories.active li:nth-child(8) { transition-delay: 0.4s; }

/* Mobile Responsive */
@media (max-width: 959px) {
    .footer-categories-section {
        padding: 30px 0;
    }
    
    .footer-categories-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .footer-category-title {
        font-size: 15px;
    }
    
    .footer-subcategories li a {
        font-size: 14px;
    }
    
    .footer-category-toggle {
        width: 26px;
        height: 26px;
        padding: 5px;
    }
}

@media (max-width: 639px) {
    .footer-categories-section {
        padding: 25px 0;
    }
    
    .footer-categories-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .footer-category-header {
        padding: 10px 12px;
        justify-content: center;
        text-align: center;
    }
    
    .footer-category-title {
        font-size: 14px;
        text-align: center;
    }
    
    .footer-subcategories {
        text-align: center;
    }
    
    .footer-subcategories li {
        padding: 6px 12px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .footer-subcategories li:hover {
        border-left-color: transparent;
        border-bottom-color: #ed174f;
        background: #f8f9fa;
    }
    
    .footer-subcategories li a {
        font-size: 14px;
        text-align: center;
    }
    
    .footer-category-item {
        margin-bottom: 15px;
    }
    
    .footer-category-toggle {
        width: 24px;
        height: 24px;
        padding: 4px;
    }
    
    .footer-category-toggle svg {
        width: 14px;
        height: 14px;
    }
}
