.nav-item-line {
    position: static !important; /* Required for full-width mega menu */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-item-line::after {
    display: none !important; /* Hide the white hover line */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid #eee;
    padding: 40px 0;
    margin-top: -1px;
    max-height: 80vh;
    overflow-y: auto;
}

.nav-item-line:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.mega-menu-item {
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover {
    transform: translateY(-5px);
}

.mega-menu-item a {
    text-decoration: none;
    display: block;
}

.mega-menu-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.mega-menu-item:hover img {
    filter: brightness(1.05);
}

.mega-menu-item .product-title {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mega-menu-item .product-price {
    display: block;
    color: #e31e24; /* Red accent */
    font-weight: 600;
    font-size: 14px;
}

/* Row adjustment */
.mega-menu .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* More menu dropdown width */
.dropdown-menu-init-red .dropdown-menu {
    min-width: 250px !important;
}

.dropdown-menu-init-red .dropdown-item-shu {
    white-space: nowrap !important;
    padding-right: 20px !important;
}

/* Main nav text transform */
.navbar-nav-line .nav-link {
    text-transform: uppercase !important;
    font-weight: 500 !important;
}

/* More icon and Search icon spacing */
.dropdown-menu-init-red {
    margin-left: 10px !important;
}

.search-icon {
    margin-left: 15px !important;
}

.mega-menu-group-title {
    width: 100%;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin: 20px 0 15px 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e31e24;
    text-transform: uppercase;
    text-align: left;
}

.product-thumb-container {
    width: 100%;
    height: 150px; /* Fixed height for uniform thumbnails */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #f8f8f8;
}

.product-thumb-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 0 !important;
}
