.mega-menu-container {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1001;
}

.menu-header {
    background: #000;
    color: #fff;
    padding: 8px 15px;
    font-weight: 400;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.menu-header:hover {
    background-color: #333;
    color: #ad0000;
}

.hamburger-icon {
    margin-right: 10px;
    font-size: 18px;
}

.menu-title {
    margin: 0 10px;
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-header:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    position: absolute;
    top: 100%;
    left: 0;
}

.category-list.expanded {
    max-height: 500px;
    overflow: visible;
}

.category-item {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-item:hover {
    background-color: #ad0000;
    color: #fff;
}

.category-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.category-icon-img {
    width: 16px;
    height: 16px;
    filter: grayscale(100%) invert(100%);
}

.default-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: #000;
}

.category-name {
    flex-grow: 1;
    color: #000;
    font-size: 14px;
}

.category-item:hover .category-icon-img {
    filter: grayscale(0%) invert(0%);
}

.category-item:hover .default-icon {
    background: #fff;
}

/* Ajuste para evitar superposición con contenido (opcional, ajusta según diseño) */
body {
    margin-top: 0; /* Quité el margin-top ya que no usamos sticky */
}