/* ============================================
   MEGA MENU v3
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

.mega-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    z-index: 9999;
    flex-shrink: 0;
margin-right: 24px;
}

/* ── Trigger ── */
.mega-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f97316;
    height: 44px;
    padding: 0 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}
.mega-menu-trigger:hover { background: #e06510; }

.mega-menu-trigger__text {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.8px;
    font-family: 'Poppins', sans-serif;
}
.mega-menu-trigger__icon { color: #fff; font-size: 15px; }

/* ── Dropdown ── */
.mega-menu-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 99999;
    min-height: 420px;
}
.mega-menu-wrapper:hover .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* ── Sidebar ── */
.mega-menu-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #f7f7f7;
    border-right: 1px solid #eee;
    overflow-y: auto;
    max-height: 500px;
}
.mega-menu-sidebar__item {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 50px;
    text-decoration: none !important;
    color: #333;
    border-bottom: 1px solid #eee;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}
.mega-menu-sidebar__item:hover,
.mega-menu-sidebar__item.active {
    background: #fff4ee;
    color: #f97316;
}
.mega-menu-sidebar__icon {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
    transition: color 0.15s;
}
.mega-menu-sidebar__item:hover .mega-menu-sidebar__icon,
.mega-menu-sidebar__item.active .mega-menu-sidebar__icon { color: #f97316; }
.mega-menu-sidebar__label {
    flex: 1;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-menu-sidebar__chevron {
    font-size: 9px;
    color: #ccc;
    flex-shrink: 0;
    transition: transform 0.15s, color 0.15s;
}
.mega-menu-sidebar__item:hover .mega-menu-sidebar__chevron,
.mega-menu-sidebar__item.active .mega-menu-sidebar__chevron {
    transform: translateX(2px);
    color: #f97316;
}

/* ── Panel ── */
.mega-menu-panel {
    width: 420px;
    padding: 22px 28px;
    background: #fafafa;
    overflow-y: auto;
    max-height: 500px;
}
.mega-menu-panel__section {
    display: none;
    animation: mmFade 0.15s ease;
}
.mega-menu-panel__section.active { display: block; }

@keyframes mmFade {
    from { opacity: 0; transform: translateX(4px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mega-menu-panel__header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.mega-menu-panel__divider {
    width: 32px;
    height: 2px;
    background: #f97316;
    border-radius: 2px;
    margin-bottom: 16px;
}
.mega-menu-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}
.mega-menu-panel__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    font-size: 12.5px;
    font-weight: 400;
    color: #555;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.15s, padding-left 0.15s;
}
.mega-menu-panel__item i { font-size: 9px; color: #ddd; flex-shrink: 0; transition: color 0.15s; }
.mega-menu-panel__item:hover { color: #f97316; padding-left: 3px; }
.mega-menu-panel__item:hover i { color: #f97316; }

@media (max-width: 991px) { .mega-menu-wrapper { display: none !important; } }
