/* --- 产品下拉菜单 Mega Menu 样式优化 (最终修复版) --- */

/* 1. 主容器样式 */
.product-cat-dropdown .shadow-box.mega-menu-box {
    min-width: 800px !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    display: flex !important;
    flex-direction: row !important;
    border-top: 3px solid #d11200 !important;
}

/* 2. 左侧菜单区域容器 (li) */
.product-cat-dropdown .shadow-box.mega-menu-box > .mega-menu-left {
    flex: 1;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: #fff;
}

/* 3. 内部菜单列表 (ul) */
.product-cat-dropdown .shadow-box.mega-menu-box > .mega-menu-left > .mega-menu-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr); /* 强制两列显示 */
    gap: 10px 20px;
    padding: 20px !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important; /* 移除可能的默认阴影 */
    position: static !important; /* 防止定位问题 */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 4. 菜单项样式 (li) */
.mega-menu-list > li {
    display: block !important;
    width: auto !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mega-menu-list > li > a {
    display: block !important;
    padding: 10px 15px 10px 25px !important; /* 左侧增加内边距给图标留位 */
    font-size: 15px !important;
    color: #444 !important;
    text-transform: capitalize !important;
    transition: all 0.2s ease;
    border-radius: 4px;
    line-height: 1.4 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    background: transparent !important;
}

/* 默认状态下的小圆点 (使用 FontAwesome 图标替代之前的伪元素) */
.mega-menu-list > li > a::before {
    content: "\f111"; /* FontAwesome 实心圆 */
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6px;
    color: #ccc;
    transition: all 0.2s;
}

/* 悬停状态 */
.mega-menu-list > li:hover > a {
    background-color: #fff0ed !important;
    color: #d11200 !important;
    padding-left: 30px !important; /* 文字右移效果 */
    font-weight: 600 !important;
}

/* 悬停时图标变成右箭头 */
.mega-menu-list > li:hover > a::before {
    content: "\f105"; /* FontAwesome 右箭头 */
    color: #d11200;
    font-size: 14px;
    left: 10px;
}

/* 5. 右侧预览区域容器 (li) */
.product-cat-dropdown .shadow-box.mega-menu-box > .mega-menu-right {
    width: 300px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: #fcfcfc;
    border-left: 1px solid #eee !important;
}

.thumb-preview-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.thumb-preview-area .preview-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    width: 100%;
}

.thumb-preview-area .thumb-box {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}

.thumb-preview-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}