/*
 * ss-mega-menu — Desktop full-width category menu
 *
 * Mobile falls back to a drawer (existing Magento_MegaMenu module handles).
 * This file styles the DESKTOP flyout look only.
 */

.ss-mega-menu {
    display: none;
}

@media (min-width: 900px) {
    .ss-mega-menu {
        display: flex;
        align-items: center;
        gap: var(--space-4);
    }

    .ss-mega-menu__item {
        position: relative;
        list-style: none;
    }

    .ss-mega-menu__link {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        padding: var(--space-3) var(--space-2);
        color: var(--text-muted);
        text-decoration: none;
        font-size: var(--text-base);
        font-weight: var(--weight-semibold);
        transition: color 0.15s ease;
        cursor: pointer;
    }
    .ss-mega-menu__link:hover,
    .ss-mega-menu__item--active .ss-mega-menu__link {
        color: var(--accent);
    }

    .ss-mega-menu__panel {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 640px;
        padding: var(--space-6);
        background: var(--bg-card);
        border: 1px solid var(--border-card);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        display: none;
        z-index: 45;
    }
    .ss-mega-menu__item:hover .ss-mega-menu__panel,
    .ss-mega-menu__item:focus-within .ss-mega-menu__panel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4) var(--space-6);
    }

    .ss-mega-menu__col h5 {
        margin: 0 0 var(--space-2);
        font-size: var(--text-xs);
        font-weight: var(--weight-bold);
        color: var(--text-section);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .ss-mega-menu__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-1); }
    .ss-mega-menu__col a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: var(--text-base);
        padding: var(--space-1) 0;
        transition: color 0.15s ease;
    }
    .ss-mega-menu__col a:hover { color: var(--accent); }
}
