/* ═══════════════════════════════════════════════
   FIS MEGA MENU v1.0
   ═══════════════════════════════════════════════ */

.fis-mm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 60, 0.4);
    z-index: 99990;
    backdrop-filter: blur(2px);
    animation: fis-mm-fade .2s ease;
}
.fis-mm-overlay.open { display: block; }

@keyframes fis-mm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Panel ── */
.fis-mm-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99991;
    pointer-events: none;
}

.fis-mm-panel.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: auto;
}

.fis-mm-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    max-height: 80vh;
    margin-top: 60px; /* adjust to match your header height */
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0, 20, 60, 0.18);
    overflow: hidden;
    animation: fis-mm-slide .25s ease;
}

@keyframes fis-mm-slide {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── LEFT: Categories ── */
.fis-mm-cats {
    width: 300px;
    flex-shrink: 0;
    background: #F7F8FA;
    border-right: 1px solid #E8ECF0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 8px 0;
}

.fis-mm-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    border: none;
    border-left: 3px solid transparent;
    background: none;
    cursor: pointer;
    font-family: 'Mulish', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    text-align: left;
    transition: all .15s ease;
}

.fis-mm-cat:hover {
    background: #fff;
    border-left-color: #D0D8E4;
}

.fis-mm-cat.is-active {
    background: #fff;
    border-left-color: #003DA5;
    color: #003DA5;
}

.fis-mm-cat-icon {
    flex-shrink: 0;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
}

.fis-mm-cat.is-active .fis-mm-cat-icon { color: #003DA5; }

.fis-mm-cat-label { flex: 1; }

.fis-mm-cat-count {
    font-size: 11px;
    color: #94A3B8;
    background: #E8ECF0;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 500;
}

.fis-mm-cat.is-active .fis-mm-cat-count {
    background: #003DA5;
    color: #fff;
}

.fis-mm-cat-chevron {
    opacity: 0;
    color: #94A3B8;
    flex-shrink: 0;
    transition: opacity .15s;
}

.fis-mm-cat:hover .fis-mm-cat-chevron,
.fis-mm-cat.is-active .fis-mm-cat-chevron {
    opacity: 1;
}

.fis-mm-cat.is-active .fis-mm-cat-chevron { color: #003DA5; }

/* CTA */
.fis-mm-cta {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid #E8ECF0;
    background: #FFFBEB;
}

.fis-mm-cta p {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #92400E;
    margin: 0 0 6px 0;
}

.fis-mm-cta a {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #D97706;
    text-decoration: none;
    transition: color .15s;
}

.fis-mm-cta a:hover { color: #B45309; text-decoration: underline; }

/* ── RIGHT: Content ── */
.fis-mm-content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
}

.fis-mm-content-inner {
    animation: fis-mm-content-in .2s ease;
}

@keyframes fis-mm-content-in {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}

.fis-mm-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #003DA5;
}

.fis-mm-content-head h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #003DA5;
    margin: 0;
}

.fis-mm-viewall {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #003DA5;
    text-decoration: none;
}

.fis-mm-viewall:hover { text-decoration: underline; }

/* Grid */
.fis-mm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 28px;
}

.fis-mm-subcat {
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.fis-mm-subcat-title {
    display: block;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color .15s;
}

.fis-mm-subcat-title:hover { color: #003DA5; }

.fis-mm-subcat-title span {
    font-weight: 400;
    font-size: 12px;
    color: #94A3B8;
}

.fis-mm-subcat ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fis-mm-subcat li { margin-bottom: 3px; }

.fis-mm-subcat li a {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    color: #64748B;
    text-decoration: none;
    transition: color .15s;
    padding: 2px 0;
    display: block;
}

.fis-mm-subcat li a:hover { color: #003DA5; }

/* Empty state */
.fis-mm-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.fis-mm-empty p {
    font-family: 'Mulish', sans-serif;
    color: #64748B;
    margin-bottom: 12px;
}

.fis-mm-browse-btn {
    display: inline-block;
    background: #003DA5;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
}

.fis-mm-browse-btn:hover { background: #002366; color: #fff; }

/* Category promo image */
.fis-mm-cat-promo {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.fis-mm-cat-promo img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .3s;
}

.fis-mm-cat-promo a:hover img { transform: scale(1.03); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .fis-mm-container { max-width: 100%; margin-top: 0; border-radius: 0; max-height: 100vh; }
    .fis-mm-cats { width: 260px; }
    .fis-mm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .fis-mm-container {
        flex-direction: column;
        height: 100vh;
    }

    .fis-mm-cats {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid #E8ECF0;
    }

    .fis-mm-content { padding: 20px; }
    .fis-mm-grid { grid-template-columns: 1fr; }
    .fis-mm-content-head h3 { font-size: 17px; }
}
