
/* Botón flotante de categorías estilo Temu */
.mobile-categories-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    border: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.mobile-categories-toggle i {
    color: white;
    font-size: 28px;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(255, 107, 107, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4); }
}

/* Overlay para categorías */
.categorias-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.categorias-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar de categorías en móvil */
@media (max-width: 992px) {
    .mobile-categories-toggle {
        display: flex;
    }
    
    .categorias-overlay {
        display: block;
    }
    
    #sidebarcategorias {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        max-height: 70vh;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        overflow-y: auto;
        pointer-events: none;
    }
    
    #sidebarcategorias.active {
        margin-top: 120px;
        border-radius: 20px;
        bottom: 0;
        pointer-events: auto;
    }
    
    #sidebarcategorias h3 {
        margin-top: 0;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .close-categories {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #999;
        padding: 5px 10px;
    }
    
    .close-categories:hover {
        color: #333;
    }
    
    .categoria-item {
        padding: 15px;
        margin: 5px 0;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .categoria-item:active {
        background: #f5f5f5;
    }
}
