/* NRT Mega Menu - Custom BrandsForLess Style */
/* This file will NOT be overwritten by the module */

/* Force mega menu to be full width */
.wrapper-menu-horizontal .nrt_mega_menu .menu_sub.style_wide {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-top: 3px solid #ffd700 !important;
}

/* Column layout - 5 columns */
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .m_column_row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
    gap: 0 !important;
}

/* Each column - 20% width for 5 columns */
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_column {
    flex: 0 0 20% !important;
    min-width: 0 !important;
    padding: 0 15px !important;
    max-width: 20% !important;
    box-sizing: border-box !important;
}

/* Block styling */
.wrapper-menu-horizontal .nrt_mega_block,
.menu_sub.style_wide .nrt_mega_block,
.sub-menu-dropdown .nrt_mega_block {
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
}

/* Multiple blocks in same column - add separator */
.wrapper-menu-horizontal .nrt_mega_block + .nrt_mega_block,
.menu_sub.style_wide .nrt_mega_block + .nrt_mega_block {
    border-top: 1px solid #f0f0f0 !important;
    padding-top: 25px !important;
    margin-top: 25px !important;
}

/* Block titles - Bold, Uppercase, Yellow underline */
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_block_title,
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_block .nrt_mega_block_title,
.menu_sub.style_wide .nrt_mega_block_title,
.sub-menu-dropdown .nrt_mega_block_title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #ffd700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_block_title a,
.menu_sub.style_wide .nrt_mega_block_title a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_block_title a:hover,
.menu_sub.style_wide .nrt_mega_block_title a:hover {
    color: #ffd700 !important;
}

/* Category links (depth 1) */
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .element_a_depth_1,
.menu_sub.style_wide .element_a_depth_1 {
    display: block !important;
    padding: 6px 0 !important;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.wrapper-menu-horizontal .nrt_mega_menu .style_wide .element_a_depth_1:hover,
.menu_sub.style_wide .element_a_depth_1:hover {
    color: #000 !important;
    padding-left: 5px !important;
    background: none !important;
}

/* Sub-category links (depth 2) */
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .element_a_depth_2,
.menu_sub.style_wide .element_a_depth_2,
.menu_sub.style_wide a.element_a_depth_2 {
    display: block !important;
    padding: 6px 0 !important;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.wrapper-menu-horizontal .nrt_mega_menu .style_wide .element_a_depth_2:hover,
.menu_sub.style_wide .element_a_depth_2:hover,
.menu_sub.style_wide a.element_a_depth_2:hover {
    color: #000 !important;
    padding-left: 5px !important;
    background: none !important;
}

/* Remove list styling */
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .element_ul_depth_1,
.wrapper-menu-horizontal .nrt_mega_menu .style_wide .element_ul_depth_2,
.menu_sub.style_wide .element_ul_depth_1,
.menu_sub.style_wide .element_ul_depth_2,
.menu_sub.style_wide ul.element_ul_depth_2 {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu_sub.style_wide .element_li_depth_1,
.menu_sub.style_wide .element_li_depth_2,
.wrapper-menu-horizontal .element_li_depth_2 {
    margin-bottom: 6px !important;
    list-style: none !important;
}

/* Responsive - Maintain 5 columns on desktop */
@media (min-width: 1200px) {
    .wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_column {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_column {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_column {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
}

@media (max-width: 767px) {
    .wrapper-menu-horizontal .nrt_mega_menu .style_wide .m_column_row {
        flex-wrap: wrap !important;
    }
    
    .wrapper-menu-horizontal .nrt_mega_menu .style_wide .nrt_mega_column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
}

