﻿/* ============ MENÚ PRINCIPAL VERTICAL ============ */

.header-nav-main .dropdown-menu,
.header-nav-main .dropdown-mega-content,
.header-nav-main .dropdown-mega-content .row,
.header-nav-main .dropdown-mega-content .col-sm-4,
.header-nav-main .dropdown-mega-content .col-sm-6,
.header-nav-main .dropdown-mega-content .col-sm-12,
.header-nav-main .sublist,
.header-nav-main dl {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    white-space: normal !important;
    margin: 0 !important;
    padding: 0 !important;
}



    /* Columnas verticales */
    .header-nav-main .dropdown-mega-content .row > div {
        float: none !important;
        width: 100% !important;
    }

    /* Títulos sin negrita */
    .header-nav-main .sublist h5,
    .header-nav-main .sublist dl dt {
        font-weight: normal !important;
        font-size: 14px !important;
        margin: 0.25em 0;
    }

        /* Separador visual entre ítems */
        .header-nav-main .dropdown-menu li:not(:last-child),
        .header-nav-main .sublist dl dt:not(:last-child) {
            border-bottom: 1px solid #ddd;
        }

    /* Aplica fondo oscuro y letras claras a todos los niveles */
    .header-nav-main .dropdown-menu a,
    .main-menu li > a,
    .main-menu .dropdown-submenu > ul > li > a {
        display: block !important;
        padding: 0.5em 1em !important;
        text-decoration: none !important;
        color: white !important;
        font-weight: normal !important;
        background-color: #333333 !important;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        /* Hover rojo con letras blancas */
        .header-nav-main .dropdown-menu a:hover,
        .main-menu li > a:hover,
        .main-menu .dropdown-submenu > ul > li > a:hover {
            background-color: #a31e22 !important;
            color: white !important;
        }

/* ============ MENÚ DEL CARRITO ============ */

#cart .dropdown-menu {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #333;
    color: white;
    min-width: 200px;
    z-index: 9999;
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#cart:hover .dropdown-menu {
    display: block !important;
}

#cart .dropdown-menu li {
    border-bottom: none !important;
}
/* Fondo general del menú y submenús */
.main-menu,
.main-menu li ul {
    background-color: #333333 !important;
}


    /* Enlaces del menú principal y submenús: texto blanco, sin negritas */
    .main-menu li > a,
    .main-menu .dropdown-submenu > ul > li > a {
        color: white !important;
        font-weight: normal !important;
        font-family: inherit;
    }

        /* Hover para ambos niveles */
        .main-menu li > a:hover,
        .main-menu .dropdown-submenu > ul > li > a:hover {
            background-color: #a31e22 !important; /* rojo proporcionado */
            color: white !important;
        }

    /* Opcional: eliminar sombra o borde si existe */
    .main-menu,
    .main-menu li ul {
        box-shadow: none !important;
        border: none !important;
    }

        /* Transición suave para hover */
        .main-menu li > a,
        .main-menu .dropdown-submenu > ul > li > a {
            transition: background-color 0.3s ease, color 0.3s ease;
        }
