/* =============================================
   Header Custom - Liam Vercceli
   Layout centrado: nav-left | LOGO | nav-right | icons
   ============================================= */

/* ── Layout principal ── */
.lv-centered-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    position: relative;
    /* Neutralizar floats heredados */
    float: none !important;
}
.lv-centered-header::after {
    content: '';
    display: table;
    clear: both;
}

/* ── Nav izquierda ── */
.lv-nav-left {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    margin-right: 48px;
    float: none !important;
}

/* ── Logo centrado ── */
.lv-logo-center {
    flex-shrink: 0;
    float: none !important;
    display: flex;
    align-items: center;
}

/* ── Nav derecha ── */
.lv-nav-right {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    margin-left: 48px;
    float: none !important;
}

/* ── Iconos (carrito, usuario, búsqueda) ── */
.lv-header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 24px;
}
.lv-header-icons img {
    height: 22px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.2s;
}
.lv-header-icons img:hover { opacity: 0.65; }
.lv-cart-link {
    position: relative;
    display: flex;
    align-items: center;
}
.lv-cart-link span {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Links del menú (reutiliza estilos de .main-menu) ── */
.lv-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.lv-nav ul li {
    display: inline-block;
    position: relative;
    margin: 0 22px;
}
.lv-nav ul li a {
    color: #1e1e1e;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    line-height: 42px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}
.lv-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 7px;
    width: 100%;
    height: 1px;
    background: #1e1e1e;
    opacity: 0;
    transition: opacity 0.3s;
}
.lv-nav ul li a.active::after,
.lv-nav ul li a:hover::after { opacity: 1; }

/* ── Submenú ── */
.lv-nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 160px;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 9999;
    border-radius: 4px;
}
.lv-nav ul li:hover > ul.sub-menu { display: flex; }
.lv-nav ul li ul.sub-menu li {
    display: block;
    margin: 0;
}
.lv-nav ul li ul.sub-menu li a {
    display: block;
    padding: 8px 20px;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}
.lv-nav ul li ul.sub-menu li a::after { display: none; }
.lv-nav ul li ul.sub-menu li a:hover { color: #111; background: #f8f8f8; }

/* ── Logo link ── */
.logo a.lv-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo a.lv-logo-link img {
    max-height: 58px;
    width: auto;
}
.logo a.lv-logo-link .lv-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ── Ocultar elementos legacy que ya no se usan ── */
.lv-centered-header .main-menu,
.lv-centered-header .header-right { display: none !important; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .lv-nav-left,
    .lv-nav-right { display: none; }
    .lv-centered-header {
        justify-content: space-between;
    }
    .lv-logo-center { flex: 1; justify-content: center; }
}

/* ── Info ticker ── */
.header-info { overflow: hidden; }
