/* Mega Menu Styles */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    margin-top: 0 !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 480px;
}

.mega-menu-content {
    display: flex;
    height: 100%;
}

.category-sidebar {
    width: 250px;
    min-width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    max-height: 480px;
    overflow-y: auto;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover,
.category-item.active {
    background: #fff;
    color: #00b894;
}

.category-item i:first-child {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.category-item span {
    flex: 1;
    font-size: 14px;
}

.category-item .fa-chevron-right {
    font-size: 12px;
    opacity: 0.5;
}

.subcategory-content {
    flex: 1;
    background: #fff;
    padding: 20px;
    max-height: 480px;
    overflow-y: auto;
}

.subcategory-panel {
    display: none;
}

.subcategory-panel.active {
    display: block;
}

.subcategory-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00b894;
}

.subcategory-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.subcategory-items li {
    margin-bottom: 8px;
}

.subcategory-items a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

.subcategory-items a:hover {
    color: #00b894;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .mega-dropdown .dropdown-menu {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }

    .mega-menu-content {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .subcategory-content {
        padding: 15px;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        padding: 15px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-header h5 {
        margin: 0;
        flex: 1;
    }

    .mobile-menu-header .close-btn {
        border: none;
        background: none;
        font-size: 20px;
        padding: 5px;
        color: #333;
    }
}