/**
 * ============================================================
 * MEGA MENÚ DE CATEGORÍAS WOOCOMMERCE - HERCOM
 * Sube este archivo como "lc-mega-menu.css" junto al JS,
 * en la carpeta raíz de tu tema activo.
 * ============================================================
 */

.lc-mega-menu {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 20px 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.lc-mega-col {
    min-width: 180px;
    flex: 0 0 auto;
}

.lc-mega-col + .lc-mega-col {
    border-left: 1px solid #e2e2e2;
    padding-left: 28px;
}

.lc-mega-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1a3c8c; /* ajusta a tu color de marca */
    margin-bottom: 12px;
    min-height: 14px;
}

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

.lc-mega-item {
    margin-bottom: 8px;
}

.lc-mega-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.lc-mega-item-name {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lc-mega-item-name:hover {
    color: #1a3c8c;
    text-decoration: underline;
}

.lc-mega-item.is-active > .lc-mega-item-row .lc-mega-item-name {
    color: #1a3c8c;
    font-weight: 600;
    text-decoration: underline;
}

.lc-mega-item-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.lc-mega-item-expand:hover {
    color: #1a3c8c;
    transform: translateX(2px);
}

.lc-mega-item.is-active > .lc-mega-item-row .lc-mega-item-expand {
    color: #1a3c8c;
}

/* Sobreescribe el ancho que Elementor pone inline en el contenedor padre,
   para que el mega-menú no ocupe todo el viewport */
#e-n-menu-content-1272 {
    width: 100% !important;
}

/* Scroll horizontal en móvil si hay muchas columnas abiertas */
@media (max-width: 768px) {
    .lc-mega-menu {
        max-width: 100%;
        padding: 14px 16px;
        gap: 16px;
    }

    .lc-mega-col {
        min-width: 150px;
    }

    .lc-mega-col + .lc-mega-col {
        padding-left: 16px;
    }
}
