/* ========================================
   Mega Menu — Products
   ======================================== */

.mega-menu-dropdown {
    position: fixed;
    z-index: 999999;
    width: 100%;
    max-width: 100%;
    background: #fff;
    box-shadow: 1px 6px 6px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    left: 0 !important;
    right: 0;
}

.mega-menu-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
    align-items: center;
}

.mega-menu-empty {
    margin: 0 auto;
    padding: 24px;
    color: #666;
    font-size: 14px;
}

/* --- 每个父分类独立区块 --- */
.mega-cat-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 36px;
}

.mega-cat-section + .mega-cat-section {
    border-left: 1px solid #eee;
}

.mega-cat-section:first-child {
    padding-left: 0;
}

.mega-cat-section:last-child {
    padding-right: 0;
}

.mega-cat-item-warp{
    display: flex;
    justify-content: space-between;
}

/* --- 左侧：子分类列表 --- */
.mega-cat-list {
    flex: 1;
    min-width: 0;
}

.mega-cat-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 0.2px;
}

.mega-subcat-item {
    display: block;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 4px 0;
    font-family: 'Noto Sans', sans-serif;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-subcat-item:hover {
    color: #ff6a00;
}

/* --- 右侧：特色图展示区 --- */
.mega-cat-thumb {
    position: relative;
    width: 250px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.mega-cat-thumb .mega-cat-thumb-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 0;
    pointer-events: none;
}

.mega-cat-thumb .mega-cat-thumb-img.is-active {
    opacity: 1;
    z-index: 1;
}

/* 隐藏 Elementor 原始子菜单 */
.mega-menu-active-trigger > .sub-menu,
.mega-menu-active-trigger > .elementor-nav-menu__container {
    display: none !important;
}

/* 移动端不显示 mega menu */
@media (max-width: 1024px) {
    .mega-menu-dropdown {
        display: none !important;
    }
}

/* 小屏适配 */
@media (max-width: 1200px) and (min-width: 1025px) {
    .mega-menu-inner {
        padding: 24px 20px;
    }
    .mega-cat-section {
        gap: 16px;
        padding: 0 20px;
    }
    .mega-cat-thumb {
        width: 150px;
        height: 150px;
    }
}
