.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: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 30px 0 50px 0;
    margin-top: -1px;
    max-height: 85vh;
    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: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px;
    border-radius: 12px;
}

.mega-menu-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.mega-menu-item a {
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.mega-menu-item .product-info-overlay {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px 5px;
    border-radius: 0 0 12px 12px;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.mega-menu-item:hover .product-info-overlay {
    background: rgba(255, 255, 255, 0.95);
    padding-top: 15px;
    padding-bottom: 15px;
}

.mega-menu-item .product-title {
    display: block;
    font-weight: 800;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.mega-menu-item:hover .product-title {
    color: #000;
}

.mega-menu-item .product-price {
    display: inline-block;
    color: #e31e24;
    font-weight: 800;
    font-size: 15px;
    background: rgba(227, 30, 36, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .product-price {
    background: #e31e24;
    color: #fff;
    transform: scale(1.05);
}

/* 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: 180px; /* Increased height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0px; /* Removed margin as it's now inside the card */
    background: transparent; /* Clean background */
    transition: transform 0.5s ease;
}

.mega-menu-item:hover .product-thumb-container {
    transform: scale(1.08);
}

.product-thumb-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: filter 0.3s ease;
}
