/* ══════════════════════════════════════════
   MEGA MENU — FULLSCREEN DYNAMIC
   ══════════════════════════════════════════ */

.ep-mega-menu {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.4s;
}

.ep-mega-menu.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.ep-mega-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Container */
.ep-mega-menu__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Header */
.ep-mega-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    flex-shrink: 0;
}

.ep-mega-menu__logo {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1;
}

.ep-mega-menu__close {
    background: transparent;
    border: 1px solid rgba(0, 245, 255, 0.2);
    color: #00F5FF;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1;
}

.ep-mega-menu__close:hover {
    background: #00F5FF;
    color: #0A0A0F;
    border-color: #00F5FF;
    transform: rotate(90deg);
}

/* Body */
.ep-mega-menu__body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Category list (left sidebar) */
.ep-mega-menu__cats {
    width: 280px;
    min-width: 280px;
    border-right: 1px solid rgba(0, 245, 255, 0.08);
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 245, 255, 0.2) transparent;
}

.ep-mega-menu__cat-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.ep-mega-menu__cat-item {
    position: relative;
}

.ep-mega-menu__cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.ep-mega-menu__cat-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 245, 255, 0.03);
    border-left-color: rgba(0, 245, 255, 0.3);
}

.ep-mega-menu__cat-item.is-active .ep-mega-menu__cat-btn {
    color: #00F5FF;
    background: rgba(0, 245, 255, 0.06);
    border-left-color: #00F5FF;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.ep-mega-menu__cat-count {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.5;
    margin-left: 0.5rem;
}

.ep-mega-menu__cat-item.is-active .ep-mega-menu__cat-count {
    opacity: 0.7;
}

/* Subcategory panels (right area) */
.ep-mega-menu__subcats {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 245, 255, 0.15) transparent;
}

.ep-mega-menu__subcat-panel {
    display: none;
}

.ep-mega-menu__subcat-panel.is-active {
    display: block;
    animation: epPanelFadeIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Desktop-only category switch animation */
@media (min-width: 769px) {
    .ep-mega-menu__subcat-panel.is-active {
        animation: epPanelSlideReveal 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    @keyframes epPanelSlideReveal {
        0% {
            opacity: 0;
            transform: translateX(20px) scale(0.98);
            filter: blur(4px);
        }
        60% {
            opacity: 1;
            filter: blur(0px);
        }
        100% {
            opacity: 1;
            transform: translateX(0) scale(1);
            filter: blur(0px);
        }
    }

    /* Active category glow indicator on desktop */
    .ep-mega-menu__cat-item.is-active::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -1px;
        transform: translateY(-50%);
        width: 3px;
        height: 60%;
        background: #00F5FF;
        box-shadow: 0 0 10px #00F5FF, 0 0 20px rgba(0, 245, 255, 0.3);
        border-radius: 2px;
        animation: epCatGlowPulse 1.5s ease-in-out infinite alternate;
    }

    @keyframes epCatGlowPulse {
        from { box-shadow: 0 0 8px #00F5FF, 0 0 16px rgba(0, 245, 255, 0.2); height: 55%; }
        to { box-shadow: 0 0 14px #00F5FF, 0 0 28px rgba(0, 245, 255, 0.35); height: 65%; }
    }

    /* Category button active transition — smooth slide */
    .ep-mega-menu__cat-btn {
        transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .ep-mega-menu__cat-item.is-active .ep-mega-menu__cat-btn {
        padding-left: 1.75rem;
        transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    /* Subcat header title slide animation on desktop */
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-title {
        animation: epTitleSlideIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    @keyframes epTitleSlideIn {
        from {
            opacity: 0;
            transform: translateX(-15px);
            letter-spacing: 6px;
        }
        to {
            opacity: 1;
            transform: translateX(0);
            letter-spacing: 2px;
        }
    }

    /* Subcat label slide */
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-label {
        animation: epLabelReveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both;
    }

    @keyframes epLabelReveal {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Subcat footer slide up on desktop */
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-footer {
        animation: epFooterSlide 0.4s ease 0.35s both;
    }

    @keyframes epFooterSlide {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Enhanced stagger for subcat cards on desktop — scale + translate */
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card {
        opacity: 0;
        animation: epDesktopCardReveal 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    }

    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(1) { animation-delay: 0.08s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(2) { animation-delay: 0.14s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(3) { animation-delay: 0.20s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(4) { animation-delay: 0.26s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(5) { animation-delay: 0.32s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(6) { animation-delay: 0.38s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(7) { animation-delay: 0.44s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(8) { animation-delay: 0.50s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(n+9) { animation-delay: 0.56s; }

    @keyframes epDesktopCardReveal {
        from {
            opacity: 0;
            transform: translateY(16px) scale(0.95);
            filter: blur(2px);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0px);
        }
    }
}

/* Mobile fallback animation */
@media (max-width: 768px) {
    .ep-mega-menu__subcat-panel.is-active {
        animation: epPanelFadeIn 0.35s ease;
    }
}

@keyframes epPanelFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subcat header */
.ep-mega-menu__subcat-header {
    margin-bottom: 2rem;
}

.ep-mega-menu__subcat-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #FF00A8;
    margin-bottom: 0.35rem;
}

.ep-mega-menu__subcat-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 2.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.1;
}

/* Content row — grid + promo image side by side on desktop */
.ep-mega-menu__content-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Subcat grid */
.ep-mega-menu__subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

/* ── Promo image (right side, desktop only) ── */
.ep-mega-menu__promo-image {
    display: none;
}

@media (min-width: 1025px) {
    .ep-mega-menu__promo-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 300px;
        min-width: 300px;
        flex-shrink: 0;
        position: relative;
        overflow: visible;
        border: none;
        background: transparent;
        animation: epPromoReveal 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
        padding: 1.5rem 0;
    }

    @keyframes epPromoReveal {
        from {
            opacity: 0;
            transform: translateX(20px) scale(0.96);
            filter: blur(6px);
        }
        to {
            opacity: 1;
            transform: translateX(0) scale(1);
            filter: blur(0px);
        }
    }

    /* Circular image container with rotating neon ring */
    .ep-mega-menu__promo-image .ep-promo-circle {
        position: relative;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        margin: 0 auto 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Rotating outer neon ring — color shifting */
    .ep-mega-menu__promo-image .ep-promo-circle::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: conic-gradient(
            from 0deg,
            #00F5FF,
            #FF00A8,
            #7B2FFF,
            #00F5FF,
            #FF00A8,
            #00F5FF
        );
        animation: epRingRotate 4s linear infinite;
        z-index: 1;
    }

    /* Secondary pulsing glow ring */
    .ep-mega-menu__promo-image .ep-promo-circle::after {
        content: '';
        position: absolute;
        inset: -12px;
        border-radius: 50%;
        background: conic-gradient(
            from 180deg,
            transparent,
            rgba(0, 245, 255, 0.15),
            transparent,
            rgba(255, 0, 168, 0.15),
            transparent
        );
        animation: epRingRotate 6s linear infinite reverse;
        z-index: 0;
        filter: blur(8px);
    }

    @keyframes epRingRotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* Inner circle mask for image */
    .ep-mega-menu__promo-image .ep-promo-circle-inner {
        position: relative;
        z-index: 2;
        width: 210px;
        height: 210px;
        border-radius: 50%;
        overflow: hidden;
        background: #0A0A0F;
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.08), inset 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .ep-mega-menu__promo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 50%;
        transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s ease;
    }

    .ep-mega-menu__promo-image:hover img {
        transform: scale(1.1);
        filter: brightness(1.1) saturate(1.2);
    }

    /* Color-shifting ambient glow behind circle */
    .ep-mega-menu__promo-image .ep-promo-glow {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -60%);
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
        animation: epGlowShift 5s ease-in-out infinite alternate;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes epGlowShift {
        0% {
            background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
            box-shadow: 0 0 60px rgba(0, 245, 255, 0.06);
        }
        33% {
            background: radial-gradient(circle, rgba(255, 0, 168, 0.1) 0%, transparent 70%);
            box-shadow: 0 0 60px rgba(255, 0, 168, 0.06);
        }
        66% {
            background: radial-gradient(circle, rgba(123, 47, 255, 0.1) 0%, transparent 70%);
            box-shadow: 0 0 60px rgba(123, 47, 255, 0.06);
        }
        100% {
            background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
            box-shadow: 0 0 60px rgba(0, 245, 255, 0.06);
        }
    }

    .ep-mega-menu__promo-image::before {
        display: none;
    }

    .ep-mega-menu__promo-overlay {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        padding: 0 1rem;
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .ep-mega-menu__promo-label {
        font-family: 'Bebas Neue', Impact, sans-serif;
        font-size: 1.35rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #FFFFFF;
        line-height: 1.1;
    }

    .ep-mega-menu__promo-count {
        font-family: 'Rajdhani', sans-serif;
        font-size: 0.75rem;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.45);
        letter-spacing: 0.5px;
    }

    .ep-mega-menu__promo-cta {
        display: inline-block;
        margin-top: 0.75rem;
        font-family: 'Rajdhani', sans-serif;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #00F5FF;
        text-decoration: none;
        padding: 0.45rem 1.25rem;
        border: 1px solid rgba(0, 245, 255, 0.3);
        border-radius: 50px;
        transition: all 0.3s ease;
    }

    .ep-mega-menu__promo-cta:hover {
        color: #0A0A0F;
        background: #00F5FF;
        border-color: #00F5FF;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
        text-shadow: none;
    }

    /* Placeholder when no category image exists */
    .ep-promo-circle-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #12121C 0%, #1A1A2E 50%, #12121C 100%);
        position: relative;
    }

    .ep-promo-circle-placeholder::before {
        content: '';
        position: absolute;
        inset: 15%;
        border-radius: 50%;
        border: 1px solid rgba(0, 245, 255, 0.12);
        animation: epPlaceholderPulse 3s ease-in-out infinite;
    }

    .ep-promo-circle-placeholder::after {
        content: '';
        position: absolute;
        inset: 25%;
        border-radius: 50%;
        border: 1px solid rgba(255, 0, 168, 0.08);
        animation: epPlaceholderPulse 3s ease-in-out infinite 1.5s;
    }

    .ep-promo-circle-letter {
        font-family: 'Bebas Neue', Impact, sans-serif;
        font-size: 4rem;
        letter-spacing: 2px;
        background: linear-gradient(135deg, #00F5FF, #FF00A8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        position: relative;
        z-index: 2;
        animation: epLetterGlow 4s ease-in-out infinite alternate;
    }

    @keyframes epPlaceholderPulse {
        0%, 100% { opacity: 0.3; transform: scale(0.95); }
        50% { opacity: 0.7; transform: scale(1.05); }
    }

    @keyframes epLetterGlow {
        0% { filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.3)); }
        50% { filter: drop-shadow(0 0 16px rgba(255, 0, 168, 0.4)); }
        100% { filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.3)); }
    }
}

/* Promo image within panel active animation */
@media (min-width: 1025px) {
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__promo-image {
        animation: epPromoReveal 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
    }
}

/* Subcat card */
.ep-mega-menu__subcat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: rgba(18, 18, 28, 0.8);
    border: 1px solid rgba(0, 245, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ep-mega-menu__subcat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F5FF, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ep-mega-menu__subcat-card:hover {
    border-color: #00F5FF;
    background: rgba(0, 245, 255, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.08);
}

.ep-mega-menu__subcat-card:hover::before {
    opacity: 1;
}

.ep-mega-menu__subcat-card:nth-child(even) {
    border-color: rgba(255, 0, 168, 0.1);
}

.ep-mega-menu__subcat-card:nth-child(even)::before {
    background: linear-gradient(90deg, #FF00A8, transparent);
}

.ep-mega-menu__subcat-card:nth-child(even):hover {
    border-color: #FF00A8;
    background: rgba(255, 0, 168, 0.04);
    box-shadow: 0 8px 30px rgba(255, 0, 168, 0.08);
}

.ep-mega-menu__subcat-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    margin: -1.25rem -1.25rem 0.5rem -1.25rem;
    width: calc(100% + 2.5rem);
}

.ep-mega-menu__subcat-card-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.ep-mega-menu__subcat-card-count {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

.ep-mega-menu__subcat-card-arrow {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00F5FF;
    margin-top: auto;
    transition: color 0.3s ease;
}

.ep-mega-menu__subcat-card:hover .ep-mega-menu__subcat-card-arrow {
    color: #FFFFFF;
}

/* "All" card highlight */
.ep-mega-menu__subcat-card--all {
    border-color: rgba(0, 245, 255, 0.2);
    background: rgba(0, 245, 255, 0.03);
}

/* Subcat footer */
.ep-mega-menu__subcat-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 245, 255, 0.08);
}

.ep-mega-menu__subcat-viewall {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00F5FF;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid #00F5FF;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.ep-mega-menu__subcat-viewall:hover {
    background: #00F5FF;
    color: #0A0A0F;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

/* Footer nav */
.ep-mega-menu__footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0.85rem 2rem;
    border-top: 1px solid rgba(0, 245, 255, 0.08);
    flex-shrink: 0;
}

.ep-mega-menu__footer-nav a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ep-mega-menu__footer-nav a:hover {
    color: #00F5FF;
}

/* ESC hint */
.ep-mega-menu__container::after {
    content: 'ESC para fechar';
    position: absolute;
    bottom: 0.85rem;
    right: 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Stagger animation for category items */
.ep-mega-menu.is-open .ep-mega-menu__cat-item {
    opacity: 0;
    animation: epCatItemSlide 0.35s ease forwards;
}

.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(1) { animation-delay: 0.05s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(2) { animation-delay: 0.08s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(3) { animation-delay: 0.11s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(4) { animation-delay: 0.14s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(5) { animation-delay: 0.17s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(6) { animation-delay: 0.20s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(7) { animation-delay: 0.23s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(8) { animation-delay: 0.26s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(9) { animation-delay: 0.29s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(10) { animation-delay: 0.32s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(11) { animation-delay: 0.35s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(12) { animation-delay: 0.38s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(13) { animation-delay: 0.41s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(14) { animation-delay: 0.44s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(15) { animation-delay: 0.47s; }
.ep-mega-menu.is-open .ep-mega-menu__cat-item:nth-child(n+16) { animation-delay: 0.50s; }

@keyframes epCatItemSlide {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger for subcat cards — mobile fallback */
@media (max-width: 768px) {
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card {
        opacity: 0;
        animation: epSubcatCardReveal 0.3s ease forwards;
    }

    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(1) { animation-delay: 0.06s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(2) { animation-delay: 0.12s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(3) { animation-delay: 0.18s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(4) { animation-delay: 0.24s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(5) { animation-delay: 0.30s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(6) { animation-delay: 0.36s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(7) { animation-delay: 0.42s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(8) { animation-delay: 0.48s; }
    .ep-mega-menu__subcat-panel.is-active .ep-mega-menu__subcat-card:nth-child(n+9) { animation-delay: 0.54s; }

    @keyframes epSubcatCardReveal {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ═══ RESPONSIVE — TABLET ═══ */
@media (max-width: 1024px) {
    .ep-mega-menu__cats {
        width: 220px;
        min-width: 220px;
    }

    .ep-mega-menu__cat-btn {
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
        letter-spacing: 1px;
    }

    .ep-mega-menu__subcats {
        padding: 1.5rem 1.5rem;
    }

    .ep-mega-menu__content-row {
        flex-direction: column;
    }

    .ep-mega-menu__subcat-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .ep-mega-menu__subcat-title {
        font-size: 1.75rem;
    }

    .ep-mega-menu__promo-image {
        display: none !important;
    }
}

/* ═══ RESPONSIVE — MOBILE ═══ */
@media (max-width: 768px) {
    .ep-mega-menu__body {
        flex-direction: column;
    }

    .ep-mega-menu__content-row {
        flex-direction: column;
    }

    .ep-mega-menu__promo-image {
        display: none !important;
    }

    .ep-mega-menu__cats {
        width: 100%;
        min-width: 100%;
        max-height: 35vh;
        border-right: none;
        border-bottom: 1px solid rgba(0, 245, 255, 0.08);
    }

    .ep-mega-menu__cat-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        padding: 0.5rem;
    }

    .ep-mega-menu__cat-item {
        flex: 0 0 auto;
    }

    .ep-mega-menu__cat-btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .ep-mega-menu__cat-item.is-active .ep-mega-menu__cat-btn {
        border-left: none;
        border-bottom-color: #00F5FF;
    }

    .ep-mega-menu__subcats {
        padding: 1rem;
        flex: 1;
    }

    .ep-mega-menu__subcat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .ep-mega-menu__subcat-title {
        font-size: 1.5rem;
    }

    .ep-mega-menu__subcat-header {
        margin-bottom: 1rem;
    }

    .ep-mega-menu__header {
        padding: 0.75rem 1rem;
    }

    .ep-mega-menu__footer-nav {
        padding: 0.65rem 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .ep-mega-menu__footer-nav a {
        font-size: 0.65rem;
    }

    .ep-mega-menu__container::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .ep-mega-menu__subcat-grid {
        grid-template-columns: 1fr;
    }

    .ep-mega-menu__cat-btn {
        font-size: 0.65rem;
        padding: 0.5rem 0.65rem;
    }
}

/* Body lock when menu open */
body.ep-mega-menu-open {
    overflow: hidden;
}