/* ============================================
   EV Starter Starter — Frontend CSS v1.1.2
   Header & Footer with advanced effects
============================================ */

/* ── TOPBAR CAROUSEL ── */
.evs-topbar {
    background: var(--evs-h-topbar-bg, #ff8c00);
    color: var(--evs-h-topbar-color, #000);
    text-align: center;
    font-size: var(--evs-h-topbar-size, 12px);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
    overflow: hidden;
    position: relative;
    font-family: var(--evs-h-font-family, inherit);
    animation: evs-topbar-slide 0.5s ease both;
}
@keyframes evs-topbar-slide {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.evs-topbar__track {
    max-width: var(--evs-h-container, 1400px);
    margin: 0 auto;
    padding: 8px var(--evs-h-padding-x, 24px);
    position: relative;
    height: 1.2em;
}
.evs-topbar__msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px var(--evs-h-padding-x, 24px);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .45s ease, transform .45s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.evs-topbar__msg.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.evs-topbar__msg.is-leaving {
    opacity: 0;
    transform: translateY(-100%);
}

/* ── HEADER ── */
.evs-header {
    background: var(--evs-h-bg, #0a0a12);
    height: var(--evs-h-height, 70px);
    position: relative;
    z-index: 9999;
    transition: background .35s ease, box-shadow .35s ease, height .3s ease,
                border-color .35s ease, backdrop-filter .35s ease;
    border-bottom: 1px solid transparent;
    font-family: var(--evs-h-font-family, inherit);
}
.evs-header--sticky {
    position: sticky;
    top: 0;
}
.evs-header--transparent {
    background: transparent;
}

/* Scrolled state — glass morph + accent glow */
.evs-header.evs-header--scrolled {
    background: var(--evs-h-bg-scroll, #0a0a12);
    box-shadow:
        0 2px 20px rgba(0,0,0,.4),
        0 1px 0 rgba(255,140,0,.08);
    border-bottom: 1px solid rgba(255,140,0,.1);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

.evs-header__inner {
    max-width: var(--evs-h-container, 1400px);
    margin: 0 auto;
    padding: 0 var(--evs-h-padding-x, 32px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Layout variants */
.evs-header--logo-center .evs-header__inner {
    justify-content: center;
}
.evs-header--logo-center .evs-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.evs-header--logo-right .evs-header__inner {
    flex-direction: row-reverse;
}

/* ── LOGO — with glow + scale effects ── */
.evs-header__logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--evs-h-text, #fff);
    position: relative;
}
.evs-header__logo img {
    width: var(--evs-h-logo-w, 140px);
    height: auto;
    display: block;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), filter .3s ease;
    transform-origin: center center;
    will-change: transform;
}
.evs-header__logo a:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(255,140,0,.35));
}
.evs-header__logo-text {
    font-size: var(--evs-h-logo-text-size, 18px);
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--evs-h-text, #fff);
    white-space: nowrap;
    transition: transform .3s ease, text-shadow .3s ease;
    transform-origin: left center;
    will-change: transform;
}
.evs-header__logo a:hover .evs-header__logo-text {
    text-shadow: 0 0 20px rgba(255,140,0,.25);
}

/* ── NAVIGATION — enhanced hover ── */
.evs-header__nav {
    display: flex;
    align-items: center;
    gap: var(--evs-h-nav-gap, 32px);
}
.evs-header__nav-link {
    color: var(--evs-h-text, #fff);
    text-decoration: none;
    font-size: var(--evs-h-nav-size, 14px);
    font-weight: var(--evs-h-nav-weight, 600);
    letter-spacing: 0.5px;
    position: relative;
    transition: color .25s ease, transform .25s ease;
    padding: 4px 0;
    will-change: transform, opacity;
}
.evs-header__nav-link.evs-uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: calc(var(--evs-h-nav-size, 14px) - 1px);
}

/* Underline — gradient animated */
.evs-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--evs-h-accent, #ff8c00), transparent);
    transition: width .3s cubic-bezier(.4,0,.2,1), left .3s cubic-bezier(.4,0,.2,1);
    border-radius: 1px;
}
.evs-header__nav-link:hover {
    color: var(--evs-h-accent, #ff8c00);
}
.evs-header__nav-link:hover::after {
    width: 100%;
    left: 0;
    background: var(--evs-h-accent, #ff8c00);
}

/* Active link glow */
.evs-header__nav-link:active {
    transform: scale(.96);
}

/* ── CTA BUTTON — shimmer + glow ── */
.evs-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.evs-header__cta {
    display: inline-flex;
    align-items: center;
    padding: var(--evs-h-cta-py, 9px) var(--evs-h-cta-px, 22px);
    background: var(--evs-h-cta-bg, #ff8c00);
    color: var(--evs-h-cta-color, #fff);
    border-radius: var(--evs-h-cta-radius, 8px);
    font-size: var(--evs-h-cta-size, 13px);
    font-weight: var(--evs-h-cta-weight, 700);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, filter .3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.evs-header__cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 4px 16px rgba(255,140,0,.3),
        0 0 30px rgba(255,140,0,.15);
}
.evs-header__cta:active {
    transform: translateY(0) scale(.97);
}

/* Shimmer sweep */
.evs-cta-shimmer,
.evs-header__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.2) 50%,
        transparent 100%
    );
    animation: evs-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes evs-shimmer {
    0%, 100% { left: -100%; }
    50%      { left: 150%; }
}

/* ── HAMBURGER — smooth morph ── */
.evs-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform .3s ease;
}
.evs-header__hamburger:hover {
    transform: scale(1.1);
}
.evs-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--evs-h-hamburger, var(--evs-h-text, #fff));
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.68,-.55,.27,1.55),
                opacity .25s ease,
                width .25s ease,
                background .3s ease;
    transform-origin: center;
}
/* Middle bar shrinks then vanishes */
.evs-header__hamburger.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
/* Top rotates down */
.evs-header__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--evs-h-hamburger, var(--evs-h-text, #fff));
}
.evs-header__hamburger.evs-header__hamburger--accent.active span:nth-child(1) {
    background: var(--evs-h-accent, #ff8c00);
}
/* Bottom rotates up */
.evs-header__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--evs-h-hamburger, var(--evs-h-text, #fff));
}
.evs-header__hamburger.evs-header__hamburger--accent.active span:nth-child(3) {
    background: var(--evs-h-accent, #ff8c00);
}

/* ============================================
   FOOTER — with reveal animations
============================================ */
.evs-footer {
    background-color: var(--evs-f-bg, #0a0a12);
    color: var(--evs-f-text, #9898b8);
    border-top: 1px solid var(--evs-f-border-top, rgba(255,255,255,.06));
    position: relative;
    font-family: var(--evs-f-font-family, inherit);
}
/* Subtle top glow line */
.evs-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--evs-f-accent, #ff8c00) 50%, transparent);
    opacity: .3;
}
.evs-footer__inner {
    max-width: var(--evs-f-container, 1400px);
    margin: 0 auto;
    padding: var(--evs-f-padding-y, 60px) 32px calc(var(--evs-f-padding-y, 60px) * .66);
    display: grid;
    gap: var(--evs-f-column-gap, 40px);
}

/* Layout variants */
.evs-footer--4-columns .evs-footer__inner { grid-template-columns: 1.5fr repeat(3, 1fr); }
.evs-footer--3-columns .evs-footer__inner { grid-template-columns: 1.8fr repeat(2, 1fr); }
.evs-footer--2-columns .evs-footer__inner { grid-template-columns: 1fr 1fr; }
.evs-footer--centered .evs-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: var(--evs-f-container, 600px);
}

/* Brand */
.evs-footer__logo {
    width: var(--evs-f-logo-w, 120px);
    height: auto;
    margin-bottom: 16px;
    transition: filter .3s, transform .3s;
}
.evs-footer__logo:hover {
    filter: drop-shadow(0 0 10px rgba(255,140,0,.3));
    transform: scale(1.05);
}
.evs-footer__brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 12px;
}
.evs-footer__brand-desc {
    font-size: var(--evs-f-desc-size, 13px);
    line-height: 1.7;
    color: var(--evs-f-text, #9898b8);
    max-width: 280px;
}
.evs-footer--centered .evs-footer__brand-desc {
    max-width: none;
}

/* ── Social icons — bounce hover ── */
.evs-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.evs-footer--centered .evs-footer__social {
    justify-content: center;
}
.evs-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    color: var(--evs-f-social-color, #9898b8);
    transition: color .2s, background .2s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
    will-change: transform;
}
.evs-footer__social-link svg {
    width: var(--evs-f-social-size, 20px);
    height: var(--evs-f-social-size, 20px);
}
.evs-footer__social-link:hover {
    color: var(--evs-f-social-hover, #ff8c00);
    background: rgba(255,140,0,.12);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(255,140,0,.15);
}

/* ── Columns — links slide hover ── */
.evs-footer__column-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
/* Accent underline on column title */
.evs-footer__column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--evs-f-accent, #ff8c00);
    border-radius: 1px;
    transition: width .3s ease;
}
.evs-footer--centered .evs-footer__column-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.evs-footer__column:hover .evs-footer__column-title::after {
    width: 40px;
}
.evs-footer__column-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.evs-footer__column-links li {
    margin-bottom: 10px;
}
.evs-footer__column-links a {
    color: var(--evs-f-text, #9898b8);
    text-decoration: none;
    font-size: var(--evs-f-link-size, 13px);
    transition: color .2s, transform .2s, padding-left .25s;
    display: inline-block;
}
.evs-footer__column-links a:hover {
    color: var(--evs-f-accent, #ff8c00);
    padding-left: 6px;
    transform: translateX(2px);
}

/* Newsletter */
.evs-footer__newsletter-text {
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.evs-footer__newsletter-form {
    display: flex;
    gap: 8px;
}
.evs-footer__newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--evs-f-news-input-border, rgba(255,255,255,.1));
    border-radius: 8px;
    background: var(--evs-f-news-input-bg, rgba(255,255,255,.04));
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.evs-footer__newsletter-input:focus {
    border-color: var(--evs-f-accent, #ff8c00);
    box-shadow: 0 0 0 3px rgba(255,140,0,.1);
}
.evs-footer__newsletter-btn {
    padding: 10px 20px;
    background: var(--evs-f-news-btn-bg, var(--evs-f-accent, #ff8c00));
    color: var(--evs-f-news-btn-color, #000);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    white-space: nowrap;
}
.evs-footer__newsletter-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

/* Bottom bar */
.evs-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.06);
}
.evs-footer__bottom-inner {
    max-width: var(--evs-f-container, 1400px);
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.evs-footer__copyright {
    font-size: var(--evs-f-copy-size, 12px);
    color: var(--evs-f-copy-color, var(--evs-f-text, #9898b8));
    opacity: .9;
}
.evs-footer__payments {
    display: flex;
    gap: 8px;
    align-items: center;
}
.evs-footer__payment-icon svg {
    width: 40px;
    height: auto;
    opacity: .5;
    transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.evs-footer__payment-icon:hover svg {
    opacity: 1;
    transform: translateY(-2px) scale(1.1);
}

/* ── Responsive footer ── */
@media (max-width: 768px) {
    .evs-footer__inner {
        grid-template-columns: 1fr !important;
        padding: 40px 20px 30px;
    }
    .evs-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .evs-footer__newsletter-form {
        flex-direction: column;
    }
    .evs-footer__column-title::after {
        left: 0;
        transform: none;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Layout cleanup + WP Dark Mode compatibility
============================================ */
.evs-topbar,
.evs-header {
    margin-top: 0 !important;
    margin-bottom: 0;
}
body.evs-header-enabled {
    padding-top: 0 !important;
}
body.evs-header-enabled .elementor-location-header,
body.evs-header-enabled header.site-header,
body.evs-header-enabled #masthead,
body.evs-header-enabled .wp-site-blocks > header:not(.evs-header) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
body.admin-bar .evs-header--sticky {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .evs-header--sticky { top: 46px; }
}
body.evs-wpdm-integration-enabled .evs-topbar.wp-dark-mode-ignore,
body.evs-wpdm-integration-enabled .evs-header.wp-dark-mode-ignore,
body.evs-wpdm-integration-enabled .evs-footer.wp-dark-mode-ignore {
    filter: none !important;
    color-scheme: normal;
}

/* ============================================
   Profile + notifications
============================================ */
.evs-header__profile-link,
.evs-header__user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--evs-h-cta-py, 9px) var(--evs-h-cta-px, 18px);
    border-radius: var(--evs-h-cta-radius, 8px);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--evs-h-text, #fff);
    font-size: var(--evs-h-cta-size, 13px);
    font-weight: var(--evs-h-cta-weight, 700);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.evs-header__profile-link:hover,
.evs-header__user-btn:hover {
    background: rgba(255,140,0,.14);
    border-color: rgba(255,140,0,.28);
    color: var(--evs-h-accent, #ff8c00);
    transform: translateY(-1px);
}
.evs-header__user {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.evs-header__user-icon,
.evs-header__user-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.evs-header__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .75;
    transition: transform .2s ease;
}
.evs-header__user.is-open .evs-header__caret {
    transform: rotate(180deg);
}
.evs-header__user-menu,
.evs-header__notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: color-mix(in srgb, var(--evs-h-bg, #0a0a12) 92%, #fff 8%);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.38), 0 0 0 1px rgba(255,140,0,.06);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    z-index: 10020;
}
.evs-header__user-menu {
    display: none;
    min-width: 185px;
    padding: 8px;
}
.evs-header__user.is-open .evs-header__user-menu {
    display: block;
    animation: evs-dropdown-in .18s ease both;
}
.evs-header__user-menu a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--evs-h-text, #fff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
.evs-header__user-menu a:hover {
    background: rgba(255,255,255,.08);
    color: var(--evs-h-accent, #ff8c00);
    transform: translateX(2px);
}
.evs-header__icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
    color: var(--evs-h-text, #fff);
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
.evs-header__icon-btn:hover,
.evs-header__icon-btn.has-notif {
    color: var(--evs-h-accent, #ff8c00);
    border-color: rgba(255,140,0,.32);
    background: rgba(255,140,0,.12);
    transform: translateY(-1px);
}
.evs-header__notif-wrap {
    position: relative;
    display: none;
    align-items: center;
}
.evs-header__notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px !important;
    height: 18px !important;
    min-width: 0 !important;
    max-width: 18px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 2.5px var(--evs-h-bg, #0a0a12), 0 3px 8px rgba(239,68,68,.4);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.evs-header__notif-badge.visible { display: flex !important; }
.evs-header__notif-panel {
    display: none;
    width: min(360px, 92vw);
    overflow: hidden;
    color: var(--evs-h-text, #fff);
}
.evs-header__notif-wrap.is-open .evs-header__notif-panel {
    display: block;
    animation: evs-dropdown-in .18s ease both;
}
.evs-header__notif-head,
.evs-header__notif-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.evs-header__notif-foot {
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 0;
    justify-content: flex-start;
}
.evs-header__notif-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .2px;
}
.evs-header__notif-mark-all,
.evs-header__notif-clear,
.evs-header__notif-del {
    border: 0;
    background: transparent;
    color: var(--evs-h-accent, #ff8c00);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    padding: 5px 8px;
    transition: background .2s ease, color .2s ease;
}
.evs-header__notif-mark-all:hover,
.evs-header__notif-clear:hover,
.evs-header__notif-del:hover {
    background: rgba(255,140,0,.12);
}
.evs-header__notif-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}
.evs-header__notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--evs-h-text, #fff);
    opacity: .72;
    font-size: 13px;
    font-weight: 700;
}
.evs-header__notif-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.evs-header__notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    color: var(--evs-h-text, #fff);
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.evs-header__notif-item:hover {
    background: rgba(255,255,255,.075);
    transform: translateX(1px);
}
.evs-header__notif-item.unread {
    background: rgba(255,140,0,.09);
}
.evs-header__notif-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.evs-header__notif-body {
    min-width: 0;
    flex: 1;
}
.evs-header__notif-msg {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.evs-header__notif-time {
    margin-top: 4px;
    font-size: 11px;
    opacity: .62;
    font-weight: 700;
}
.evs-header__notif-img {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 7px;
}
.evs-header__notif-del {
    flex-shrink: 0;
    opacity: 0;
    color: var(--evs-h-text, #fff);
}
.evs-header__notif-item:hover .evs-header__notif-del { opacity: .75; }
@keyframes evs-dropdown-in {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes evs-notif-pulse {
    from { opacity: .75; transform: scale(.88); }
    to { opacity: 0; transform: scale(1.35); }
}
@supports not (background: color-mix(in srgb, #000 90%, #fff 10%)) {
    .evs-header__user-menu,
    .evs-header__notif-panel {
        background: var(--evs-h-bg, #0a0a12);
    }
}
@media (max-width: 768px) {
    .evs-header__actions { gap: 10px; }
    .evs-header__profile-link,
    .evs-header__user-btn { padding-inline: 12px; }
    .evs-header__user-btn > span:not(.evs-header__user-icon):not(.evs-header__caret) { display: none; }
    .evs-header__notif-panel { right: -46px; }
}
body.admin-bar .evs-header__nav {
    top: calc(var(--evs-h-height, 70px) + 32px);
}
@media (max-width: 782px) {
    body.admin-bar .evs-header__nav { top: calc(var(--evs-h-height, 70px) + 46px); }
}

/* ============================================
   v1.1.3 fixes — centered nav, improved notif, WP Dark Mode sync
============================================ */
.evs-header__inner {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
}
.evs-header__logo {
    justify-self: start;
    min-width: 0;
}
.evs-header__nav {
    justify-self: center;
}
.evs-header__actions {
    justify-self: end;
}

.evs-header__actions .wp-dark-mode-switch,
.evs-header__actions .wp-dark-mode-switcher,
.evs-header__actions [class*="wp-dark-mode-switch"] {
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
}

.evs-header__profile-link,
.evs-header__user-btn {
    background: var(--evs-h-cta-bg, #ff8c00);
    color: var(--evs-h-cta-color, #fff);
    border: 1px solid color-mix(in srgb, var(--evs-h-cta-bg, #ff8c00) 82%, #fff 18%);
    box-shadow: 0 8px 20px rgba(255,140,0,.18);
}
.evs-header__profile-link:hover,
.evs-header__user-btn:hover,
.evs-header__user.is-open .evs-header__user-btn {
    background: color-mix(in srgb, var(--evs-h-cta-bg, #ff8c00) 92%, #fff 8%);
    color: var(--evs-h-cta-color, #fff);
    border-color: color-mix(in srgb, var(--evs-h-cta-bg, #ff8c00) 72%, #fff 28%);
    box-shadow: 0 12px 28px rgba(255,140,0,.25);
}
.evs-header__user-btn .evs-header__user-icon,
.evs-header__user-btn .evs-header__user-icon svg {
    width: 16px;
    height: 16px;
}
.evs-header__user-menu a {
    font-weight: 800;
}

.evs-header__notif-wrap {
    position: relative;
    display: none;
    align-items: center;
}
body.logged-in .evs-header__notif-wrap,
body.admin-bar .evs-header__notif-wrap {
    display: inline-flex;
}
.evs-header__notif-btn {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    color: var(--evs-h-text, #fff);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
.evs-header__notif-btn svg {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.evs-header__notif-btn:hover {
    color: var(--evs-h-accent, #ff8c00);
    background: rgba(255,140,0,.10);
    border-color: rgba(255,140,0,.28);
    transform: translateY(-1px);
}
.evs-header__notif-btn.has-notif {
    color: var(--evs-h-accent, #ff8c00);
    background: rgba(255,140,0,.08);
    border-color: rgba(255,140,0,.22);
    animation: none;
}
@keyframes evs-bell-shake {
    0%,48%,100% { transform: rotate(0); }
    50% { transform: rotate(-12deg); }
    53% { transform: rotate(13deg); }
    56% { transform: rotate(-9deg); }
    59% { transform: rotate(7deg); }
    62% { transform: rotate(-4deg); }
    65% { transform: rotate(2deg); }
    68% { transform: rotate(0); }
}
/* Badge position & halo — consolidated in instance 1 above */
.evs-header__notif-halo {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,140,0,.22);
    display: none;
    animation: evs-halo-pulse 1.8s ease-out infinite;
    pointer-events: none;
}
.evs-header__notif-badge.visible ~ .evs-header__notif-halo,
.evs-header__notif-btn.has-notif .evs-header__notif-halo {
    display: block;
}
@keyframes evs-halo-pulse {
    0% { transform: scale(1); opacity: .7; }
    70%,100% { transform: scale(2.4); opacity: 0; }
}

/* better alignment for centered menu and actions on tablets */
@media (max-width: 1024px) {
    .evs-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 14px;
    }
    .evs-header__nav {
        justify-self: center;
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .evs-header__inner {
        grid-template-columns: auto 1fr auto;
    }
    .evs-header__nav {
        justify-self: stretch;
    }
    .evs-header__notif-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
}


/* ── Mobile nav extras ── */
.evs-header__mobile-actions {
    display: none;
}
.evs-header__mobile-cta,
.evs-header__mobile-profile {
    text-decoration: none;
}

/* ── WP Dark Mode integration, only when enabled in backend ── */
body.evs-wpdm-integration-enabled .evs-wpdm-target {
    filter: none !important;
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target:not(.evs-header--transparent) {
    background: #ffffff !important;
    color: #101828 !important;
    border-bottom-color: rgba(16,24,40,.08);
    box-shadow: 0 10px 30px rgba(15,23,42,.07), 0 1px 0 rgba(15,23,42,.04);
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__logo-text,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__nav-link,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__icon-btn,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__user-menu a,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__notif-panel,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__notif-title,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__notif-item,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__notif-empty {
    color: #101828 !important;
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__nav-link:hover {
    color: var(--evs-h-accent, #ff8c00) !important;
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__user-menu,
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__notif-panel {
    background: rgba(255,255,255,.96);
    border-color: rgba(15,23,42,.10);
    box-shadow: 0 18px 45px rgba(15,23,42,.16), 0 0 0 1px rgba(15,23,42,.04);
}
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target:not(.evs-footer--bg-image):not(.evs-footer--bg-texture) {
    background: #ffffff !important;
    color: #475467 !important;
    border-top-color: rgba(15,23,42,.08) !important;
}
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target .evs-footer__brand-name,
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target .evs-footer__column-title,
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target .evs-footer__column-links a {
    color: #101828 !important;
}
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target .evs-footer__brand-desc,
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target .evs-footer__copyright {
    color: #475467 !important;
}

html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target:not(.evs-header--transparent),
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target:not(.evs-header--transparent),
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target:not(.evs-header--transparent),
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target:not(.evs-header--transparent) {
    background: var(--evs-h-bg, #0a0a12) !important;
    color: var(--evs-h-text, #fff) !important;
    border-bottom-color: rgba(255,255,255,.08);
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__logo-text,
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__nav-link,
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__icon-btn,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__logo-text,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__nav-link,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__icon-btn,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__logo-text,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__nav-link,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__icon-btn,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__logo-text,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__nav-link,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__icon-btn {
    color: var(--evs-h-text, #fff) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target {
    background-color: var(--evs-f-bg, #0a0a12) !important;
    color: var(--evs-f-text, #9898b8) !important;
    border-top-color: var(--evs-f-border-top, #1f1f2d) !important;
}

@media (max-width: 480px) {
    .evs-header__inner {
        gap: 6px !important;
    }
    .evs-header__logo img {
        max-width: 38vw !important;
    }
    .evs-header__actions {
        gap: 6px !important;
    }
    .evs-header__notif-btn,
    .evs-header__profile-link,
    .evs-header__user-btn,
    .evs-header__hamburger {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }
}

/* ============================================
   v1.1.5 — zones, dropdown submenus, dark footer lock, notification backend style
============================================ */
.evs-header--custom-zones .evs-header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
}
.evs-header__zone {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.evs-header__zone--left { justify-content: flex-start; }
.evs-header__zone--center { justify-content: center; }
.evs-header__zone--right { justify-content: flex-end; }
.evs-header__zone .evs-header__nav { min-width: 0; }
.evs-header__nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.evs-header__nav-item > .evs-header__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.evs-header__submenu-caret {
    font-size: .8em;
    opacity: .76;
    transform: translateY(-1px);
    transition: transform .2s ease;
}
.evs-header__nav-item:hover .evs-header__submenu-caret,
.evs-header__nav-item:focus-within .evs-header__submenu-caret {
    transform: translateY(-1px) rotate(180deg);
}
.evs-header__submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 190px;
    max-width: min(360px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--evs-h-bg, #0a0a12) 94%, #fff 6%);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 45px rgba(0,0,0,.38), 0 0 0 1px rgba(255,140,0,.06);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -6px) scale(.98);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 10030;
}
.evs-header__nav-item:hover .evs-header__submenu,
.evs-header__nav-item:focus-within .evs-header__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}
.evs-header__submenu-link {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--evs-h-text, #fff);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.evs-header__submenu-link:hover {
    background: rgba(255,255,255,.08);
    color: var(--evs-h-accent, #ff8c00);
    transform: translateX(2px);
}

/* Notification button: same dark circular look as backend preview */
.evs-header__notif-btn,
.evs-header__icon-btn.evs-header__notif-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 999px !important;
    color: var(--evs-h-text, #fff) !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.evs-header__notif-btn svg {
    width: 19px;
    height: 19px;
}
.evs-header__notif-btn:hover,
.evs-header__notif-btn.has-notif {
    color: var(--evs-h-accent, #ff8c00) !important;
    background: rgba(255,140,0,.12) !important;
    border-color: rgba(255,140,0,.28) !important;
    transform: translateY(-1px);
}
.evs-header__notif-btn.has-notif {
    animation: none !important;
}

/* Footer remains dark forever, even with WP Dark Mode integration enabled */
.evs-footer,
.evs-footer.evs-footer--always-dark,
body.evs-wpdm-integration-enabled .evs-footer,
body.evs-wpdm-integration-enabled .evs-footer.evs-wpdm-target,
html.wp-dark-mode-active body .evs-footer,
html[data-wp-dark-mode-active] body .evs-footer {
    background-color: var(--evs-f-bg, #0a0a12) !important;
    color: var(--evs-f-text, #9898b8) !important;
    border-top-color: var(--evs-f-border-top, #1f1f2d) !important;
    filter: none !important;
}
.evs-footer .evs-footer__brand-name,
.evs-footer .evs-footer__column-title,
html.wp-dark-mode-active body .evs-footer .evs-footer__brand-name,
html.wp-dark-mode-active body .evs-footer .evs-footer__column-title {
    color: #fff !important;
}
.evs-footer .evs-footer__brand-desc,
.evs-footer .evs-footer__column-links a,
.evs-footer .evs-footer__copyright,
html.wp-dark-mode-active body .evs-footer .evs-footer__brand-desc,
html.wp-dark-mode-active body .evs-footer .evs-footer__column-links a,
html.wp-dark-mode-active body .evs-footer .evs-footer__copyright {
    color: var(--evs-f-text, #9898b8) !important;
}
.evs-footer .evs-footer__column-links a:hover,
html.wp-dark-mode-active body .evs-footer .evs-footer__column-links a:hover {
    color: var(--evs-f-accent, #ff8c00) !important;
}

@media (max-width: 1024px) {
    .evs-header--custom-zones .evs-header__inner {
        grid-template-columns: auto 1fr auto !important;
        gap: 12px !important;
    }
    .evs-header__zone { gap: 10px; }
}
@media (max-width: 768px) {
    .evs-header--custom-zones .evs-header__inner {
        grid-template-columns: minmax(0,1fr) auto !important;
    }
    .evs-header__zone--left,
    .evs-header__zone--center {
        justify-content: flex-start;
    }
    .evs-header__zone--center {
        min-width: 0;
    }
    .evs-header__zone--right {
        justify-content: flex-end;
        grid-column: 2;
        grid-row: 1;
    }
    .evs-header__zone--left {
        grid-column: 1;
        grid-row: 1;
    }
    .evs-header__zone--center {
        grid-column: 1;
        grid-row: 1;
    }
    .evs-header__nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .evs-header__nav-item > .evs-header__nav-link {
        justify-content: space-between !important;
    }
    .evs-header__submenu {
        position: static !important;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 0 10px 0 !important;
        padding: 6px 0 8px 14px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .evs-header__submenu-link {
        min-height: 34px !important;
        padding: 7px 10px !important;
        background: rgba(255,255,255,.045) !important;
        border: 1px solid rgba(255,255,255,.055) !important;
    }
    .evs-header__submenu-caret { transform: none !important; }
}
.evs-header--custom-zones.evs-header--logo-center .evs-header__inner,
.evs-header--custom-zones.evs-header--logo-right .evs-header__inner {
    justify-content: normal !important;
    flex-direction: initial !important;
}
.evs-header--custom-zones.evs-header--logo-center .evs-header__logo {
    position: static !important;
    left: auto !important;
    transform: none !important;
}

/* ============================================
   v1.1.6 stable add-ons — submenu hover bridge, WPDM nav, mobile sticky
============================================ */
.evs-header__nav-item.has-submenu {
    position: relative;
}
.evs-header__nav-item.has-submenu::after {
    content: '';
    position: absolute;
    left: -16px;
    right: -16px;
    top: 100%;
    height: 20px;
    pointer-events: auto;
    z-index: 10029;
}
.evs-header__submenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
    pointer-events: auto;
}
.evs-header__nav-item:hover .evs-header__submenu,
.evs-header__nav-item:focus-within .evs-header__submenu,
.evs-header__submenu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) scale(1) !important;
}
.evs-header__submenu {
    transition-delay: .04s !important;
}

/* WP Dark Mode applies to header navigation/submenus only when integration is enabled.
   No html/body background is forced here. Footer stays protected by its own rules. */
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu {
    background: rgba(255,255,255,.96) !important;
    border-color: rgba(15,23,42,.10) !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.16), 0 0 0 1px rgba(15,23,42,.04) !important;
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link {
    color: #101828 !important;
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link:hover {
    color: var(--evs-h-accent, #ff8c00) !important;
    background: rgba(15,23,42,.055) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu {
    background: color-mix(in srgb, var(--evs-h-bg, #0a0a12) 94%, #fff 6%) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.38), 0 0 0 1px rgba(255,140,0,.06) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link {
    color: var(--evs-h-text, #fff) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link:hover,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link:hover,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link:hover,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__submenu-link:hover {
    color: var(--evs-h-accent, #ff8c00) !important;
    background: rgba(255,255,255,.08) !important;
}

/* Mobile sticky fallback: class is added by JS only under the configured mobile breakpoint. */
body.evs-mobile-sticky-active {
    padding-top: calc(var(--evs-mobile-topbar-height, 0px) + var(--evs-mobile-header-height, var(--evs-h-height, 70px))) !important;
}
body.evs-mobile-sticky-active .evs-topbar {
    position: fixed !important;
    top: var(--evs-mobile-adminbar-height, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10002 !important;
}
body.evs-mobile-sticky-active .evs-header--sticky {
    position: fixed !important;
    top: calc(var(--evs-mobile-adminbar-height, 0px) + var(--evs-mobile-topbar-height, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10001 !important;
}
body.evs-mobile-sticky-active .evs-header__nav {
    top: calc(var(--evs-mobile-adminbar-height, 0px) + var(--evs-mobile-topbar-height, 0px) + var(--evs-mobile-header-height, var(--evs-h-height, 70px))) !important;
}
body.evs-mobile-sticky-active.admin-bar .evs-header__nav {
    top: calc(var(--evs-mobile-adminbar-height, 46px) + var(--evs-mobile-topbar-height, 0px) + var(--evs-mobile-header-height, var(--evs-h-height, 70px))) !important;
}
@media (max-width: 768px) {
    .evs-header__nav-item.has-submenu::after,
    .evs-header__submenu::before {
        display: none !important;
    }
    .evs-header__nav-item:hover .evs-header__submenu,
    .evs-header__nav-item:focus-within .evs-header__submenu,
    .evs-header__submenu:hover {
        transform: none !important;
    }
}


/* ============================================
   v1.2.0 — Cart button redesign (cohérent icon-btn)
   Utilise le même style que les autres icon-btn (notif, etc.)
   avec accent color au lieu de bleu dur
============================================ */
.evs-header__cart {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--evs-h-text, #fff);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease,
                border-color .2s ease, color .2s ease;
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
}
.evs-header__cart svg {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    pointer-events: none;
    transition: transform .2s ease;
}
.evs-header__cart:hover {
    color: var(--evs-h-accent, #ff8c00);
    background: rgba(255,140,0,.10);
    border-color: rgba(255,140,0,.28);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,140,0,.12);
}
.evs-header__cart:hover svg {
    transform: scale(1.08);
}
.evs-header__cart.has-items {
    color: var(--evs-h-accent, #ff8c00);
    background: rgba(255,140,0,.08);
    border-color: rgba(255,140,0,.22);
}
.evs-header__cart:active {
    transform: translateY(0) scale(.96);
}

/* Cart dot — green indicator */
.evs-header__cart-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2.5px var(--evs-h-bg, #0a0a12), 0 2px 6px rgba(34,197,94,.35);
    display: none;
    pointer-events: none;
    animation: evs-dot-pop .35s cubic-bezier(.34,1.56,.64,1) both;
}
.evs-header__cart.has-items .evs-header__cart-dot,
.evs-header__cart-dot.is-visible {
    display: block;
}
@keyframes evs-dot-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* Cart pulse — subtle glow when items present */
.evs-fx-cart-pulse .evs-header__cart.has-items {
    animation: evs-cart-pulse 3s ease-in-out infinite;
}
@keyframes evs-cart-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255,140,0,.08); }
    50%      { box-shadow: 0 4px 16px rgba(255,140,0,.18), 0 0 12px rgba(34,197,94,.08); }
}

/* Mobile cart button in nav drawer */
.evs-header__mobile-cart {
    position: relative;
    gap: 8px;
    background: rgba(255,140,0,.08);
    color: var(--evs-h-accent, #ff8c00);
    border: 1px solid rgba(255,140,0,.18);
}
.evs-header__mobile-cart:hover {
    background: rgba(255,140,0,.14);
    border-color: rgba(255,140,0,.30);
}
.evs-header__mobile-cart.has-items .evs-header__mobile-cart-dot,
.evs-header__mobile-cart-dot.is-visible { display: block; }
.evs-header__mobile-cart-dot { top: 10px; right: 14px; }

@media (max-width: 768px) {
    .evs-header__cart {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
    }
    .evs-header__cart svg { width: 17px; height: 17px; }
    .evs-header__cart-dot { top: -1px; right: -1px; width: 10px; height: 10px; }
}
@media (max-width: 480px) {
    .evs-header__cart {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }
    .evs-header__cart svg { width: 16px; height: 16px; }
}
@supports not (background: color-mix(in srgb, #000 90%, #fff 10%)) {
    .evs-header__cart-dot { box-shadow: 0 0 0 2.5px var(--evs-h-bg, #0a0a12); }
}

/* ============================================
   v1.2.0 — Island scroll + nav reveal + HPM conflict fixes
============================================ */

/* ── ISLAND SCROLL — header flotte avec bords arrondis ── */
.evs-fx-island.evs-header.evs-header--scrolled.evs-header--sticky {
    margin: 8px 16px 0;
    width: auto;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0,0,0,.35),
        0 2px 0 rgba(255,140,0,.06),
        inset 0 1px 0 rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
/* ── FIX HPM CONFLIT #2 : désactiver island margin quand le hero suit ── */
.evs-fx-island.evs-header.evs-header--scrolled.evs-header--sticky + .evhs-block,
.evs-fx-island.evs-header.evs-header--scrolled.evs-header--sticky ~ .evhs-block {
    margin-top: calc(-1 * var(--evhs-overlap, 0px) - 8px);
}

body.evs-mobile-sticky-active .evs-fx-island.evs-header--sticky.evs-header--scrolled {
    margin: 6px 8px 0;
    border-radius: 14px;
    width: calc(100% - 16px);
    left: 0; right: 0;
    margin-left: auto; margin-right: auto;
}
body.admin-bar .evs-fx-island.evs-header--sticky.evs-header--scrolled {
    margin-top: 40px;
}
@media (max-width: 782px) {
    body.admin-bar .evs-fx-island.evs-header--sticky.evs-header--scrolled { margin-top: 54px; }
}
@media (max-width: 600px) {
    body.admin-bar .evs-fx-island.evs-header--sticky.evs-header--scrolled { margin-top: 0; }
}

/* ── Nav underline reveal au hover ── */
.evs-fx-nav-underline .evs-header__nav-link {
    position: relative;
}
.evs-fx-nav-underline .evs-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--evs-h-accent, #ff8c00);
    border-radius: 1px;
    transition: width .28s cubic-bezier(.34,1.56,.64,1), left .28s cubic-bezier(.34,1.56,.64,1);
}
.evs-fx-nav-underline .evs-header__nav-link:hover::after,
.evs-fx-nav-underline .evs-header__nav-link:focus-visible::after {
    width: 100%;
    left: 0;
}
.evs-fx-nav-underline .evs-header__nav-link[aria-current="page"]::after,
.evs-fx-nav-underline .evs-header__nav-link.active::after {
    width: 60%;
    left: 20%;
    opacity: .5;
}

/* ── Subtle parallax shadow on logo au scroll ── */
.evs-header.evs-header--scrolled .evs-header__logo img {
    filter: drop-shadow(0 2px 8px rgba(255,140,0,.12));
}

/* ── Icon entrance animation ── */
.evs-header__profile-link,
.evs-header__user-btn,
.evs-header__cart,
.evs-header__notif-btn {
    animation: evs-icon-entrance .45s cubic-bezier(.34,1.56,.64,1) both;
    animation-delay: .3s;
}
@keyframes evs-icon-entrance {
    from { opacity: 0; transform: scale(.7) translateY(4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================
   v1.2.0 — FIX HPM CONFLIT #1 + #3 : body lock mobile
   PLUS de position:fixed sur body !
   On utilise overflow:hidden seul — pas de body repositionnement
   qui casse les background-image du slider HPM
============================================ */
@media (max-width: 768px) {
    /* FIX #1 : body.evs-nav-open sans position:fixed */
    body.evs-nav-open {
        overflow: hidden !important;
        /* PAS de position:fixed — ça casse le slider HPM */
        /* PAS de width/height:100% — laisse le body en flow normal */
    }

    /* Nav overlay z-index */
    .evs-header__nav { z-index: 10005 !important; }

    /* Better mobile nav transition */
    .evs-header__nav {
        transition: transform .32s cubic-bezier(.32,.72,.32,1), opacity .2s ease !important;
    }

    /* Mobile nav links — better touch targets */
    .evs-header__nav-link {
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    .evs-fx-nav-underline .evs-header__nav-link::after {
        display: none !important;
    }

    /* Mobile cart + profile — full width */
    .evs-header__mobile-cart,
    .evs-header__mobile-profile {
        border-radius: 12px !important;
        min-height: 48px !important;
    }

    /* Mobile actions spacing */
    .evs-header__mobile-actions {
        margin-top: 12px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(255,255,255,.06);
    }

    /* FIX #3 : icon buttons consistent sizing mobile */
    .evs-header__notif-btn,
    .evs-header__icon-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 12px !important;
    }

    /* Profile button compact mobile */
    .evs-header__user-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        padding: 0 !important;
        border-radius: 12px !important;
    }
    .evs-header__user-btn > span:not(.evs-header__user-icon):not(.evs-header__caret) {
        display: none !important;
    }
    .evs-header__user-btn .evs-header__caret { display: none !important; }

    /* Island scroll mobile */
    .evs-fx-island.evs-header.evs-header--scrolled.evs-header--sticky {
        margin: 6px 8px 0 !important;
        border-radius: 12px !important;
    }
    body.evs-mobile-sticky-active .evs-fx-island.evs-header--sticky.evs-header--scrolled {
        width: calc(100% - 16px) !important;
        margin: 6px auto 0 !important;
    }
}

@media (max-width: 480px) {
    .evs-header__zone { gap: 6px !important; }
    .evs-header__notif-btn,
    .evs-header__icon-btn,
    .evs-header__user-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 10px !important;
    }
    .evs-header__notif-btn svg { width: 16px !important; height: 16px !important; }
    .evs-fx-island.evs-header.evs-header--scrolled.evs-header--sticky {
        margin: 4px 6px 0 !important;
        border-radius: 10px !important;
    }
}

/* ── HPM compatibility: no permanent GPU layer on header ── */
.evs-header { will-change: auto; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .evs-fx-cart-pulse .evs-header__cart.has-items,
    .evs-header__cart-dot,
    .evs-header__profile-link,
    .evs-header__user-btn,
    .evs-header__cart,
    .evs-header__notif-btn {
        animation: none !important;
    }
    .evs-fx-nav-underline .evs-header__nav-link::after {
        transition: none !important;
    }
}


/* ============================================
   v1.2.1 — Flowup-style orange header rail + mobile action cleanup
============================================ */
.evs-header {
    overflow: visible;
}
.evs-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--evs-h-accent, #ff8c00) 10%,
        var(--evs-h-accent, #ff8c00) 90%,
        transparent 100%
    );
    box-shadow: 0 0 18px rgba(255,140,0,.28);
    pointer-events: none;
    z-index: 4;
}
.evs-fx-island.evs-header.evs-header--scrolled::after {
    left: 18px;
    right: 18px;
    bottom: 0;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .evs-header__zone > .evs-header__cart,
    .evs-header__zone > .evs-header__profile-link,
    .evs-header__zone > .evs-header__user,
    .evs-header__zone .evs-header__cart,
    .evs-header__zone .evs-header__profile-link,
    .evs-header__zone .evs-header__user {
        display: none !important;
    }
    .evs-header::after {
        height: 2px;
        background: var(--evs-h-accent, #ff8c00);
        box-shadow: 0 0 14px rgba(255,140,0,.22);
    }
}


/* ============================================
   v1.2.2 — Flowup-style footer rail + mobile burger scroll lock
   v1.2.3 — footer rail moved to the top inside edge
============================================ */
.evs-footer {
    overflow: hidden;
}
.evs-footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--evs-f-accent, var(--evs-h-accent, #ff8c00)) 10%,
        var(--evs-f-accent, var(--evs-h-accent, #ff8c00)) 90%,
        transparent 100%
    );
    box-shadow: 0 0 18px rgba(255,140,0,.28);
    pointer-events: none;
    z-index: 4;
}
html.evs-nav-open,
body.evs-nav-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}
@media (max-width: 768px) {
    html.evs-nav-open,
    body.evs-nav-open {
        /* No height:100% or touch-action:none — breaks HPM slider viewport calc */
        overflow: hidden !important;
    }
    body.evs-nav-open .evs-header__nav.evs-nav--open {
        touch-action: pan-y !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .evs-footer::after {
        height: 2px;
        background: var(--evs-f-accent, var(--evs-h-accent, #ff8c00));
        box-shadow: 0 0 14px rgba(255,140,0,.22);
    }
}


/* ============================================
   v1.2.3 — Footer orange rail inside the top edge
============================================ */
.evs-footer {
    overflow: hidden !important;
}
.evs-footer::after {
    top: 0 !important;
    bottom: auto !important;
}

/* ============================================
   v1.2.4 — Footer background modes
   Modes: dark, light, animated texture, custom image
============================================ */
.evs-footer {
    isolation: isolate;
}
.evs-footer__inner,
.evs-footer__bottom {
    position: relative;
    z-index: 2;
}
.evs-footer--bg-dark,
.evs-footer--always-dark.evs-footer--bg-dark,
html.wp-dark-mode-active body .evs-footer--bg-dark,
html[data-wp-dark-mode-active] body .evs-footer--bg-dark {
    background-color: var(--evs-f-bg, #0a0a12) !important;
    color: var(--evs-f-text, #9898b8) !important;
}
.evs-footer--bg-light,
.evs-footer--always-dark.evs-footer--bg-light,
html.wp-dark-mode-active body .evs-footer--bg-light,
html[data-wp-dark-mode-active] body .evs-footer--bg-light {
    background: #ffffff !important;
    color: #1d2327 !important;
    border-top-color: rgba(29,35,39,.10) !important;
    background-image:
        radial-gradient(circle at 16% 0%, rgba(255,140,0,.10), transparent 26%),
        radial-gradient(circle at 92% 6%, rgba(29,35,39,.06), transparent 28%) !important;
}
.evs-footer--bg-light .evs-footer__brand-name,
.evs-footer--bg-light .evs-footer__column-title,
html.wp-dark-mode-active body .evs-footer--bg-light .evs-footer__brand-name,
html.wp-dark-mode-active body .evs-footer--bg-light .evs-footer__column-title {
    color: #111827 !important;
}
.evs-footer--bg-light .evs-footer__brand-desc,
.evs-footer--bg-light .evs-footer__column-links a,
.evs-footer--bg-light .evs-footer__copyright,
.evs-footer--bg-light .evs-footer__newsletter-text,
html.wp-dark-mode-active body .evs-footer--bg-light .evs-footer__brand-desc,
html.wp-dark-mode-active body .evs-footer--bg-light .evs-footer__column-links a,
html.wp-dark-mode-active body .evs-footer--bg-light .evs-footer__copyright {
    color: #475467 !important;
}
.evs-footer--bg-light .evs-footer__bottom {
    border-top-color: rgba(29,35,39,.10) !important;
}
.evs-footer--bg-light .evs-footer__social-link {
    background: rgba(29,35,39,.05) !important;
    color: #475467 !important;
}
.evs-footer--bg-light .evs-footer__payment-icon svg {
    opacity: .55;
}

.evs-footer--bg-texture,
.evs-footer--always-dark.evs-footer--bg-texture,
html.wp-dark-mode-active body .evs-footer--bg-texture,
html[data-wp-dark-mode-active] body .evs-footer--bg-texture {
    background: #090910 !important;
    color: var(--evs-f-text, #9898b8) !important;
    overflow: hidden !important;
}
.evs-footer--bg-texture::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .95;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,140,0,.22), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 24%),
        linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%, transparent);
    background-size: auto, auto, 28px 28px;
    animation: evs-footer-texture-drift 16s linear infinite;
}
.evs-footer--bg-texture .evs-footer__inner::before {
    content: none !important;
    display: none !important;
}
@keyframes evs-footer-texture-drift {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 38px 18px, -32px 24px, 56px 56px; }
}

.evs-footer--bg-image,
.evs-footer--always-dark.evs-footer--bg-image,
html.wp-dark-mode-active body .evs-footer--bg-image,
html[data-wp-dark-mode-active] body .evs-footer--bg-image {
    background-color: var(--evs-f-bg, #0a0a12) !important;
    background-image: none !important;
    color: var(--evs-f-text, #9898b8) !important;
    position: relative;
}
/* Image rendered via ::after — immune to WP Dark Mode background overrides */
.evs-footer--bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(10,10,18,.82), rgba(10,10,18,.92)),
        var(--evs-f-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}
.evs-footer--bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255,140,0,.20), transparent 30%);
    opacity: .65;
}
@media (prefers-reduced-motion: reduce) {
    .evs-footer--bg-texture::before {
        animation: none !important;
    }
}

/* v1.2.5 — Colored part for fallback logo text */
.evs-header__logo-highlight {
    color: var(--evs-h-logo-highlight, var(--evs-h-accent, #ff8c00));
}

/* ============================================
   v1.2.7 — Footer background hardening
   Ensures texture/image modes render on frontend like backend preview.
============================================ */
.evs-footer--bg-texture::before,
.evs-footer--bg-image::before {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
}
.evs-footer--bg-texture {
    background-color: #090910 !important;
    animation: evs-footer-texture-drift 16s linear infinite;
}
.evs-footer--bg-texture::before {
    background:
        radial-gradient(circle at 18% 20%, rgba(255,140,0,.22), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 24%),
        linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.04) 50%, rgba(255,255,255,.04) 75%, transparent 75%, transparent) !important;
    background-size: auto, auto, 28px 28px !important;
    background-position: 0 0, 0 0, 0 0 !important;
    opacity: .95 !important;
    z-index: 0 !important;
}
.evs-footer--bg-image::after {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.evs-footer--bg-image::before {
    background: radial-gradient(circle at 20% 0%, rgba(255,140,0,.20), transparent 30%) !important;
    opacity: .65 !important;
    z-index: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
    .evs-footer--bg-texture {
        animation: none !important;
    }
}

/* ============================================
   v1.2.8 — WP Dark Mode nuclear protection + glassmorphism + topbar padding
============================================ */

/* ── WP DARK MODE — nuclear protection for icon buttons ──
   WP Dark Mode applies filter:invert or overrides backgrounds.
   These selectors beat its specificity. */
.evs-header .evs-header__notif-btn,
.evs-header .evs-header__cart,
html.wp-dark-mode-active .evs-header .evs-header__notif-btn,
html.wp-dark-mode-active .evs-header .evs-header__cart,
html[data-wp-dark-mode-active] .evs-header .evs-header__notif-btn,
html[data-wp-dark-mode-active] .evs-header .evs-header__cart,
body.evs-wpdm-integration-enabled .evs-header .evs-header__notif-btn,
body.evs-wpdm-integration-enabled .evs-header .evs-header__cart {
    background: rgba(255,255,255,.055) !important;
    border-color: rgba(255,255,255,.10) !important;
    color: var(--evs-h-text, #fff) !important;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
}
.evs-header .evs-header__notif-btn:hover,
.evs-header .evs-header__cart:hover,
.evs-header .evs-header__notif-btn.has-notif,
.evs-header .evs-header__cart.has-items,
html.wp-dark-mode-active .evs-header .evs-header__notif-btn:hover,
html.wp-dark-mode-active .evs-header .evs-header__cart:hover,
html[data-wp-dark-mode-active] .evs-header .evs-header__notif-btn:hover,
html[data-wp-dark-mode-active] .evs-header .evs-header__cart:hover {
    background: rgba(255,140,0,.10) !important;
    border-color: rgba(255,140,0,.28) !important;
    color: var(--evs-h-accent, #ff8c00) !important;
    filter: none !important;
    -webkit-filter: none !important;
}
/* Profile/Mon compte button — protect from filter:invert, keep accent */
.evs-header .evs-header__profile-link,
.evs-header .evs-header__user-btn,
html.wp-dark-mode-active .evs-header .evs-header__profile-link,
html.wp-dark-mode-active .evs-header .evs-header__user-btn,
html[data-wp-dark-mode-active] .evs-header .evs-header__profile-link,
html[data-wp-dark-mode-active] .evs-header .evs-header__user-btn {
    background: var(--evs-h-cta-bg, #ff8c00) !important;
    color: var(--evs-h-cta-color, #fff) !important;
    filter: none !important;
    -webkit-filter: none !important;
}
/* Also protect the topbar */
.evs-topbar,
html.wp-dark-mode-active .evs-topbar,
html[data-wp-dark-mode-active] .evs-topbar {
    filter: none !important;
    -webkit-filter: none !important;
}

/* ── GLASSMORPHISM HEADER — frosted glass is the default style.
   Active on ALL headers unless .evs-no-glass is present.
   Uses triple-class specificity + !important to beat everything. ── */
.evs-header:not(.evs-no-glass) {
    background: rgba(10, 10, 18, .72) !important;
    backdrop-filter: blur(18px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}
.evs-header:not(.evs-no-glass).evs-header--scrolled {
    background: rgba(10, 10, 18, .82) !important;
    backdrop-filter: blur(24px) saturate(2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(2) !important;
    border-bottom-color: rgba(255, 140, 0, .08) !important;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, .3),
        0 1px 0 rgba(255, 140, 0, .06),
        inset 0 -1px 0 rgba(255, 255, 255, .04);
}
/* Transparent header: no glass until scroll */
.evs-header:not(.evs-no-glass).evs-header--transparent:not(.evs-header--scrolled) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none;
}
/* WP Dark Mode: keep dark glass in all modes */
html.wp-dark-mode-active .evs-header:not(.evs-no-glass),
html[data-wp-dark-mode-active] .evs-header:not(.evs-no-glass) {
    background: rgba(10, 10, 18, .72) !important;
    backdrop-filter: blur(18px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.8) !important;
}
/* WP Dark Mode light mode: white glass */
body.evs-wpdm-integration-enabled .evs-header:not(.evs-no-glass).evs-wpdm-target:not(.evs-header--transparent):not([data-wp-dark-mode-active]) {
    background: rgba(255, 255, 255, .72) !important;
}

/* ── TOPBAR PADDING variable ── */
.evs-topbar__track {
    padding-top: var(--evs-h-topbar-padding, 8px);
    padding-bottom: var(--evs-h-topbar-padding, 8px);
    height: calc(1.2em + var(--evs-h-topbar-padding, 8px) * 2);
}
.evs-topbar__msg {
    padding-top: var(--evs-h-topbar-padding, 8px);
    padding-bottom: var(--evs-h-topbar-padding, 8px);
}

/* ── Reduced motion catch-all ── */
@media (prefers-reduced-motion: reduce) {
    .evs-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ============================================
   v1.3.8 — Advanced mega navigation
============================================ */
.evs-header__nav-item.has-mega {
    position: relative;
}
.evs-header__mega {
    width: min(1180px, calc(100vw - 36px));
    max-width: min(1180px, calc(100vw - 36px));
    min-width: min(860px, calc(100vw - 36px));
    flex-direction: row !important;
    align-items: stretch;
    gap: 26px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 24px 70px rgba(15,23,42,.18);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    color: #1d2327;
}
.evs-header__mega-grid {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(145px, 1fr));
    gap: 28px 38px;
}
.evs-header__mega-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.evs-header__mega-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    color: #171717;
    font-size: 15px;
    font-weight: 950;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
}
.evs-header__mega-title em {
    color: var(--evs-h-accent, #ff8c00);
    font-style: normal;
}
.evs-header__mega-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    filter: grayscale(.1);
}
.evs-header__mega-link,
.evs-header__submenu-link .evs-header__mega-badge {
    text-decoration: none;
}
.evs-header__mega-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 26px;
    color: #6b6f78;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    border-radius: 8px;
    padding: 2px 0;
    transition: color .18s ease, transform .18s ease;
}
.evs-header__mega-link:hover {
    color: var(--evs-h-accent, #ff8c00);
    transform: translateX(3px);
}
.evs-header__mega-link small {
    flex-basis: 100%;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}
.evs-header__mega-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 5px;
    background: #4f63ff;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    line-height: 18px;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.evs-header__mega-card {
    position: relative;
    flex: 0 0 260px;
    min-height: 300px;
    overflow: hidden;
    border-radius: 14px;
    background: #0a0a12;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.evs-header__mega-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.evs-header__mega-card:hover img {
    transform: scale(1.055);
}
.evs-header__mega-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.22) 46%, rgba(0,0,0,.78));
}
.evs-header__mega-card-content {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: grid;
    gap: 5px;
    z-index: 1;
}
.evs-header__mega-card-content small {
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 900;
}
.evs-header__mega-card-content strong {
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.05;
}
.evs-header__mega-card-content em {
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}
.evs-header__mega-card-content b {
    justify-self: start;
    margin-top: 6px;
    padding: 9px 13px;
    border-radius: 9px;
    background: #fff;
    color: #6c47ff;
    font-size: 12px;
    font-weight: 900;
}
body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega {
    background: rgba(255,255,255,.96) !important;
    color: #1d2327 !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega {
    background: color-mix(in srgb, var(--evs-h-bg, #0a0a12) 94%, #fff 6%) !important;
    color: var(--evs-h-text, #fff) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title {
    color: var(--evs-h-text, #fff) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link {
    color: rgba(240,240,255,.72) !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover {
    color: var(--evs-h-accent, #ff8c00) !important;
}
@media (max-width: 980px) {
    .evs-header__mega {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 8px 0 10px 14px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .evs-header__mega-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .evs-header__mega-title {
        color: var(--evs-h-text, #fff) !important;
        font-size: 13px !important;
        margin-top: 8px !important;
    }
    .evs-header__mega-link {
        padding: 9px 10px !important;
        border: 1px solid rgba(255,255,255,.055) !important;
        background: rgba(255,255,255,.045) !important;
        color: var(--evs-h-text, #fff) !important;
    }
    .evs-header__mega-card {
        min-height: 170px !important;
        flex-basis: auto !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
}


/* ============================================
   v1.3.9 — Mega menu polish + page blur backdrop
============================================ */
.evs-mega-page-blur {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--evs-mega-blur-top, 0px);
    bottom: 0;
    z-index: 9990;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    background:
        radial-gradient(circle at 20% 8%, rgba(255,140,0,.12), transparent 32%),
        rgba(3, 6, 14, .34);
    backdrop-filter: blur(8px) saturate(.92);
    -webkit-backdrop-filter: blur(8px) saturate(.92);
    transition: opacity .22s ease, visibility .22s ease;
}
body.evs-mega-active .evs-mega-page-blur {
    opacity: 1;
    visibility: visible;
}
body.evs-mega-active .evs-header {
    z-index: 10050 !important;
}
body.evs-mega-active .evs-topbar {
    z-index: 10049 !important;
}

/* Keep the menu above the blur and make the hover area forgiving. */
.evs-header__nav-item.has-submenu,
.evs-header__nav-item.has-mega {
    z-index: 10060;
}
.evs-header__nav-item.has-submenu::after,
.evs-header__nav-item.has-mega::after {
    left: -28px !important;
    right: -28px !important;
    height: 34px !important;
}
.evs-header__submenu::before {
    top: -28px !important;
    height: 28px !important;
}

/* Better advanced mega layout */
.evs-header__mega {
    top: calc(100% + 16px) !important;
    width: min(1040px, calc(100vw - 56px)) !important;
    max-width: min(1040px, calc(100vw - 56px)) !important;
    min-width: min(760px, calc(100vw - 56px)) !important;
    max-height: calc(100vh - var(--evs-mega-blur-top, 120px) - 26px);
    overflow: auto;
    scrollbar-width: thin;
    display: flex !important;
    align-items: stretch !important;
    gap: clamp(20px, 3vw, 36px) !important;
    padding: clamp(22px, 2.5vw, 34px) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.985), rgba(248,250,252,.955)) !important;
    border: 1px solid rgba(15,23,42,.10) !important;
    box-shadow:
        0 30px 90px rgba(2, 6, 23, .24),
        0 0 0 1px rgba(255,255,255,.55) inset !important;
    color: #111827 !important;
    transform: translate(-50%, 10px) scale(.985) !important;
    transition: opacity .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s ease !important;
    isolation: isolate;
}
.evs-header__nav-item:hover .evs-header__mega,
.evs-header__nav-item:focus-within .evs-header__mega,
.evs-header__mega:hover {
    transform: translate(-50%, 0) scale(1) !important;
}
.evs-header__mega::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,140,0,.09), transparent 30%),
        linear-gradient(90deg, rgba(255,140,0,.16), transparent 22%, transparent 78%, rgba(255,140,0,.10));
    opacity: .75;
    z-index: -1;
}
.evs-header__mega-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: clamp(22px, 3vw, 44px) clamp(28px, 4vw, 54px) !important;
    align-content: start;
}
.evs-header__mega-col {
    gap: 11px !important;
}
.evs-header__mega-title {
    font-size: clamp(14px, 1vw, 16px) !important;
    letter-spacing: .015em !important;
    color: #171717 !important;
    margin-bottom: 10px !important;
    text-shadow: none !important;
}
.evs-header__mega-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 9px;
    background: rgba(15,23,42,.045);
}
.evs-header__mega-link {
    padding: 7px 9px !important;
    margin-left: -9px;
    border-radius: 10px !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
}
.evs-header__mega-link:hover {
    background: rgba(255,140,0,.10) !important;
    color: #111827 !important;
    transform: translateX(4px) !important;
}
.evs-header__mega-link small {
    color: #8a93a3 !important;
}
.evs-header__mega-badge {
    background: linear-gradient(135deg, #4f63ff, #6b7cff) !important;
    box-shadow: 0 6px 16px rgba(79,99,255,.18);
}
.evs-header__mega-card {
    flex: 0 0 clamp(230px, 24vw, 300px) !important;
    min-height: 320px !important;
    border-radius: 18px !important;
    box-shadow:
        0 22px 60px rgba(2,6,23,.22),
        0 0 0 1px rgba(255,255,255,.15) inset !important;
}
.evs-header__mega-card-content {
    inset: auto 18px 18px 18px !important;
    gap: 7px !important;
}
.evs-header__mega-card-content strong {
    font-size: clamp(19px, 2vw, 24px) !important;
}
.evs-header__mega-card-content b {
    color: var(--evs-h-accent, #ff8c00) !important;
    box-shadow: 0 8px 22px rgba(255,255,255,.18);
}

/* Light/dark menu contrast when WP Dark Mode integration is active. */
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--evs-h-bg, #0a0a12) 94%, #fff 6%), color-mix(in srgb, var(--evs-h-bg, #0a0a12) 88%, #fff 12%)) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.44), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}
html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}

@media (max-width: 980px) {
    .evs-mega-page-blur { display: none !important; }
    body.evs-mega-active .evs-mega-page-blur { opacity: 0 !important; visibility: hidden !important; }
    .evs-header__mega {
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
    }
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .evs-mega-page-blur {
        background: rgba(3, 6, 14, .56);
    }
}

/* ============================================
   v1.3.10 — Maxesport-like mega menu display
   Full-width shop dropdown, cleaner columns, stable hover.
============================================ */
@media (min-width: 981px) {
    .evs-header__nav-item.has-mega {
        position: static !important;
    }
    .evs-header__nav-item.has-mega > .evs-header__nav-link {
        position: relative;
        min-height: 44px;
    }
    .evs-header__nav-item.has-mega:hover > .evs-header__nav-link,
    .evs-header__nav-item.has-mega:focus-within > .evs-header__nav-link {
        color: var(--evs-h-accent, #ff8c00) !important;
    }
    .evs-header__nav-item.has-mega:hover > .evs-header__nav-link::after,
    .evs-header__nav-item.has-mega:focus-within > .evs-header__nav-link::after {
        width: 100% !important;
        left: 0 !important;
        background: var(--evs-h-accent, #ff8c00) !important;
    }

    .evs-header__nav-item.has-mega::after {
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        height: 46px !important;
        z-index: 10061 !important;
    }

    .evs-header__mega {
        position: fixed !important;
        top: var(--evs-mega-blur-top, 112px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 0 !important;
        max-height: calc(100vh - var(--evs-mega-blur-top, 112px) - 18px) !important;
        overflow: auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 280px) !important;
        align-items: start !important;
        gap: clamp(28px, 4vw, 64px) !important;
        padding: 24px max(24px, calc((100vw - 1080px) / 2)) 26px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid rgba(15, 23, 42, .06) !important;
        border-bottom: 1px solid rgba(15, 23, 42, .10) !important;
        background: rgba(255,255,255,.965) !important;
        color: #20242a !important;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .16) !important;
        backdrop-filter: saturate(1.08) blur(8px) !important;
        -webkit-backdrop-filter: saturate(1.08) blur(8px) !important;
        transform: translateY(-4px) !important;
        transition: opacity .18s ease, transform .20s ease, visibility .18s ease !important;
        isolation: isolate;
    }
    .evs-header__nav-item:hover .evs-header__mega,
    .evs-header__nav-item:focus-within .evs-header__mega,
    .evs-header__mega:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .evs-header__mega::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -42px;
        height: 42px;
        pointer-events: auto;
    }
    .evs-header__mega::after {
        content: none !important;
    }

    .evs-header__mega-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(150px, 1fr)) !important;
        gap: 32px clamp(34px, 5vw, 70px) !important;
        align-content: start !important;
        align-items: start !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .evs-header__mega-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        min-width: 0 !important;
    }
    .evs-header__mega-title {
        display: inline-flex !important;
        align-items: center !important;
        gap: 9px !important;
        margin: 0 0 8px !important;
        color: #181b20 !important;
        font-size: 15px !important;
        line-height: 1.05 !important;
        font-weight: 950 !important;
        font-style: italic !important;
        text-transform: uppercase !important;
        letter-spacing: -.01em !important;
        text-shadow: none !important;
    }
    .evs-header__mega-title em {
        color: #181b20 !important;
    }
    .evs-header__mega-icon {
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #181b20 !important;
        font-size: 17px !important;
        filter: none !important;
    }
    .evs-header__mega-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 24px !important;
        margin: 0 !important;
        padding: 2px 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #777b84 !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        text-decoration: none !important;
        transition: color .16s ease, transform .16s ease !important;
    }
    .evs-header__mega-link:hover {
        background: transparent !important;
        color: #17191d !important;
        transform: translateX(3px) !important;
    }
    .evs-header__mega-link small {
        flex-basis: 100% !important;
        margin-top: 2px !important;
        color: #9aa1ad !important;
        font-size: 11px !important;
        font-weight: 650 !important;
    }
    .evs-header__mega-badge {
        height: 17px !important;
        padding: 0 6px !important;
        border-radius: 4px !important;
        background: #5268ff !important;
        color: #fff !important;
        font-size: 9px !important;
        font-weight: 950 !important;
        line-height: 17px !important;
        box-shadow: none !important;
        transform: translateY(-1px);
    }

    .evs-header__mega-card {
        justify-self: end !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        min-height: clamp(245px, 22vw, 330px) !important;
        max-height: 345px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: #050509 !important;
        box-shadow: none !important;
    }
    .evs-header__mega-card img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transform: none !important;
    }
    .evs-header__mega-card:hover img {
        transform: scale(1.035) !important;
    }
    .evs-header__mega-card-overlay {
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(180deg, rgba(0,0,0,0) 26%, rgba(0,0,0,.45) 62%, rgba(0,0,0,.88) 100%) !important;
    }
    .evs-header__mega-card-content {
        inset: auto 14px 14px 14px !important;
        gap: 4px !important;
    }
    .evs-header__mega-card-content small {
        color: rgba(255,255,255,.90) !important;
        font-size: 11px !important;
        font-weight: 900 !important;
    }
    .evs-header__mega-card-content strong {
        color: #fff !important;
        font-size: 19px !important;
        line-height: 1.05 !important;
        font-weight: 950 !important;
    }
    .evs-header__mega-card-content em {
        display: none !important;
    }
    .evs-header__mega-card-content b {
        position: absolute !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        border-radius: 7px !important;
        background: #fff !important;
        color: #6f58ff !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        box-shadow: none !important;
    }

    .evs-mega-page-blur {
        background: rgba(0,0,0,.18) !important;
        backdrop-filter: blur(7px) saturate(.92) !important;
        -webkit-backdrop-filter: blur(7px) saturate(.92) !important;
    }

    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega {
        background: rgba(18, 20, 27, .975) !important;
        border-top-color: rgba(255,255,255,.08) !important;
        border-bottom-color: rgba(255,255,255,.10) !important;
        color: #f8fafc !important;
    }
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-title,
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-icon,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-icon,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-icon,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-icon {
        color: #fff !important;
    }
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link {
        color: rgba(255,255,255,.70) !important;
    }
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__mega-link:hover {
        color: #fff !important;
    }
}

@media (min-width: 1180px) {
    .evs-header__mega {
        grid-template-columns: minmax(0, 1fr) 260px !important;
    }
}


/* ============================================
   v1.3.11 — Mega menu hitbox on nav button + no header gap
   The invisible hover bridge is removed. The menu starts exactly at the
   bottom of the real header, not after the promo/topbar area.
============================================ */
@media (min-width: 981px) {
    .evs-header__nav {
        height: 100%;
    }
    .evs-header__nav-item.has-mega,
    .evs-header__nav-item.has-submenu {
        height: 100%;
        display: inline-flex;
        align-items: center;
    }
    .evs-header__nav-item.has-mega > .evs-header__nav-link,
    .evs-header__nav-item.has-submenu > .evs-header__nav-link {
        min-height: var(--evs-h-height, 70px);
        display: inline-flex;
        align-items: center;
    }

    /* Remove the old invisible hover catch zones: the trigger is the nav button. */
    .evs-header__nav-item.has-mega::after,
    .evs-header__nav-item.has-submenu::after,
    .evs-header__mega::before,
    .evs-header__submenu::before {
        content: none !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    .evs-header__mega {
        top: var(--evs-mega-menu-top, var(--evs-mega-blur-top, 112px)) !important;
        margin-top: 0 !important;
        transform: translateY(0) !important;
    }
    .evs-header__nav-item:hover .evs-header__mega,
    .evs-header__nav-item:focus-within .evs-header__mega,
    .evs-header__mega:hover {
        transform: translateY(0) !important;
    }
}

/* ============================================
   v1.3.12 — Mega menu truly glued to the nav button
   Fixes the visible promo/topbar gap by drawing the mega menu above any
   intermediate strip and using the nav button bottom as the only top value.
============================================ */
@media (min-width: 981px) {
    body.evs-mega-active .evs-header {
        z-index: 10080 !important;
    }

    body.evs-mega-active .evs-topbar {
        z-index: 10040 !important;
    }

    .evs-header__nav-item.has-mega,
    .evs-header__nav-item.has-submenu {
        position: static !important;
    }

    .evs-header__nav-item.has-mega > .evs-header__nav-link,
    .evs-header__nav-item.has-submenu > .evs-header__nav-link {
        min-height: var(--evs-h-height, 70px) !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        pointer-events: auto !important;
    }

    .evs-header__mega {
        top: var(--evs-mega-menu-top, var(--evs-mega-blur-top, 112px)) !important;
        z-index: 10090 !important;
        margin-top: 0 !important;
        border-top: 0 !important;
        transform: translateY(0) !important;
    }

    .evs-header__nav-item:hover .evs-header__mega,
    .evs-header__nav-item:focus-within .evs-header__mega,
    .evs-header__mega:hover {
        transform: translateY(0) !important;
    }

    .evs-mega-page-blur {
        top: var(--evs-mega-menu-top, var(--evs-mega-blur-top, 112px)) !important;
        z-index: 10030 !important;
    }
}


/* ============================================
   v1.3.13 — Mega menu attached + restored shrink behavior
   - The mega menu uses the real header bottom set by JS.
   - Nav links no longer keep the base header height while the header shrinks.
   - No invisible hover bridges: the hitbox remains the nav button and the menu itself.
============================================ */
@media (min-width: 981px) {
    .evs-header,
    .evs-header__inner,
    .evs-header__zone,
    .evs-header__nav,
    .evs-header__nav-item {
        overflow: visible !important;
    }

    .evs-header__zone,
    .evs-header__nav,
    .evs-header__nav-item.has-mega,
    .evs-header__nav-item.has-submenu {
        height: 100% !important;
        min-height: 0 !important;
    }

    .evs-header__nav-item.has-mega,
    .evs-header__nav-item.has-submenu {
        position: static !important;
        display: inline-flex !important;
        align-items: stretch !important;
    }

    .evs-header__nav-item.has-mega > .evs-header__nav-link,
    .evs-header__nav-item.has-submenu > .evs-header__nav-link {
        height: 100% !important;
        min-height: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        pointer-events: auto !important;
    }

    .evs-header__nav-item.has-mega::after,
    .evs-header__nav-item.has-submenu::after,
    .evs-header__mega::before,
    .evs-header__submenu::before {
        content: none !important;
        display: none !important;
        pointer-events: none !important;
    }

    .evs-header__mega {
        position: fixed !important;
        top: var(--evs-mega-menu-top, var(--evs-mega-blur-top, 0px)) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        transform: translateY(0) !important;
        z-index: 99990 !important;
    }

    .evs-header__nav-item:hover .evs-header__mega,
    .evs-header__nav-item:focus-within .evs-header__mega,
    .evs-header__mega:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    body.evs-mega-active .evs-header {
        z-index: 99992 !important;
    }

    body.evs-mega-active .evs-topbar {
        z-index: 99980 !important;
    }

    .evs-mega-page-blur {
        top: var(--evs-mega-menu-top, var(--evs-mega-blur-top, 0px)) !important;
        z-index: 99970 !important;
    }
}

.evs-header.evs-header--scrolled .evs-header__zone,
.evs-header.evs-header--scrolled .evs-header__nav,
.evs-header.evs-header--scrolled .evs-header__nav-item,
.evs-header.evs-header--scrolled .evs-header__nav-link {
    min-height: 0 !important;
}


/* ============================================
   v1.3.14 — definitive mega alignment + nav underline restore
   - Mega menu is positioned relative to the header itself, not to the promo/topbar.
   - The hover hitbox is the nav item/link + the menu; no invisible bridge.
   - The nav underline is visually under the text, not on the bottom rail.
============================================ */
@media (min-width: 981px) {
    .evs-header {
        position: sticky;
        overflow: visible !important;
        z-index: 10080 !important;
    }
    .evs-header:not(.evs-header--sticky) {
        position: relative;
    }
    body.evs-mega-active .evs-header {
        z-index: 100200 !important;
    }
    body.evs-mega-active .evs-topbar {
        z-index: 1000 !important;
    }

    .evs-header__inner,
    .evs-header__zone,
    .evs-header__nav {
        overflow: visible !important;
    }
    .evs-header__nav {
        height: 100% !important;
        align-items: stretch !important;
    }
    .evs-header__nav-item.has-mega,
    .evs-header__nav-item.has-submenu {
        position: static !important;
        display: inline-flex !important;
        align-items: stretch !important;
        height: 100% !important;
        min-height: 0 !important;
        z-index: 100210 !important;
    }
    .evs-header__nav-item.has-mega > .evs-header__nav-link,
    .evs-header__nav-item.has-submenu > .evs-header__nav-link {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        height: 100% !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        pointer-events: auto !important;
    }

    /* Only the nav button and the menu itself keep the dropdown open. */
    .evs-header__nav-item.has-mega::after,
    .evs-header__nav-item.has-submenu::after,
    .evs-header__mega::before,
    .evs-header__submenu::before {
        content: none !important;
        display: none !important;
        pointer-events: none !important;
    }

    /* Attach mega menu directly to the lower edge of the header. */
    .evs-header__mega {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 100vw !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transform: translateX(-50%) !important;
        z-index: 100220 !important;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .16) !important;
    }
    .evs-header__nav-item:hover .evs-header__mega,
    .evs-header__nav-item:focus-within .evs-header__mega,
    .evs-header__mega:hover {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Keep the page blur starting below the header, behind the menu. */
    .evs-mega-page-blur {
        top: var(--evs-mega-menu-top, var(--evs-mega-blur-top, 0px)) !important;
        z-index: 100100 !important;
    }

    /* Visual underline under the label, not on the Flowup rail. */
    .evs-fx-nav-underline .evs-header__nav-link::after,
    .evs-header__nav-link::after {
        top: calc(50% + 1.05em) !important;
        bottom: auto !important;
        height: 2px !important;
        z-index: 3 !important;
    }
    .evs-header__nav-item.has-mega:hover > .evs-header__nav-link::after,
    .evs-header__nav-item.has-submenu:hover > .evs-header__nav-link::after,
    .evs-header__nav-link:hover::after,
    .evs-header__nav-link:focus-visible::after {
        width: 100% !important;
        left: 0 !important;
        background: var(--evs-h-accent, #ff8c00) !important;
    }

    /* Restore shrinking behavior: components follow current header height. */
    .evs-header.evs-header--scrolled .evs-header__nav,
    .evs-header.evs-header--scrolled .evs-header__nav-item,
    .evs-header.evs-header--scrolled .evs-header__nav-link {
        height: 100% !important;
        min-height: 0 !important;
    }
}


/* ============================================
   v1.3.15 — Rounded lower edges for mega menu
   - Keep the menu attached to the header.
   - Add a cleaner styled lower radius only on desktop.
============================================ */
@media (min-width: 981px) {
    .evs-header__mega {
        border-radius: 0 0 22px 22px !important;
        overflow: hidden !important;
        background-clip: padding-box !important;
    }
}


/* ============================================
   v1.3.16 — Clickable mega menu column titles
============================================ */
.evs-header__mega-title--link {
    text-decoration: none !important;
    cursor: pointer;
    transition: color .16s ease, transform .16s ease, opacity .16s ease;
}
.evs-header__mega-title--link:hover,
.evs-header__mega-title--link:focus-visible {
    color: var(--evs-h-accent, #ff8c00) !important;
    transform: translateX(2px);
    outline: none;
}
.evs-header__mega-title--link:hover em,
.evs-header__mega-title--link:focus-visible em {
    transform: translateX(2px);
}
.evs-header__mega-title em {
    transition: transform .16s ease, color .16s ease;
}


/* ============================================
   v1.3.17 — Simplified toggleable mobile mega menu
   Desktop mega remains unchanged. On mobile, each mega item becomes an accordion:
   nav title -> column titles -> subcategory links.
============================================ */
@media (max-width: 980px) {
    .evs-header__nav-item.has-mega > .evs-header__nav-link,
    .evs-header__nav-item.has-submenu > .evs-header__nav-link {
        cursor: pointer !important;
    }

    .evs-header__nav-item.has-mega > .evs-header__nav-link .evs-header__submenu-caret,
    .evs-header__nav-item.has-submenu > .evs-header__nav-link .evs-header__submenu-caret {
        transition: transform .22s ease !important;
    }
    .evs-header__nav-item.is-mobile-open > .evs-header__nav-link .evs-header__submenu-caret {
        transform: rotate(180deg) !important;
    }

    /* Hidden by default on mobile; opened by JS toggle. */
    .evs-header__nav-item.has-mega > .evs-header__mega,
    .evs-header__nav-item.has-submenu > .evs-header__submenu {
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }
    .evs-header__nav-item.is-mobile-open > .evs-header__mega,
    .evs-header__nav-item.is-mobile-open > .evs-header__submenu {
        display: block !important;
    }

    .evs-header__nav-item.is-mobile-open > .evs-header__mega {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 6px 0 12px !important;
        padding: 8px 0 4px 12px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .evs-header__nav-item.is-mobile-open > .evs-header__mega .evs-header__mega-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
        width: 100% !important;
    }

    .evs-header__mega-col {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .evs-header__mega-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        color: var(--evs-h-text, #ffffff) !important;
        background: rgba(255,255,255,.055) !important;
        border: 1px solid rgba(255,255,255,.08) !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: background .18s ease, border-color .18s ease, color .18s ease !important;
    }
    .evs-header__mega-title:hover,
    .evs-header__mega-col.is-mobile-col-open > .evs-header__mega-title {
        color: var(--evs-h-accent, #ff8c00) !important;
        background: rgba(255,140,0,.10) !important;
        border-color: rgba(255,140,0,.22) !important;
    }
    .evs-header__mega-title em {
        margin-left: auto !important;
        color: currentColor !important;
        transform: rotate(90deg) !important;
        transition: transform .2s ease !important;
    }
    .evs-header__mega-col.is-mobile-col-open > .evs-header__mega-title em {
        transform: rotate(-90deg) !important;
    }

    .evs-header__mega-col > .evs-header__mega-link {
        display: none !important;
    }
    .evs-header__mega-col.is-mobile-col-open > .evs-header__mega-link {
        display: flex !important;
    }
    .evs-header__mega-col.is-mobile-col-open > .evs-header__mega-link {
        margin: 6px 0 0 10px !important;
        min-height: 38px !important;
        padding: 9px 11px !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,.04) !important;
        border: 1px solid rgba(255,255,255,.055) !important;
        color: var(--evs-h-text, #ffffff) !important;
    }

    /* Simplified mobile version: no promo image/card in the burger drawer. */
    .evs-header__mega-card,
    .evs-header__mega-card img,
    .evs-header__mega-card-overlay,
    .evs-header__mega-card-content {
        display: none !important;
    }

    .evs-header__nav-item.is-mobile-open > .evs-header__submenu:not(.evs-header__mega) {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        position: static !important;
        width: 100% !important;
        margin: 6px 0 12px !important;
        padding: 0 0 0 12px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}


/* ============================================
   v1.3.18 — Mobile burger contrast in light mode
   The hamburger can be configured white for dark headers. When WP Dark Mode
   integration switches the header to light mode, force the bars/SVG to a dark
   color so they remain visible. Dark mode restores the configured color.
============================================ */
@media (max-width: 980px) {
    body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger {
        color: #101828 !important;
    }
    body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger span {
        background: #101828 !important;
    }
    body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg,
    body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg * {
        color: #101828 !important;
        stroke: #101828 !important;
        fill: #101828 !important;
    }

    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger {
        color: var(--evs-h-hamburger, var(--evs-h-text, #fff)) !important;
    }
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger span,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger span,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger span,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger span {
        background: var(--evs-h-hamburger, var(--evs-h-text, #fff)) !important;
    }
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg,
    html.wp-dark-mode-active body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg *,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg,
    html[data-wp-dark-mode-active="1"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg *,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg,
    html[data-wp-dark-mode-active="true"] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg *,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg,
    html[data-wp-dark-mode-active=""] body.evs-wpdm-integration-enabled .evs-header.evs-wpdm-target .evs-header__hamburger svg * {
        color: var(--evs-h-hamburger, var(--evs-h-text, #fff)) !important;
        stroke: var(--evs-h-hamburger, var(--evs-h-text, #fff)) !important;
        fill: var(--evs-h-hamburger, var(--evs-h-text, #fff)) !important;
    }
}

/* ============================================
   v1.4.0 — Mega layouts, Woo mini-cart, performance toggles
============================================ */
.evs-header__mega--simple-columns .evs-header__mega-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}
.evs-header__mega--compact {
    padding-block: 18px !important;
}
.evs-header__mega--compact .evs-header__mega-grid {
    gap: 10px !important;
}
.evs-header__mega--compact .evs-header__mega-link {
    padding: 7px 8px !important;
    min-height: 0 !important;
}
.evs-header__mega--full-width .evs-header__mega-grid {
    max-width: min(1700px, calc(100vw - 48px)) !important;
}
.evs-header__mega--dark-gaming {
    background: linear-gradient(180deg, rgba(8,8,16,.98), rgba(13,13,26,.98)) !important;
    color: #f8fafc !important;
    border-color: rgba(255,140,0,.22) !important;
}
.evs-header__mega--dark-gaming .evs-header__mega-title,
.evs-header__mega--dark-gaming .evs-header__mega-link {
    color: #f8fafc !important;
}
.evs-header__mega--dark-gaming .evs-header__mega-link:hover {
    background: rgba(255,140,0,.12) !important;
}
.evs-header__mega--product-grid .evs-header__mega-grid,
.evs-header__mega--category-images .evs-header__mega-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}
.evs-header__mega--product-grid .evs-header__mega-link,
.evs-header__mega--category-images .evs-header__mega-link {
    min-height: 72px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.evs-header__mega--category-images .evs-header__mega-title {
    font-size: 15px !important;
}
.evs-header__cart-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.evs-header__cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--evs-h-bg, #0a0a12);
}
.evs-header__cart-total {
    margin-left: 7px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.evs-header__cart.is-added {
    animation: evs-cart-added .75s cubic-bezier(.22,1,.36,1);
}
@keyframes evs-cart-added {
    0% { transform: scale(1); }
    35% { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(34,197,94,.18); }
    100% { transform: scale(1); }
}
.evs-header__minicart {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, 92vw);
    display: none;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.98);
    color: #111827;
    box-shadow: 0 22px 60px rgba(15,23,42,.22);
    z-index: 100400;
}
.evs-header__cart-wrap.has-minicart:hover .evs-header__minicart,
.evs-header__minicart.is-open {
    display: block;
}
.evs-header__minicart-head,
.evs-header__minicart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15,23,42,.08);
}
.evs-header__minicart-head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}
.evs-header__minicart-list {
    max-height: 285px;
    overflow-y: auto;
    padding: 8px;
}
.evs-header__minicart-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
}
.evs-header__minicart-item:hover { background: rgba(15,23,42,.05); }
.evs-header__minicart-item img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
}
.evs-header__minicart-item b {
    display: block;
    font-size: 12px;
    line-height: 1.25;
}
.evs-header__minicart-item small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}
.evs-header__minicart-empty {
    padding: 22px 10px;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}
.evs-header__minicart-actions {
    border-top: 1px solid rgba(15,23,42,.08);
    border-bottom: 0;
}
.evs-header__minicart-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}
.evs-header__minicart-actions a.is-primary {
    background: var(--evs-h-cta-bg, #ff8c00);
    color: var(--evs-h-cta-color, #fff);
}
@media (max-width: 768px) {
    body.evs-no-mobile-animations .evs-header *,
    body.evs-no-mobile-animations .evs-footer * {
        animation: none !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .evs-header__minicart,
    .evs-header__cart-total,
    .evs-header__cart-count { display: none !important; }
}
.evs-header__cart-count:not(.is-visible) { display: none; }

/* ============================================
   v1.4.1 — Header cart live state + safer sizing
============================================ */
.evs-header__cart {
    box-sizing: border-box;
    flex: 0 0 auto;
    gap: 7px;
    max-width: 100%;
    overflow: visible;
}
.evs-header__cart.has-items {
    width: auto !important;
    min-width: 44px !important;
    max-width: 150px;
    padding-left: 11px !important;
    padding-right: 11px !important;
}
.evs-header__cart:not(.has-items) {
    width: 44px !important;
    min-width: 44px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.evs-header__cart svg {
    flex: 0 0 auto;
}
.evs-header__cart-total {
    display: none;
    min-width: 0;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
    margin-left: 0 !important;
}
.evs-header__cart.has-items .evs-header__cart-total,
.evs-header__cart-total.is-visible {
    display: inline-flex;
    align-items: center;
}
.evs-header__cart:not(.has-items) .evs-header__cart-total,
.evs-header__cart:not(.has-items) .evs-header__cart-count,
.evs-header__cart:not(.has-items) .evs-header__cart-dot {
    display: none !important;
}
.evs-header__cart-count:not(.is-visible) {
    display: none !important;
}
.evs-header__cart-wrap .evs-header__minicart {
    transform: translateZ(0);
}
@media (max-width: 1200px) {
    .evs-header__cart.has-items {
        max-width: 124px;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
    .evs-header__cart-total { max-width: 66px; }
}
@media (max-width: 768px) {
    .evs-header__cart.has-items,
    .evs-header__cart:not(.has-items) {
        width: 40px !important;
        min-width: 40px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .evs-header__cart-total,
    .evs-header__cart-count { display: none !important; }
}

/* ============================================
   v1.4.2 — True live Woo cart + mini-cart removal UX
============================================ */
.evs-header__cart-wrap {
    flex: 0 0 auto;
}
.evs-header__cart {
    min-height: 42px;
    white-space: nowrap;
    flex-wrap: nowrap;
}
.evs-header__cart.has-items {
    min-width: 104px !important;
    max-width: 168px !important;
    justify-content: center;
}
.evs-header__cart:not(.has-items) {
    min-width: 42px !important;
    max-width: 42px !important;
}
.evs-header__cart-total {
    font-size: 12px;
    font-weight: 900;
    max-width: 92px;
}
.evs-header__minicart-item {
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: center;
}
.evs-header__minicart-item > span {
    min-width: 0;
}
.evs-header__minicart-remove {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .06);
    color: #64748b;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease, opacity .18s ease;
}
.evs-header__minicart-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.06);
}
.evs-header__minicart-remove:disabled,
.evs-header__minicart-remove.is-loading {
    opacity: .45;
    cursor: wait;
    transform: none;
}
.evs-header__minicart-remove.is-loading::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: evs-cart-remove-spin .7s linear infinite;
}
.evs-header__minicart-remove.is-loading {
    font-size: 0;
}
@keyframes evs-cart-remove-spin { to { transform: rotate(360deg); } }
@media (max-width: 1240px) {
    .evs-header__cart.has-items {
        min-width: 92px !important;
        max-width: 136px !important;
    }
    .evs-header__cart-total { max-width: 70px; }
}


/* ============================================
   v1.4.3 — Mini-cart remove button + no auto-open on add-to-cart
============================================ */
.evs-header__minicart-item {
    grid-template-columns: 38px minmax(0, 1fr) 24px !important;
    padding-right: 10px !important;
    overflow: hidden !important;
}
.evs-header__minicart-remove {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    flex: 0 0 24px !important;
    justify-self: end !important;
    align-self: center !important;
    line-height: 1 !important;
    overflow: hidden !important;
    text-align: center !important;
}
body.evs-cart-suppress-open .evs-header__cart-wrap.has-minicart:hover .evs-header__minicart:not(.is-open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ============================================
   v1.4.4 — Mega menu multi-card carousel
   Allows two promo/product cards to be displayed together in the mega menu.
============================================ */
@media (min-width: 981px) {
    .evs-header__mega:has(.evs-header__mega-cards) {
        grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 500px) !important;
    }
    .evs-header__mega-cards {
        justify-self: end !important;
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    .evs-header__mega-cards .evs-header__mega-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: clamp(220px, 20vw, 315px) !important;
        max-height: 330px !important;
    }
    .evs-header__mega-cards .evs-header__mega-card-content strong {
        font-size: clamp(15px, 1.35vw, 19px) !important;
    }
    .evs-header__mega-cards .evs-header__mega-card-content b {
        white-space: nowrap !important;
    }
}
@media (max-width: 980px) {
    .evs-header__mega-cards {
        display: none !important;
    }
}

/* ============================================
   v1.5.0 — Mega tabs, brands, Woo dynamic cards, smart sticky
============================================ */
@media (min-width: 981px) {
    .evs-header__mega-tabs {
        display: flex;
        gap: 8px;
        align-items: center;
        margin: 0 auto 22px;
        max-width: var(--evs-h-container, 1400px);
        padding: 0 18px;
    }
    .evs-header__mega-tab {
        border: 1px solid rgba(15,23,42,.08);
        background: rgba(255,255,255,.82);
        color: #172033;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 850;
        letter-spacing: .03em;
        cursor: pointer;
        transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    }
    .evs-header__mega-tab:hover,
    .evs-header__mega-tab.is-active {
        background: var(--evs-h-accent, #ff8c00);
        color: #fff;
        box-shadow: 0 10px 22px rgba(255,140,0,.22);
        transform: translateY(-1px);
    }
    .evs-header__mega-col.is-tab-hidden { display: none !important; }
    .evs-header__mega.has-tabs .evs-header__mega-grid {
        transition: opacity .2s ease;
    }
    .evs-header__mega-brands {
        width: min(var(--evs-h-container, 1400px), calc(100vw - 48px));
        margin: 20px auto 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid rgba(15,23,42,.08);
    }
    .evs-header__mega-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(15,23,42,.035);
        color: #172033;
        text-decoration: none;
        font-size: 12px;
        font-weight: 850;
        transition: transform .18s ease, background .18s ease;
    }
    .evs-header__mega-brand:hover {
        transform: translateY(-1px);
        background: rgba(255,140,0,.12);
    }
    .evs-header__mega-brand img {
        width: 26px;
        height: 26px;
        object-fit: contain;
        border-radius: 7px;
        background: #fff;
    }
    .evs-header__mega-brand small {
        margin-left: auto;
        color: #667085;
        font-size: 10px;
        font-weight: 800;
    }
    .evs-header__mega-card.add_to_cart_button::after { display: none !important; }
}
.evs-header--smart-compact .evs-header__logo img {
    max-height: calc(var(--evs-h-height-scroll, 58px) - 18px);
}
.evs-header--smart-compact .evs-header__logo-text {
    transform: scale(.94);
    transform-origin: left center;
}
.evs-header--hidden-scroll {
    transform: translateY(calc(-100% - 8px)) !important;
    transition: transform .24s ease, height .24s ease, background .24s ease !important;
}
@media (max-width: 980px) {
    .evs-header__mega-tabs,
    .evs-header__mega-brands { display: none !important; }
}


/* ============================================
   v1.5.1 — Tabbed mega polish, product gallery hover, no smart sticky
============================================ */
.evs-header--smart-compact,
.evs-header--hidden-scroll {
    transform: none !important;
    opacity: 1 !important;
}
body.evs-smart-sticky-enabled .evs-header,
body.evs-sticky-hide-direction .evs-header {
    transform: none !important;
}
@media (min-width: 981px) {
    .evs-header__mega.has-tabs {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(230px, 360px) !important;
        grid-template-areas: "tabs tabs" "cols cards" "brands brands" !important;
        gap: 22px 34px !important;
        padding-top: 22px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-tabs {
        grid-area: tabs !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 7px !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 auto 8px !important;
        border-radius: 999px !important;
        background: rgba(15, 23, 42, .055) !important;
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06) !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-tab {
        border: 0 !important;
        border-radius: 999px !important;
        padding: 10px 18px !important;
        background: transparent !important;
        color: #667085 !important;
        font-weight: 900 !important;
        font-size: 12px !important;
        letter-spacing: .02em !important;
        cursor: pointer !important;
        transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-tab:hover,
    .evs-header__mega.has-tabs .evs-header__mega-tab.is-active {
        color: #fff !important;
        background: var(--evs-h-accent, #ff8c00) !important;
        box-shadow: 0 10px 24px rgba(255, 140, 0, .24) !important;
        transform: translateY(-1px) !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-grid {
        grid-area: cols !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
        gap: 22px 36px !important;
        align-content: start !important;
        padding: 4px 0 10px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-col {
        background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.42)) !important;
        border: 1px solid rgba(15,23,42,.055) !important;
        border-radius: 18px !important;
        padding: 16px 18px !important;
        min-height: 142px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-title {
        margin-bottom: 12px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-link {
        border-radius: 12px !important;
        padding: 8px 10px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-cards {
        grid-area: cards !important;
        align-self: start !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
        gap: 12px !important;
        max-width: 520px !important;
        margin-left: auto !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-brands { grid-area: brands !important; }
    .evs-header__mega-card-img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: opacity .32s ease, transform .48s ease !important;
    }
    .evs-header__mega-card-img--hover { opacity: 0 !important; transform: scale(1.04) !important; }
    .evs-header__mega-card:hover .evs-header__mega-card-img--primary { opacity: 0 !important; transform: scale(1.04) !important; }
    .evs-header__mega-card:hover .evs-header__mega-card-img--hover { opacity: 1 !important; transform: scale(1) !important; }
}
@media (max-width: 980px) {
    .evs-header__mega-card-img--hover { display: none !important; }
}

/* ============================================
   v1.5.1 — Cart opens only on explicit click + safer remove button
============================================ */
.evs-header__cart-wrap.has-minicart:hover .evs-header__minicart:not(.is-open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.evs-header__minicart-item {
    grid-template-columns: 38px minmax(0, 1fr) 26px !important;
    padding-right: 8px !important;
}
.evs-header__minicart-remove {
    inline-size: 24px !important;
    block-size: 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    flex: 0 0 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    line-height: 24px !important;
}

/* ============================================
   v1.5.2 — Promo cards per mega-menu tab
   - Each promo card can be assigned to a tab by name in the backend.
   - Empty tab value keeps the card visible on every tab.
============================================ */
@media (min-width: 981px) {
    .evs-header__mega-card.is-tab-hidden {
        display: none !important;
    }
    .evs-header__mega-cards.is-tab-empty {
        display: none !important;
    }
}

/* ============================================
   v1.5.3 — Auto-detected tabs + better two-card promo layout
============================================ */
@media (min-width: 981px) {
    .evs-header__mega.has-tabs {
        align-items: start !important;
    }
    .evs-header__mega.has-tabs.has-no-visible-cards {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: "tabs" "cols" "brands" !important;
    }
    .evs-header__mega.has-tabs.has-one-visible-card {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 320px) !important;
    }
    .evs-header__mega.has-tabs.has-two-visible-cards,
    .evs-header__mega.has-tabs.has-many-visible-cards {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 470px) !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-cards {
        width: 100% !important;
        margin-left: auto !important;
        align-self: stretch !important;
        align-items: stretch !important;
    }
    .evs-header__mega.has-tabs.has-one-visible-card .evs-header__mega-cards {
        max-width: 300px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .evs-header__mega.has-tabs.has-two-visible-cards .evs-header__mega-cards,
    .evs-header__mega.has-tabs.has-many-visible-cards .evs-header__mega-cards {
        max-width: 470px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-cards .evs-header__mega-card {
        width: 100% !important;
        min-height: 250px !important;
        height: 100% !important;
        max-height: 320px !important;
        border-radius: 16px !important;
    }
    .evs-header__mega.has-tabs.has-one-visible-card .evs-header__mega-cards .evs-header__mega-card {
        min-height: 270px !important;
    }
    .evs-header__mega.has-tabs.has-two-visible-cards .evs-header__mega-cards .evs-header__mega-card {
        min-height: 245px !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-cards.is-tab-empty {
        display: none !important;
    }
    .evs-header__mega.has-tabs .evs-header__mega-grid {
        min-height: 0 !important;
    }
}
