.mega-menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
}

.mega-menu-wrapper.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
}

.menu-column-links {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-category-item {
    border: 1px solid #ccc;
    transition: all 0.3s;
    cursor: pointer; /* Thêm con trỏ tay để biết click được */
}

/* Chỉ thẻ a bên trong mới nhận click chuyển trang */
.menu-category-item a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.menu-category-item.active {
    background-color: #4b1a1a;
    border-color: #4b1a1a;
}

.menu-category-item.active a {
    color: #fff;
}

.menu-category-item:hover {
    border-color: #4b1a1a;
}

.menu-category-item:hover a {
    color: #4b1a1a;
}

/* Khi item đang active mà hover vào thì giữ màu trắng */
.menu-category-item.active:hover a {
    color: #fff;
}



.menu-column-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

/* Class mới cho ảnh để làm hiệu ứng fade */
.mega-img-display {
    height: 280px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    opacity: 1;
}

/* Class fade-out được JS thêm vào khi đang đổi ảnh */
.mega-img-display.fade-out {
    opacity: 0;
    transform: translateX(10px); /* Hiệu ứng trượt nhẹ */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .mega-menu-wrapper {
        display: none !important;
    }
}
