/* Mobile Category Dropdown Styles */
.mobile-category-dropdown {
    position: relative;
    display: none;
}

.mobile-category-trigger {
    background: #1b74e4;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 116, 228, 0.3);
}

.mobile-category-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 116, 228, 0.4);
}

.mobile-category-trigger.active {
    background: #1b74e4;
}

.category-trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.category-icon svg {
    width: 20px;
    height: 20px;
}

.category-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.category-arrow {
    transition: transform 0.3s ease;
}

.mobile-category-trigger.active .category-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.mobile-category-dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mobile-category-dropdown-menu.active {
    display: flex;
}

.category-dropdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.category-dropdown-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.category-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #1b74e4;
    color: white;
}

.category-dropdown-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.category-dropdown-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.category-dropdown-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.category-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-section {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-section-header:hover {
    background: #e9ecef;
}

/* 
.section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
} */

.section-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 4px;
}

.category-section.expanded .section-toggle {
    transform: rotate(180deg);
}

.category-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-section.expanded .category-section-content {
    max-height: 400px;
}

.category-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}

.category-item-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.category-item-link:hover .category-item-card {
    background: #e9ecef;
    border-color: #1b74e4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-item-icon {
    margin-bottom: 10px;
    color: #1b74e4;
    font-size: 24px;
}

.category-item-icon svg,
.category-item-icon img {
    width: 32px;
    height: 32px;
}

.category-item-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.category-dropdown-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.no-categories {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-category-dropdown {
        display: block;
    }

    .category-dropdown-content {
        margin: 10px;
        max-height: 85vh;
    }

    .category-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .category-dropdown-content {
        margin: 5px;
        border-radius: 12px;
    }

    .category-dropdown-header,
    .category-dropdown-body,
    .category-dropdown-footer {
        padding: 16px;
    }

    .category-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .category-item-card {
        padding: 12px 8px;
    }

    .category-item-name {
        font-size: 12px;
    }
}