/* ==========================================================
   LANDIMOTOS — NAVBAR HALLOWEEN 2026
   Capa visual solamente.
   No altera funcionalidades.
   ========================================================== */

.lm-header--v2 {
    --lm-halloween-orange: #fe5000;
    --lm-halloween-dark: #0b0e10;

    position: relative !important;

    background:
        radial-gradient(
            circle at 85% -20%,
            rgba(254,80,0,.11),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #101315 0%,
            #0b0e10 100%
        ) !important;

    border-bottom:
        1px solid rgba(254,80,0,.55) !important;

    box-shadow:
        0 7px 24px rgba(0,0,0,.30),
        0 1px 0 rgba(254,80,0,.11) !important;

    overflow: visible !important;
}


/* ----------------------------------------------------------
   MURCIÉLAGOS — AMBIENTE SUTIL
   ---------------------------------------------------------- */

.lm-header--v2::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:
        url("/wp-content/themes/woodmart-child/assets/img/halloween/bat.svg"),
        url("/wp-content/themes/woodmart-child/assets/img/halloween/bat.svg");

    background-repeat:
        no-repeat,
        no-repeat;

    background-size:
        28px auto,
        18px auto;

    background-position:
        21% 9px,
        86% 17px;

    opacity: .44;
}


/* Todo el contenido por encima del ambiente */
.lm-header--v2 > * {
    position: relative;
    z-index: 1;
}


/* ----------------------------------------------------------
   SEARCH
   ---------------------------------------------------------- */

.lm-header--v2 form {
    transition:
        border-color .22s ease,
        box-shadow .22s ease !important;
}

.lm-header--v2 form:focus-within {
    border-color:
        rgba(254,80,0,.72) !important;

    box-shadow:
        0 0 0 1px rgba(254,80,0,.16),
        0 0 20px rgba(254,80,0,.08) !important;
}


/* Botones naranja ligeramente más luminosos */
.lm-header--v2 button[type="submit"],
.lm-header--v2 .searchsubmit {
    box-shadow:
        0 0 17px rgba(254,80,0,.10) !important;

    transition:
        box-shadow .2s ease,
        transform .2s ease !important;
}

.lm-header--v2 button[type="submit"]:hover,
.lm-header--v2 .searchsubmit:hover {
    box-shadow:
        0 0 22px rgba(254,80,0,.25) !important;
}


/* ----------------------------------------------------------
   CARRITO — MINI DETALLE HALLOWEEN
   ---------------------------------------------------------- */

.lm-header--v2 [data-lm-cart-toggle] {
    position: relative !important;
}

.lm-header--v2 [data-lm-cart-toggle]::after {
    content: "";

    position: absolute;

    width: 17px;
    height: 17px;

    right: -5px;
    bottom: -5px;

    background:
        url("/wp-content/themes/woodmart-child/assets/img/halloween/pumpkin.svg")
        center / contain no-repeat;

    pointer-events: none;

    filter:
        drop-shadow(0 2px 5px rgba(0,0,0,.45));

    z-index: 5;
}


/* ----------------------------------------------------------
   DESKTOP
   ---------------------------------------------------------- */

@media (min-width: 1025px) {

    .lm-header--v2 .lm-v2-desktop {
        position: relative;
    }

    .lm-header--v2 .lm-v2-desktop::after {
        content: "";

        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        height: 1px;

        pointer-events: none;

        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(254,80,0,.75),
                rgba(254,80,0,.25),
                transparent
            );
    }
}


/* ----------------------------------------------------------
   TABLET + MOBILE
   ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .lm-header--v2::before {
        background-size:
            22px auto,
            15px auto;

        background-position:
            20px 15px,
            calc(100% - 24px) 92px;

        opacity: .34;
    }

    .lm-header--v2 .lm-v2-responsive {
        position: relative !important;

        background:
            linear-gradient(
                180deg,
                rgba(14,17,19,.98),
                rgba(8,11,13,.99)
            ) !important;
    }

    .lm-header--v2 .lm-v2-mobile-search {
        position: relative !important;

        border-bottom:
            1px solid rgba(254,80,0,.82) !important;
    }

    .lm-header--v2 .lm-v2-mobile-logo {
        position: relative !important;
    }

    .lm-header--v2 .lm-v2-mobile-logo::after {
        content: "";

        position: absolute;

        width: 20px;
        height: 10px;

        top: -6px;
        right: -15px;

        background:
            url("/wp-content/themes/woodmart-child/assets/img/halloween/bat.svg")
            center / contain no-repeat;

        opacity: .72;

        pointer-events: none;
    }
}


/* ----------------------------------------------------------
   MUY PEQUEÑO — NO RECARGAR
   ---------------------------------------------------------- */

@media (max-width: 420px) {

    .lm-header--v2::before {
        background-image:
            url("/wp-content/themes/woodmart-child/assets/img/halloween/bat.svg");

        background-size: 17px auto;

        background-position:
            calc(100% - 24px) 93px;

        opacity: .29;
    }
}
