/* Mega Menu Styles */

/* Menu item with mega menu */
.menu-item-mega {
    position: static !important;
}

.menu-item-mega > a {
    position: relative;
}

/* Mega menu container */
.mega-menu-product {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #e8e8e8;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Show mega menu on hover */
.menu-item-mega:hover .mega-menu-product {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Container */
.mega-menu-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid layout */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Each item */
.mega-menu-item {
    text-align: center;
}

.mega-menu-item a {
    display: block;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mega-menu-item a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Image container */
.mega-menu-img {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mega-menu-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mega-menu-item a:hover .mega-menu-img img {
    transform: scale(1.05);
}

/* Category name */
.mega-menu-name {
    font-size: 14px;
    font-weight: 500;
    color: #e67e22;
    text-transform: uppercase;
    line-height: 1.4;
	height: 37px;
}

.mega-menu-item a:hover .mega-menu-name {
    color: #e67e22;
}

/* Responsive */
@media (max-width: 1199px) {
    .mega-menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .mega-menu-product {
        display: none;
    }
}

@media (max-width: 767px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mega-menu-img {
        height: 80px;
    }

    .mega-menu-name {
        font-size: 11px;
    }
}
