/* ============================================
   CARDYPOP MOBILE NAV — DARK TECH/LAB EDITION
   Colors: #2bd5ff (cyan), #00ff88 (green), #fff, #313335
   ============================================ */

/* ============================================
   CSS CRÍTICO - OCULTAR HEADER BLOCKSY EN MÓVIL
   ============================================ */
@media (max-width: 689px) {

    html header[data-device="mobile"],
    html body header[data-device="mobile"],
    html .ct-header[data-device="mobile"],
    html body .ct-header[data-device="mobile"],
    html [data-device="mobile"].site-header,
    html body [data-device="mobile"].site-header,
    html .ct-header-trigger,
    html body .ct-header-trigger,
    html #mobile-menu,
    html body #mobile-menu,
    html .ct-mobile-header,
    html body .ct-mobile-header,
    html [data-id="mobile-menu"],
    html body [data-id="mobile-menu"] {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}

/* ============================================
   BARRA DE NAVEGACIÓN PRINCIPAL
   ============================================ */
.cpop-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(43, 213, 255, 0.2);
    padding: 0;
    z-index: 99999999;
    box-shadow:
        0 -4px 30px rgba(0, 0, 0, 0.6),
        0 -1px 0 rgba(43, 213, 255, 0.15);
    overflow: hidden;
}

/* ============================================
   📺 CRT SCAN LINES — OVERLAY HORIZONTAL
   ============================================ */
.cpop-nav-bar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    bottom: -5px;
    background: repeating-linear-gradient(0deg,
            rgba(0, 20, 30, 0.8) 0px,
            rgba(0, 20, 30, 0.8) 3px,
            transparent 2px,
            transparent 5px);
    pointer-events: none;
    z-index: 1;
    animation: crtFlicker 1.15s linear infinite;
}

@keyframes crtFlicker {
    0% {
        opacity: 0.8;
        transform: translateY(0px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
        transform: translateY(5px);
    }
}

/* ============================================
   ⚡ GLITCH LINE — BORDE SUPERIOR CON GLITCH
   ============================================ */
.cpop-nav-glow-line {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(43, 213, 255, 0.8);
    pointer-events: none;
    z-index: 3;
    animation: glitchLine 4s linear infinite;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Glitch sweep — rayo que recorre de izq a der, pausa 5s */
.cpop-nav-glow-line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -20%;
    width: 25%;
    height: 6px;
    background: linear-gradient(90deg,
            transparent,
            #00ff88,
            #fff,
            #2bd5ff,
            transparent);
    animation: glitchSweep 5.16s linear infinite;
    box-shadow:
        0 0 15px rgba(0, 255, 136, 0.9),
        0 0 35px rgba(43, 213, 255, 0.6),
        0 0 60px rgba(0, 255, 136, 0.3);
}

@keyframes glitchLine {

    0%,
    92%,
    100% {
        opacity: 0.7;
        transform: translateX(0);
    }

    93% {
        opacity: 1;
        transform: translateX(3px);
        background: #00ff88;
    }

    94% {
        opacity: 0.4;
        transform: translateX(-2px);
        background: #ff0040;
    }

    95% {
        opacity: 1;
        transform: translateX(1px);
        background: #2bd5ff;
    }

    96% {
        opacity: 0.6;
        transform: translateX(-3px);
        background: #00ff88;
    }

    97% {
        opacity: 1;
        transform: translateX(0);
        background: rgba(43, 213, 255, 0.8);
    }
}

@keyframes glitchSweep {
    0% {
        left: -25%;
        opacity: 1;
    }

    3% {
        left: 120%;
        opacity: 1;
    }

    3.1% {
        left: -25%;
        opacity: 0;
    }

    99.9% {
        left: -25%;
        opacity: 0;
    }

    100% {
        left: -25%;
        opacity: 0;
    }
}

/* ============================================
   🖥️ NOISE GRID — TEXTURA ESTÁTICA SUTIL
   ============================================ */
.cpop-nav-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(43, 213, 255, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(43, 213, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ============================================
   ITEMS DE NAVEGACIÓN
   ============================================ */
.cpop-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 8px 5px 6px;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: none !important;
    border: none;
    font-family: inherit;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transform: scale(1);
    transition: none;
    z-index: 2;
}

/* ============================================
   🔦 SCAN ICON GLOW — EN CONTENEDOR .cpop-nav-icon
   Ciclo 3.16s: glow en el primer ~5%, luego idle
   ============================================ */
.cpop-nav-item:nth-child(1) .cpop-nav-icon {
    animation-delay: 0.00s;
}

.cpop-nav-item:nth-child(2) .cpop-nav-icon {
    animation-delay: 0.034s;
}

.cpop-nav-item:nth-child(3) .cpop-nav-icon {
    animation-delay: 0.057s;
}

.cpop-nav-item:nth-child(4) .cpop-nav-icon {
    animation-delay: 0.08s;
}

.cpop-nav-item:nth-child(5) .cpop-nav-icon {
    animation-delay: 0.103s;
}

.cpop-nav-item:nth-child(6) .cpop-nav-icon {
    animation-delay: 0.126s;
}

@keyframes scanIconGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 0px transparent);
    }

    1% {
        filter: drop-shadow(0 -4px 8px rgba(43, 213, 255, 1)) drop-shadow(0 -2px 14px rgba(0, 255, 136, 0.7)) drop-shadow(0 0 20px rgba(43, 213, 255, 0.4));
    }

    3% {
        filter: drop-shadow(0 -2px 5px rgba(43, 213, 255, 0.5));
    }

    5% {
        filter: drop-shadow(0 0 0px transparent);
    }
}

/* Transiciones después de cargar */
.cpop-nav-bar.nav-ready .cpop-nav-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Eliminar estilos de enlace — prevenir flash */
.cpop-nav-item:link,
.cpop-nav-item:visited,
a.cpop-nav-item,
a.cpop-nav-item:link,
a.cpop-nav-item:visited,
a.cpop-nav-item:hover {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Efecto de presionar — glitch tap */
.cpop-nav-item:active {
    transform: scale(0.88);
    background: none !important;
    outline: none !important;
    animation: tapGlitch 0.15s ease;
}

@keyframes tapGlitch {
    0% {
        transform: scale(0.88) translateX(0);
    }

    25% {
        transform: scale(0.88) translateX(2px);
        filter: hue-rotate(90deg);
    }

    50% {
        transform: scale(0.88) translateX(-2px);
        filter: hue-rotate(-90deg);
    }

    75% {
        transform: scale(0.88) translateX(1px);
        filter: hue-rotate(45deg);
    }

    100% {
        transform: scale(0.88) translateX(0);
        filter: none;
    }
}

.cpop-nav-item:active .cpop-nav-icon {
    box-shadow: 0 0 15px rgba(43, 213, 255, 0.3);
    border-radius: 12px;
}

.cpop-nav-item:focus,
.cpop-nav-item:focus-visible,
.cpop-nav-item:focus-within {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

button.cpop-nav-item,
button.cpop-nav-item:hover,
button.cpop-nav-item:focus,
button.cpop-nav-item:focus-visible {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

button.cpop-nav-item:active {
    background: none !important;
    transform: scale(0.88);
}

/* Drawer activo — icono con glitch cyan */
.cpop-nav-item.drawer-active {
    color: #2bd5ff !important;
}

.cpop-nav-item.drawer-active .cpop-nav-icon {
    animation: activeGlitch 3s step-end infinite;
}

.cpop-nav-item.drawer-active .cpop-nav-icon svg {
    fill: #2bd5ff !important;
}

.cpop-nav-item.drawer-active span {
    color: #2bd5ff !important;
}

@keyframes activeGlitch {

    0%,
    90%,
    100% {
        transform: none;
        filter: drop-shadow(0 0 4px rgba(43, 213, 255, 0.4));
    }

    91% {
        transform: translateX(2px) skewX(5deg);
        filter: drop-shadow(2px 0 0 rgba(255, 0, 64, 0.3)) drop-shadow(-2px 0 0 rgba(0, 255, 136, 0.3));
    }

    93% {
        transform: translateX(-1px) skewX(-3deg);
        filter: drop-shadow(0 0 6px rgba(43, 213, 255, 0.6));
    }

    95% {
        transform: translateX(1px);
        filter: drop-shadow(0 0 4px rgba(43, 213, 255, 0.4));
    }
}

/* ============================================
   ICONOS
   ============================================ */
.cpop-nav-icon {
    position: relative;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: none;
    height: 30px;
    animation: scanIconGlow 5.16s linear infinite;
}

.cpop-nav-bar.nav-ready .cpop-nav-icon {
    transition: none;
}

.cpop-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.55);
    transition: none;
}

.cpop-nav-bar.nav-ready .cpop-nav-icon svg {
    transition: none;
}

.custom-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cpop-nav-item span {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.3s ease;
}

/* ============================================
   CART BADGE — PLASMA GLOW
   ============================================ */
.cpop-cart-count {
    position: absolute;
    top: -5px;
    right: -14px;
    background: linear-gradient(135deg, #00ff88, #2bd5ff);
    color: #0a0a0f !important;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    padding: 2px;
    box-shadow:
        0 0 8px rgba(0, 255, 136, 0.5),
        0 0 20px rgba(0, 255, 136, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.4);
    animation: cpopBadgePulse 0.4s ease;
}

@keyframes cpopBadgePulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cpop-cart-count:empty {
    display: none;
}

/* ============================================
   OCULTAR EN DESKTOP
   ============================================ */
@media (min-width: 1001px) {

    .cpop-nav-bar,
    .cpop-scroll-bar,
    .cpop-drawer {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* Spacing en móvil */
@media (max-width: 1000px) {
    body:not(.woocommerce-checkout) {
        padding-bottom: 64px !important;
    }
}

/* ============================================
   ANIMACIÓN DE ENTRADA
   ============================================ */
.cpop-nav-item {
    animation: cpopSlideUp 0.5s ease backwards;
}

.cpop-nav-item:nth-child(2) {
    animation-delay: 0.05s;
}

.cpop-nav-item:nth-child(3) {
    animation-delay: 0.1s;
}

.cpop-nav-item:nth-child(4) {
    animation-delay: 0.15s;
}

.cpop-nav-item:nth-child(5) {
    animation-delay: 0.2s;
}

.cpop-nav-item:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes cpopSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading */
.cpop-nav-bar.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   DRAWERS — DARK TECH GLASSMORPHISM
   ============================================ */
.cpop-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 55px;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.cpop-drawer.transitions-ready {
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.cpop-drawer.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Backdrop */
.cpop-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1;
}

.cpop-drawer.active .cpop-drawer-backdrop {
    background: rgba(0, 0, 0, 0.8);
}

/* Drawer Content — slide up con borde glow */
.cpop-drawer-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12%;
    right: 0;
    width: 88%;
    max-width: none;
    height: 100%;
    transform: translateY(100%);
    transition: none;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    border-left: 1px solid rgba(43, 213, 255, 0.15);
    border-top-left-radius: 20px;
    box-shadow:
        -4px -4px 30px rgba(43, 213, 255, 0.08),
        0 -2px 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 10;
}

.cpop-drawer.transitions-ready .cpop-drawer-content {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpop-drawer.active .cpop-drawer-content {
    transform: translateY(0);
}

/* Search Drawer */
.cpop-search-drawer .cpop-drawer-content {
    top: 0;
    bottom: 0;
    left: 12%;
    right: 0;
    width: 88%;
    max-width: none;
    height: 100%;
    border-top-left-radius: 20px;
    transform: translateY(100%);
}

.cpop-search-drawer.active .cpop-drawer-content {
    transform: translateY(0);
}

/* ============================================
   DRAWER HEADER — TECH LAB STYLE
   ============================================ */
.cpop-drawer-header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(43, 213, 255, 0.2);
    flex-shrink: 0;
    min-height: 54px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Glow line en el borde inferior del header */
.cpop-drawer-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(43, 213, 255, 0.4) 30%,
            rgba(0, 255, 136, 0.5) 50%,
            rgba(43, 213, 255, 0.4) 70%,
            transparent 100%);
}

.cpop-drawer-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #2bd5ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(43, 213, 255, 0.3);
}

/* Close Button */
.cpop-close-drawer {
    background: rgba(43, 213, 255, 0.1);
    border: 1px solid rgba(43, 213, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: #2bd5ff;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    font-weight: 300;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.cpop-close-drawer:hover,
.cpop-close-drawer:focus {
    background: rgba(0, 255, 136, 0.15);
    border-color: #00ff88;
    color: #00ff88;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    outline: none !important;
}

/* ============================================
   DRAWER BODY
   ============================================ */
.cpop-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    background: rgba(15, 15, 22, 0.95);
    position: relative;
    z-index: 1;
}

/* Scrollbar personalizado cyan */
.cpop-drawer-body::-webkit-scrollbar {
    width: 4px;
}

.cpop-drawer-body::-webkit-scrollbar-track {
    background: rgba(43, 213, 255, 0.05);
}

.cpop-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(43, 213, 255, 0.3);
    border-radius: 2px;
}

.cpop-drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(43, 213, 255, 0.5);
}

/* ============================================
   MENÚ DENTRO DEL DRAWER
   ============================================ */
.cpop-mobile-menu {
    padding: 0;
    margin: 0;
}

/* Reset general del contenedor de menú y forzar layout vertical */
.cpop-drawer-body nav,
.cpop-drawer-body .cpop-mobile-menu {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Forzar ul a ser bloque vertical sin estilos de lista, venciendo flex horizontal de Blocksy */
.cpop-drawer-body nav ul,
.cpop-drawer-body nav .menu,
.cpop-mobile-menu ul.menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    clear: both !important;
    gap: 0 !important;
}

/* Forzar li a ocupar el 100% de ancho, sin floats ni flex horizontal */
.cpop-drawer-body nav ul li,
.cpop-drawer-body nav .menu-item,
.cpop-mobile-menu ul.menu li.menu-item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-bottom: 1px solid rgba(43, 213, 255, 0.08) !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    text-align: left !important;
    align-items: normal !important;
}

/* Quitar borde al último elemento */
.cpop-drawer-body nav ul li:last-child {
    border-bottom: none !important;
}

/* Estilos de los enlaces para que llenen todo el bloque li */
.cpop-drawer-body nav ul li a,
.cpop-drawer-body nav .menu-item a {
    display: block !important;
    width: 100% !important;
    padding: 16px 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    box-sizing: border-box !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.5 !important;
}

/* Glow lateral izquierdo en hover */
.cpop-drawer-body nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2bd5ff, #00ff88);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(43, 213, 255, 0.5);
}

.cpop-drawer-body nav ul li a:hover,
.cpop-drawer-body nav ul li a:focus,
.cpop-drawer-body nav ul li.current-menu-item>a,
.cpop-drawer-body nav ul li.current_page_item>a {
    background: rgba(43, 213, 255, 0.08) !important;
    color: #2bd5ff !important;
    padding-left: 28px !important;
}

.cpop-drawer-body nav ul li a:hover::before,
.cpop-drawer-body nav ul li a:focus::before,
.cpop-drawer-body nav ul li.current-menu-item>a::before,
.cpop-drawer-body nav ul li.current_page_item>a::before {
    opacity: 1 !important;
}

/* Submenu */
.cpop-mobile-menu .sub-menu {
    display: none;
}

.cpop-mobile-menu .sub-menu a {
    padding: 12px 20px 12px 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(43, 213, 255, 0.03);
}

.cpop-mobile-menu .sub-menu a:hover {
    background: rgba(0, 255, 136, 0.08);
    color: #00ff88;
    padding-left: 48px;
}

/* Submenu Toggle */
.cpop-mobile-menu .menu-item-has-children {
    position: relative;
}

.submenu-toggle {
    position: absolute;
    right: 10px;
    top: 6px;
    color: rgba(43, 213, 255, 0.6);
    background: transparent !important;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.submenu-toggle svg {
    width: 12px;
    height: 12px;
    stroke: rgba(43, 213, 255, 0.6);
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.submenu-toggle.open svg {
    transform: rotate(180deg);
    stroke: #00ff88;
}

.submenu-toggle:hover,
.submenu-toggle:focus {
    color: #2bd5ff;
    outline: none !important;
}

/* ============================================
   SEARCH DRAWER — FIBOSEARCH / DGWT
   ============================================ */
.cpop-search-drawer .cpop-drawer-body {
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    max-height: 100% !important;
}

.cpop-search-drawer .dgwt-wcas-enable-mobile-form,
.cpop-search-drawer .dgwt-wcas-search-icon.js-dgwt-wcas-search-icon-handler,
.cpop-search-drawer .dgwt-wcas-search-icon-arrow {
    display: none !important;
}

.cpop-search-drawer .dgwt-wcas-search-wrapp {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.cpop-search-drawer .dgwt-wcas-search-form {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.cpop-search-drawer .dgwt-wcas-sf-wrapp {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    position: relative !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    align-items: center !important;
}

/* Input de búsqueda — estilo Cardypop */
.cpop-search-drawer .dgwt-wcas-search-input {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    border: 2px solid rgba(43, 213, 255, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 15px rgba(43, 213, 255, 0.1) !important;
    background: rgba(20, 20, 30, 0.9) !important;
    color: #ffffff !important;
    outline: none !important;
    height: 48px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.cpop-search-drawer .dgwt-wcas-search-input:focus {
    border-color: #2bd5ff !important;
    box-shadow: 0 0 20px rgba(43, 213, 255, 0.25) !important;
    outline: none !important;
}

.cpop-search-drawer .dgwt-wcas-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.cpop-search-drawer .dgwt-wcas-preloader,
.cpop-search-drawer .dgwt-wcas-voice-search {
    display: none !important;
}

/* Botón de búsqueda — Cardypop */
.cpop-search-drawer .dgwt-wcas-search-submit,
.cpop-search-drawer button[type="submit"] {
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, rgba(43, 213, 255, 0.2), rgba(0, 255, 136, 0.15)) !important;
    color: #2bd5ff !important;
    border: 2px solid rgba(43, 213, 255, 0.4) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 15px rgba(43, 213, 255, 0.15) !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.cpop-search-drawer .dgwt-wcas-search-submit:hover,
.cpop-search-drawer .dgwt-wcas-search-submit:focus,
.cpop-search-drawer button[type="submit"]:hover,
.cpop-search-drawer button[type="submit"]:focus {
    background: linear-gradient(135deg, #00ff88, #2bd5ff) !important;
    border-color: #00ff88 !important;
    color: #0a0a0f !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4) !important;
    outline: none !important;
}

.cpop-search-drawer .dgwt-wcas-search-submit svg,
.cpop-search-drawer button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
    fill: #2bd5ff !important;
    display: block !important;
}

.cpop-search-drawer .dgwt-wcas-search-submit:hover svg,
.cpop-search-drawer button[type="submit"]:hover svg {
    fill: #0a0a0f !important;
}

.cpop-search-drawer .js-dgwt-wcas-search-submit {
    display: flex !important;
    visibility: visible !important;
}

/* Sugerencias de Fibosearch */
.cpop-search-drawer .dgwt-wcas-suggestions-wrapp,
.cpop-search-drawer .dgwt-wcas-suggestions-wrapp.dgwt-wcas-open,
.cpop-search-drawer .dgwt-wcas-suggestions-wrapp.dgwt-wcas-full-width,
.cpop-search-drawer .dgwt-wcas-suggestions-wrapp.dgwt-wcas-suggestions-wrapp-visible {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 !important;
    min-height: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    box-sizing: border-box !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-wrapp>div {
    background: rgba(20, 20, 30, 0.95) !important;
    border: 1px solid rgba(43, 213, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion {
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(43, 213, 255, 0.08) !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion:last-child {
    border-bottom: none !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion:hover,
.cpop-search-drawer .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: rgba(43, 213, 255, 0.08) !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion-product-image {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0 !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid rgba(43, 213, 255, 0.15) !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion-product-details {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion-price {
    font-size: 13px !important;
    color: #00ff88 !important;
    font-weight: 700 !important;
}

.cpop-search-drawer .dgwt-wcas-suggestion-no-results {
    padding: 30px 20px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 14px !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-wrapp:empty,
.cpop-search-drawer .dgwt-wcas-suggestions-wrapp:not(.dgwt-wcas-open):not(:has(.dgwt-wcas-suggestion)) {
    display: none !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-wrapp.dgwt-wcas-open,
.cpop-search-drawer .dgwt-wcas-suggestions-wrapp:has(.dgwt-wcas-suggestion) {
    display: block !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestions:empty {
    display: none !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-footer {
    padding: 12px !important;
    text-align: center !important;
    border-top: 1px solid rgba(43, 213, 255, 0.1) !important;
    background: rgba(10, 10, 15, 0.8) !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-footer a {
    color: #2bd5ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.cpop-search-drawer .dgwt-wcas-suggestions-footer a:hover {
    color: #00ff88 !important;
    text-decoration: underline !important;
}

.dgwt-wcas-overlay-mobile,
.dgwt-wcas-overlay-mobile-on,
body.dgwt-wcas-mobile-overlay-enabled {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 689px) {
    .cpop-search-drawer .dgwt-wcas-suggestions-wrapp {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
    }
}

/* Standard WooCommerce Search (fallback) */
.cpop-search-drawer .woocommerce-product-search {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.cpop-search-drawer input[type="search"],
.cpop-search-drawer .search-field {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid rgba(43, 213, 255, 0.3);
    border-radius: 8px;
    outline: none;
    background: rgba(20, 20, 30, 0.9);
    color: #ffffff;
    transition: border-color 0.3s ease;
    box-shadow: 0 0 15px rgba(43, 213, 255, 0.1);
    box-sizing: border-box;
}

.cpop-search-drawer input[type="search"]:focus,
.cpop-search-drawer .search-field:focus {
    border-color: #2bd5ff;
    outline: none;
}

.cpop-search-drawer button[type="submit"] {
    flex-shrink: 0;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(43, 213, 255, 0.2), rgba(0, 255, 136, 0.15));
    color: #2bd5ff;
    border: 2px solid rgba(43, 213, 255, 0.4);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(43, 213, 255, 0.15);
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.cpop-search-drawer button[type="submit"]:hover,
.cpop-search-drawer button[type="submit"]:focus {
    background: linear-gradient(135deg, #00ff88, #2bd5ff);
    border-color: #00ff88;
    color: #0a0a0f;
    outline: none;
}

/* ============================================
   CART DRAWER — WooCommerce
   ============================================ */
.cpop-cart-drawer .cpop-drawer-body {
    padding: 0;
}

.cpop-cart-drawer .widget_shopping_cart_content {
    padding: 10px;
}

.cpop-cart-drawer .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.cpop-cart-drawer .woocommerce-mini-cart-item {
    display: flex;
    gap: 0;
    padding: 16px 14px 0 45px !important;
    border-bottom: 1px solid rgba(43, 213, 255, 0.1);
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.cpop-cart-drawer .woocommerce-mini-cart-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(43, 213, 255, 0.15);
}

.cpop-cart-drawer .woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 10px;
    right: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.4);
    color: #ff5050;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cpop-cart-drawer .woocommerce-mini-cart-item .remove:hover {
    background: #ff5050;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.4);
}

.cpop-cart-drawer .woocommerce-mini-cart-item a {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-left: 5px;
}

.cpop-cart-drawer .woocommerce-mini-cart-item dl {
    padding-left: 6px;
}

.cpop-cart-drawer .woocommerce-mini-cart__total {
    padding: 18px 10px;
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    border-top: 1px solid rgba(43, 213, 255, 0.2);
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.cpop-cart-drawer .woocommerce-mini-cart__total .amount {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.cpop-cart-drawer .woocommerce-mini-cart__buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0 10px;
}

.cpop-cart-drawer .button {
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: block;
}

.cpop-cart-drawer .button.wc-forward {
    background: transparent;
    color: #2bd5ff;
    border: 2px solid rgba(43, 213, 255, 0.4);
}

.cpop-cart-drawer .button.wc-forward:hover {
    background: rgba(43, 213, 255, 0.15);
    border-color: #2bd5ff;
    box-shadow: 0 0 20px rgba(43, 213, 255, 0.25);
}

.cpop-cart-drawer .button.checkout {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(43, 213, 255, 0.1));
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.cpop-cart-drawer .button.checkout:hover {
    background: linear-gradient(135deg, #00ff88, #2bd5ff);
    border-color: #00ff88;
    color: #0a0a0f;
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.cpop-cart-drawer .woocommerce-mini-cart__empty-message {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 15px;
}

/* ============================================
   BODY LOCK
   ============================================ */
body.drawer-open {
    overflow: hidden;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .cpop-drawer-content {
        left: 8%;
        width: 92%;
    }

    .cpop-search-drawer .cpop-drawer-content {
        left: 8%;
        width: 92%;
    }

    .cpop-drawer-header {
        padding: 12px 15px;
        min-height: 48px;
    }

    .cpop-drawer-header h3 {
        font-size: 13px;
    }

    .cpop-mobile-menu a {
        font-size: 13px;
        padding: 13px 16px;
    }

    .cpop-search-drawer .dgwt-wcas-search-input {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }
}

@media (max-width: 689px) {

    /* Letras blancas en carrito */
    .woocommerce-js ul.cart_list li a,
    .woocommerce-js ul.product_list_widget li a {
        color: #ffffff !important;
    }

    .woocommerce-js .widget_shopping_cart .total strong,
    .woocommerce-js.widget_shopping_cart .total strong {
        color: #ffffff !important;
    }
}

/* ============================================
   BARRA SECUNDARIA FLOTANTE
   ============================================ */
@media (max-width: 689px) {
    .cpop-scroll-bar {
        position: fixed;
        bottom: 58px;
        left: 0;
        right: 0;
        width: 65%;
        margin: 0 auto;
        height: 34px;
        background: rgba(10, 10, 15, 0.5);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 17px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(43, 213, 255, 0.15);
        z-index: 99999990;
        transform: translateY(150%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        border: 1px solid rgba(43, 213, 255, 0.12);
        box-sizing: border-box;
    }

    .cpop-scroll-bar.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .cpop-scroll-bar .cpop-sec-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 27px;
        height: 27px;
        border-radius: 50%;
        background: rgba(43, 213, 255, 0.1);
        border: 1px solid rgba(43, 213, 255, 0.2);
        color: #2bd5ff;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .cpop-scroll-bar .cpop-sec-item:active {
        background: rgba(0, 255, 136, 0.15);
        border-color: rgba(0, 255, 136, 0.3);
    }

    .cpop-scroll-bar .cpop-sec-item svg {
        fill: #2bd5ff;
        width: 18px;
        height: 18px;
    }

    .cpop-scroll-bar .cpop-sec-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-decoration: none;
        color: #2bd5ff;
        font-weight: 700;
    }

    .cpop-scroll-bar .cpop-sec-logo img {
        height: 28px;
        width: auto;
        object-fit: contain;
        max-width: 100px;
    }
}

/* ============================================
   ACCOUNT DRAWER
   ============================================ */
.cpop-account-drawer .cpop-drawer-body {
    padding: 20px;
    color: white;
}

.cpop-account-content {
    max-width: 500px;
    margin: 0 auto;
}

.cpop-account-drawer .woocommerce-form-login,
.cpop-account-drawer .woocommerce-form-register {
    background: rgba(43, 213, 255, 0.05);
    border: 1px solid rgba(43, 213, 255, 0.12);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cpop-account-drawer .woocommerce-form-login h2,
.cpop-account-drawer .woocommerce-form-register h2 {
    color: #2bd5ff !important;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(43, 213, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cpop-account-drawer .woocommerce-form__label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

.cpop-account-drawer .woocommerce-Input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid rgba(43, 213, 255, 0.2) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: rgba(20, 20, 30, 0.9) !important;
    color: #ffffff !important;
    transition: border-color 0.3s ease !important;
}

.cpop-account-drawer .woocommerce-Input:focus {
    border-color: #2bd5ff !important;
    outline: none !important;
    box-shadow: 0 0 15px rgba(43, 213, 255, 0.2) !important;
}

.cpop-account-drawer .woocommerce-Button {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(43, 213, 255, 0.1)) !important;
    color: #00ff88 !important;
    border: 2px solid rgba(0, 255, 136, 0.4) !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15) !important;
    margin-top: 10px !important;
}

.cpop-account-drawer .woocommerce-Button:hover {
    background: linear-gradient(135deg, #00ff88, #2bd5ff) !important;
    border-color: #00ff88 !important;
    color: #0a0a0f !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 0 30px rgba(0, 255, 136, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

.cpop-account-drawer .woocommerce-form-row {
    margin-bottom: 15px;
}

.cpop-account-drawer .woocommerce-privacy-policy-text,
.cpop-account-drawer .woocommerce-LostPassword {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 10px;
}

.cpop-account-drawer .woocommerce-LostPassword a {
    color: #2bd5ff !important;
    text-decoration: none !important;
}

.cpop-account-drawer .woocommerce-LostPassword a:hover {
    color: #00ff88 !important;
    text-decoration: underline !important;
}

.cpop-account-drawer .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cpop-account-drawer .woocommerce-form__input-checkbox {
    width: auto !important;
    margin: 0 !important;
}