/* =========================================================================
   MOSHI STORE CR - SISTEMA DE MENÚ HOLOGRÁFICO
   Versión Consolidada - PC + Mobile + Submenús por categoría
   ========================================================================= */

:root {
    --neon-cyan: #00FFFF;
    --neon-pink: #ff0055;
    --neon-green: #39FF14;
    --bg-dark: #000000;
    --bg-dark-alt: #0a1a1a;
}

/* 1. TRIGGER (Botón lateral izquierdo) */
.moshi-trigger {
    position: fixed !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    width: 42px !important;
    height: 150px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background: var(--bg-dark) !important;
    border: 1.5px solid var(--neon-cyan);
    border-left: none;
    border-radius: 0 10px 10px 0;
    box-shadow: 3px 0 15px rgba(0, 255, 255, 0.2) !important;
    padding-top: 22px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.moshi-trigger:hover {
    width: 50px !important;
    box-shadow: 5px 0 25px rgba(0, 255, 255, 0.5) !important;
}

.moshi-trigger span {
    width: 8px !important;
    height: 8px !important;
    background: var(--neon-cyan) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 12px var(--neon-cyan) !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

.moshi-trigger::before {
    content: "";
    position: absolute;
    top: 13px;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--neon-cyan);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: coreRotate 3s linear infinite;
    z-index: 1;
}

.moshi-trigger::after {
    content: "M\A E\A N\A U" !important;
    white-space: pre !important;
    display: block !important;
    font-family: 'Poppins', sans-serif, Arial !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    color: var(--neon-cyan) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    margin-top: 22px !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8), 0 0 10px rgba(0, 255, 255, 0.4) !important;
    opacity: 0.9;
    transition: 0.3s !important;
}

.moshi-trigger:hover::after {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan) !important;
}

@keyframes coreRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 2. OVERLAY */
.moshi-overlay {
    position: fixed !important;
    top: 0;
    left: -110% !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--bg-dark) radial-gradient(circle at center, var(--bg-dark-alt) 0%, var(--bg-dark) 100%) !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    transition: 0.8s cubic-bezier(0.8, 0, 0.2, 1) !important;
    perspective: 1000px;
    overflow: hidden;
}

.moshi-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 1;
}

.moshi-overlay.is-active {
    left: 0 !important;
}

.moshi-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-50%);
    animation: gridMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes gridMove {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* 3. NAVEGACIÓN PRINCIPAL */
.moshi-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transform: none !important;
    z-index: 2;
}

.moshi-nav a {
    color: #fff !important;
    font-size: 50px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    margin: 10px 0 !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    font-family: 'Poppins', sans-serif !important;
    position: relative;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-shadow: 2px 2px 0px var(--neon-pink), -2px -2px 0px var(--neon-cyan) !important;
    opacity: 0.8;
}

.moshi-nav a:hover {
    opacity: 1 !important;
    transform: scale(1.1) translateX(20px) !important;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px var(--neon-cyan), 5px 0px 0px var(--neon-pink) !important;
    letter-spacing: 12px !important;
}

.moshi-nav a::before {
    content: "▶";
    position: absolute;
    left: -40px;
    font-size: 25px;
    color: var(--neon-cyan);
    opacity: 0;
    transition: 0.3s;
}

.moshi-nav a:hover::before {
    opacity: 1;
    left: -50px;
}

.moshi-nav a:hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
    animation: lineLoad 0.3s ease forwards;
}

@keyframes lineLoad {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

/* 4. BOTÓN CERRAR */
.moshi-close {
    position: absolute !important;
    top: 40px !important;
    right: 50px !important;
    color: var(--neon-pink) !important;
    font-size: 40px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    text-shadow: 0 0 15px var(--neon-pink);
    background: transparent !important;
    border: none !important;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 10;
}

.moshi-close:hover {
    transform: rotate(90deg) scale(1.2) !important;
    color: #ffffff !important;
    text-shadow: 0 0 25px var(--neon-pink), 0 0 5px #fff !important;
}

/* 5. VISTAS (pantallas intercambiables) */
.menu-view {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-view.is-active {
    display: flex !important;
}

.full-vitrina-wrapper {
    width: 95%;
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.vitrina-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.vitrina-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    margin: 0;
}

.scroll-container {
    max-height: 75vh;
    overflow-y: auto;
    width: 100%;
    padding-right: 15px;
}

.scroll-container::-webkit-scrollbar {
    width: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
}

.grid-animes-full {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 35px;
    padding: 40px;
    width: 95%;
    max-width: 1500px;
}

/* Tarjetas: diseño por defecto (resto de categorías) */
.anime-box-full {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 12px;
    overflow: hidden;
}

/* Solo Figuras en PC: forma SD original (misma altura que el resto de categorías) */
#view-figuras-full .anime-box-full {
    height: 200px;
    border-radius: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 88% 100%, 0 100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
#view-figuras-full .anime-box-full:active {
    transform: scale(0.96);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    border-color: var(--neon-cyan);
}

/* Otras categorías (Joyería, Tazas, etc.): tarjetas con esquinas redondeadas */
.moshi-view-submenu:not(#view-figuras-full) .anime-box-full {
    border-radius: 12px;
    clip-path: none;
}

.anime-box-full::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.3;
}

.anime-box-full::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    animation: sweepLight 7s infinite;
}

@keyframes sweepLight {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.overlay-oscura {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to top, rgba(0, 8, 8, 0.95) 15%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.box-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    text-align: left;
}

.anime-name {
    color: #fff;
    font-weight: 900;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    display: block;
    margin-bottom: 4px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.count-badge {
    color: var(--neon-cyan);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    opacity: 0.8;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 8px;
}

.anime-box-full:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.anime-box-full:hover .anime-name {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    transform: translateX(8px);
}

.anime-box-full {
    animation: signalFlicker 8s infinite alternate;
}

@keyframes signalFlicker {
    0%, 95%, 98% { opacity: 1; }
    96%, 99% { opacity: 0.97; }
}

#btn-volver-menu,
.moshi-btn-volver {
    background: transparent !important;
    border: 1px solid rgba(0, 255, 255, 0.5) !important;
    color: var(--neon-cyan) !important;
    padding: 12px 30px;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
    clip-path: polygon(15% 0, 100% 0, 100% 70%, 85% 100%, 0 100%, 0 30%);
    outline: none !important;
}

#btn-volver-menu:hover,
.moshi-btn-volver:hover {
    background: var(--neon-cyan) !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px var(--neon-cyan);
    border-color: var(--neon-cyan) !important;
}

.moshi-v-exit {
    pointer-events: none;
    animation: simpleSlideOut 0.3s forwards ease-in;
}

.moshi-v-enter {
    animation: simpleSlideIn 0.4s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes simpleSlideOut {
    0% { opacity: 1; transform: translateX(0); filter: blur(0px); }
    100% { opacity: 0; transform: translateX(-30px); filter: blur(10px); }
}

@keyframes simpleSlideIn {
    0% { opacity: 0; transform: translateX(40px); filter: blur(5px); }
    100% { opacity: 1; transform: translateX(0); filter: blur(0px); }
}

.menu-view.is-active .anime-box-full {
    animation: simpleFadeUp 0.5s backwards;
}

.anime-box-full:nth-child(n) {
    animation-delay: calc(var(--i, 1) * 0.04s);
}

@keyframes simpleFadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MÓVIL */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .moshi-overlay {
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 0 !important;
        padding-top: 0 !important;
        left: -100% !important;
        background: var(--bg-dark) !important;
        background-image: linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
        background-size: 25px 25px;
    }

    .moshi-overlay .menu-view.is-active {
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 0 !important;
        overflow-y: auto;
    }

    .menu-header {
        width: 100%;
        flex-shrink: 0 !important;
        height: 70px;
        min-height: 70px;
        padding: 0 20px;
        margin: 0 !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 255, 255, 0.07);
        border-bottom: 2px solid rgba(0, 255, 255, 0.2);
        box-sizing: border-box;
    }

    .system-status { display: flex; gap: 6px; align-items: center; font-family: monospace; font-size: 10px; letter-spacing: 1px; }
    .st-label { color: #b0b0b0; }
    .st-dot { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); font-size: 8px; }
    .st-live { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }

    .menu-header.moshi-cyber-header {
        border-bottom: 1px solid rgba(0, 255, 255, 0.25);
        box-shadow: 0 1px 0 rgba(0, 255, 255, 0.08);
    }

    .btn-cerrar-menu.moshi-cyber-close,
    .btn-cerrar-vitrina {
        position: relative;
        background: rgba(255, 0, 85, 0.2) !important;
        border: 3px solid var(--neon-pink) !important;
        color: #fff !important;
        width: 48px !important;
        height: 44px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        border-radius: 0 !important;
        clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
        box-shadow: 0 0 18px rgba(255, 0, 85, 0.5), inset 0 0 20px rgba(255, 0, 85, 0.08);
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
        font-size: 26px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        padding: 0 !important;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    .btn-cerrar-menu.moshi-cyber-close:hover,
    .btn-cerrar-vitrina:hover {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(255, 0, 85, 0.7), 0 0 40px rgba(255, 0, 85, 0.25);
    }

    .btn-cerrar-menu.moshi-cyber-close:active,
    .btn-cerrar-vitrina:active {
        background: rgba(255, 0, 85, 0.5) !important;
        transform: scale(0.95);
    }

    .menu-title-mobile {
        margin-top: 24px !important;
        text-align: center;
        font-size: 28px !important;
        letter-spacing: 6px;
        color: #fff;
        font-family: 'Poppins', sans-serif;
        font-weight: 900;
        text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px rgba(0, 255, 255, 0.4);
        margin-bottom: 28px;
    }

    .moshi-nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 90%;
        max-width: 450px;
        padding-bottom: 100px;
    }

    .nav-item-mobile {
        background: rgba(0, 20, 20, 0.85);
        border: 1px solid rgba(0, 255, 255, 0.5);
        padding: 24px 22px;
        font-size: 20px;
        font-weight: 700;
        text-align: left;
        color: #FFF;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
        overflow: hidden;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.12);
        font-family: 'Poppins', sans-serif;
        text-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
    }

    .nav-item-mobile:active {
        background: var(--neon-cyan);
        color: var(--bg-dark);
        transform: scale(0.97);
        box-shadow: 0 0 40px var(--neon-cyan);
        border-color: var(--neon-cyan);
    }

    .nav-item-mobile::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
        opacity: 0.2;
        transition: opacity 0.3s ease;
    }

    .moshi-vitrina-topbar {
        flex-shrink: 0;
        margin: 0 !important;
    }

    .vitrina-header-new {
        width: 100%;
        padding: 0 20px 14px !important;
        margin-top: 12px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #btn-volver-menu-mob,
    .moshi-btn-volver-mob {
        background: transparent !important;
        border: 1px solid var(--neon-cyan) !important;
        color: var(--neon-cyan) !important;
        padding: 6px 14px !important;
        font-size: 10px !important;
        font-family: monospace !important;
        border-radius: 2px !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        cursor: pointer;
    }

    .vitrina-title-container {
        border-left: 3px solid var(--neon-cyan);
        padding-left: 10px;
    }

    .title-sub {
        display: block;
        color: var(--neon-cyan);
        font-size: 10px;
        font-family: monospace;
        letter-spacing: 3px;
        margin-bottom: -5px;
    }

    .title-main {
        color: #FFF;
        font-size: 24px;
        font-weight: 900;
        margin: 0;
        letter-spacing: 2px;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
        font-family: 'Poppins', sans-serif;
    }

    .moshi-view-submenu {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .grid-animes-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
        padding: 16px 20px 24px !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .anime-box-full {
        height: 150px !important;
        border: 1px solid rgba(0, 255, 255, 0.4) !important;
        animation: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.08);
    }
    /* Solo Figuras en móvil: forma SD ligeramente más ancha que alta, 2 columnas */
    #view-figuras-full .anime-box-full {
        height: 145px !important;
        border-radius: 10px !important;
        clip-path: polygon(0 0, 100% 0, 100% 82%, 88% 100%, 0 100%) !important;
    }
    #view-figuras-full .anime-box-full:active {
        transform: scale(0.96) !important;
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.35) !important;
    }
    /* Otras categorías en móvil: esquinas redondeadas */
    .moshi-view-submenu:not(#view-figuras-full) .anime-box-full {
        border-radius: 12px !important;
        clip-path: none !important;
    }

    .anime-box-full::after { opacity: 0.15 !important; }
    .overlay-oscura {
        height: 60% !important;
        background: linear-gradient(to top, rgba(0, 8, 8, 0.95) 30%, rgba(0, 0, 0, 0) 100%) !important;
    }
    .box-content { padding: 10px !important; }
    .anime-name {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        line-height: 1.2 !important;
        margin-bottom: 3px !important;
    }
    .count-badge { font-size: 9px !important; opacity: 0.7 !important; }
    .anime-box-full::before { display: none !important; }
    .anime-box-full:active {
        transform: scale(0.97);
        border-color: var(--neon-cyan) !important;
    }

    /* Barra inferior: pegada abajo (menú tipo app), mismo diseño */
    .moshi-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 68px;
        background: rgba(0, 10, 10, 0.95);
        backdrop-filter: blur(12px);
        border: none;
        border-top: 1px solid rgba(0, 255, 255, 0.35);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.06);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        overflow: visible;
    }

    .mob-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-family: 'Courier New', monospace;
        flex: 1;
        border: none;
        background: none;
        cursor: pointer;
        padding: 6px 4px;
        transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.15s ease;
    }
    .mob-item:hover, .mob-item:focus { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(0, 255, 255, 0.6); }
    .mob-item:active {
        transform: scale(0.92);
    }
    .mob-item:active .mob-icon-hud {
        box-shadow: 0 0 22px rgba(0, 255, 255, 0.5);
    }
    .mob-item:first-child { align-items: center; }
    .mob-item:last-child { align-items: center; }

    /* Iconos tipo HUD sci-fi: marco con borde y glow */
    .mob-icon-hud {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
        border: 1px solid rgba(0, 255, 255, 0.5);
        border-radius: 8px;
        background: rgba(0, 255, 255, 0.04);
        box-shadow: 0 0 12px rgba(0, 255, 255, 0.15), inset 0 0 12px rgba(0, 255, 255, 0.03);
        transition: all 0.25s ease;
    }
    .mob-item:hover .mob-icon-hud, .mob-item:focus .mob-icon-hud {
        border-color: var(--neon-cyan);
        box-shadow: 0 0 18px rgba(0, 255, 255, 0.4), inset 0 0 14px rgba(0, 255, 255, 0.06);
    }
    .mob-icon-hud .mob-icon {
        font-size: 20px;
        filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.4));
    }
    .mob-icon-hud .mob-icon-svg {
        width: 22px;
        height: 22px;
        color: var(--neon-cyan);
        filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.4));
    }
    .mob-item:hover .mob-icon-hud .mob-icon-svg,
    .mob-item:focus .mob-icon-hud .mob-icon-svg {
        color: var(--neon-cyan);
        filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    }
    .mob-icon-wrap { position: relative; }
    .mob-icon-wrap .mob-cart-count {
        top: -10px;
        right: -10px;
    }
    .mob-cart-count {
        position: absolute;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        background: var(--bg-dark);
        color: var(--neon-cyan);
        font-size: 10px;
        font-weight: bold;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--neon-cyan);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }
    .mob-label {
        font-size: 9px;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-shadow: 0 0 8px rgba(0, 255, 255, 0.25);
    }

    /* Logo FUERA del menú: círculo flotando arriba de la barra (como en la foto) */
    .mob-item-center {
        position: relative;
        top: -28px;
        z-index: 10;
    }
    .mob-item-center:active .center-circle {
        transform: scale(0.94);
        box-shadow: 0 0 28px rgba(0, 255, 255, 0.7);
    }
    .center-circle {
        position: relative;
        width: 56px !important;
        height: 56px !important;
        background: var(--bg-dark) !important;
        border: 2px solid var(--neon-cyan) !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 0 18px rgba(0, 255, 255, 0.5), 0 0 36px rgba(0, 255, 255, 0.2), inset 0 0 14px rgba(0, 255, 255, 0.06);
        margin-bottom: 4px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .center-circle-ring {
        position: absolute;
        inset: 0;
        border: 1px solid rgba(0, 255, 255, 0.35);
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
        animation: centerPulse 2.5s ease-in-out infinite;
    }
    @keyframes centerPulse {
        0%, 100% { opacity: 0.7; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.03); }
    }
    .mob-logo-btn {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        transform: scale(1.2) !important; /* Zoom moderado para que se vea el lazo y no se corte la cabeza */
    }

    @keyframes cyberPulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); }
        50% { transform: scale(0.9); }
        100% { transform: scale(1); box-shadow: 0 0 0 15px rgba(0, 255, 255, 0); }
    }
    .menu-active-pulse .center-circle {
        animation: cyberPulse 0.4s ease-out;
        border-color: #fff !important;
    }

    .moshi-nav {
        padding-bottom: 80px !important;
        width: 90% !important;
        text-align: center !important;
    }
    .moshi-nav a {
        font-size: 32px !important;
        margin: 12px 0 !important;
        letter-spacing: 2px !important;
        display: block !important;
        width: 100% !important;
    }
    .moshi-nav a::before { display: none !important; }
    .moshi-close { top: 20px !important; right: 30px !important; font-size: 35px !important; }
    .menu-view.is-active .anime-box-full { animation: simpleFadeUp 0.4s backwards; }
}

.menu-toggle,
.mobile-menu-toggle,
.slicknav_btn,
#site-navigation .menu-toggle,
header .menu-toggle,
header .mobile-nav-icon {
    display: none !important;
}

@supports (padding: max(0px)) {
    .moshi-mobile-nav {
        padding-bottom: env(safe-area-inset-bottom) !important;
        height: calc(68px + env(safe-area-inset-bottom)) !important;
        min-height: calc(68px + env(safe-area-inset-bottom)) !important;
    }
}

/* Ocultar botón flotante del plugin Side Cart en móvil (usar "Carrito" de la barra) */
@media (max-width: 768px) {
    .xoo-wsc-sc-cont,
    .xoo-wsc-basket {
        display: none !important;
    }
}

/* =========================================================================
   BOTÓN FLOTANTE DE CARRITO (solo PC, esquina inferior derecha)
   ========================================================================= */
.moshi-cart-float-trigger {
    display: flex; /* ACTIVE */
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 20, 25, 0.95) 0%, rgba(0, 10, 15, 0.98) 100%);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    cursor: pointer;
    z-index: 99990;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    padding: 0;
    overflow: visible;
}
.moshi-cart-float-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 255, 255, 0.4);
    border-color: rgba(0, 255, 255, 0.9);
}
.moshi-cart-float-trigger:active {
    transform: scale(0.98);
}
.moshi-cart-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}
.moshi-cart-float-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
}
.moshi-cart-float-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--neon-cyan);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

@media (min-width: 769px) {
    .moshi-cart-float-trigger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .moshi-cart-float-trigger {
        display: none !important;
    }
}

/* =========================================================================
   CARRITO LATERAL MOSHI - SIEMPRE LADO DERECHO (flex + panel primero en DOM)
   ========================================================================= */
.moshi-cart-drawer {
    display: flex; /* ACTIVE */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    pointer-events: none;
    direction: ltr;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
}
.moshi-cart-drawer.is-open {
    display: flex;
    pointer-events: auto;
}
.moshi-cart-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at right center, rgba(0, 255, 255, 0.06) 0%, transparent 50%), rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.moshi-cart-drawer.is-opening .moshi-cart-drawer-backdrop,
.moshi-cart-drawer.is-open .moshi-cart-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}
.moshi-cart-drawer.is-closing .moshi-cart-drawer-backdrop {
    opacity: 0;
}
/* Panel: flex item al final (derecha), se desliza con translateX(100%) */
.moshi-cart-drawer-panel {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.015) 0px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(135deg, rgba(5, 15, 20, 0.95) 0%, rgba(0, 10, 15, 0.97) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 24px 0 0 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    filter: blur(6px);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), 
                opacity 0.45s ease,
                filter 0.45s ease, 
                box-shadow 0.45s ease;
    overflow: hidden;
    z-index: 1;
}

/* Efecto holograma sutil animado */
.moshi-cart-drawer-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.03) 50%,
        transparent 100%
    );
    animation: hologramShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hologramShimmer {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100%); opacity: 1; }
}
.moshi-cart-drawer.is-opening .moshi-cart-drawer-panel,
.moshi-cart-drawer.is-open .moshi-cart-drawer-panel {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    box-shadow: 
        -20px 0 60px rgba(0, 0, 0, 0.6), 
        -4px 0 30px rgba(0, 255, 255, 0.08),
        inset 1px 0 0 rgba(255, 255, 255, 0.05);
}
.moshi-cart-drawer.is-closing .moshi-cart-drawer-panel {
    transform: translateX(100%);
    opacity: 0;
    filter: blur(6px);
}
.moshi-cart-drawer-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    position: relative;
    z-index: 5;
}
.moshi-cart-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icono de bolsa de compras */
.moshi-cart-drawer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 255, 255, 0.8);
}
.moshi-cart-drawer-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}
.moshi-cart-drawer-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: -0.5px;
}
.moshi-cart-drawer-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 6px;
}
.moshi-cart-drawer-close {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    position: relative;
}
.moshi-cart-drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.moshi-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 28px 28px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mensaje de stock estilo Apple */
.moshi-stock-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 247, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 24px 32px;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    z-index: 99999;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 280px;
    max-width: 90%;
    line-height: 1.5;
}

.moshi-stock-message::before {
    content: "⚠️";
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1;
}

.moshi-stock-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

/* Backdrop del mensaje */
.moshi-stock-message-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.moshi-stock-message-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}
.moshi-cart-drawer-body::-webkit-scrollbar {
    width: 4px;
}
.moshi-cart-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}
.moshi-cart-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.moshi-cart-drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
.moshi-cart-drawer-empty {
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: center;
    padding: 40px 20px 20px;
    font-size: 15px;
    line-height: 1.5;
}
.moshi-cart-drawer-footer-empty {
    margin-top: 20px;
    padding: 0;
    border: none;
    background: transparent;
}
.moshi-cart-drawer-footer-empty .moshi-cart-drawer-btn {
    width: 100%;
}
.moshi-cart-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.moshi-cart-drawer-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
}
.moshi-cart-drawer-item-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: block;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease;
}
.moshi-cart-drawer-item-thumb:hover {
    transform: scale(1.02);
}
.moshi-cart-drawer-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.moshi-cart-drawer-item-details {
    flex: 1;
    min-width: 0;
}
.moshi-cart-drawer-item-name {
    display: block;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.moshi-cart-drawer-item-name:hover { 
    color: rgba(255, 255, 255, 0.8);
}
.moshi-cart-drawer-item-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Controles de cantidad */
.moshi-cart-drawer-item-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.moshi-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    transition: all 0.2s ease;
    line-height: 1;
}
.moshi-qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.moshi-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.moshi-cart-drawer-item-qty-number {
    font-size: 15px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}
.moshi-cart-drawer-item-price-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-right: 6px;
}
.moshi-cart-drawer-item-price {
    font-size: 15px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}
.moshi-cart-drawer-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
}
.moshi-cart-drawer-item-remove:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
}
.moshi-cart-drawer-subtotal-wrap {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.moshi-cart-drawer-subtotal {
    padding: 16px 0 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.moshi-cart-drawer-subtotal strong { 
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}
.moshi-cart-drawer-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
}
.moshi-cart-drawer-footer {
    flex-shrink: 0;
    padding: 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}
/* Botones del carrito: estilo Apple */
.moshi-cart-drawer-btn {
    display: block;
    text-align: center;
    padding: 15px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    letter-spacing: -0.2px;
}
.moshi-btn-capsule {
    border-radius: 12px;
}
.moshi-cart-drawer-btn-sec {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}
.moshi-cart-drawer-btn-sec:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}
.moshi-cart-drawer-btn-primary {
    background: rgba(0, 255, 255, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.9);
    color: #000;
    font-weight: 600;
}
.moshi-cart-drawer-btn-primary:hover {
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

/* Drawer visible también en PC; se abre desde el icono flotante */

/* === SMART VISIBILITY FOR MOSHI STORE CR ===
   This block ensures the menu and cart are hidden on the Coming Soon page for the public.
   ======================================================================== */
.moshi-coming-soon-body .moshi-trigger,
.moshi-coming-soon-body #moshi-menu-trigger,
.moshi-coming-soon-body .moshi-cart-float-trigger,
.moshi-coming-soon-body #moshi-cart-float-trigger,
.moshi-coming-soon-body .moshi-cart-drawer,
.moshi-coming-soon-body .moshi-mobile-nav,
.moshi-coming-soon-body .moshi-cart-drawer-backdrop {
    display: none !important;
}

/* === ULTIMATE ADMIN VISIBILITY OVERRIDE ===
   Forces visibility of the menu and cart specifically for logged-in admins
   by targeting IDs to overcome theme specificity conflicts.
   ======================================================================== */
body.logged-in #moshi-menu-trigger,
body.logged-in .moshi-trigger,
body.logged-in #moshi-cart-float-trigger,
body.logged-in .moshi-cart-float-trigger,
body.logged-in .moshi-mobile-nav,
body.logged-in .moshi-cart-drawer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483647 !important;
}

