/* Mega Menu Styles */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown .mega-menu {
    width: 100%;
    padding: 30px 0 25px;
    margin-top: 10px;
    border: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: white;
    left: 0;
    right: 0;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: block;
    border-top: 3px solid hsl(var(--base));
}

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

/* Add a subtle gradient overlay on hover */
.mega-dropdown .mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--base)), hsl(var(--base) / 0.5), transparent);
}

.mega-menu-section {
    padding: 5px 20px 15px;
    position: relative;
}

/* Add a vertical divider between columns */
.mega-menu-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background: linear-gradient(180deg, transparent, hsl(var(--base) / 0.2), transparent);
}

.mega-menu-header {
    color: hsl(var(--base));
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid hsl(var(--base) / 0.15);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}

.mega-menu-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: hsl(var(--base));
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-links li {
    margin-bottom: 15px;
}

.mega-menu-links li:last-child {
    margin-bottom: 0;
}

.mega-menu-links li a {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 3px 0;
}

/* Add a subtle hover effect */
.mega-menu-links li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: hsl(var(--base));
    transition: all 0.3s ease;
}

.mega-menu-links li a:hover {
    color: hsl(var(--base));
    transform: translateX(20px);
}

.mega-menu-links li a:hover::before {
    opacity: 1;
    left: -5px;
}

/* Add some visual interest with icons (optional) */
.mega-menu-links li a i {
    margin-right: 8px;
    color: hsl(var(--base) / 0.7);
    font-size: 14px;
    width: 18px;
}

/* Feature box for special offers */
.mega-menu-feature {
    background: hsl(var(--base) / 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 3px solid hsl(var(--base));
}

.mega-menu-feature h6 {
    color: hsl(var(--base));
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mega-menu-feature p {
    color: #2c3e50;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.mega-menu-feature a {
    color: hsl(var(--base));
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mega-menu-feature a:hover {
    text-decoration: underline;
}

/* Badge for new items */
.mega-menu-badge {
    background: hsl(var(--base));
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile styles */
@media (max-width: 991px) {
    .mega-dropdown {
        position: relative !important;
    }
    
    .mega-dropdown .dropdown-toggle {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 0;
    }
    
    .mega-dropdown .dropdown-toggle::after {
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        border: none;
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 16px;
        color: hsl(var(--base));
    }
    
    .mega-dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .mega-dropdown .mega-menu {
        position: relative !important;
        width: 100%;
        padding: 15px 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f8f9fa;
        margin: 5px 0 15px;
        transition: none;
        border-top: 2px solid hsl(var(--base) / 0.3);
        border-radius: 10px;
    }
    
    .mega-dropdown.show .mega-menu {
        display: block;
    }
    
    .mega-menu .container {
        padding: 0 20px;
    }
    
    .mega-menu .row {
        margin: 0;
    }
    
    .mega-menu .col-lg-4 {
        padding: 0;
        margin-bottom: 25px;
    }
    
    .mega-menu .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    .mega-menu-section {
        padding: 0;
    }
    
    .mega-menu-section::after {
        display: none;
    }
    
    .mega-menu-header {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .mega-menu-links li {
        margin-bottom: 12px;
    }
    
    .mega-menu-links li a {
        font-size: 14px;
        padding: 5px 0;
        display: block;
    }
    
    .mega-menu-links li a::before {
        display: none;
    }
    
    .mega-menu-links li a:hover {
        transform: translateX(10px);
    }
    
    .mega-menu-feature {
        margin-top: 15px;
        padding: 12px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .mega-menu .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .mega-menu .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 10px;
    }
    
    .mega-menu .col-lg-4:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 575px) {
    .mega-menu-header {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .mega-menu-links li {
        margin-bottom: 10px;
    }
    
    .mega-menu-links li a {
        font-size: 13px;
    }
    
    .mega-menu-feature h6 {
        font-size: 13px;
    }
    
    .mega-menu-feature p {
        font-size: 12px;
    }
}

/* Desktop hover effect with smooth animation */
@media (min-width: 992px) {
    .mega-dropdown .mega-menu {
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
    }
    
    .mega-menu-section {
        transition: transform 0.3s ease;
    }
    
    .mega-menu-section:hover {
        transform: translateY(-5px);
    }
    
    .mega-menu-header {
        transition: color 0.3s ease;
    }
    
    .mega-menu-section:hover .mega-menu-header {
        color: hsl(var(--base) / 0.9);
    }
}