/* ═══════════════════════════════════════════════
   NAV WRAPPER — needs relative so mega top:100%
   resolves to the nav bar bottom
   ═══════════════════════════════════════════════ */
.main-menu-two__wrapper {
    position: relative;
}

/* ═══════════════════════════════════════════════
   SPLIT NAV LAYOUT
   ═══════════════════════════════════════════════ */
.main-menu__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.main-menu__list .nav-logo {
    flex-shrink: 0;
    margin: 0 clamp(1rem, 3vw, 2.5rem);
}

.main-menu__list .nav-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   MEGA MENU
   ═══════════════════════════════════════════════ */

/* Product li — keep in normal flow, mega spans nav width */
li[data-mega="products"],
li.menu-item-has-mega-menu {
    position: static !important;
}

.pm-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 12px 48px rgba(0,0,0,0.10);
    border-top: 2px solid #f97316;
    opacity: 0;
    visibility: hidden !important;
    display: block;
    transform:  translateY(0) scaleY(1) !important;
    transition:
        opacity 250ms ease,
        visibility 250ms ease,
        transform 250ms ease;
    z-index: 99999;
    pointer-events: none;
}

/* Trigger on hover of the Product li */
li[data-mega="products"]:hover .pm-mega-menu,
li[data-mega="products"]:focus-within .pm-mega-menu,
li.menu-item-has-mega-menu:hover .pm-mega-menu,
li.menu-item-has-mega-menu:focus-within .pm-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scaleY(1) !important;
    pointer-events: auto;
}

/* ── Inner layout ─────────────────────────────── */
.pm-mega-menu__inner {
    display: grid;
    grid-template-columns: 21.875rem 1fr;
    min-height: 300px;
    /* max-width: 1280px; */
    margin: 0 auto;
    /* padding: 0 1rem; */
}

.pm-mega-menu__categories {
    padding: 1.5rem 0;
    border-right: 1px solid #f0f2f5;
}

.pm-mega-menu__panel {
    padding: 1.5rem 0;
}

.pm-mega-menu__panel--lvl2 {
    /* border-right: 1px solid #f0f2f5; */
    padding-left: 1.5rem;
}

.pm-mega-menu__heading {
    font-size: .9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* color: #8b92a8; */
    color: black;
    margin: 0 0 0.5rem;
    padding: 0 1.25rem 0.5rem;
    border-bottom: 1px solid #f0f2f5;
}

/* ── Left: category list ──────────────────────── */
.pm-mega-menu__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pm-mega-menu__cat-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1b2534;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    gap: 0.5rem;
}

.pm-mega-menu__cat-item > a:hover,
.pm-mega-menu__cat-item.is-active > a {
    background: #fff7f0;
    color: #f97316;
}

.pm-mega-menu__cat-item.is-active > a {
    border-left: 3px solid #f97316;
    padding-left: calc(1.25rem - 3px);
    font-weight: 600;
}

.pm-mega-menu__arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.pm-mega-menu__cat-item.is-active .pm-mega-menu__arrow {
    opacity: 1;
    color: #f97316;
}

/* Hide raw sub-list (JS data source) */
.pm-mega-menu__sub-list {
    display: none;
}

/* ── Panels (lvl2) ─────────────────────── */
.pm-mega-menu__panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.pm-mega-menu__panel-list li a {
    display: block;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pm-mega-menu__panel-list li a:hover {
    background: #f97316;
    color: #fff;
}

.pm-mega-menu__panel-empty {
    display: flex;
    align-items: center;
    height: 80%;
    color: #c0c8d8;
    font-size: 0.875rem;
    padding: 0 1.25rem;
}

.pm-mega-menu__panel.has-content .pm-mega-menu__panel-empty {
    display: none;
}


.menu-item-has-mega:hover .pm-mega-menu,
.menu-item-has-mega.is-open .pm-mega-menu {
    display: block; /* or visibility: visible; opacity: 1; depending on your setup */
}

.main-menu-two__wrapper:hover li[data-mega="products"].is-open .pm-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scaleY(1) !important;
    pointer-events: auto;
}
.pm-mega-menu::before {
    content: "";
    position: absolute;
    top: -12px;   /* adjust gap size */
    left: 0;
    right: 0;
    height: 12px;
}

li[data-mega="products"].is-open .pm-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}
/* ── Hide on mobile ───────────────────────────── */
@media (max-width: 991px) {
    .pm-mega-menu { display: none !important; }
}
@media (min-width: 992px) {
    .pm-mega-menu { display: block !important; }
}