/* =============================================
   Header - Liam Vercceli
   Fila 1: Topbar (gris)  → en topbar.css
   Fila 2: Header → Búsqueda | Logo | Iconos | Nav | Ticker
   ============================================= */

:root {
    --lv-ticker-h: 28px;
    --lv-topbar-h: 38px;
    --lv-main-h: 70px;
    --lv-nav-h: 44px;
    /* topbar + ticker + main + nav — JS puede recalcular --lv-header-offset */
    --lv-header-offset: calc(var(--lv-topbar-h) + var(--lv-ticker-h) + var(--lv-main-h) + var(--lv-nav-h));
}

@media (max-width: 767px) {
    :root { --lv-topbar-h: 30px; }
}

/* ── Estructura principal ─────────────────── */
.lv-header {
    position: fixed;
    top: var(--lv-topbar-h);
    left: 0;
    width: 100%;
    z-index: 9000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: top .3s ease, transform .32s ease, opacity .32s ease;
}
body.body-scrolled .lv-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s ease, opacity .32s ease;
}

/* ── FILA 2: Búsqueda | Logo | Iconos ─────── */
.lv-header__main {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr minmax(120px, 260px);
    align-items: center;
    gap: 20px;
    padding: 5px 40px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}

/* Bloque izquierdo: logo imagen + búsqueda */
.lv-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
    min-width: 0;
}

/* Logo imagen izquierda */
.lv-header-logo-img-link { display: block; flex-shrink: 0; }
.lv-header-logo-img {
    width: 70px;
    /* height: 70px; */
    /* border-radius: 50%; */
    object-fit: cover;
    /* border: 2px solid #e8e8e8; */
    display: block;
    transition: border-color .2s;
}
.lv-header-logo-img-link:hover .lv-header-logo-img { border-color: #c0392b; }

/* Search */
.lv-header__search {
    display: flex !important;
    align-items: stretch;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background: #fafafa;
    justify-self: start;
    flex: 1;
    height: 40px !important;
    max-height: 40px !important;
    min-height: 40px !important;
    align-self: center !important;
    box-sizing: border-box;
}
.lv-header__search-form {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    min-height: 0 !important;
}
.lv-header__search input,
.lv-header__search #lv-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #444;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    height: 100% !important;
    max-height: 100% !important;
    line-height: normal !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    display: block;
    /* Centrado vertical del texto / placeholder */
    padding-top: 2px !important;
    padding-bottom: 0 !important;
}
.lv-header__search input::placeholder {
    color: #aaa;
    opacity: 1;
    line-height: normal;
    position: relative;
    top: 1px;
}
.lv-search-trigger {
    background: none;
    border: none;
    border-left: 1px solid #d8d8d8;
    border-radius: 0;
    padding: 0 14px !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    flex: 0 0 auto;
    line-height: 1 !important;
    box-sizing: border-box;
    transition: background .2s;
}
.lv-search-trigger:hover { background: #f0f0f0; }
.lv-search-trigger img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: .6;
    display: block;
    margin: 0;
    position: relative;
    top: 1px; /* baja un poco la lupa para cuadrar con el texto */
}

/* Logo */
.lv-header__logo {
    flex-shrink: 0;
    justify-self: center;
}
.lv-header__logo .lv-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.lv-header__logo .lv-logo-link img {
    height: 60px;
    width: auto;
    transition: height .3s;
}
.lv-header__logo .lv-logo-text {
    font-family: 'Great Vibes', cursive;
    font-size: 50px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #c0392b;
    text-transform: none;
    line-height: 1.1;
}

/* Iconos */
.lv-header__icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    justify-self: end;
    width: 100%;
    max-width: 260px;
}
.lv-header-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #444;
    min-width: 52px;
    transition: color .2s;
}
.lv-header-action i {
    font-size: 20px;
    line-height: 1;
}
.lv-header-action span {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    white-space: nowrap;
}
.lv-header-action:hover {
    color: #c0392b;
    text-decoration: none;
}
.lv-header-action--icon {
    min-width: auto;
    padding-top: 4px;
}
.lv-header-action--compact {
    flex-direction: row;
    min-width: auto;
    padding: 4px 6px;
}
.lv-header-action--compact i { font-size: 18px; }
.lv-icon-btn {
    height: 22px;
    width: auto;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, transform .2s;
}
.lv-icon-btn:hover { opacity: 1; transform: scale(1.08); }

/* ── Íconos de header (vectoriales FA) ──────── */
.lv-hicon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #f8f8f8;
    color: #333;
    font-size: 17px;
    text-decoration: none;
    position: relative;
    transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.lv-hicon-btn:hover {
    border-color: #c0392b;
    background: rgba(192,57,43,.07);
    color: #c0392b;
    transform: translateY(-1px);
    text-decoration: none;
}
.lv-hicon-btn i { line-height: 1; }

/* Cart link (hereda lv-hicon-btn, solo añade badge) */
.lv-cart-link {
    position: relative;
}
.lv-cart-link img { display: none; }

/* Cart badge */
.lv-cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #c0392b;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Ticker (dentro del header) ───────────── */
.lv-header .header-info,
.lv-header .lv-header-ticker {
    position: relative !important;
    width: 100% !important;
    background: #ffffff !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    top: auto !important;
    left: auto !important;
}
.lv-header .ticker-wrap {
    padding: 5px 0;
    overflow: hidden;
}

/* ── Navegación ───────────────────────────── */
.lv-header__nav {
    background: #c0392b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 44px;
    padding: 0 40px;
    box-sizing: border-box;
}
.lv-header__nav > .lv-cat-menu {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-left: 0;
}
.lv-header__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
}
.lv-header__nav-list > li {
    position: relative;
    pointer-events: auto;
}
.lv-header__nav-list > li > a {
    display: block;
    position: relative;
    padding: 12px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lv-nav-link-color, #ffffff);
    text-decoration: none;
    transition: color .2s, background .2s;
}
.lv-header__nav-list > li > a:hover,
.lv-header__nav-list > li > a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

/* Indicador de posición actual: subrayado animado */
.lv-header__nav-list > li > a::after {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 6px;
    height: 3px;
    border-radius: 3px;
    background: #c0392b8f;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.lv-header__nav-list > li > a:hover::after {
    transform: scaleX(.55);
    opacity: .6;
}
.lv-header__nav-list > li > a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Submenú */
.lv-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    min-width: 180px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 9999;
}
.lv-header__nav-list > li.has-sub:hover .lv-sub-menu,
.lv-sticky-bar__nav ul li.has-sub:hover .lv-sub-menu {
    display: block;
}
.lv-header__nav-list > li.has-sub > a .fa-angle-down {
    transition: transform .2s ease;
}
.lv-header__nav-list > li.has-sub:hover > a .fa-angle-down {
    transform: rotate(180deg);
}
.lv-sub-menu li a {
    display: block;
    padding: 9px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.lv-sub-menu li a:hover { background: #f5f5f5; color: #111; }

/* ── STICKY BAR ───────────────────────────── */
.lv-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9100;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .32s ease, opacity .32s ease;
    pointer-events: none;
}
.lv-sticky-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.lv-sticky-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
}
.lv-sticky-bar__nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Logo sticky */
.lv-sticky-bar__logo {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #111;
    text-decoration: none;
    text-transform: none;
    flex-shrink: 0;
    margin-right: 30px;
}

/* Nav sticky */
.lv-sticky-bar__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.lv-sticky-bar__nav ul li {
    position: relative;
}
.lv-sticky-bar__nav ul li a {
    display: block;
    position: relative;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    text-decoration: none;
    transition: color .2s;
}
.lv-sticky-bar__nav ul li a:hover { color: #111; }
.lv-sticky-bar__nav ul li a.active { color: #c0392b; }

/* Indicador de posición actual (mismo criterio que el nav principal) */
.lv-sticky-bar__nav ul li a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: #c0392b;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.lv-sticky-bar__nav ul li a:hover::after {
    transform: scaleX(.55);
    opacity: .55;
}
.lv-sticky-bar__nav ul li a.active::after {
    transform: scaleX(1);
    opacity: 1;
}
/* Submenús del sticky: ocultos por defecto.
   (La regla `.lv-sticky-bar__nav ul {display:flex}` alcanzaba también al submenú
   anidado y lo dejaba siempre visible → menús solapados al hacer scroll.) */
.lv-sticky-bar__nav .lv-sub-menu { display: none; }
.lv-sticky-bar__nav ul li.has-sub:hover .lv-sub-menu { display: block; }

/* Iconos sticky */
.lv-sticky-bar__icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 30px;
}
.lv-sticky-bar__icons .lv-hicon-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

/* ── Body padding ─────────────────────────── */
body {
    /* Compensa header fijo; --lv-header-offset se ajusta en JS al alto real */
    padding-top: 11rem;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 991px) {
    .lv-header__main {
        grid-template-columns: minmax(160px, 200px) 1fr minmax(100px, 200px);
        padding: 5px 20px;
    }
    .lv-header__search { max-width: 200px; }
    .lv-header__icons  { max-width: 200px; }
    .lv-sticky-bar__inner { padding: 10px 20px; }
}
@media (max-width: 767px) {
    /* Fila principal: título centrado, iconos a la derecha */
    .lv-header__main {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        padding: 10px 16px;
        min-height: 56px;
    }

    /* Ocultar búsqueda, logo imagen y ticker en móvil */
    .lv-header__left,
    .lv-header__search,
    .lv-header .header-info,
    .lv-header .lv-header-ticker {
        display: none !important;
    }

    /* Título de marca centrado en el viewport */
    .lv-header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        justify-self: center;
        z-index: 1;
        pointer-events: auto;
    }
    .lv-header__logo .lv-logo-text {
        font-size: 32px;
        white-space: nowrap;
    }

    /* Iconos encuadrados a la derecha */
    .lv-header__icons {
        position: relative;
        z-index: 2;
        max-width: none;
        width: auto;
        justify-self: end;
        gap: 6px;
        margin-left: auto;
    }
    .lv-header__icons .lv-hicon-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    /* Nav compacta y scrolleable */
    .lv-header__nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 12px;
    }
    .lv-header__nav::-webkit-scrollbar { display: none; }
    .lv-header__nav-list {
        flex-wrap: nowrap;
        min-width: max-content;
        justify-content: center;
        width: 100%;
        position: static;
        pointer-events: auto;
    }
    .lv-header__nav-list > li > a {
        padding: 10px 14px;
        font-size: 11px;
        white-space: nowrap;
    }

    .lv-sticky-bar__nav { display: none; }
    .lv-sticky-bar__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
        font-size: 24px;
    }
    .lv-sticky-bar__inner {
        position: relative;
        justify-content: flex-end;
        padding: 10px 16px;
    }
    .lv-sticky-bar__icons { margin-left: 0; }

    /* En móvil el ticker se oculta; JS ajusta --lv-header-offset al alto real */
    :root {
        --lv-ticker-h: 0px;
        --lv-main-h: 56px;
        --lv-nav-h: 40px;
        --lv-header-offset: calc(var(--lv-topbar-h) + var(--lv-main-h) + var(--lv-nav-h));
    }
}

/* ══════════════════════════════════════════════════════════════
   MENÚ / SUBMENÚS EN MÓVIL Y TABLET (táctil): abrir al tocar
   El :hover no funciona en táctil → JS añade .is-open al tocar.
   El submenú se muestra como panel tipo tarjeta con position:fixed
   (evita el recorte del overflow-x del nav) y mejor diseño.
   ══════════════════════════════════════════════════════════════ */
/* "Categorías" del nav: solo visible en móvil (en escritorio va el mega-menú) */
.lv-nav-cat-mobile { display: none; }

@media (max-width: 991px) {
    .lv-nav-cat-mobile { display: block; }

    /* El nav envuelve en varias filas para que TODOS los ítems (incl. Categorías)
       queden siempre visibles, sin scroll horizontal. */
    .lv-header__nav {
        overflow-x: visible;
        padding: 2px 8px;
    }
    .lv-header__nav-list {
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
        justify-content: center;
        row-gap: 0;
    }

    /* Ítems un poco más compactos */
    .lv-header__nav-list > li > a {
        padding: 9px 12px;
        font-size: 11px;
    }

    .lv-header__nav-list > li.has-sub > a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    /* Bloques de ofertas dentro del submenú de Categorías: acento rojo */
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__promo {
        color: #c0392b;
        font-weight: 700;
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__promo::before {
        opacity: 1;
    }

    /* Acordeón: hijos colapsados por defecto; el caret indica que se despliega */
    .lv-nav-cat-mobile .lv-sub-children {
        list-style: none;
        margin: 0;
        padding: 0;
        display: none;
    }
    .lv-nav-cat-mobile .lv-sub-group.is-expanded > .lv-sub-children {
        display: block;
        animation: lvSubMobileIn 0.18s ease;
    }
    .lv-nav-cat-mobile .lv-sub-caret {
        margin-left: auto;
        font-size: 0.9em;
        opacity: 0.6;
        transition: transform 0.2s ease;
    }
    .lv-nav-cat-mobile .lv-sub-group.is-expanded > a .lv-sub-caret {
        transform: rotate(180deg);
        opacity: 1;
    }
    /* La fila con caret ocupa todo el ancho para alinear la flecha a la derecha */
    .lv-nav-cat-mobile .lv-sub-toggle { width: 100%; }

    /* Sub-items (subcategorías / submódulos): indentados, jerarquía visual */
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__child {
        padding-left: 30px;
        font-size: 13px;
        font-weight: 500;
        color: #64748b;
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__child::before {
        width: 5px;
        height: 5px;
        background: #cbd5e1;
        opacity: 1;
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__child--promo::before {
        background: #e6a6a0;
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__child:hover,
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu .lv-sub-menu__child:active {
        color: #c0392b;
    }
    .lv-header__nav-list > li.has-sub.is-open > a {
        color: #fff;
        background: rgba(255, 255, 255, 0.20);
    }
    .lv-header__nav-list > li.has-sub.is-open > a .fa-angle-down {
        transform: rotate(180deg);
    }

    /* Panel del submenú (posición 'top' la fija el JS) */
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        min-width: 0;
        margin: 0;
        padding: 6px;
        border: none;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
        max-height: 64vh;
        overflow-y: auto;
        z-index: 9999;
        animation: lvSubMobileIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        border-radius: 10px;
        border-bottom: none;
        text-transform: none;
        letter-spacing: 0;
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu li a::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #c0392b;
        flex-shrink: 0;
        opacity: 0.55;
    }
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu li a:hover,
    .lv-header__nav-list > li.has-sub.is-open .lv-sub-menu li a:active {
        background: #fdf3f2;
        color: #c0392b;
    }
}

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

/* ══════════════════════════════════════════════════════════════
   NAV MÓVIL REDISEÑADO (solo ≤991px) — barra "Categorías + ☰"
   y menú off-canvas multinivel. NO afecta escritorio.
   ══════════════════════════════════════════════════════════════ */
.lv-mnav { display: none; }
.lv-drawer { display: none; }

@media (max-width: 991px) {
    /* Ocultar el nav de escritorio en móvil; mostrar la barra compacta */
    .lv-header__nav-list { display: none !important; }
    .lv-header__nav { padding: 0 !important; overflow: visible !important; }

    .lv-mnav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        min-height: 44px;
        padding: 0 16px;
        gap: 12px;
    }
    .lv-mnav__cat {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--lv-nav-link-color, #ffffff);
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 10px 0;
    }
    .lv-mnav__cat i { font-size: 0.85em; opacity: 0.85; }
    .lv-mnav__cat--static { cursor: default; }
    .lv-mnav__burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 34px;
        padding: 6px 8px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .lv-mnav__burger span {
        display: block;
        height: 2.5px;
        width: 100%;
        border-radius: 2px;
        background: var(--lv-nav-link-color, #ffffff);
    }

    .lv-drawer { display: block; }
}

/* ── Estructura del drawer (independiente del breakpoint) ── */
.lv-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    visibility: hidden;
}
.lv-drawer.is-open { visibility: visible; }

.lv-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lv-drawer.is-open .lv-drawer__overlay { opacity: 1; }

.lv-drawer__sheet {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: #ffffff;
    box-shadow: 6px 0 34px rgba(0, 0, 0, 0.28);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lv-drawer.is-open .lv-drawer__sheet { transform: translateX(0); }

.lv-drawer__panels { position: relative; flex: 1; overflow: hidden; }
.lv-drawer__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    pointer-events: none;
}
.lv-drawer__panel.is-active { transform: translateX(0); pointer-events: auto; }
.lv-drawer__panel.is-behind { transform: translateX(-100%); }

.lv-drawer__head {
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.lv-drawer__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
}
.lv-drawer__back {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f4f4f4;
    cursor: pointer;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.lv-drawer__back i { font-size: 15px; }
.lv-drawer__back:hover, .lv-drawer__back:active { color: #c0392b; }

.lv-drawer__list { list-style: none; margin: 0; padding: 6px 0; }
.lv-drawer__row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f6f6f6;
}
.lv-drawer__link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333333;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.lv-drawer__link.is-active { color: #c0392b; }
.lv-drawer__link:hover, .lv-drawer__link:active { color: #c0392b; background: #fdf3f2; }
.lv-drawer__link--sub {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: none;
    color: #475569;
}
.lv-drawer__link--promo { color: #c0392b; }
.lv-drawer__link--all { color: #c0392b; font-weight: 700; }

.lv-drawer__into {
    flex: 0 0 auto;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-left: 1px solid #f2f2f2;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.15s, background 0.15s;
}
.lv-drawer__into:hover, .lv-drawer__into:active { color: #c0392b; background: #fafafa; }
.lv-drawer__into i { font-size: 16px; }

body.lv-drawer-lock { overflow: hidden; }
